:root {
  --sc-canvas: #eeeee8;
  --sc-surface: #e4e4dc;
  --sc-ink: #161714;
  --sc-ink-soft: #4d524c;
  --sc-accent: #1f6b4a;
  --sc-accent-ink: #f4f6f1;
  --sc-font-display: "Fraunces", "Times New Roman", serif;
  --sc-font-text: "Outfit", system-ui, sans-serif;
  --sc-font-mono: "Outfit", system-ui, sans-serif;
  --sc-shadow-color: 90 12% 10%;
}

body.page-work {
  --sc-canvas: #121613;
  --sc-surface: #1a1f1b;
  --sc-ink: #e8ebe4;
  --sc-ink-soft: #a3aa9e;
  --sc-accent: #7dcc9e;
  --sc-accent-ink: #102016;
  color: var(--sc-ink);
  background: var(--sc-canvas);
}

body.page-home,
body.page-contact,
body.page-practice {
  --sc-canvas: #0e1612;
  --sc-surface: #162019;
  --sc-ink: #f4f1ea;
  --sc-ink-soft: #c2c8bb;
  --sc-accent: #c9a36a;
  --sc-accent-ink: #14110c;
  color: var(--sc-ink);
  background: var(--sc-canvas);
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 90;
  transform: translateY(-220%);
  background: var(--sc-accent); color: var(--sc-accent-ink);
  padding: 0.65rem 1rem; border-radius: var(--sc-r-sm); font-weight: 600;
}
.skip-link:focus { transform: none; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  background: color-mix(in oklab, var(--sc-canvas) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--sc-hairline);
}
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
  width: 100%; max-width: var(--sc-maxw);
  margin-inline: auto; padding-inline: var(--sc-gutter);
}
.site-brand {
  font-family: var(--sc-font-display); font-weight: 600;
  font-size: 1.15rem; letter-spacing: -0.03em;
  text-decoration: none; color: var(--sc-ink);
}
.nav-menu {
  display: flex; align-items: center; gap: 0.2rem 0.15rem;
}
.nav-menu a {
  font-size: 0.92rem; font-weight: 500; color: var(--sc-ink-soft);
  text-decoration: none; padding: 0.45rem 0.75rem;
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"] { color: var(--sc-ink); }
.nav-menu a[aria-current="page"] { font-weight: 600; }
.nav-cta {
  color: var(--sc-accent-ink) !important;
  background: var(--sc-accent);
  margin-left: 0.5rem;
}
.nav-cta:hover { filter: brightness(1.08); color: var(--sc-accent-ink) !important; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--sc-hairline-strong);
  color: var(--sc-ink); padding: 0.45rem 0.7rem; cursor: pointer; font-weight: 600;
}

.page { padding-top: 4.25rem; min-height: 100svh; display: flex; flex-direction: column; }
.page > main { flex: 1; }

.hero-stage {
  min-height: calc(100svh - 4.25rem);
  position: relative;
  overflow: clip;
  isolation: isolate;
  background: #0e1612;
}
.hero-frame {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-frame img {
  position: absolute;
  left: -8%;
  top: -10%;
  width: 116%;
  height: 120%;
  max-width: none;
  object-fit: cover;
  object-position: 58% 8%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(10, 18, 14, 0.88) 0%, rgba(10, 18, 14, 0.42) 36%, rgba(10, 18, 14, 0.08) 58%, transparent 72%),
    linear-gradient(to top, rgba(10, 18, 14, 0.62) 0%, transparent 38%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100svh - 4.25rem);
  padding: clamp(2rem, 6vh, 3.5rem) var(--sc-gutter) 3.2rem;
  max-width: 42rem;
}
.cover__kicker {
  font-size: var(--sc-t-xs); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sc-accent); font-weight: 600; margin: 0 0 0.9rem;
}
.hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 7.2vw, 6.4rem);
  color: var(--sc-ink);
}
.hero-copy h1 em {
  font-style: italic;
  font-weight: 500;
  color: color-mix(in oklab, var(--sc-ink) 88%, var(--sc-accent));
}
.hero-copy .sc-lede {
  margin-top: 1.2rem;
  max-width: 32ch;
  color: var(--sc-ink-soft);
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem;
  margin-top: 1.8rem;
}
.hero-go {
  display: inline-flex; align-items: center;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  padding: 0.85rem 1.2rem; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border-radius: 2px;
}
.hero-go:hover { color: var(--sc-accent-ink); filter: brightness(1.08); }
.hero-write { font-weight: 600; color: var(--sc-ink); }
.hero-label {
  margin-top: 2.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--sc-ink) 55%, transparent);
}

