:root {
  color-scheme: dark;
  --bg: #120f17;
  --panel: #1c1723;
  --panel-strong: #241c2c;
  --text: #f5f0e8;
  --muted: #bdb2bf;
  --line: #44364c;
  --accent: #c49a4a;
  --accent-text: #171108;
  --secondary: #8d3046;
  --focus: #f1c96d;
}

:root[data-brand="myorigin"] {
  color-scheme: light;
  --bg: #f1f5f1;
  --panel: #ffffff;
  --panel-strong: #e7efeb;
  --text: #1d2b2c;
  --muted: #5a6967;
  --line: #b9cbc5;
  --accent: #2e6e70;
  --accent-text: #ffffff;
  --secondary: #966846;
  --focus: #1c5759;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 12px clamp(18px, 4vw, 50px);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: .05em;
}

.header-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-underline-offset: 3px;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: clamp(58px, 11vw, 118px) 0 clamp(48px, 8vw, 84px);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 9vw, 92px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: .98;
}

.tagline {
  margin-bottom: 24px;
  color: var(--secondary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 32px);
  font-style: italic;
}

.intro {
  max-width: 700px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  font-weight: 720;
  text-decoration: none;
}

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

.button.disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.privacy-line {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.view-panel { padding: 38px 0 54px; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 28px;
  margin-bottom: 18px;
}

h2 { margin-bottom: 0; font-size: clamp(22px, 3vw, 30px); }

.section-heading > p {
  align-self: end;
  margin-bottom: 2px;
  color: var(--muted);
}

.view-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.view-card {
  display: grid;
  grid-template-columns: 12px 1fr;
  min-height: 126px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
}

.view-card:hover { border-color: var(--accent); }
.view-card[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--accent); }

.view-swatch { background: var(--secondary); }
.villain-card .view-swatch { background: #8d3046; }
.origin-card .view-swatch { background: #2e6e70; }

.view-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

.view-copy strong {
  margin-bottom: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.view-copy span { color: var(--muted); }
.view-copy small { margin-top: 12px; color: var(--accent); font-weight: 760; }

footer {
  padding: 18px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

footer p { margin-bottom: 0; }

@media (max-width: 720px) {
  .section-heading, .view-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 52px; }
}

@media (max-width: 480px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .header-link { margin-left: 46px; }
  .button { width: 100%; }
}
