/* The Inverness Edit, one-page site. Values here are the start of a design file:
   ink #17201e, muted #47534f, accent (River Ness) #0d5c54, accent-dark #09443e,
   band #e9f1ee, rule #c9d8d3. Type: Young Serif (display), Figtree (text).
   Spacing on a 4px base: 4 8 12 16 24 32 48 64 96. */
:root {
  --ink: #17201e;
  --muted: #47534f;
  --accent: #0d5c54;
  --accent-dark: #09443e;
  --band: #e9f1ee;
  --rule: #c9d8d3;
  --paper: #ffffff;
  --error: #a3261b;
  --display: "Young Serif", Georgia, serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
}
::selection { background: var(--accent); color: #fff; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }

/* Masthead: a newspaper nameplate between two rules */
.masthead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.5rem; padding-bottom: 0.75rem;
  border-bottom: 3px double var(--ink);
}
.wordmark { margin: 0; font: 400 1.5rem/1.1 var(--display); letter-spacing: -0.01em; }
.wordmark .the { font-size: 0.7em; vertical-align: 0.12em; margin-right: 0.08em; }
.dateline { margin: 0; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 7vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em; margin: 3rem 0 1rem; }
h2 { font-size: 1.625rem; line-height: 1.2; margin: 0 0 1rem; }
h3 { font-size: 1.3125rem; line-height: 1.25; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; text-wrap: pretty; }
.lede { font-size: 1.1875rem; line-height: 1.55; max-width: 38em; }

section { padding: 3rem 0; }
section + section { border-top: 1px solid var(--rule); }
.intro { padding-top: 0; }

