/* Standby Folio: quiet, legible, works in light and dark, no web fonts. */

:root {
  color-scheme: light dark;
  --bg: #f7f5f1;
  --surface: #ffffff;
  --ink: #1d1c1a;
  --muted: #55524c;
  --rule: #dcd7ce;
  --accent: #1f5d4c;      /* "GO" green, 7.6:1 on --bg */
  --standby: #8a5a00;     /* amber, 5.3:1 on --bg */
  --focus: #1b4fd1;
  --radius: 10px;
  --measure: 40rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 100%;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --surface: #1c1c1a;
    --ink: #ecebe7;
    --muted: #b3afa7;
    --rule: #34332f;
    --accent: #7fd1b5;
    --standby: #f0bd5e;
    --focus: #8fb0ff;
  }
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: .5rem .9rem;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--focus);
  border-radius: var(--radius);
  z-index: 10;
}
.skip:focus { top: 1rem; }

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }

header.site {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 650;
  letter-spacing: .01em;
  color: var(--ink);
  text-decoration: none;
}
.brand .lamp {
  inline-size: .7rem;
  block-size: .7rem;
  border-radius: 50%;
  background: var(--standby);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--standby) 25%, transparent);
}

nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
nav a { color: var(--muted); text-decoration: none; padding: .35rem 0; display: inline-block; }
nav a:hover { color: var(--ink); text-decoration: underline; }
nav a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); }

main { flex: 1; padding: 2.5rem 0 3.5rem; }

h1 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.35rem); line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 2.4rem 0 .6rem; }
h3 { font-size: 1.05rem; line-height: 1.35; margin: 1.6rem 0 .35rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
li + li { margin-top: .35rem; }

.flush { margin-top: 0; }
.spaced { margin-top: 2rem; }

.lede { font-size: 1.125rem; color: var(--muted); margin-bottom: 1.75rem; }
.updated { color: var(--muted); font-size: .95rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.card > :last-child { margin-bottom: 0; }
.card.contact { border-left: 4px solid var(--accent); }

.cue {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .1rem .45rem;
  border-radius: 4px;
  border: 1px solid currentColor;
  vertical-align: .1em;
}
.cue.standby { color: var(--standby); }
.cue.go { color: var(--accent); }

details {
  border-top: 1px solid var(--rule);
  padding: .2rem 0;
}
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary {
  cursor: pointer;
  font-weight: 600;
  padding: .75rem 0;
  list-style-position: outside;
}
details > :not(summary) { margin-left: 0; }
details[open] > summary { color: var(--accent); }

.choices { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 2rem 0; padding: 0; list-style: none; }
.choices li { margin: 0; }
.choices a {
  display: block;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  color: var(--ink);
  text-decoration: none;
}
.choices a:hover { border-color: var(--accent); }
.choices strong { display: block; color: var(--accent); font-size: 1.05rem; margin-bottom: .2rem; }
.choices span { color: var(--muted); }

footer.site {
  border-top: 1px solid var(--rule);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: .92rem;
}
footer.site p { margin: 0 0 .35rem; }

a[href^="mailto:"] { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: no-preference) {
  a, nav a, .choices a { transition: color .15s ease, border-color .15s ease; }
}

@media print {
  header.site nav, .skip { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
