/* Spellfold support pages. Hand-written, no build step. */

:root {
  color-scheme: light dark;
  --page: #f4ecdb;          /* parchment */
  --paper: #fffaf0;
  --ink: #1d2a27;
  --muted: #4f5e57;
  --gold: #a07a35;          /* decoration only */
  --gold-ink: #7a5718;      /* links, brand and button fills: 6.1:1 on parchment */
  --on-gold: #fffaf0;
  --teal: #2f5d55;
  --teal-soft: #dfe7dc;
  --line: rgba(122, 87, 24, 0.28);
  --stars: rgba(122, 87, 24, 0.10);
  --shadow: 0 14px 34px -22px rgba(29, 42, 39, 0.55);
  --radius: 18px;
  --display: Baskerville, "Baskerville Old Face", "Libre Baskerville", Georgia, serif;
  --font: Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #08110f;        /* candlelit ink */
    --paper: #111d1a;
    --ink: #ebe1c0;
    --muted: #b7c0b1;
    --gold: #d1ab66;
    --gold-ink: #dcb877;
    --on-gold: #14100a;
    --teal: #7fb3a5;
    --teal-soft: #1a2b27;
    --line: rgba(209, 171, 102, 0.26);
    --stars: rgba(235, 225, 192, 0.07);
    --shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.9);
  }
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

a {
  color: var(--gold-ink);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.13em;
}

a:focus-visible {
  outline: 3px solid var(--gold-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

strong {
  font-weight: 700;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--gold-ink);
  color: var(--on-gold);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Header */

header,
main,
footer {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--gold-ink);
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.1;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 11px;
}

.brand span {
  display: block;
}

.brand small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.875rem;
  font-style: italic;
}

nav {
  display: flex;
  gap: 0.5rem;
}

nav a {
  padding: 0.35rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

nav a:hover {
  border-color: var(--gold);
}

nav a[aria-current="page"] {
  border-color: var(--gold-ink);
  background: var(--gold-ink);
  color: var(--on-gold);
}

/* Support: welcome card */

main {
  padding-bottom: 2.5rem;
}

.welcome {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem 2.5rem;
  margin-top: 0.5rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--teal-soft);
  background-image: radial-gradient(circle, var(--stars) 1.5px, transparent 2px);
  background-size: 28px 28px;
  box-shadow: var(--shadow);
}

.welcome img {
  width: 240px;
  border-radius: 28%;
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.6);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--teal);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  line-height: 1.08;
}

.welcome p {
  margin: 0 0 1rem;
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  margin: 0.25rem 0 1rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--gold-ink);
  color: var(--on-gold);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact:hover {
  filter: brightness(1.08);
}

.small {
  color: var(--muted);
  font-size: 0.9375rem;
}

.welcome .small {
  margin-bottom: 0;
}

@media (max-width: 699px) {
  .welcome {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .welcome img {
    order: -1;
    justify-self: center;
    width: 170px;
  }
}

/* Support: help cards */

.help {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.help section {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.help h2 {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  line-height: 1.25;
}

.help h2::before {
  content: "✦";
  flex: none;
  color: var(--gold);
  font-size: 0.9rem;
}

.help p {
  margin: 0 0 0.75rem;
}

.help p:last-child {
  margin-bottom: 0;
}

/* Privacy policy */

.policy {
  max-width: 720px;
  margin: 0.5rem auto 0;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.policy .updated {
  margin-top: 0;
  color: var(--muted);
}

.policy .lead {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: var(--teal-soft);
}

.policy h2 {
  margin: 2rem 0 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 1.4rem;
  line-height: 1.25;
}

.policy ul {
  padding-left: 1.25rem;
}

.policy li {
  margin-bottom: 0.35rem;
}

.policy li::marker {
  color: var(--gold);
}

/* Footer */

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}
