/* The landing page in the Protocol look (docs/themes/protocol/protocol.css): near-black or
 * near-white, hairlines instead of shadows, Montserrat for display, gold as the one signal.
 * The tokens are Protocol's; the scheme follows prefers-color-scheme, light by default. */

@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --line: #e0e0e4;
  --line-strong: #c9c9d0;
  --text: #1c1e21;
  --dim: #55555f;
  --accent: #8f5e1f;
  --accent-ink: #ffffff;
  --accent-text: #8f5e1f;
  --mark-top: #8f5e1f;
  --mark-bottom: #8f5e1f;
  --grid: rgba(28, 30, 33, 0.05);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-sm: 8px;
  --ctl: 48px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #08080a;
    --surface: #0d0d10;
    --line: #24242a;
    --line-strong: #33333d;
    --text: #fff9f9;
    --dim: #a4a4ad;
    --accent: #f6d471;
    --accent-ink: #08080a;
    --accent-text: #f6d471;
    --mark-top: #f6d471;
    --mark-bottom: #c98a3e;
    --grid: rgba(255, 249, 249, 0.035);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

h1, h2, dt, strong { font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: 22px; line-height: 1.25; margin: 0 0 18px; }
/* Section heads: Protocol's short gold rule, sentence case. */
h2::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--accent);
}

/* Hero: the mark on the measurement grid, then the one choice. */
.hero {
  position: relative;
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(100% 80% at 30% 20%, #000 0%, transparent 80%);
  mask-image: radial-gradient(100% 80% at 30% 20%, #000 0%, transparent 80%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.mark { display: block; width: 64px; height: auto; margin-bottom: 24px; }
.mark-top { stop-color: var(--mark-top); }
.mark-bottom { stop-color: var(--mark-bottom); }
@media (prefers-color-scheme: dark) {
  .mark { filter: drop-shadow(0 0 16px rgba(246, 212, 113, 0.3)); }
}
h1 { font-size: clamp(32px, 7vw, 52px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 14px; }
.lede { font-size: 18px; color: var(--dim); max-width: 34em; margin: 0 0 28px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ctl);
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 1px var(--accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { color: var(--text); border: 1px solid var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent); }
/* The download link stays hidden until a deploy gives it a URL. */
[data-download][href=''], [data-download]:not([href]) { display: none; }

main > .wrap { margin-top: 56px; }

.facts, .gallery { list-style: none; margin: 0; padding: 0; }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.facts li { padding: 16px 18px; background: var(--surface); color: var(--dim); }
.facts strong { display: block; color: var(--text); }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
figure { margin: 0; }
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
}
figcaption { font-size: 14px; color: var(--dim); margin-top: 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; margin: 0; }
dt { font-size: 17px; margin-bottom: 6px; }
dd { margin: 0; color: var(--dim); }

.privacy p { color: var(--dim); max-width: 44em; margin: 0 0 8px; }

.foot { margin-top: 56px; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--line); }
.foot p { margin: 0; font-size: 14px; color: var(--dim); }

@media (max-width: 400px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .gallery { gap: 12px; }
  .btn { flex: 1 1 100%; }
}
