/* Donematic site. Plain HTML and CSS; no framework, build, JavaScript or web fonts.
   Warm Clay / Warm Cream product tokens with Pixel v3's measured AA ink colours.
   The home's only ornament is the static, no-mouth Mali postage composition. */

:root {
  color-scheme: light dark;
  --bg-top: #FBF7F3;
  --bg-bottom: #F3ECE4;
  --surface: #FFFFFF;
  --surface-2: #F7F1EB;
  --text: #1A1D22;
  --text-2: #5B5550;
  --text-3: #6E655F;
  --accent: #A87862;
  --accent-text: #8C5F4B;
  --label-ink: #7E5544;
  --accent-soft: #F8F0EA;
  --line: #DFD5CC;
  --line-soft: #EDE6DF;
  --foil-solid: #C4A478;
  --foil-outer: rgba(196, 164, 120, .64);
  --foil-inner: rgba(196, 164, 120, .36);
  --postmark-ink: rgba(117, 80, 63, .9);
  --stamp-paper: #FFFCF7;
  --mali-fill: #FFFEFA;
  --mali-ink: #2A2E36;
  --mali-ear: #E8E0D8;
  --cta-bg: #1F1D1B;
  --cta-fg: #FFFCF9;
  --card-shadow: 0 12px 28px -12px rgba(26, 29, 34, .14);

  --serif: "New York", "Iowan Old Style", "Playfair Display", "Instrument Serif", "Baskerville", Georgia, serif;
  --sans: -apple-system, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  --page: 70rem;
  --measure: 45rem;
  --section-space: clamp(4.5rem, 8vw, 7.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #181412;
    --bg-bottom: #14110F;
    --surface: #24201D;
    --surface-2: #2C2723;
    --text: #F3EEEA;
    --text-2: #B8AFA8;
    --text-3: #9A918A;
    --accent: #C99A82;
    --accent-text: #D4A892;
    --label-ink: #D4A892;
    --accent-soft: #3A302C;
    --line: #4C433D;
    --line-soft: #3A342F;
    --foil-solid: #D5BA90;
    --foil-outer: rgba(213, 186, 144, .5);
    --foil-inner: rgba(213, 186, 144, .26);
    --postmark-ink: rgba(227, 203, 160, .8);
    --stamp-paper: #2C2622;
    --mali-fill: #EDE8E4;
    --mali-ink: #C8BEB6;
    --mali-ear: #3A342F;
    --card-shadow: 0 12px 28px -12px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--line) var(--bg-bottom);
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg-bottom);
  background-image: linear-gradient(var(--bg-top), var(--bg-bottom));
  font: 1rem/1.6 var(--sans);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 4px;
  border-radius: 3px;
}
::selection { background: var(--accent-soft); color: var(--text); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--surface);
  color: var(--text);
  padding: .7rem 1rem;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--text);
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -.015em;
  text-decoration: none;
}
.brand .mark { width: 1.5rem; height: 1.5rem; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: .8125rem;
  font-weight: 500;
  padding: .4rem .1rem;
  border-radius: 3px;
}
.nav a:hover { color: var(--text); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--text); font-weight: 650; }

/* Shared type and layout */
main > section { padding: 0 0 var(--section-space); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 1rem;
  max-width: 18ch;
  font-family: var(--serif);
  font-size: 1.28125rem;
  line-height: 1.2;
  letter-spacing: -.03em;
  font-weight: 700;
  text-wrap: balance;
}
h2 {
  margin-bottom: .75rem;
  font-size: 1.4375rem;
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 650;
  text-wrap: balance;
}
h3 {
  margin-bottom: .45rem;
  font-size: .9375rem;
  line-height: 1.35;
  letter-spacing: -.01em;
  font-weight: 650;
}
p { margin-bottom: .75rem; }
p, li { text-wrap: pretty; }
.lede { max-width: 37rem; color: var(--text-2); font-size: 1rem; line-height: 1.65; }
.measure { max-width: var(--measure); }
.eyebrow {
  margin-bottom: 1rem;
  color: var(--label-ink);
  font-size: .6875rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.section-heading { max-width: 35rem; margin-bottom: 2rem; }
.atlas-icon { flex: none; }

/* Hero: one cotton-paper sheet, two foil hairlines, one postage composition. */
.hero { padding-top: clamp(1.5rem, 4vw, 3rem); }
.hero-paper {
  position: relative;
  padding: 2.5rem 1.75rem 1.75rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}
.paper-frame {
  position: absolute;
  inset: 12px;
  border: 1.15px solid var(--foil-outer);
  border-radius: 12px;
  pointer-events: none;
}
.paper-frame::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: .85px solid var(--foil-inner);
  border-radius: 9px;
}
.hero-grid { position: relative; display: grid; gap: 2rem; }
.hero-copy { align-self: center; }
.hero-copy .lede { font-size: .96875rem; }
.hero-note { margin: 1.25rem 0 0; color: var(--text-3); font-size: .75rem; line-height: 1.6; }
.hero-product {
  position: relative;
  width: min(100%, 18rem);
  margin: 0 auto;
  padding-top: 5rem;
}
.postage-cluster {
  position: absolute;
  top: -1.5rem;
  right: -.25rem;
  width: 7.75rem;
  height: 6.125rem;
  color: var(--postmark-ink);
  pointer-events: none;
  user-select: none;
}
.postmark {
  position: absolute;
  left: -.875rem;
  top: .75rem;
  width: 7.25rem;
  height: 4rem;
  transform: rotate(-7.5deg);
  z-index: 2;
}
.stamp {
  position: absolute;
  top: 0;
  right: 0;
  width: 5.125rem;
  height: 6rem;
  transform: rotate(2.3deg);
  z-index: 1;
}
.device { width: min(13rem, 66vw); margin-inline: auto; padding: .5rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 2.25rem; }
.device img { width: 100%; border-radius: 1.8rem; background: var(--surface); }
.device-crop { aspect-ratio: 414 / 820; overflow: hidden; border-radius: 1.8rem; }
.device-crop img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; }
.device-caption { margin: .9rem 0 0; text-align: center; color: var(--text-3); font-size: .75rem; }
.paper-dateline {
  position: relative;
  margin: 2rem .25rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--label-ink);
  font-size: .625rem;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .14em;
  text-align: right;
}

