/* MTGAccess: colors taken from the app icon and the app's theme */
:root {
  --bg: #0D1017;          /* near-black, the card face in the icon, a shade darker */
  --panel: #161A25;       /* card face */
  --panel-edge: #2A3550;  /* art box navy, lightened for the border */
  --navy: #1F2B4A;        /* art box behind the sound wave */
  --gold: #F0BE4E;        /* front card border and sound wave */
  --silver: #B5BBC9;      /* back card border */
  --blue: #73B8FF;        /* the app's accent in dark mode */
  --text: #F1EEE6;        /* off-white body text */
  --muted: #C3C8D4;       /* secondary text */
  --focus: #FFE08A;

  /* The five glows around the icon */
  --mana-white: #E9E4CF;
  --mana-blue: #4687D2;
  --mana-black: #8570A2;
  --mana-red: #D25C45;
  --mana-green: #4FAA6E;

  --radius: 18px;
  --measure: 36rem;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  color-scheme: dark;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 34rem 26rem at 10% -4rem, rgba(79, 170, 110, 0.30), transparent 70%),
    radial-gradient(ellipse 30rem 22rem at 50% -8rem, rgba(233, 228, 207, 0.18), transparent 70%),
    radial-gradient(ellipse 34rem 26rem at 92% 0rem, rgba(70, 135, 210, 0.34), transparent 70%),
    radial-gradient(ellipse 36rem 28rem at 0% 75%, rgba(210, 92, 69, 0.20), transparent 70%),
    radial-gradient(ellipse 36rem 28rem at 100% 85%, rgba(133, 112, 162, 0.24), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  padding: 0 1rem;
}

/* Skip link: hidden until focused */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

a { color: var(--gold); text-underline-offset: 0.18em; }
a:hover { color: var(--focus); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
}

/* Hero */
.hero {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4.5rem 0 2.5rem;
  text-align: center;
}
.hero-icon {
  width: 9rem;
  height: 9rem;
  border-radius: 22%;
  box-shadow:
    0 0 0 1px rgba(240, 190, 78, 0.25),
    0 1.5rem 4rem rgba(70, 135, 210, 0.30);
}
.hero h1 {
  margin: 1.75rem 0 0.5rem;
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  letter-spacing: 0.01em;
  color: var(--gold);
}
.tagline {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  color: var(--text);
}

/* Five colored pips, a divider like a mana cost */
.pips {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.pip {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(13, 16, 23, 0.9), 0 0 0 3px rgba(181, 187, 201, 0.35);
}
.pip-w { background: var(--mana-white); }
.pip-u { background: var(--mana-blue); }
.pip-b { background: var(--mana-black); }
.pip-r { background: var(--mana-red); }
.pip-g { background: var(--mana-green); }

/* Panels */
main {
  max-width: var(--measure);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.panel {
  background: linear-gradient(180deg, rgba(31, 43, 74, 0.55), rgba(22, 26, 37, 0.92));
  border: 2px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}
.panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.85rem;
  color: var(--gold);
}
.panel p { margin: 0 0 1rem; }

.features {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.features li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
}
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px rgba(240, 190, 78, 0.45);
}

/* Buttons */
.button,
.store-button {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  background: var(--gold);
  color: var(--bg);
  border: 2px solid var(--gold);
}
.button:hover,
.store-button:hover {
  background: var(--focus);
  border-color: var(--focus);
  color: var(--bg);
}

/* Coming-soon tease */
.panel-tease {
  border-color: var(--silver);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(70, 135, 210, 0.28), transparent 65%),
    linear-gradient(180deg, rgba(31, 43, 74, 0.55), rgba(22, 26, 37, 0.92));
}
.panel-tease p { max-width: 30rem; margin-left: auto; margin-right: auto; }
.eyebrow {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue);
}

.tease-cards {
  position: relative;
  width: 6rem;
  height: 8.4rem;
  margin: 0.5rem auto 1.5rem;
}
.tease-card {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: var(--panel);
}
.tease-card-back {
  border: 4px solid var(--silver);
  transform: translateX(14px) rotate(12deg);
}
.tease-card-front {
  border: 4px solid var(--gold);
  transform: translateX(-8px) rotate(-8deg);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--gold);
  background: linear-gradient(180deg, var(--navy), var(--panel));
  box-shadow: 0 0 2.5rem rgba(240, 190, 78, 0.25);
}

/* Inner pages: support, privacy, terms */
.site-header {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 0 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
}
.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 22%;
}
.brand:hover { color: var(--focus); }

main.page { max-width: 44rem; }

.prose h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 6vw, 2.75rem);
  color: var(--gold);
}
.prose h2 {
  margin: 2.25rem 0 0.6rem;
  font-size: 1.45rem;
}
.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--gold); }
.prose .store-button { margin: 0.5rem 0 0.5rem; }
.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

/* Footer */
.site-footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 0 3.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-footer ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}
.site-footer p { margin: 0 0 0.75rem; }
.disclaimer { max-width: 32rem; margin-left: auto; margin-right: auto; }

@media (max-width: 30rem) {
  .hero { padding-top: 3rem; }
  .panel { padding: 1.5rem 1.25rem; }
}

/* Windows high contrast and similar modes */
@media (forced-colors: active) {
  .panel, .tease-card { border-color: CanvasText; }
  .button, .store-button { border-color: ButtonText; }
  .pip { forced-color-adjust: none; }
}
