:root {
  --green: #173e34;
  --green-deep: #12332c;
  --green-soft: #245347;
  --red: #a8453e;
  --red-hover: #be544a;
  --cream: #f9f5ed;
  --cream-2: #f0e9dc;
  --paper: #fffdfa;
  --ink: #1f322a;
  --muted: #4a5850;
  --gold: #e5cd98;
  --line: #d9d4c8;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --shell: min(720px, calc(100% - 2.5rem));
  --shell-wide: min(1100px, calc(100% - 64px));
}

* { box-sizing: border-box; }

html, body { overflow-x: clip; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); }
a:hover { color: var(--red-hover); }

button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .62; }

button:focus-visible,
a:focus-visible {
  outline: 3px solid #c4924a;
  outline-offset: 3px;
}

h1, h2, h3, p { margin-top: 0; }

h2, h3 {
  line-height: 1.15;
  overflow-wrap: break-word;
  min-width: 0;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.04em;
  font-size: clamp(32px, 3.8vw, 44px);
  margin: 0 0 12px;
  color: var(--ink);
}

h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.02em;
  font-size: 1.35rem;
  margin-bottom: .45rem;
  color: var(--ink);
}

p { color: var(--muted); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  background: #ece7db;
  padding: .1em .35em;
  border-radius: 4px;
  color: var(--ink);
}

.shell {
  width: var(--shell-wide);
  margin-inline: auto;
}

.shell.narrow {
  width: var(--shell);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  color: #fff;
  background: #152f29;
  padding: 12px;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

.top-ribbon {
  height: 7px;
  background: repeating-linear-gradient(
    90deg,
    #a9423d 0 52px,
    #f4e4d2 52px 69px,
    #285a4d 69px 121px,
    #f4e4d2 121px 138px
  );
}

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  background: var(--green-deep);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #ffffff1c;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -.04em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--cream);
}

.brand:hover { color: #fff; }

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  background: #ffffff12;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e8d2a4;
  box-shadow: 0 0 0 4px #e8d2a433;
  flex-shrink: 0;
}

.brand-period { color: #e7bc80; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: #e4efe8;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover { color: #fff; }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: var(--paper);
  min-height: 420px;
  background-image:
    radial-gradient(circle at 18% 19%, #ffffff0a 0 2px, transparent 3px),
    radial-gradient(circle at 70% 30%, #fff9e511 0 2px, transparent 3px);
  background-size: 140px 140px, 195px 195px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding: 64px 0 88px;
}

.brand-lockup {
  font-family: var(--serif);
  font-size: clamp(36px, 4.4vw, 56px);
  color: #fff9ee;
  letter-spacing: -.045em;
  margin: 0 0 14px;
  line-height: 1.05;
  font-weight: 500;
  overflow-wrap: break-word;
  min-width: 0;
}

.hero-tagline {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.35;
  margin: 0 0 16px;
  color: #f0e4c8;
  font-weight: 600;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.75;
  max-width: 440px;
  color: #e2ebe3;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  transition: transform .16s ease, background-color .16s ease, color .16s ease;
}

.btn:hover:not(:disabled) { transform: translateY(-1px); }

.btn-cranberry {
  background: var(--red);
  color: #fff;
}

.btn-cranberry:hover:not(:disabled) {
  background: var(--red-hover);
  color: #fff;
}

.btn-outline-light {
  color: #fbf5e8;
  border: 1px solid #edf3e78c;
  background: transparent;
}

.btn-outline-light:hover {
  background: #ffffff10;
  color: #fbf5e8;
}

.btn-forest {
  background: var(--green);
  color: #fff;
}

.btn-forest:hover:not(:disabled) {
  background: var(--green-soft);
  color: #fff;
}

.hero-bottom {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 54px;
}

.hero-bottom svg {
  width: 100%;
  height: 100%;
  display: block;
}

.section { padding: 84px 0; }

.section-alt {
  background: var(--cream-2);
  border-block: 1px solid var(--line);
}

.section-lead {
  margin: 0 0 1.5rem;
  max-width: 38rem;
  font-size: 15px;
  line-height: 1.8;
}

.section-intro {
  margin-bottom: 28px;
  max-width: 560px;
}

.section-intro .section-lead { margin-bottom: 0; }

.download-panel {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding: 1.4rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px #273c3014;
}

.turnstile-container { min-height: 65px; }

.status-line {
  margin: 0;
  font-size: .95rem;
  color: var(--ink);
  font-weight: 600;
}

.status-line.is-error { color: var(--red); }

.hint {
  margin: 0;
  font-size: .88rem;
  color: #7a7264;
}

.address-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.address {
  display: inline-block;
  min-width: min(100%, 18rem);
  padding: .9rem 1rem;
  background: var(--paper);
  border: 1px dashed #c9d3c7;
  border-radius: 8px;
  font-size: 1.05rem;
  color: var(--ink);
  overflow-wrap: anywhere;
  background-color: #f1f4ed;
}

.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.25rem;
  counter-reset: guide;
}

.guide-step {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 1.5rem 2rem;
  align-items: start;
  counter-increment: guide;
}

.guide-copy h3::before {
  content: counter(guide) ". ";
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.guide-copy p { margin-bottom: 0; font-size: 15px; line-height: 1.8; }

.guide-copy a {
  color: var(--red);
  font-weight: 700;
}

.shot {
  margin: 0;
  min-width: 0;
}

.shot-frame {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  border: 1px dashed #cfc6b4;
  background:
    linear-gradient(145deg, #efe8da 0%, var(--paper) 55%, #e4eee6 100%);
  position: relative;
  overflow: clip;
}

.shot-frame::after {
  content: 'Screenshot';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: .95rem;
  font-style: italic;
  color: #8a7d68;
}

.shot figcaption {
  margin-top: .55rem;
  font-size: .82rem;
  color: var(--muted);
}

.rules-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.rules-list li {
  padding: 1.1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-size: .98rem;
  box-shadow: 0 8px 22px #273c3008;
}

.rule-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -.02em;
  margin-bottom: .3rem;
  color: var(--ink);
}

.rules-list li {
  line-height: 1.7;
}

.rules-list strong {
  color: var(--ink);
  font-weight: 700;
}

.footer {
  background: #102d27;
  color: #e9eddd;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 20px;
  color: #f4ead4;
}

.footer-inner p {
  margin: 0;
  color: #9db4a5;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
}

.footer-inner a {
  font-size: 13px;
  text-decoration: none;
  color: #e1dfc8;
  font-weight: 600;
}

.footer-inner a:hover { color: #fff; }

@media (max-width: 760px) {
  .shell { width: min(100% - 36px, 600px); }
  .shell.narrow { width: min(100% - 36px, 600px); }
  .nav-links { display: none; }
  .site-header { height: 68px; }
  .brand { font-size: 18px; }
  .hero { min-height: 0; }
  .hero-inner { padding: 48px 0 72px; }
  .guide-step { grid-template-columns: minmax(0, 1fr); }
  .download-panel,
  .download-panel .btn,
  .address-row .btn { width: 100%; }
  .section { padding: 64px 0; }
  .footer-inner p { order: 3; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
