/* ==========================================================================
   enchanted.place — shared styles
   Palette, type, header, footer, buttons and interaction states used on
   every page. Page-specific styles live in home.css.
   ========================================================================== */

:root {
  --night: #151914;      /* deepest ground, footer */
  --ink: #1C211B;        /* dark sections, body text */
  --paper: #F3EEE4;      /* light ground */
  --paper-soft: #FBF8F2; /* letter card */
  --sand: #EAE3D6;       /* alternate light section */
  --line: #DDD5C6;       /* card borders */
  --amber: #E2A75E;      /* accent */
  --amber-deep: #8A5A1C; /* accent text on light */
  --text-2: #3E423A;
  --text-3: #565A50;
  --on-dark-2: #E2DCCF;
  --on-dark-3: #BDB6A6;
  --footer-text: #8E887B;

  --font-serif: 'IM Fell English', Georgia, serif;
  --font-script: 'Give You Glory', cursive;
  --font-sans: 'Zen Kaku Gothic New', 'Hiragino Sans', system-ui, sans-serif;

  --glow-strong: 0 0 0 1px rgba(226,167,94,.55), 0 0 24px 4px rgba(226,167,94,.45), 0 0 72px 16px rgba(226,167,94,.2);
  --glow-soft: 0 0 0 1px rgba(226,167,94,.35), 0 0 24px 2px rgba(226,167,94,.18);
}

body { margin: 0; background: var(--paper); }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--amber-deep); }

/* ---------- Page shell (inner pages) ---------- */

.site {
  position: relative;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
}

/* Paper grain laid over the whole page */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background-image: url(../images/grain.png);
  background-size: 240px 240px;
  opacity: .4;
  mix-blend-mode: soft-light;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

/* Two columns that stack below ~900px */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}

.stack { display: flex; flex-direction: column; }

/* ---------- Type ---------- */

.serif { font-family: var(--font-serif); font-weight: 400; }
.script { font-family: var(--font-script); font-weight: 400; }
.italic { font-style: italic; }
.pretty { text-wrap: pretty; }
.balance { text-wrap: balance; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.eyebrow--muted { color: var(--text-3); }
.eyebrow--on-dark { color: var(--on-dark-3); }
.eyebrow--amber { color: var(--amber); }

.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.12;
}

/* ---------- Header ---------- */

.site-header { background: var(--ink); color: var(--paper); }

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--paper);
  text-decoration: none;
}
.brand:hover { color: var(--paper); }
.brand .dot { color: var(--amber); }

.nav-links {
  font-family: var(--font-sans);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-links a { color: var(--paper); text-decoration: none; }
.nav-links a:hover { color: var(--amber); }
.nav-links a[aria-current="page"] { color: var(--amber); }

/* ---------- Dark band with amber light ---------- */

.dark-band { background-color: var(--ink); color: var(--paper); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 500;
  align-self: flex-start;
}
.btn--sm { padding: 14px 28px; }
.btn--amber, .btn--amber:hover { background: var(--amber); color: var(--ink); }
.btn--dark, .btn--dark:hover { background: var(--ink); color: var(--paper); }

/* Amber halo on hover / focus */
.glow { transition: box-shadow .7s ease, border-color .7s ease, transform .7s ease; }
.glow:hover, .glow:focus-visible {
  border-color: var(--amber) !important;
  box-shadow: var(--glow-strong);
  transform: translateY(-1px);
  outline: none;
}

/* ---------- Cards ---------- */

.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.card--hover { transition: border-color .5s ease, box-shadow .5s ease; }
.card--hover:hover, .card--hover[open] { border-color: var(--amber); box-shadow: var(--glow-soft); }

/* ---------- Disclosure (details/summary) ---------- */

.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { transition: color .6s ease; }
.qa summary:hover h3, .qa summary:focus-visible h3 { color: var(--amber-deep); }
.qa summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 6px; }
.qa .plus { font-size: 28px; line-height: 1; color: var(--amber-deep); transition: transform .5s ease; }
.qa[open] .plus { transform: rotate(45deg); }

/* ---------- Footer ---------- */

.site-footer {
  font-family: var(--font-sans);
  background: var(--night);
  color: var(--footer-text);
  font-size: 12px;
  line-height: 1.6;
}
.site-footer .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.site-footer .acknowledgement { max-width: 760px; }
.site-footer .contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.site-footer .contact a { color: var(--amber); }

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
  .container, .site-nav, .site-footer .inner { padding-left: 24px; padding-right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .glow:hover, .glow:focus-visible { transform: none; }
  .qa .plus { transition: none; }
}
