@font-face { font-family: Newsreader; src: url("/fonts/Newsreader-Variable.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: Newsreader; src: url("/fonts/Newsreader-Italic-Variable.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: Geist; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #12100e;
  --bg-2: #1a1714;
  --line: rgba(239, 231, 218, 0.12);
  --fg: #efe7da;
  --muted: #a39a8c;
  --accent: #e3a857;
  --paper: #f3ede2;
  --ink: #2b2521;
  --seal: #8f3a24;
  --serif: Newsreader, "Iowan Old Style", Georgia, serif;
  --sans: Geist, -apple-system, "Segoe UI", system-ui, sans-serif;
  --wrap: min(1120px, 100% - 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Film grain over everything, very faint. */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 99; }

/* Header */
header.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(18, 16, 14, .72); border-bottom: 1px solid transparent; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.brand small { color: var(--muted); font-weight: 400; }
nav.links { display: flex; gap: 28px; font-size: 15px; }
nav.links a { text-decoration: none; color: var(--muted); transition: color .2s; }
nav.links a:hover { color: var(--fg); }

/* Hero */
.hero { position: relative; margin-top: -68px; padding: calc(68px + clamp(72px, 14vw, 160px)) 0 clamp(64px, 10vw, 120px); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -340px; top: 20px;
  background: radial-gradient(closest-side, rgba(227, 168, 87, .20), rgba(143, 58, 36, .10) 55%, transparent);
  filter: blur(10px); animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-120px, 80px) scale(1.1); } }
.eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(46px, 8.4vw, 112px); line-height: .98; margin-top: 28px; max-width: 13ch; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 40ch; margin: 32px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 16px; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.solid { background: var(--fg); color: var(--bg); }
.btn.ghost { box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: rgba(239, 231, 218, .06); }
.arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

section { padding: clamp(64px, 10vw, 120px) 0; border-top: 1px solid var(--line); }
.label { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.04; max-width: 18ch; }

/* Thrave feature: a sheet of the app's own paper inside the dark page. */
.product {
  margin-top: 48px; background: var(--paper); color: var(--ink); border-radius: 28px;
  display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; position: relative;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8);
}
.product .copy { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; }
.thrave-name { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: 34px; letter-spacing: -.02em; }
.thrave-name svg { width: 44px; height: 44px; }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin: 28px 0 16px; }
.product p { color: #5d544c; margin: 0 0 24px; max-width: 44ch; }
.features { list-style: none; padding: 0; margin: 0 0 32px; border-top: 1px solid rgba(43, 37, 33, .14); }
.features li { padding: 14px 0; border-bottom: 1px solid rgba(43, 37, 33, .14); display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 16px; }
.features svg { width: 18px; height: 18px; margin-top: 4px; stroke: var(--seal); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.features b { font-weight: 600; }
.product .actions { margin-top: auto; }
.product .btn.solid { background: var(--ink); color: var(--paper); }
.product .btn.ghost { box-shadow: inset 0 0 0 1px rgba(43, 37, 33, .25); }
.soon { font-size: 14px; color: #7a7066; margin-top: 16px; }
.phones { position: relative; min-height: 560px; background: linear-gradient(160deg, #e9e1d3, #ddd2c1); }
.phone {
  position: absolute; width: 250px; aspect-ratio: 1290 / 2796; border-radius: 38px; overflow: hidden;
  background: #000; padding: 7px; box-shadow: 0 30px 60px -20px rgba(43, 37, 33, .55), 0 0 0 1px rgba(0,0,0,.25);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; display: block; }
.phone.a { left: 12%; top: 56px; transform: rotate(-5deg); z-index: 2; }
.phone.b { left: 46%; top: 110px; transform: rotate(6deg); }

/* Principles */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.grid3 > div { padding: 32px 32px 8px 0; }
.grid3 > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 20px; }
h3 { font-size: 28px; margin: 12px 0 10px; }
.grid3 p { color: var(--muted); margin: 0; }

/* Studio */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split p { color: var(--muted); font-size: 18px; margin: 0 0 18px; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--muted); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; padding-right: 28px; }

/* Contact */
.contact { text-align: center; }
.contact h2 { margin-inline: auto; }
.mail { display: inline-block; margin-top: 36px; font-family: var(--serif); font-size: clamp(26px, 4.6vw, 54px); text-decoration: none; letter-spacing: -.02em; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .35s; padding-bottom: 4px; word-break: break-word; }
.mail:hover { background-size: 100% 2px; }
.contact address { font-style: normal; color: var(--muted); margin-top: 24px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
footer nav { display: flex; gap: 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

/* Legal pages */
.doc { padding: clamp(56px, 9vw, 100px) 0; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); max-width: none; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; max-width: none; }
.doc p, .doc li { color: #cfc6b8; }
.doc .meta { color: var(--muted); margin-top: 16px; }
.doc a { text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* Arrive gently */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } html { scroll-behavior: auto; } }

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .phones { min-height: 440px; order: -1; }
  .phone { width: 190px; border-radius: 30px; }
  .phone img { border-radius: 24px; }
  .phone.a { left: calc(50% - 175px); top: 40px; }
  .phone.b { left: calc(50% - 10px); top: 80px; }
  .grid3 { grid-template-columns: 1fr; }
  .grid3 > div, .grid3 > div + div { padding: 28px 0; border-left: 0; }
  .grid3 > div + div { border-top: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --wrap: calc(100% - 32px); }
  nav.links { gap: 18px; }
  nav.links .hide-sm, .brand small { display: none; }
  .eyebrow { font-size: 11px; letter-spacing: .12em; }
  .phones { min-height: 450px; }
  .phone { width: 160px; }
  .phone.a { left: calc(50% - 150px); }
  .phone.b { left: calc(50% - 6px); top: 70px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
}