/* Signup */
.signup { margin-top: 1.5rem; padding: 1.5rem; background: var(--band); border-radius: 6px; }
.signup label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.signup .row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 14rem; min-width: 0; min-height: 3rem;
  padding: 0.625rem 0.875rem;
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #7d8f89; border-radius: 4px;
  caret-color: var(--accent);
}
.signup input[type="email"]::placeholder { color: #66746f; }
.signup input[type="email"]:focus-visible { outline-offset: 1px; border-color: var(--accent); }
.signup button {
  flex: 0 0 auto; min-height: 3rem; padding: 0.625rem 1.25rem;
  font: 600 1rem/1 var(--text); color: #fff; background: var(--accent);
  border: 0; border-radius: 4px; cursor: pointer;
  transition: background-color 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.signup button:hover { background: var(--accent-dark); }
.signup button:active { transform: translateY(1px); }
.signup button[disabled] { opacity: 0.7; cursor: progress; }
.signup .note { margin: 0.75rem 0 0; font-size: 0.9375rem; color: var(--muted); }
.signup .note.is-error { color: var(--error); font-weight: 600; }
.signup.is-done .row, .signup.is-done label { display: none; }
.signup.is-done .note { margin: 0; font-size: 1.0625rem; color: var(--ink); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 26rem) { .signup button { flex-basis: 100%; } .signup { padding: 1.25rem; } }

/* What's in it: three pillars, each with real recent examples */
.what .sub { color: var(--muted); margin-bottom: 0.5rem; }
.pillar { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.pillar h3 { margin-bottom: 0.25rem; }
.pillar > p { margin-bottom: 0.75rem; }
.pillar ul { margin: 0; padding-left: 1.25rem; color: var(--muted); }
.pillar li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.pillar li:last-child { margin-bottom: 0; }
.pillar li::marker { color: var(--accent); }
@media (min-width: 40rem) {
  .pillar { display: grid; grid-template-columns: 11rem 1fr; column-gap: 2rem; }
  .pillar h3 { grid-row: span 2; margin: 0; }
}
.what .when { margin: 1.5rem 0 0; color: var(--muted); }
.what .when strong { color: var(--ink); font-weight: 600; }

/* Recent issues */
.issues ul { list-style: none; margin: 0; padding: 0; }
.issues li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; padding: 0.875rem 0; border-bottom: 1px solid var(--rule); }
.issues li:first-child { padding-top: 0; }
.issues a { font-weight: 600; }
.issues time { font-size: 0.9375rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.again { padding-bottom: 4rem; }
.again > p { color: var(--muted); }

.foot { padding-top: 1.5rem; padding-bottom: 2.5rem; border-top: 3px double var(--ink); font-size: 0.9375rem; color: var(--muted); }
.foot p { margin: 0; }

/* Privacy page */
.doc h1 { font-size: clamp(2rem, 6vw, 2.75rem); }
.doc h2 { font-size: 1.3125rem; margin-top: 2rem; }
.doc section { padding: 0; border: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Generated pages (2026-11-16): nav, issue pages, this weekend / this week */
.wordmark a { color: inherit; text-decoration: none; }
.nav { padding-top: 0.625rem; padding-bottom: 0.625rem; border-bottom: 1px solid var(--rule); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.nav a { font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }

.issue-head { padding-top: 0.5rem; }
.issue-head h1 { margin-top: 2.5rem; }
.meta { color: var(--muted); font-size: 0.9375rem; }
.stale { color: var(--muted); font-size: 0.9375rem; padding: 0.75rem 1rem; background: var(--band); border-radius: 6px; }
.issue-body { padding: 1rem 0; border: 0; }
section.issue-body + section.issue-body { border-top: 1px solid var(--rule); }
.issue-body h2 { margin-top: 1.5rem; }
.issue-body h3 { margin-top: 1.25rem; }
.issue-body ul { padding-left: 1.25rem; }
.issue-body li { margin-bottom: 0.625rem; padding-left: 0.25rem; }
.issue-body li::marker { color: var(--accent); }
.issue-body img { max-width: 100%; height: auto; }
.issue-body blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--muted); }
.issue-body hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.cta { padding: 2rem 0; }
.cta h2 { margin-bottom: 0.5rem; }
.cta > p { color: var(--muted); margin-bottom: 0; }
.more { color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding: 1.5rem 0; border-top: 1px solid var(--rule); font-weight: 600; }
.holding { display: none; }
.holding.is-shown, .is-expired .holding { display: block; }
.is-expired .current { display: none; }
.issue .issue-head h1 { font-size: clamp(2rem, 5.5vw, 2.75rem); }

/* Calendar and Things to Do (wave 2) */
.views { margin: 0 0 1.5rem; }
.views ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.views a { display: inline-block; padding: 0.375rem 0.75rem; border: 1px solid var(--rule); border-radius: 999px; font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.views a:hover { border-color: var(--accent); }
.views a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
section.day { padding: 1.5rem 0; }
section.day h2 { font-size: 1.3125rem; margin-bottom: 0.75rem; }
.events { list-style: none; margin: 0; padding: 0; }
.events li { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.events li:last-child { border-bottom: 0; }
.events li > a { font-weight: 600; }
.events .facts, .events .line { display: block; }
.events .facts { font-size: 0.9375rem; color: var(--muted); }
.events .line { margin-top: 0.25rem; }
.tag { display: inline-block; padding: 0 0.5rem; border-radius: 4px; background: var(--band); color: var(--accent-dark); font-size: 0.8125rem; font-weight: 600; font-family: var(--text); vertical-align: 0.1em; }
.facts-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 1.5rem 0; padding: 1.25rem 1.5rem; background: var(--band); border-radius: 6px; }
.facts-list dt { font-weight: 600; }
.facts-list dd { margin: 0; }
.button { display: inline-block; padding: 0.75rem 1.25rem; background: var(--accent); color: #fff; border-radius: 4px; font-weight: 600; text-decoration: none; }
.button:hover { background: var(--accent-dark); color: #fff; }
.event-img img { max-width: 100%; height: auto; border-radius: 6px; }
.event-img figcaption { font-size: 0.8125rem; color: var(--muted); }
.things { list-style: none; margin: 0; padding: 0; }
.things li { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 1rem; }
.things h3 { margin-bottom: 0.25rem; }
.things h3 a { color: var(--ink); text-decoration-color: var(--rule); }
.things h3 a:hover { text-decoration-color: var(--accent); }
.things p { margin: 0 0 0.25rem; }
.things .facts { font-size: 0.9375rem; color: var(--muted); margin: 0; }
.things li:target { background: var(--band); padding-left: 0.75rem; padding-right: 0.75rem; border-radius: 6px; }
@media (max-width: 26rem) { .facts-list { grid-template-columns: 1fr; gap: 0.125rem; } .facts-list dd { margin-bottom: 0.5rem; } }
