/* Fauma landing — "carpenter's drawing set": paper sheets, walnut ink, pine dimension lines. */

:root {
  --paper: #f2ece2;
  --paper-2: #ebe3d6;
  --surface: #fbf8f3;
  --ink: #231f1b;
  --ink-soft: #5a4f44;
  --muted: #74685b;
  --line: #d8cdbd;
  --line-strong: #b8a58a;
  --walnut: #6b4a31;
  --walnut-dark: #4e3522;
  --oak: #c9a27a;
  --oak-soft: #ead9c2;
  --pine: #2f5b4d;
  --pine-soft: #dce7e0;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --grid: rgba(107, 74, 49, 0.07);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--walnut);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

:focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: var(--surface);
  padding: 10px 16px;
}
.skip:focus {
  left: 8px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(242, 236, 226, 0.94);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line-strong);
}
.bar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  min-height: 44px;
  align-items: center;
}
.brand img {
  align-self: center;
}
.brand__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
}
.brand__tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.nav {
  display: flex;
  gap: 4px;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 4px;
}
.nav a:hover {
  color: var(--ink);
  background: var(--paper-2);
}
.menu {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  background: transparent;
  border-radius: 4px;
  font: 700 14px var(--sans);
  color: var(--ink);
  cursor: pointer;
}
.menu__lines,
.menu__lines::before,
.menu__lines::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  content: '';
}
.menu__lines::before {
  position: absolute;
  top: -6px;
}
.menu__lines::after {
  position: absolute;
  top: 6px;
}

/* ---------- Sheets ---------- */

.sheet {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 8vw, 104px);
  position: relative;
}
.sheet + .sheet {
  border-top: 1px solid var(--line-strong);
}
.sheet__label {
  display: flex;
  gap: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  margin: 0 0 clamp(28px, 5vw, 56px);
}
.sheet__label span {
  padding: 14px 16px 12px 0;
  margin-right: 16px;
  border-right: 1px solid var(--line);
}
.sheet__label span:last-child {
  border-right: 0;
  margin-left: auto;
  margin-right: 0;
  padding-right: 0;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.section-head h2 {
  font-size: clamp(34px, 5vw, 60px);
}
.section-head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.eyebrow {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--pine);
}
.hero h1 {
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 1.02;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--walnut);
}
.lead {
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--ink-soft);
  margin: 26px 0 32px;
  max-width: 38em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 32px 0 0;
}
.facts li {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
  border-radius: 3px;
  background: var(--surface);
}

/* CTA */
.cta {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60px;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  line-height: 1.15;
  border: 2px solid var(--ink);
}
.cta--solid {
  background: var(--ink);
  color: var(--surface);
}
.cta--line {
  color: var(--ink);
  background: transparent;
}
a.cta--solid:hover {
  background: var(--walnut-dark);
  border-color: var(--walnut-dark);
}
.cta__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}
.cta__label {
  font-size: 18px;
  font-weight: 700;
}
.cta--soon {
  cursor: default;
  border-style: dashed;
}
.cta--solid.cta--soon {
  background: transparent;
  color: var(--ink);
}
.textlink {
  font-weight: 700;
  color: var(--walnut);
  text-decoration: none;
  border-bottom: 2px solid var(--oak);
  padding: 10px 0 6px;
  display: inline-block;
}
.textlink:hover {
  border-color: var(--walnut);
}

/* Drawing */
.drawing {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 28px 28px 20px 20px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  position: relative;
}
.drawing::after {
  content: 'A';
  position: absolute;
  right: 12px;
  top: 8px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--muted);
}
.drawing__body {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  position: relative;
}
.drawing__dim {
  display: flex;
  align-items: center;
  color: var(--pine);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.drawing__dim i {
  width: 2px;
  height: 14px;
  background: currentColor;
  flex: none;
}
.drawing__dim b {
  flex: 1;
  height: 1.5px;
  background: currentColor;
}
.drawing__dim span {
  padding: 0 10px;
  white-space: nowrap;
}
.drawing__dim--top {
  margin: 0 0 10px 36px;
}
.drawing__dim--side {
  flex-direction: column;
}
.drawing__dim--side i {
  width: 14px;
  height: 2px;
}
.drawing__dim--side b {
  width: 1.5px;
  height: auto;
}
.drawing__dim--side span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 10px 0;
}
.drawing__svg {
  width: 100%;
  height: auto;
  box-shadow: 8px 8px 0 var(--oak-soft);
}
.callouts {
  list-style: none;
  margin: 0;
  padding: 0;
  grid-column: 2;
  position: relative;
  height: 36px;
}
.callouts li {
  position: absolute;
  left: var(--x);
  transform: translateX(-50%);
  top: 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}
.callouts span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--walnut);
  color: var(--walnut);
  font-family: var(--serif);
  font-size: 13px;
}
.drawing figcaption {
  margin: 14px 0 0 36px;
  font-size: 14px;
  color: var(--muted);
}
.drawing figcaption strong {
  color: var(--ink);
}

/* ---------- Flow ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(48px, 8vw, 96px);
}
.step {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
}
.step--flip .step__text {
  order: 2;
}
.step__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.9;
  color: var(--oak);
  margin-bottom: 14px;
}
.step h3 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin-bottom: 16px;
}
.step p {
  margin: 0 0 14px;
  max-width: 34em;
}
.step__note {
  color: var(--muted);
  font-size: 15px;
  border-left: 3px solid var(--pine);
  padding-left: 14px;
}
.plate {
  position: relative;
  max-width: 320px;
  justify-self: center;
  width: 100%;
  background: var(--ink);
  padding: 8px;
  border-radius: 28px;
}
.plate img {
  border-radius: 21px;
  aspect-ratio: 720 / 1523;
  object-fit: cover;
  background: var(--paper-2);
}
.plate__tag {
  position: absolute;
  left: -14px;
  bottom: 38px;
  background: var(--pine);
  color: var(--surface);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 2px;
}

/* ---------- Spec ---------- */

