/* SpiritConsult US — kin to the tent and to spiritconsult.org.
   Palette lifted from spiritconsult_tent/static/tent.css, contrast measured there:
   gold #D09A40 is 2.30:1 on this cream — DECORATION only. Text gold is --accent-ink. */

/* ---- LIGHT (the tent's palette; gold is decoration, 2.30:1) ---- */
:root {
  --bg:         #FAF5E5;
  --bg-panel:   #F4EDD9;
  --fg:         #222222;   /* 14.59:1 */
  --accent:     #D09A40;   /*  2.30:1 — rules, borders, focus */
  --accent-ink: #8A6520;   /*  4.86:1 — accent-coloured text */
  --muted:      #7E4A66;   /*  6.30:1 — magenta kin to the mark */
  --title:      #86124C;   /*  8.53:1 — deep magenta, page titles */
  --rule:       rgba(208, 154, 64, 0.35);
  --mark-shadow: none;
  --measure:    38rem;
}

/* ---- DARK (kingfisher; measured 2026-09-07). On this ground the gold
        finally carries text at 5.97:1, so --accent-ink IS the gold here. ---- */
[data-theme="dark"] {
  --bg:         #021419;   /* kingfisher. Went darker once, she called it black. */
  --bg-panel:   #04212B;
  --fg:         #EDE6D6;   /* 15.13:1 */
  --accent:     #D09A40;   /*  7.50:1 */
  --accent-ink: #E0B15F;   /*  9.51:1 */
  --muted:      #D9A3C0;   /*  8.91:1 — light magenta */
  --title:      #E0AFCC;   /* 10.01:1 — the same title, lit for the dark */
  --rule:       rgba(208, 154, 64, 0.30);
  --mark-shadow: drop-shadow(0 0 18px rgba(208,154,64,0.20));
}

/* No font is fetched from anyone else's server — same rule as the tent. */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Grows with the screen (2026-10-17): 17px on a phone, ~1.5x on a laptop,
     about double on a large monitor — she found it small on her computer.
     Everything else is sized in rem, so it all grows together. */
  font-size: clamp(17px, calc(10.2px + 1.14vw), 34px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3 { font-weight: 300; line-height: 1.25; margin: 0 0 0.6em; letter-spacing: 0.01em; }
h1 { text-align: center; color: var(--title); }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3.2vw, 1.6rem); }
h3 { font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }
p  { margin: 0 0 1.1em; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
a:hover, a:focus { border-bottom-color: var(--accent-ink); }
a:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

/* ---- the mark ---- */
.mark { text-align: center; padding: 2.5rem 1.25rem 1.25rem; }
.mark img {
  width: min(60vw, 15rem);
  margin: 0 auto;
  filter: var(--mark-shadow);
  transform: translateX(11.66%);
}
.mark a { display: block; }
.mark a { border: 0; }
.mark p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.6;
}

/* ---- navigation ---- */
nav { text-align: center; padding: 0.5rem 1rem 0; }
nav ul {
  list-style: none;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 1.6rem;
  background: var(--bg-panel);
  border: 1px solid var(--rule);
  padding: 0.35rem 1.6rem;
}
nav a {
  border: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  display: inline-block;
}
nav a:hover, nav a[aria-current="page"] { color: var(--accent-ink); border-bottom: 1px solid var(--accent); }

.rule { border: 0; border-top: 1px solid var(--rule); max-width: var(--measure); margin: 1.75rem auto; }

