/* Chip Room Signal — base tokens and shared elements */

:root {
  --ivory: #f7f2e4;
  --ivory-deep: #efe6cf;
  --purple: #3b2a55;
  --purple-deep: #2b1e40;
  --ink: #251c36;
  --gold: #c9a227;
  --gold-ink: #83660d;
  --line: #d9cdb0;
  --line-purple: #55427a;
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  --measure: 68ch;
  --container: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 var(--s2);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p, ul, ol, dl { margin: 0 0 var(--s2); max-width: var(--measure); }

a { color: var(--gold-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--purple); }
a:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

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

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--s3); }

/* small-caps section labels — used on every section, site-wide */
.label {
  display: block;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.14em;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-ink);
  margin-bottom: var(--s1);
}

/* short centred accent rule between sections */
.rule {
  border: 0;
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: var(--s6) auto;
}

/* square-cut sharp badges */
.badge {
  display: inline-block;
  border: 1px solid var(--purple);
  padding: 2px 9px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--purple);
  background: transparent;
}

/* underline-style text-link CTA */
.cta {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--purple);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.cta:hover { color: var(--gold-ink); text-decoration-color: var(--purple); }

/* age notice bar — sticky, non-blocking, no JS required */
.age-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--purple-deep);
  color: var(--ivory);
  font-size: 0.85rem;
  text-align: center;
  padding: 6px var(--s2);
  border-bottom: 1px solid var(--line-purple);
}
.age-bar strong { color: var(--gold); }
.age-bar a { color: var(--gold); }

/* header band (two-tone split: purple band over ivory body) */
.site-head { background: var(--purple); border-bottom: 1px solid var(--line-purple); }
.site-head .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); padding-block: var(--s2); flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--font-display); font-size: 1.3rem; color: var(--ivory); }
.site-nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; }
.site-nav a { color: var(--ivory); text-decoration: none; font-size: 0.95rem; border-bottom: 2px solid transparent; padding-bottom: 2px; transition: border-color 0.2s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--ivory); }

/* footer */
.site-foot { background: var(--purple-deep); color: var(--ivory); margin-top: var(--s7); font-size: 0.95rem; }
.site-foot .container { padding-block: var(--s5); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s4); }
.site-foot h3 { color: var(--gold); font-size: 1.05rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot a { color: var(--ivory); text-decoration-color: var(--gold); }
.site-foot a:hover { color: var(--gold); }
.foot-legal { border-top: 1px solid var(--line-purple); margin-top: var(--s4); padding-top: var(--s3); color: #cfc4e0; max-width: none; }
.foot-legal p { max-width: none; font-size: 0.875rem; }

/* cookie banner */
.cookie-note {
  position: fixed; inset-inline: var(--s2); bottom: var(--s2); z-index: 70;
  max-width: 460px; margin-inline: auto;
  background: var(--ivory); border: 1px solid var(--purple);
  padding: var(--s2) var(--s3); font-size: 0.9rem;
}
.cookie-note p { margin: 0 0 var(--s1); max-width: none; }
.cookie-note button {
  font: inherit; font-weight: 700; cursor: pointer;
  background: none; border: 1px solid var(--purple); color: var(--purple);
  padding: 6px 16px; margin-right: var(--s1);
  transition: background 0.2s ease, color 0.2s ease;
}
.cookie-note button:hover { background: var(--purple); color: var(--ivory); }
.cookie-note[hidden] { display: none; }

/* generic page hero band for inner pages */
.page-band {
  background: var(--purple) url("/assets/img/hero-texture.jpg") center / cover no-repeat;
  color: var(--ivory);
  padding-block: var(--s6);
}
.page-band .label { color: var(--gold); }
.page-band p { color: #e9e2f4; font-size: 1.1rem; }

@media (max-width: 640px) {
  .site-head .container { justify-content: center; text-align: center; }
  .site-nav { justify-content: center; }
}