/* Three principles: ruled tiers rather than nested cards. */
.facts { list-style: none; margin: 0; padding: 0; display: grid; border-block: 1px solid var(--line); }
.facts li { padding: 1.75rem 0; }
.facts li + li { border-top: 1px solid var(--line-soft); }
.facts h2 { margin: 0; font-size: 1rem; letter-spacing: -.01em; }
.facts p { margin: .75rem 0 0; color: var(--text-2); font-size: .875rem; line-height: 1.65; }
.facts code { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace; font-size: .9em; }
.fact-head { display: flex; align-items: center; gap: .75rem; }
.fact-head .atlas-icon { width: 1.5rem; height: 1.5rem; }

/* Everyday tools */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2rem; }
.feature-grid li { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.feature-grid .atlas-icon { width: 1.5rem; height: 1.5rem; margin-bottom: 1rem; }
.feature-grid p { margin: 0; color: var(--text-2); font-size: .875rem; line-height: 1.65; }

/* Product proof */
.split { display: grid; gap: 2.5rem; align-items: center; }
.section-copy { min-width: 0; }
.pull-quote {
  margin: 1.5rem 0 0;
  color: var(--text-2);
  font-family: var(--serif);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.6;
}
.device-wrap { min-width: 0; }

/* Existing arrival wording; intentionally not a link. */
.coming {
  margin-bottom: var(--section-space);
  padding: 3.5rem 1.25rem;
  border-block: 1px solid var(--line);
  text-align: center;
}
.coming h2 { margin-bottom: .75rem; }
.coming p { max-width: 34rem; margin-inline: auto; color: var(--text-2); font-size: .9375rem; }
.coming .soon {
  display: inline-block;
  margin-top: 1rem;
  padding: .75rem 1.125rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .01em;
}
.trust-section { padding-bottom: var(--section-space); }
.trust { display: flex; flex-direction: column; gap: 1rem; margin: 0; padding: 0 0 2rem; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: .8125rem; }
.trust span { display: inline-flex; align-items: center; gap: .5rem; }
.trust .atlas-icon { width: 1.125rem; height: 1.125rem; }

/* Legal and support pages retain their content and readable single column. */
.prose { max-width: var(--measure); margin-inline: auto; padding: 3rem 0 var(--section-space); }
.prose h1 { max-width: 22ch; }
.prose h2 { margin-top: 2.5rem; font-size: 1.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .45rem 0; }
.prose li strong { font-weight: 650; }
.prose code { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace; font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
.prose .lede { color: var(--text); }
.updated { color: var(--text-3); font-size: .8125rem; margin: 0 0 1.5rem; }
.back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.75rem; color: var(--text-2); font-size: .8125rem; font-weight: 600; text-decoration: none; }
.back:hover { color: var(--text); text-decoration: underline; }
.back svg { width: 1rem; height: 1rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; padding-block: 1.5rem; color: var(--text-3); font-size: .75rem; }
.foot .nav a { color: var(--text-2); }
.foot .nav a:hover { color: var(--text); }

@media (min-width: 40rem) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .75rem 1.75rem; }
}

@media (min-width: 46rem) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts li { padding: 2rem; }
  .facts li:first-child { padding-left: 0; }
  .facts li:last-child { padding-right: 0; }
  .facts li + li { border-top: 0; border-left: 1px solid var(--line-soft); }
}

@media (min-width: 48rem) {
  h1 { font-size: 1.4375rem; }
  .top { padding-block: 1.5rem; }
  .hero-paper { padding: 3rem 2.5rem 2rem; }
  .coming { padding-block: 4.5rem; }
}

@media (min-width: 58rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 5rem); }
}

@media (min-width: 60rem) {
  .hero-paper { padding: 3.5rem 3.5rem 2rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; }
  .hero-product { padding-top: 4.5rem; }
  .hero-product .device { width: 14rem; }
}

@media (min-width: 64rem) {
  h1 { font-size: 1.8125rem; }
  .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1.5rem; }
  .feature-grid.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
