@import url("tokens.css");

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-page-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.55;
}

a { color: var(--color-link); }
a:hover { text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-hero-frame);
  line-height: 1.2;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); text-align: center; margin-bottom: 0; }
h2 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 400; font-style: italic; text-align: center; margin-top: var(--space-xs); color: var(--color-text-muted); }
h3 { font-size: 1.3rem; margin-top: 0; }

main {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-sm);
}

/* --- Header / nav --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  background: var(--color-teal);
  padding: var(--space-xs) var(--space-md);
}
.site-brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: #fff;
}
.site-brand-icon { width: 40px; height: 40px; border-radius: 8px; }
.site-brand-name { font-family: var(--font-display); font-size: 1.3rem; }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.site-nav a:hover { text-decoration: underline; }

/* --- Wall label: small-caps, letter-spaced, brass eyebrow text
       (mirrors View.museumWallLabel(_:) in MuseumTheme.swift) --- */
.wall-label {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-brass);
  text-align: center;
  margin-bottom: var(--space-xs);
}

/* --- Hero --- */
.hero { text-align: center; }
.hero-image {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  margin-bottom: var(--space-sm);
  border: 3px solid var(--color-hero-frame);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}
.app-store-badge { height: 48px; width: auto; }
.qr-code {
  width: 96px;
  height: 96px;
  padding: 6px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--color-card-border);
}
.qr-caption {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  max-width: 96px;
  text-align: center;
  margin: var(--space-xs) 0 0;
}
.qr-block { display: flex; flex-direction: column; align-items: center; }

/* --- Badge / callout strip (no ads, no lives, no subscriptions) --- */
.badge-section { display: flex; justify-content: center; }
.badge {
  background: var(--color-plaque-fill);
  color: var(--color-plaque-text);
  border: 2px solid var(--color-plaque-stroke);
  border-radius: var(--radius);
  padding: var(--space-md);
  max-width: 680px;
  text-align: center;
}
.badge-headline { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 var(--space-xs); }

/* --- Framed artwork: mirrors View.framedArtwork(frame:matteWidth:frameWidth:) -
       cream matte, double-bevel line, wood frame, corner radius, drop shadow --- */
.framed-artwork {
  display: inline-block;
  padding: 6px;
  background: var(--color-matte);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.framed-artwork-outer {
  display: inline-block;
  padding: 8px;
  background: var(--color-frame-wood);
  border-radius: 3px;
  box-shadow: 1px 2px 10px rgba(0, 0, 0, 0.35);
}
.framed-artwork img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- Screenshot gallery --- */
.screenshot-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
}
.screenshot-gallery li { text-align: center; max-width: 260px; }

/* --- Press screenshot grid: plain and grabbable (no wood frame) - a reviewer wants a clean
       asset to save, not a decorative treatment. --- */
.press-screenshot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: 0;
  justify-content: center;
  list-style: none;
  margin: var(--space-md) 0 0;
}
.press-screenshot-grid img {
  height: 360px;
  width: auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.screenshot-gallery img { max-height: 420px; width: auto; }
.screenshot-caption {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: var(--space-xs);
}

/* --- Feature sections --- */
.feature-section { margin-bottom: var(--space-lg); }
.feature-section ul { padding-left: 1.25rem; }
.feature-section li { margin-bottom: var(--space-xs); }
.closing-section { text-align: left; }
.closing-section ul { list-style: none; padding-left: 0; }
.closing-section li::before { content: "\2713  "; color: var(--color-brass); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
}
.card-grid li {
  background: var(--color-card-surface);
  border: 1px solid var(--color-brass);
  border-radius: var(--radius);
  padding: var(--space-sm);
  margin-bottom: 0;
}

/* --- Difficulty tiers: colored to match MuseumTheme.methodColor(_:) exactly,
       so the site's own claim ("rated by actual reasoning") is visibly true to
       players who already know the app's color language. --- */
.difficulty-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.difficulty-list li {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  background: var(--color-card-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  padding: var(--space-sm);
}
.difficulty-pill {
  flex-shrink: 0;
  display: inline-block;
  min-width: 6.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: #fff;
}
.difficulty-pill.intuitive { background: var(--color-method-intuitive); }
.difficulty-pill.logical { background: var(--color-method-logical); color: #2A2010; }
.difficulty-pill.analytical { background: var(--color-method-analytical); }

/* --- Gift-shop price tag: mirrors View.giftShopTag() --- */
.gift-shop-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--color-brass);
  border-radius: 6px;
  font-weight: 600;
  color: var(--color-brass);
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: var(--space-md);
  background: var(--color-card-surface);
  margin-top: var(--space-lg);
}
.site-footer-social { display: flex; justify-content: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.site-footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-xs); }
.site-footer-copyright { color: var(--color-text-muted); font-size: 0.9rem; margin: 0; }

/* --- Legal pages --- */
.legal { text-align: left; }
.legal h1 { text-align: center; }

/* --- Responsive: never let wide content force horizontal page scroll --- */
img { max-width: 100%; height: auto; }
