/* Thrillage@Wellard holding page. Dark (Halloween night) by default,
   light under prefers-color-scheme: light. Every text colour (--fg, --muted,
   --accent) meets WCAG 2.x 4.5:1 against --bg and --surface in both schemes. */

:root {
  color-scheme: dark;
  --bg: #15111d;
  --fg: #f4efe8;
  --muted: #bcb2c8;
  --accent: #ff9d4d;
  --surface: #221b2e;
  --line: #3d3349;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #fbf8f3;
    --fg: #1f1a26;
    --muted: #5a5263;
    --accent: #ae4804;
    --surface: #fff1e3;
    --line: #e9d6c3;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.site-header,
main,
.site-footer {
  max-width: calc(65ch + 2.5rem);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Skip link: off screen until it receives keyboard focus. */
.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  z-index: 1;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background: var(--surface);
  color: var(--fg);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Header: pumpkin beside the title, stacking on narrow screens. */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  padding-top: 3.5rem;
}

.pumpkin {
  flex: none;
  width: 4rem;
  height: 4rem;
}

.titles {
  flex: 1 1 14rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.875rem, 1rem + 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.5;
}

.when {
  display: block;
  margin-top: 0.25rem;
  color: var(--fg);
  font-weight: 600;
}

.site-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.site-name a {
  color: var(--fg);
  text-decoration: none;
}

.site-name a:hover {
  text-decoration: underline;
}

/* Main content */
main {
  padding-top: 1rem;
}

main section {
  margin-top: 2.75rem;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  line-height: 1.3;
}

main > h1 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.5rem;
}

li + li {
  margin-top: 0.6rem;
}

li::marker {
  color: var(--accent);
  font-weight: 700;
}

/* Headline notice card */
main .notice {
  margin-top: 2.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-left: 0.375rem solid var(--accent);
  border-radius: 0.75rem;
  background: var(--surface);
}

.notice h2 {
  margin: 0;
  font-size: 1.5rem;
}

.notice p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 3.5rem;
  padding-bottom: 3rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer p {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Print: dark text on white paper, whatever the screen theme. */
@media print {
  :root {
    --bg: #ffffff;
    --fg: #000000;
    --muted: #333333;
    --accent: #ae4804;
    --surface: #ffffff;
    --line: #999999;
  }

  .skip-link {
    display: none;
  }
}
