@font-face { font-family: "Quattrocento Sans"; src: url("fonts/QuattrocentoSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Quattrocento Sans"; src: url("fonts/QuattrocentoSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f7faf8;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --text: #16201e;
  --muted: #4c5a57;
  --line: #d7e2df;
  --primary: #1f6f68;
  --primary-ink: #ffffff;
  --primary-soft: #d6f1ec;
  --deep: #0e4d47;
  --green: #008751;
  --gold: #c9a227;
  --gold-soft: #fff1c9;
  --shadow: 0 18px 50px rgba(14, 77, 71, 0.18);
  --radius: 22px;
  --maxw: 1180px;
  --pad: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1413; --surface: #161d1c; --surface-2: #1d2624; --text: #e3ebe9; --muted: #a2b2ae;
    --line: #2a3533; --primary: #86d6cb; --primary-ink: #003733; --primary-soft: #183c38; --deep: #0b2e2b;
    --gold-soft: #3a3013; --shadow: 0 18px 50px rgba(0, 0, 0, 0.45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1413; --surface: #161d1c; --surface-2: #1d2624; --text: #e3ebe9; --muted: #a2b2ae;
  --line: #2a3533; --primary: #86d6cb; --primary-ink: #003733; --primary-soft: #183c38; --deep: #0b2e2b;
  --gold-soft: #3a3013; --shadow: 0 18px 50px rgba(0, 0, 0, 0.45); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 18px/1.6 "Quattrocento Sans", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: .9rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.25rem; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--primary-ink); }
@media (max-width: 760px) { .nav a.hide-sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 8px 24px rgba(31, 111, 104, .3); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* hero */
.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 clamp(50px, 7vw, 90px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 40%; height: 120%; background: radial-gradient(closest-side, var(--primary-soft), transparent 70%); z-index: -1; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; padding: 0; margin: 0; list-style: none; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-size: 1.9rem; line-height: 1; color: var(--primary); }
.stats span { font-size: .9rem; color: var(--muted); }
.phones { position: relative; min-height: 560px; }
.phone { position: absolute; width: min(270px, 46%); border-radius: 34px; padding: 9px; background: #121716; box-shadow: var(--shadow); }
.phone img { border-radius: 26px; width: 100%; height: auto; aspect-ratio: 600 / 1172; object-fit: cover; }
.phone.a { left: 6%; top: 0; transform: rotate(-4deg); z-index: 2; }
.phone.b { right: 4%; top: 70px; transform: rotate(5deg); }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { min-height: 0; display: flex; justify-content: center; gap: 14px; }
  .phone { position: static; transform: none !important; width: 46%; max-width: 240px; }
  .phone.b { margin-top: 40px; }
}

/* photo band */
.band { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 0 8px; }
.band figure { margin: 0; position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 14px; background: var(--surface-2); }
.band img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.band figure:hover img { transform: scale(1.04); }
.band figcaption { position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; color: #fff; font-weight: 700; font-size: .95rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
@media (max-width: 880px) { .band { grid-template-columns: repeat(3, 1fr); } }

/* sections */
section { padding: clamp(56px, 8vw, 100px) 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; }
.icon svg { width: 26px; height: 26px; }
.card.gold .icon { background: var(--gold-soft); color: var(--gold); }

/* screenshots */
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--pad) 24px; margin: 0 calc(var(--pad) * -1); scrollbar-width: thin; }
.shots figure { flex: 0 0 auto; width: min(240px, 62vw); margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 24px; border: 8px solid #121716; box-shadow: var(--shadow); width: 100%; height: auto; aspect-ratio: 600 / 1172; object-fit: cover; }
.shots figcaption { margin-top: 12px; font-weight: 700; font-size: .95rem; }

/* collection */
.alt { background: var(--surface); border-block: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chip span { opacity: .7; font-weight: 400; margin-left: 4px; }
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.site { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.site img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.site div { padding: 12px 14px 14px; }
.site h3 { font-size: 1rem; margin: 0 0 2px; }
.site p { margin: 0; font-size: .88rem; color: var(--muted); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 6px; padding: 2px 7px; margin-top: 6px; background: var(--gold-soft); color: #7a5900; }
:root[data-theme="dark"] .badge { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge { color: var(--gold); } }
.badge.tentative { background: var(--primary-soft); color: var(--primary); }
.more { margin-top: 20px; }

/* sources */
.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.source { padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.source h3 { font-size: 1.05rem; margin-bottom: 4px; }
.source p { margin: 0; font-size: .92rem; color: var(--muted); }
.source .lic { display: inline-block; margin-top: 10px; font-size: .78rem; font-weight: 700; color: var(--primary); }

/* maker */
.maker { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: linear-gradient(135deg, var(--primary), var(--deep)); color: #fff; border-radius: 28px; padding: clamp(26px, 4vw, 44px); }
.maker h2 { color: #fff; margin-bottom: .2em; }
.maker p { margin: 0; color: rgba(255,255,255,.86); }
.maker a { color: #fff; }
.maker img { width: 88px; height: 88px; }
.maker .btn { background: #fff; color: var(--deep); }
@media (max-width: 760px) { .maker { grid-template-columns: 1fr; text-align: left; } }

/* footer */
footer { padding: 40px 0 56px; color: var(--muted); font-size: .92rem; }
footer .row { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-bottom: 18px; }
footer .row a { color: var(--text); font-weight: 700; text-decoration: none; }
footer .credits { font-size: .8rem; line-height: 1.5; }
footer .credits a { color: var(--muted); }

/* prose (privacy) */
.prose { max-width: 720px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--pad); }
.prose h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--text); }
.prose .updated { color: var(--muted); }
.prose ul { padding-left: 1.2em; }
.center { text-align: center; }
.flush-top { padding-top: 0; }
.logo-404 { margin: 0 auto 24px; }