.spec__list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
}
.spec__list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.spec__list dt {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--walnut);
  padding-top: 3px;
}
.spec__list dd {
  margin: 0;
}

/* ---------- Plates strip ---------- */

.plates__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 28px;
  overflow-x: auto;
  padding: 4px 4px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--oak) transparent;
}
.plates__track figure {
  margin: 0;
  scroll-snap-align: start;
}
.plates__track img {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  aspect-ratio: 720 / 1523;
  object-fit: cover;
  background: var(--paper-2);
}
.plates__track figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  border-top: 1.5px solid var(--ink);
  padding-top: 8px;
}
.plates__track figcaption b {
  font-family: var(--serif);
  color: var(--walnut);
}

/* ---------- Terms ---------- */

.terms__grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 0;
  border: 1.5px solid var(--ink);
  background: var(--surface);
}
.terms__grid > * {
  padding: clamp(22px, 3vw, 36px);
}
.terms__grid > * + * {
  border-left: 1px solid var(--line-strong);
}
.stamp {
  background: var(--walnut);
  color: var(--surface);
}
.stamp__big {
  font-family: var(--serif);
  font-size: clamp(64px, 8vw, 104px);
  line-height: 1;
  margin: 0 0 12px;
}
.stamp p:last-child {
  margin: 0;
}
.terms__item h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
.terms__item p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */

.faq__list {
  border-top: 1.5px solid var(--ink);
  max-width: 900px;
}
.faq details {
  border-bottom: 1px solid var(--line-strong);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(19px, 2vw, 23px);
  padding: 20px 48px 20px 0;
  position: relative;
  min-height: 44px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 16px;
  font-family: var(--sans);
  font-size: 26px;
  color: var(--walnut);
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- Download ---------- */

.download {
  background: var(--pine);
  color: var(--surface);
}
.download__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.download__inner img {
  background: var(--paper);
  padding: 10px;
  border-radius: 14px;
}
.download__inner > div {
  flex: 1;
  min-width: 220px;
}
.download h2 {
  font-size: clamp(32px, 4.4vw, 52px);
}
.download p {
  margin: 8px 0 0;
  opacity: 0.85;
}
.download .cta--line {
  color: var(--surface);
  border-color: var(--surface);
}

/* ---------- Footer title block ---------- */

.titleblock {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 48px;
}
.titleblock__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border: 1.5px solid var(--ink);
  background: var(--surface);
}
.tb {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  min-width: 0;
}
.tb:nth-child(3n) {
  border-right: 0;
}
.tb:nth-last-child(-n + 3) {
  border-bottom: 0;
}
.tb__k {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.tb__v {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.tb__v--title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
}

/* ---------- Privacy page ---------- */

.doc {
  max-width: 820px;
}
.doc h1 {
  font-size: clamp(38px, 5.6vw, 64px);
  margin-bottom: 16px;
}
.doc__meta {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 32px;
}
.doc__summary {
  border: 1.5px solid var(--ink);
  background: var(--surface);
  padding: 22px 26px;
  margin: 0 0 40px;
}
.doc__summary ul {
  margin: 10px 0 0;
  padding-left: 20px;
}
.changelog-cta {
  margin: 18px 0 0;
}
.release .doc__meta {
  margin: 0 0 12px;
}
.doc h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin: 44px 0 12px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.doc h2 span {
  font-size: 0.7em;
  color: var(--oak);
}
.doc p,
.doc li {
  color: var(--ink-soft);
}
.doc ul {
  padding-left: 22px;
}
.strong-link {
  font-weight: 700;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero__grid,
  .section-head,
  .step {
    grid-template-columns: 1fr;
  }
  .step--flip .step__text {
    order: 0;
  }
  .plate {
    max-width: 280px;
  }
  .spec__list {
    grid-template-columns: 1fr;
  }
  .terms__grid {
    grid-template-columns: 1fr 1fr;
  }
  .terms__grid > :nth-child(3) {
    border-left: 0;
  }
  .terms__grid > :nth-child(n + 3) {
    border-top: 1px solid var(--line-strong);
  }
}

@media (max-width: 760px) {
  .menu {
    display: inline-flex;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line-strong);
    padding: 8px var(--gutter) 16px;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }
  .brand__tag {
    display: none;
  }
  .sheet__label span:nth-child(2) {
    display: none;
  }
  .spec__list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .terms__grid {
    grid-template-columns: 1fr;
  }
  .terms__grid > * + * {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }
  .titleblock__grid {
    grid-template-columns: 1fr 1fr;
  }
  .tb,
  .tb:nth-child(3n) {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }
  .tb:nth-child(2),
  .tb:nth-child(5) {
    border-right: 1px solid var(--line-strong);
  }
  .tb--wide {
    grid-column: 1 / -1;
  }
  .tb:nth-child(5),
  .tb:nth-child(6) {
    border-bottom: 0;
  }
  .drawing {
    padding: 18px 14px 14px 8px;
  }
  .drawing::after {
    display: none;
  }
  .callouts li {
    font-size: 11px;
    gap: 4px;
  }
  .callouts span {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }
  .plate__tag {
    left: -6px;
  }
}

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