:root {
  --ink: #14211c;
  --paper: #f3ecdf;
  --paper-2: #e7efe9;
  --moat: #0c1f1b;
  --spruce: #16382e;
  --mist: #b7c4be;
  --brass: #e4d2a8;
  --brass-deep: #c4a46a;
  --line: rgba(228, 210, 168, 0.28);
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  --measure: 68rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#meridian,
#crescent,
#products {
  scroll-margin-top: 4.6rem;
}

body {
  margin: 0;
  background: var(--moat);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  z-index: 20;
}

.skip:focus { top: 1rem; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 3px;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(12, 31, 27, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.mark { width: 1.35rem; height: 1.35rem; color: var(--brass); }

.bar nav {
  display: flex;
  gap: 1.25rem;
}

.bar nav a {
  text-decoration: none;
  color: var(--brass);
  font-size: 0.95rem;
}

.bar nav a:hover { color: var(--paper); }

.hero {
  position: relative;
  min-height: calc(100svh - 4.2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2.5rem, 8vh, 6rem) 1.5rem 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: min(78vw, 42rem);
  height: min(78vw, 42rem);
  border: 1px solid rgba(228, 210, 168, 0.28);
  border-bottom-color: transparent;
  border-radius: 50%;
  right: -12vw;
  top: -18vh;
  pointer-events: none;
}

.hero-copy,
.index,
.product,
.company,
.colophon {
  width: min(var(--measure), 100%);
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.8rem;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker.dark { color: var(--spruce); }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.92;
}

h1 {
  margin: 0;
  font-size: clamp(4.4rem, 13vw, 8.5rem);
}

.lede {
  max-width: 36rem;
  margin: 1.4rem 0 0;
  color: var(--mist);
  font-size: 1.15rem;
}

.index {
  list-style: none;
  margin: 3rem auto 0;
  padding: 0;
  position: relative;
}

.index a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem 0.2rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.index li:last-child a { border-bottom: 1px solid var(--line); }

.index a:hover { background: rgba(243, 236, 223, 0.04); }

.num {
  color: var(--brass-deep);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}

.index-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.index-copy strong {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.index-copy span { color: var(--mist); }

.pill {
  justify-self: end;
  border: 1px solid var(--brass);
  color: var(--brass);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill.quiet {
  border-color: transparent;
  background: rgba(228, 210, 168, 0.12);
}

.sheet {
  background: var(--paper);
  color: var(--ink);
}

.sheet.snow { background: var(--paper-2); }

.product {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
}

.product-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(3.2rem, 7vw, 5.4rem);
}

.product-copy p { margin: 0 0 1rem; max-width: 38rem; }

.product-copy ul {
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}

.product-copy li {
  padding: 0.55rem 0;
  border-top: 1px solid rgba(20, 33, 28, 0.12);
}

.product-copy li:last-child { border-bottom: 1px solid rgba(20, 33, 28, 0.12); }

.bounds {
  color: #3e524b;
  font-size: 0.98rem;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
  padding: 0.7rem 1.05rem 0.7rem 0.85rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: 0.85rem;
}

.store svg { width: 1.15rem; height: 1.35rem; }

.store span { display: flex; flex-direction: column; line-height: 1.1; }

.store small {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.store:hover { background: var(--spruce); }

.frame {
  margin: 0;
}

.frame svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
}

.frame figcaption {
  margin-top: 0.75rem;
  color: #5c6d66;
  font-size: 0.92rem;
  font-style: italic;
  font-family: var(--serif);
}

.company {
  background: var(--moat);
  color: var(--paper);
  padding: clamp(4rem, 8vw, 6.5rem) 1.5rem;
}

.company h2 {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

.company p:last-child {
  max-width: 38rem;
  margin: 0;
  color: var(--mist);
}

.colophon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 0.95rem;
}

.colophon p { margin: 0; }

.colophon a { color: var(--brass); }

@media (max-width: 800px) {
  .product,
  .product.flip { grid-template-columns: 1fr; }

  .index a {
    grid-template-columns: auto 1fr;
    gap: 0.8rem 1rem;
  }

  .pill {
    grid-column: 2;
    justify-self: start;
  }

  .bar { padding-inline: 1rem; }
}

@media (max-width: 520px) {
  .bar nav { gap: 0.8rem; }
  .lede { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
