:root {
  color-scheme: dark;
  --bg: #0f1110;
  --bg-soft: #141816;
  --panel: rgba(246, 239, 221, 0.05);
  --panel-strong: rgba(246, 239, 221, 0.08);
  --border: rgba(246, 239, 221, 0.12);
  --border-strong: rgba(246, 239, 221, 0.2);
  --text: #f4efe3;
  --muted: #c3bcab;
  --subtle: #9f9888;
  --accent: #dbc8a1;
  --accent-soft: rgba(219, 200, 161, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
  --radius-large: 28px;
  --radius-medium: 20px;
  --radius-small: 12px;
  --content-width: 72rem;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Baskerville, Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(219, 200, 161, 0.08), transparent 28rem),
    linear-gradient(180deg, #101211 0%, #0f1110 42%, #0c0e0d 100%);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: rgba(219, 200, 161, 0.55);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: rgba(219, 200, 161, 0.95);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

.site-shell {
  width: min(100% - 2rem, var(--content-width));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
}

.brand-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name,
.site-nav,
.eyebrow,
.card-label,
.button-link,
.brand-note {
  font-family: var(--sans);
}

.brand-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-note {
  color: var(--subtle);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--panel);
  color: var(--text);
}

.hero,
.page-hero {
  margin-bottom: 2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.9fr);
  gap: 1.25rem;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.section-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--panel);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(2rem, 5vw, 4rem);
}

.hero-card,
.section-card {
  padding: 1.5rem;
}

.eyebrow,
.card-label {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  margin-top: 1.8rem;
  font-size: 1.1rem;
}

p,
ul {
  margin: 0;
}

p + p,
ul + p,
p + ul,
ul + ul,
h2 + p,
h3 + p,
h3 + ul {
  margin-top: 1rem;
}

.lead {
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.8;
  max-width: 38rem;
}

.muted {
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.button-primary {
  background: var(--text);
  color: var(--bg);
}

.button-secondary {
  background: transparent;
  color: var(--text);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-hero {
  padding: 1rem 0 0.5rem;
}

.page-hero h1 {
  max-width: none;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.section-card {
  min-height: 100%;
}

.section-card-wide {
  grid-column: 1 / -1;
}

.policy-card {
  max-width: 56rem;
}

.policy-content {
  margin-top: 1.5rem;
}

.policy-content h2 {
  margin-top: 2.5rem;
}

.policy-content h3 {
  margin-top: 1.8rem;
  color: var(--text);
}

.policy-content p,
.policy-content ul {
  max-width: 44rem;
}

.section-card ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.section-card li + li {
  margin-top: 0.55rem;
}

.placeholder-card {
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(219, 200, 161, 0.08), rgba(219, 200, 161, 0.03)),
    var(--panel);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.store-badge {
  display: inline-block;
  margin-top: 1.25rem;
  text-decoration: none;
}

.store-badge img {
  width: min(245px, 100%);
  height: auto;
  object-fit: contain;
}

.store-link-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.store-short-link {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
}

.copy-link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-link-button[data-copied="true"] {
  background: rgba(120, 180, 140, 0.18);
  border-color: rgba(120, 180, 140, 0.35);
}

.copy-link-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 0.5rem;
  color: var(--subtle);
  font-family: var(--sans);
  font-size: 0.95rem;
}

code {
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: var(--panel-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

@media (max-width: 60rem) {
  .hero,
  .card-grid,
  .two-up,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 44rem) {
  .site-shell {
    width: min(100% - 1.25rem, var(--content-width));
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 1.5rem;
  }

  .hero-copy,
  .hero-card,
  .section-card {
    padding: 1.25rem;
    border-radius: 1.35rem;
  }

  h1 {
    max-width: none;
  }

  .button-row,
  .inline-links,
  .site-nav {
    width: 100%;
  }
}
