:root {
  --ink: #15202b;
  --muted: #4d5d6b;
  --paper: #f4f1ea;
  --card: #fffdf8;
  --line: #c9c0b2;
  --mark: #2f6f7e;
  --mark-hot: #1f4f5a;
  --warn: #8a3b2a;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", Palatino, Georgia, serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
}

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

html, body { margin: 0; padding: 0; }

body {
  color: var(--ink);
  background:
    linear-gradient(180deg, #e7efe8 0, var(--paper) 12rem);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  min-height: 100vh;
}

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

a { color: var(--mark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--mark-hot); }

:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.mast {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-end;
  padding: 1.6rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  column-gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand svg { width: 2.2rem; height: 2.2rem; }

.brand strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.brand span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

nav { display: flex; gap: 1.4rem; }
nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
nav a[aria-current="page"] { color: var(--mark); }

.hero {
  display: grid;
  gap: 2rem;
  padding: 2.4rem 0 1.5rem;
}

@media (min-width: 840px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mark);
  margin: 0 0 0.5rem;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 0.7rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.2rem; }

.lede { font-size: 1.12rem; max-width: 38rem; color: var(--muted); }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(21, 32, 43, 0.06);
}

.panel header {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.rows { margin: 0; padding: 0; list-style: none; }
.rows li {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.rows li:last-child { border-bottom: 0; }
.rows time { font-family: var(--mono); color: var(--muted); font-size: 0.82rem; }
.tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mark-hot);
}

.grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.2rem 1.15rem 1.3rem;
}
.card p { color: var(--muted); margin: 0.4rem 0 0; }

.page { padding: 2rem 0 3rem; max-width: 44rem; }
.page p { color: var(--ink); }

.note {
  border-left: 3px solid var(--mark);
  padding: 0.2rem 0 0.2rem 1rem;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.err h1 { color: var(--warn); }
