/* 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; } }
