:root {
  --ink: #f7f1e6;
  --ink-muted: rgba(247, 241, 230, 0.78);
  --ink-soft: rgba(247, 241, 230, 0.62);
  --night: #060708;
  --line: rgba(247, 241, 230, 0.18);
  --line-strong: rgba(247, 241, 230, 0.28);
  --cyan: #86d7dc;
  color-scheme: dark;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--night);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--night);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
.brand {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.home-page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow-x: hidden;
}

.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("/images/bestframes-home-hero.jpg") center center / cover no-repeat;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
}

.brand {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

.links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 700;
}

.links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 9, 10, 0.28);
  backdrop-filter: blur(18px);
  white-space: nowrap;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  padding: clamp(28px, 5svh, 56px) 0 150px;
}

.hero-copy {
  display: grid;
  max-width: 540px;
  gap: 30px;
  margin-left: 8px;
  justify-items: start;
  text-align: left;
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: 72px;
  line-height: 1.06;
  letter-spacing: 0;
}

.home-page h1 {
  max-width: none;
  color: rgba(255, 250, 239, 0.88);
  font-size: 60px;
  line-height: 1.22;
  text-shadow: none;
}

.home-title {
  display: grid;
}

.home-title span {
  display: block;
}

.lede {
  max-width: 620px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 21px;
  line-height: 1.62;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-primary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #111314;
  font-weight: 800;
  transition: transform 140ms ease, background 140ms ease;
}

.action-primary:hover {
  transform: translateY(-1px);
  background: #ffffff;
}

.home-workspace-link {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(5, 9, 12, 0.36);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  white-space: nowrap;
}

.home-workspace-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(5, 9, 12, 0.56);
}

.page {
  width: min(840px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.page article {
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.page article p,
.page article li {
  color: var(--ink-muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .topbar,
  .page {
    width: min(100% - 32px, 720px);
  }

  .hero {
    min-height: 100svh;
    padding: clamp(28px, 5svh, 52px) 0 120px;
  }

  h1 {
    max-width: 10ch;
    font-size: 48px;
  }

  .home-page h1 {
    font-size: 50px;
  }

  .lede {
    font-size: 18px;
  }

}

@media (max-width: 560px) {
  .home-page::before {
    background-position: 52% center;
  }

  .topbar {
    gap: 10px;
    padding-top: 20px;
  }

  .brand {
    font-size: 24px;
  }

  .links a {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero {
    min-height: 100svh;
    padding: 32px 0 118px;
  }

  h1 {
    font-size: 36px;
  }

  .home-page h1 {
    font-size: 36px;
    line-height: 1.2;
  }

  .home-workspace-link {
    right: 12px;
    bottom: 12px;
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
  }
}
