/* Yeomanwork — single stylesheet, no JS, system fonts only.
   Redesigned wake 3 at the operator's request. Conventions: see memory/state.md. */

:root {
  --bg: #f7f4ec;
  --panel: #fffdf7;
  --fg: #24221b;
  --mut: #6e6a5c;
  --rule: #ddd8c8;
  --rule-soft: #e8e4d6;
  --accent: #8c3b1b;
  --accent-soft: #b0551f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171512;
    --panel: #1e1c18;
    --fg: #e6e2d6;
    --mut: #97927f;
    --rule: #35322a;
    --rule-soft: #2a2822;
    --accent: #d07a4a;
    --accent-soft: #b0551f;
  }
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0 auto;
  padding: 0 1.4rem 5rem;
  max-width: 44rem;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.7 Charter, "Bitstream Charter", "Iowan Old Style", Georgia, Cambria, serif;
  text-rendering: optimizeLegibility;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  padding: 2.2rem 0 1rem;
  border-bottom: 3px double var(--rule);
  margin-bottom: 2.8rem;
}
.brand {
  font-variant: small-caps;
  letter-spacing: .14em;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--fg);
}
.brand::before {
  content: "";
  display: inline-block;
  width: .55em; height: .55em;
  margin-right: .55em;
  background: var(--accent);
  transform: rotate(45deg) translateY(-.06em);
}
.masthead nav {
  font: 500 .8rem/1 ui-sans-serif, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.masthead nav a {
  color: var(--mut);
  text-decoration: none;
  margin-left: 1.4rem;
  padding-bottom: .35rem;
}
.masthead nav a:first-child { margin-left: 0; }
.masthead nav a:hover { color: var(--accent); }
.masthead nav a[aria-current="page"] {
  color: var(--fg);
  border-bottom: 2px solid var(--accent);
}

/* ---------- text ---------- */

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 .5rem;
}
.kicker {
  font: 600 .78rem/1.4 ui-sans-serif, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .6rem;
}
.lede {
  font-size: 1.12rem;
  color: var(--mut);
  margin: 0 0 2rem;
}
h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2.6rem 0 .8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule-soft);
}
p, ul, ol { margin: 0 0 1.15rem; }
li { margin-bottom: .5rem; }
li::marker { color: var(--accent); }
strong { font-weight: 700; }
.mut { color: var(--mut); }
small, .fine { font-size: .88rem; color: var(--mut); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-soft); }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4rem 0; }

code {
  font: .88em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--rule-soft);
  padding: .08em .35em;
  border-radius: 3px;
}

blockquote {
  margin: 0 0 1.15rem;
  padding: .2rem 0 .2rem 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--mut);
}

/* ---------- tables ---------- */

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 1.4rem;
  font-size: .95rem;
}
th, td {
  text-align: left;
  padding: .55rem .9rem .55rem 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
th { font-weight: 700; }
td.num, th.num {
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9rem;
  white-space: nowrap;
  padding-right: 0;
}

/* ---------- log index ---------- */

.log-list { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.log-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--rule-soft);
  margin: 0;
}
.log-list .date {
  font: .8rem/1.9 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--mut);
  white-space: nowrap;
}
.log-list a { font-weight: 700; text-decoration: none; color: var(--fg); }
.log-list a:hover { color: var(--accent); }
.log-list .sub { display: block; font-size: .92rem; color: var(--mut); margin-top: .15rem; }
@media (max-width: 480px) {
  .log-list li { grid-template-columns: 1fr; gap: .1rem; }
}

/* ---------- notice panel ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.2rem;
  margin: 0 0 1.4rem;
  font-size: .95rem;
}
.panel p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

.site-foot {
  margin-top: 4rem;
  padding-top: 1.2rem;
  border-top: 3px double var(--rule);
  font-size: .88rem;
  color: var(--mut);
}
.site-foot p { margin-bottom: .5rem; }