/* ---- content ---- */
main { flex: 1; width: 100%; max-width: var(--measure); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
main.wide { max-width: 52rem; }
.lede { font-size: 1.12rem; color: var(--muted); }
.center { text-align: center; }

/* placeholder: her words go here, this block gets deleted */
.awaiting {
  border: 1px dashed var(--rule);
  background: var(--bg-panel);
  padding: 1rem 1.25rem;
  color: var(--muted);
  font-style: italic;
}

/* ---- doors on the home page ---- */
.doors { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 2rem 0; padding: 0; list-style: none; }
.doors a {
  display: block;
  border: 1px solid var(--rule);
  background: var(--bg-panel);
  padding: 1.1rem 1.25rem;
  color: var(--fg);
  height: 100%;
}
.doors a:hover { border-color: var(--accent-ink); }
.doors strong { display: block; color: var(--accent-ink); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 0.35rem; }
.doors span { color: var(--muted); font-size: 0.95rem; }

.list { list-style: none; padding: 0; margin: 0 0 1.1em; }
.list li { padding: 0.3rem 0 0.3rem 1.1rem; border-bottom: 1px solid var(--rule); position: relative; }
.list li::before { content: "·"; position: absolute; left: 0.2rem; color: var(--accent-ink); }

/* ---- the link out to Harald ---- */
.kin { display: flex; gap: 1rem; align-items: center; border: 1px solid var(--rule); background: var(--bg-panel); padding: 1rem; max-width: var(--measure); margin: 0 auto; }
.kin img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 50%; flex: none; border: 1px solid var(--rule); }
.kin .empty { width: 4.5rem; height: 4.5rem; border-radius: 50%; flex: none; border: 1px dashed var(--rule); }
.kin p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.kin strong { display: block; color: var(--accent-ink); font-weight: 400; }
.fineprint + .kin, .kin + .kin { margin-top: 1rem; }
/* Harald's box holds his own words: picture stays top-left, his words read in full ink */
.kin-long { align-items: flex-start; }
.kin-long p { color: var(--fg); margin-top: 0.85rem; }
.kin-long p.arrange, .kin-long p.fineprint { color: var(--muted); }
.notice { max-width: var(--measure); margin: 2rem auto 0; padding: 1rem 1.25rem; text-align: center; border: 1px solid var(--accent-ink); background: var(--bg-panel); }
.notice p { margin: 0.35rem 0; }

footer { border-top: 1px solid var(--rule); padding: 1.5rem 1.25rem 2.5rem; text-align: center; color: var(--muted); font-size: 0.82rem; }
footer a { color: var(--muted); }

.fineprint {
  max-width: var(--measure);
  margin: 0.85rem auto 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}


/* one pair of images per ground — used by the mark */
.dark-only { display: none; }
[data-theme="dark"] .light-only { display: none; }
[data-theme="dark"] .dark-only { display: block; }

/* ---- theme switch: TEMPORARY, for her to compare. Delete this block, the
        button in each page's header, and js/theme.js once she has chosen. ---- */
.themeswitch {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  background: var(--bg-panel);
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 2rem;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.themeswitch:hover { color: var(--accent-ink); border-color: var(--accent-ink); }

/* ---- the guides: a face, a name, a line they chose ---- */
.guides {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: clamp(0.75rem, 2.25vw, 1.5rem);
  grid-template-columns: 1fr;
}
.guides a {
  display: block;
  border: 0;
  color: var(--fg);
  text-align: center;
}
.guides img {
  width: min(50%, 15rem);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--rule);
  transition: border-color 0.2s ease;
}
.guides a:hover img, .guides a:focus img { border-color: var(--accent-ink); }
.guides strong {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--accent-ink);
  letter-spacing: 0.04em;
}
.guides a:hover strong { border-bottom: 1px solid var(--accent); display: inline-block; }

/* ---- one guide's own page ---- */
.back { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.back a { border: 0; color: var(--muted); }
.back a:hover { color: var(--accent-ink); }
.portrait {
  width: min(100%, 18rem);
  margin: 1.25rem auto 1.5rem;
  border: 1px solid var(--rule);
}

/* ---- booking ---- */
.booking { margin: 2rem 0; }
.booking h2 { text-align: center; color: var(--title); }
.booking h3 { text-align: center; }

.button {
  display: inline-block;
  border: 1px solid var(--accent);
  background: var(--bg-panel);
  color: var(--accent-ink);
  padding: 0.6rem 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.button:hover, .button:focus { border-color: var(--accent-ink); color: var(--fg); }
