/* Kettlewood home page (2026-11-04). Real screenshots, plain type, no decoration that isn't the game itself.
   No external resources. The wiki and the rules still use style.css. */

:root {
  --paper: #f3eee3;
  --paper-2: #e9e2d3;
  --ink: #1e1a15;
  --ink-2: #5a5146;
  --rule: #cfc5b3;
  --accent: #9c3b1e;       /* brick red, AA on paper */
  --accent-2: #7a2c14;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, Menlo, monospace;
  --wide: 72rem;
  --text: 38rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
code { font-family: var(--mono); font-size: .92em; background: var(--paper-2); padding: .05em .3em; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1rem; }

/* ---------- Top bar ---------- */
.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.wordmark { font: 700 1.5rem/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.wordmark:hover { color: var(--ink); }
.top nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Opening ---------- */
.opening { padding: 2rem 0 0; }
.opening h1 {
  font: 400 clamp(1.7rem, 3.6vw, 2.6rem)/1.15 var(--serif);
  margin: 0 0 1.25rem;
  max-width: 30ch;
}
.shot-main { margin: 0; }
.shot-main img { width: 100%; aspect-ratio: 1280 / 600; object-fit: cover; }
.shot-main figcaption, .gallery figcaption { font-size: .85rem; color: var(--ink-2); padding-top: .4rem; }

.join-strip {
  display: grid; gap: 1rem 2rem; grid-template-columns: 1fr;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule);
  margin-top: 1.5rem; padding: 1rem 0;
}
@media (min-width: 52rem) { .join-strip { grid-template-columns: auto 1fr; align-items: center; } }
.address { display: flex; flex-direction: column; gap: .2rem; }
.address .label { font-size: .8rem; color: var(--ink-2); }
.address code {
  font-size: clamp(1.3rem, 3.4vw, 1.75rem); background: none; padding: 0;
  user-select: all; -webkit-user-select: all; cursor: text; font-weight: 600;
}
.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--ink-2); }
.status[hidden] { display: none; }
.status .dot { width: .55rem; height: .55rem; border-radius: 50%; background: #2f8a3e; }
.status.off .dot { background: #9a8f7c; }
.facts { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; font-size: .92rem; color: var(--ink-2); }

/* ---------- Text sections ---------- */
.section { padding: 2.75rem 0 0; }
.section h2 { font: 400 1.6rem/1.2 var(--serif); margin: 0 0 1rem; }
.section h3 { font: 700 1rem/1.3 var(--sans); margin: 1.6rem 0 .3rem; }
.prose { max-width: var(--text); }
.prose p { margin: 0 0 1rem; }

.letter { display: grid; gap: 1.5rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 60rem) { .letter { grid-template-columns: minmax(0, var(--text)) 1fr; } }
.letter .sig { font-family: var(--serif); font-style: italic; }
.letter figure { margin: 0; align-self: start; }

/* Calendar table */
.week { width: 100%; max-width: 52rem; border-collapse: collapse; font-size: .97rem; }
.week th, .week td { text-align: left; vertical-align: top; padding: .65rem .9rem .65rem 0; border-top: 1px solid var(--rule); }
.week thead th { font-size: .8rem; font-weight: 600; color: var(--ink-2); border-top: 0; padding-bottom: .3rem; }
.week tbody tr:last-child td, .week tbody tr:last-child th { border-bottom: 1px solid var(--rule); }
.week tbody th { font-weight: 600; white-space: nowrap; }
.week td:last-child { white-space: nowrap; }
@media (max-width: 40rem) {
  .week thead { display: none; }
  .week tr { display: block; border-top: 1px solid var(--rule); padding: .55rem 0; }
  .week th, .week td { display: block; border: 0; padding: .1rem 0; white-space: normal; }
  .week tbody tr:last-child td, .week tbody tr:last-child th { border: 0; }
}

/* Two-column notes */
.notes { display: grid; gap: 0 3rem; grid-template-columns: 1fr; max-width: 60rem; }
@media (min-width: 52rem) { .notes { grid-template-columns: 1fr 1fr; } }
.notes p { margin: 0 0 1rem; }

/* Gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery .big { grid-column: span 2; }
@media (max-width: 38rem) { .gallery .big { grid-column: auto; } }

/* Steps */
.steps { max-width: var(--text); padding-left: 1.3rem; margin: 0; }
.steps li { margin: 0 0 .45rem; padding-left: .3rem; }

.goal-frame { display: block; width: 100%; max-width: 720px; aspect-ratio: 720 / 132; margin: .75rem 0 1rem; border: 0; }

.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; }

/* ---------- Footer ---------- */
footer { margin-top: 3.5rem; border-top: 1px solid var(--rule); padding: 1.25rem 0 2rem; font-size: .85rem; color: var(--ink-2); }
footer p { margin: 0 0 .35rem; }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181614; --paper-2: #24211d; --ink: #ece5d8; --ink-2: #a89f91; --rule: #3a352f;
    --accent: #e08a62; --accent-2: #f0a581; color-scheme: dark;
  }
  .status .dot { background: #5cc06c; }
}
.small { margin-top: .75rem; font-size: .92rem; color: var(--ink-2); }

/* Banner (Pierre likes it: keep it, 2026-11-04) */
.banner { background: #0f1512; }
.banner img { width: 100%; max-height: 16rem; min-height: 7rem; object-fit: cover; object-position: center; }

/* Discord call to action */
.join-strip { grid-template-columns: 1fr; }
@media (min-width: 60rem) { .join-strip { grid-template-columns: auto auto 1fr; } }
.cta { display: flex; flex-direction: column; gap: .25rem; }
.btn {
  display: inline-block; align-self: start; padding: .55rem 1rem; background: #5865f2; color: #fff; text-decoration: none;
  font-weight: 600; border-radius: 4px;
}
.btn:hover { background: #4752c4; color: #fff; text-decoration: none; }
.cta-note { font-size: .82rem; color: var(--ink-2); }

.players .big img, .players img { aspect-ratio: 4 / 3; }
.players { grid-template-columns: repeat(3, 1fr); }
.players .big { grid-column: span 2; grid-row: span 2; }
.players .big figure, .players .big img { height: 100%; }
.players .big figure { display: flex; flex-direction: column; }
.players .big img { flex: 1; min-height: 0; aspect-ratio: auto; }
.players .wide { grid-column: span 2; }
.players .wide img { aspect-ratio: 8 / 3; }
@media (max-width: 40rem) {
  .players { grid-template-columns: 1fr; }
  .players .big, .players .wide { grid-column: auto; grid-row: auto; }
  .players .big img, .players .wide img { aspect-ratio: 4 / 3; }
}
