/* Time Unlocked Studio - public website. Brand colours from config/studio.yaml. */
:root {
  --deep-navy: #060E24;
  --midnight: #0D1B3E;
  --panel: #112350;
  --gold: #C5A253;
  --gold-light: #E2C77F;
  --silver: #C0C6CF;
  --white: #F5F3EE;
  --text: #E9E6DE;
  --muted: #B7BDC7;
  --line: rgba(197, 162, 83, 0.35);
  --radius: 14px;
  --max: 72rem;
}

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

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

body {
  margin: 0;
  background: var(--deep-navy);
  background-image: radial-gradient(circle at 50% -10%, var(--midnight) 0%, var(--deep-navy) 60%);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a { color: var(--gold-light); text-underline-offset: 0.18em; }
a:hover { color: var(--white); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--gold); color: var(--deep-navy); padding: 0.6rem 1rem; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: rgba(6, 14, 36, 0.92); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--white); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.nav-list { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--silver); text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.nav-list a:hover { color: var(--white); }
.nav-list a[aria-current="page"] { color: var(--white); border-bottom-color: var(--gold); }

/* ---------- headings and text ---------- */
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--white); line-height: 1.25; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); margin: 2.5rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 0.5rem; color: var(--gold-light); }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.85rem; margin-bottom: 0.75rem; }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--silver); max-width: 46rem; }
.muted { color: var(--muted); }

/* ---------- home ---------- */
.hero { padding: 3.5rem 0 2.5rem; display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.hero-emblem { width: min(14rem, 60vw); justify-self: center; }
@media (min-width: 56rem) {
  .hero { grid-template-columns: 1.5fr 1fr; padding: 5rem 0 3.5rem; }
}

.section { padding: 1rem 0 2rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 1.25rem 0 1.25rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 0.5rem; }
.card h3 { margin-top: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem 0.75rem 3.4rem; position: relative; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 1rem; top: 0.95rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--gold); color: var(--deep-navy); font-weight: 700; display: grid; place-items: center; font-size: 0.9rem; }
.steps strong { color: var(--white); }

.notice { border-left: 4px solid var(--gold); background: rgba(197, 162, 83, 0.08); padding: 0.9rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.25rem 0; }

/* ---------- legal pages ---------- */
.legal { padding: 2.5rem 0 3rem; }
.legal article { background: var(--midnight); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.75rem); max-width: 50rem; margin: 0 auto; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.legal h2 { font-size: clamp(1.3rem, 3.5vw, 1.6rem); border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2rem; }
.toc { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.toc ol { margin: 0.25rem 0 0; padding-left: 1.25rem; columns: 2 16rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 0.75rem 0 1.25rem; font-size: 0.97rem; }
th, td { border: 1px solid var(--line); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }
th { background: rgba(197, 162, 83, 0.12); color: var(--white); }

/* Items the owner must confirm before publishing (the release check refuses to publish them). */
mark.confirm { background: #FFE58A; color: #1A1400; padding: 0.05em 0.35em; border-radius: 4px; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 1.75rem 0 2.5rem; color: var(--muted); font-size: 0.95rem; }
.footer-inner { display: grid; gap: 0.75rem; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--silver); }

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .skip-link, .toc { display: none; }
  .legal article { border: 0; background: #fff; padding: 0; }
  h1, h2, h3 { color: #000; }
  a { color: #000; }
}