.page-practice main { display: flex; flex-direction: column; }
.shop { background: var(--sc-canvas); }
.shop-head {
  padding: clamp(1.8rem, 5vh, 3.2rem) var(--sc-gutter) 2rem;
  max-width: var(--sc-maxw);
  margin-inline: auto;
}
.shop-head h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5rem);
}
.shop-head h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--sc-accent);
}
.shop-lede {
  margin: 1rem 0 0;
  max-width: 36ch;
  color: var(--sc-ink-soft);
  font-size: var(--sc-t-base);
  line-height: 1.55;
}
.shop-board {
  --paper: #f4f1ea;
  --sc-ink: #161714;
  --sc-ink-soft: #4d524c;
  background: var(--paper);
  color: var(--sc-ink);
  padding: clamp(1.6rem, 4vh, 2.8rem) var(--sc-gutter) 3rem;
}
.shop-board .desk-sheet-to {
  max-width: var(--sc-maxw);
  margin-inline: auto;
}
.goods {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--sc-maxw);
}
.good {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem 1.6rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 12%, transparent);
  color: inherit;
}
.good:first-child { padding-top: 0.2rem; }
.good-copy h2 {
  margin: 0;
  font-family: var(--sc-font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.good-copy p { margin: 0.35rem 0 0; color: var(--sc-ink-soft); max-width: 46ch; }
.good-copy .spec {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--sc-ink-soft);
}
.good-mark {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #9a7a42;
}
.good-price {
  margin: 0;
  font-family: var(--sc-font-display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 500;
  color: #1f6b4a;
  letter-spacing: -0.03em;
}
.good-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.1rem;
  background: #c9a36a;
  color: #14110c;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
}
.good-buy:hover { color: #14110c; filter: brightness(1.06); }
.good-buy:focus-visible {
  outline: 2px solid #1f6b4a;
  outline-offset: 3px;
}
.shop-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: var(--sc-maxw);
  margin: 1.8rem auto 0;
  padding-top: 1.6rem;
}
.shop-custom h2 {
  margin: 0;
  font-family: var(--sc-font-display);
  font-size: 1.55rem;
  font-weight: 500;
}
.shop-custom p { margin: 0.3rem 0 0; color: var(--sc-ink-soft); }
.shop-custom .hero-go { background: #1f6b4a; color: #f4f6f1; }
.shop-custom .hero-go:hover { color: #f4f6f1; }

.rail {
  height: 100%; align-items: stretch; gap: 2.2rem;
  padding: 6.5rem 4rem 4rem 3rem;
}
.rail__lead, .rail__end, .shelf {
  flex: 0 0 auto; width: clamp(18.5rem, 34vw, 28rem);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.rail__lead { width: clamp(22rem, 42vw, 34rem); justify-content: center; }
.rail__end { width: clamp(18rem, 28vw, 24rem); justify-content: center; }
.shelf-stage { background: #121613; }
.shelf {
  background: #1e2620; padding: 1.4rem 1.4rem 1.5rem;
  min-height: min(62vh, 34rem); text-decoration: none; color: inherit;
  border: 1px solid color-mix(in oklab, #e8ebe4 10%, transparent);
}
.shelf :is(h2, h3) {
  font-family: var(--sc-font-display); font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500; letter-spacing: var(--sc-track-tight); margin: 0 0 0.7rem;
}
.shelf p { margin: 0; color: var(--sc-ink-soft); font-size: 0.95rem; max-width: 28ch; }
.shelf .spec {
  margin-top: auto; padding-top: 2rem;
  font-size: 0.78rem; letter-spacing: 0.04em; color: var(--sc-ink-soft);
}
@media (prefers-reduced-motion: no-preference) {
  .rail > :not(:first-child) {
    opacity: clamp(0.55, calc((var(--sc-p, 0) - 0.08) * 2.4), 1);
  }
}

.kits {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem; margin-top: 2.4rem;
}
.kit {
  display: flex; flex-direction: column; gap: 0.85rem;
  padding: 1.4rem 1.45rem; background: var(--sc-surface);
  text-decoration: none; color: inherit;
  border: 1px solid var(--sc-hairline);
}
.kit :is(h2, h3) { font-family: var(--sc-font-display); font-size: 1.7rem; margin: 0; font-weight: 500; }
.kit p { margin: 0; color: var(--sc-ink-soft); }
.kit .spec { font-size: 0.78rem; color: var(--sc-ink-soft); margin-top: auto; padding-top: 1.2rem; }

.page-contact main { display: flex; flex-direction: column; }
.desk {
  display: grid;
  grid-template-columns: minmax(17rem, 0.92fr) minmax(22rem, 1.18fr);
  flex: 1;
  width: 100%;
  min-height: 0;
  background: var(--sc-canvas);
}
.desk-rail {
  display: flex;
  flex-direction: column;
  padding: clamp(1.8rem, 5vh, 3.4rem) clamp(1.4rem, 4vw, 3.4rem) 2.6rem;
  border-right: 1px solid color-mix(in oklab, var(--sc-ink) 12%, transparent);
}
.desk-portrait {
  width: 7.25rem;
  height: 8.8rem;
  margin: 0 0 auto;
  overflow: hidden;
  outline: 1px solid color-mix(in oklab, var(--sc-accent) 55%, transparent);
  outline-offset: 5px;
}
.desk-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 10%;
}
.desk-rail .cover__kicker { margin-top: 2.2rem; }
.desk-rail h1 {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
}
.desk-rail h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--sc-accent);
}
.desk-lede {
  margin: 1.1rem 0 0;
  max-width: 28ch;
  color: var(--sc-ink-soft);
  font-size: var(--sc-t-base);
  line-height: 1.55;
}
.desk-channels {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.05rem;
}
.desk-channels li { display: grid; gap: 0.22rem; }
.desk-channels span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--sc-ink) 55%, transparent);
}
.desk-channels a {
  color: var(--sc-ink);
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
}
.desk-channels a:hover { color: var(--sc-accent); }
.desk-channels a:focus-visible {
  outline: 2px solid var(--sc-accent);
  outline-offset: 3px;
}

