:root {
  color-scheme: dark;
  --ink: #f3f1e8;
  --muted: #b9baa9;
  --olive: #5e6547;
  --olive-light: #a9c98d;
  --olive-dark: #191d16;
  --panel: #22271d;
  --line: rgba(243, 241, 232, 0.16);
  --paper: #f5f2e7;
  --paper-ink: #1c2119;
  --paper-muted: #5f665a;
  --paper-line: #d8d5c9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #111510;
  color: var(--ink);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.eyebrow,
.status-pill {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--olive-light);
  padding: 8px 12px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  align-items: stretch;
  gap: clamp(40px, 5vw, 72px);
  padding: 72px 0 96px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  color: var(--olive-light);
  margin: 0 0 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 6vw, 5.25rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.hero-copy h1 {
  white-space: nowrap;
}

.hero-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 55ch;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.store-badge {
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.035);
}

.store-badge small,
.store-badge strong {
  display: block;
}

.store-badge small {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-badge strong {
  font-size: 1.05rem;
}

.hero-art {
  position: relative;
  justify-self: end;
  overflow: hidden;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0 54px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a:hover {
  color: var(--ink);
}

.invite-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.invite-card {
  width: min(480px, 100%);
  padding: clamp(32px, 8vw, 52px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  text-align: center;
}

.invite-logo {
  width: 92px;
  height: 92px;
  margin: 0 auto 26px;
  object-fit: contain;
}

.invite-card .eyebrow {
  margin-bottom: 12px;
}

.invite-card h1 {
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 11vw, 3.5rem);
  line-height: 0.98;
}

.invite-status {
  min-height: 3.2em;
  margin-bottom: 24px;
  color: var(--muted);
}

.invite-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 11px;
  background: var(--olive-light);
  color: #111510;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.invite-action[hidden] {
  display: none;
}

.invite-action:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.legal-page {
  min-height: 100vh;
  background: var(--paper);
  color: var(--paper-ink);
}

.legal-shell {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 96px;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 72px;
  font-weight: 800;
}

.legal-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--olive-dark);
}

.legal-mark img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.legal-page h1 {
  margin-bottom: 12px;
  font-size: clamp(2.7rem, 8vw, 4.6rem);
  line-height: 1;
}

.legal-page h2 {
  margin: 48px 0 12px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.legal-page h3 {
  margin: 28px 0 8px;
  font-size: 1.05rem;
}

.legal-page p,
.legal-page li {
  color: var(--paper-muted);
}

.legal-page li + li {
  margin-top: 8px;
}

.legal-page a {
  color: #3f572d;
  font-weight: 700;
}

.legal-page a:hover {
  color: #25341b;
}

.updated {
  color: var(--paper-muted);
  margin-bottom: 44px;
}

.notice {
  margin: 32px 0;
  padding: 20px 22px;
  border: 1px solid #c9c6b9;
  border-left: 5px solid var(--olive);
  border-radius: 10px;
  background: #ece9dc;
}

.notice p:last-child {
  margin-bottom: 0;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 8px 0 12px;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--olive-dark);
  color: white !important;
  text-decoration: none;
}

.request-template {
  overflow-x: auto;
  padding: 18px;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  background: white;
  color: #3e443b;
  font: 0.92rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .hero-art {
    order: -1;
    justify-self: stretch;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 540px) {
  .site-shell,
  .legal-shell {
    width: min(100% - 28px, 1160px);
  }

  .brand span {
    display: none;
  }

  .hero {
    padding-bottom: 72px;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 11vw, 3.25rem);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-shell {
    padding-top: 34px;
  }

  .legal-brand {
    margin-bottom: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