.desk-sheet {
  --paper: #f4f1ea;
  --sc-ink: #161714;
  --sc-ink-soft: #4d524c;
  background: var(--paper);
  color: var(--sc-ink);
  display: flex;
  flex-direction: column;
  padding: clamp(1.8rem, 5vh, 3.4rem) clamp(1.4rem, 4vw, 3.6rem) 2.6rem;
}
.desk-sheet-to {
  margin: 0 0 1.35rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 14%, transparent);
  font-family: var(--sc-font-display);
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 500;
  color: #161714;
}
form.letterform {
  display: grid;
  gap: 1.05rem;
  align-content: start;
}
.letterform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  align-items: start;
}
.letterform label {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sc-ink-soft);
}
.letterform .opt {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: color-mix(in oklab, var(--sc-ink-soft) 80%, transparent);
}
.letterform input,
.letterform textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 22%, transparent);
  border-radius: 0;
  padding: 0.7rem 0;
  outline: none;
  color: var(--sc-ink);
  font-family: var(--sc-font-text);
  font-size: 1rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.letterform textarea {
  min-height: 8.5rem;
  resize: vertical;
  line-height: 1.65;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 1.62em,
    color-mix(in oklab, var(--sc-ink) 8%, transparent) 1.62em,
    color-mix(in oklab, var(--sc-ink) 8%, transparent) calc(1.62em + 1px)
  );
  background-origin: content-box;
}
.letterform input::placeholder,
.letterform textarea::placeholder {
  color: color-mix(in oklab, var(--sc-ink-soft) 72%, var(--paper));
}
.letterform input:hover,
.letterform textarea:hover {
  border-bottom-color: color-mix(in oklab, var(--sc-ink) 40%, transparent);
}
.letterform input:focus,
.letterform textarea:focus {
  border-bottom-color: #1f6b4a;
  box-shadow: 0 1px 0 #1f6b4a;
}
.letterform input:focus-visible,
.letterform textarea:focus-visible {
  outline: 2px solid #c9a36a;
  outline-offset: 4px;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.desk-send {
  justify-self: start;
  margin-top: 0.5rem;
  min-height: 2.85rem;
  padding: 0.85rem 1.35rem;
  border: 0;
  border-radius: 2px;
  background: #c9a36a;
  color: #14110c;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.desk-send:hover { filter: brightness(1.06); }
.desk-send:focus-visible {
  outline: 2px solid #1f6b4a;
  outline-offset: 3px;
}
.desk-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--sc-ink-soft);
}
.status { display: none; font-size: 0.9rem; margin-top: 0.2rem; }
.status.ok, .status.err { display: block; }
.status.ok { color: #1f6b4a; }
.status.err { color: #8a1f1f; }

.colophon {
  margin-top: auto; padding: var(--sc-5) var(--sc-gutter);
  border-top: 1px solid var(--sc-hairline);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem;
  font-size: 0.82rem; color: var(--sc-ink-soft);
}
.colophon nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.colophon a { color: var(--sc-ink-soft); text-decoration: none; }
.colophon a:hover { color: var(--sc-ink); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.6rem 0.8rem 1rem;
    background: var(--sc-canvas);
    border-bottom: 1px solid var(--sc-hairline);
  }
  .site-header.is-open .nav-menu { display: flex; }
  .nav-menu a { padding: 0.85rem 0.7rem; }
  .nav-cta { margin-left: 0; text-align: center; }
  .hero-copy {
    padding: 1.5rem 1.25rem 2rem;
    max-width: none;
  }
  .hero-copy h1 { font-size: var(--sc-t-2xl); }
  .hero-actions .hero-go { width: 100%; justify-content: center; }
  .hero-frame img { object-position: 52% 6%; }
  .kits { grid-template-columns: 1fr; }
  .desk { grid-template-columns: 1fr; min-height: auto; flex: none; }
  .desk-rail {
    border-right: 0;
    border-bottom: 1px solid color-mix(in oklab, var(--sc-ink) 12%, transparent);
    min-height: auto;
  }
  .desk-portrait { width: 5.4rem; height: 6.6rem; margin-bottom: 1.4rem; }
  .desk-rail h1 { font-size: var(--sc-t-2xl); max-width: none; }
  .letterform-row { grid-template-columns: 1fr; }
  .desk-send { width: 100%; }
  .good {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "price"
      "buy";
    gap: 0.55rem;
  }
  .good-copy { grid-area: copy; }
  .good-price { grid-area: price; justify-self: start; }
  .good-buy { grid-area: buy; width: 100%; margin-top: 0.25rem; }
  .shop-custom .hero-go { width: 100%; justify-content: center; }
  .rail { padding: 5.5rem 1.25rem 3rem; }
}
