/* streetdog.life — one stylesheet, shared by every section.
 *
 * Deliberately no framework and no build step. This is a personal site of a few hand-written pages;
 * a toolchain here would be something that rots between the times anyone looks at it, and the whole
 * point of plain CSS is that it still works in five years without being fed. */

:root {
  --ink:    #2f2a24;   /* warm near-black, not #000 — softer to read at length */
  --paper:  #f4efe6;
  --warm:   #8a7a5e;   /* muted secondary text */
  --accent: #4a6b4f;   /* the green of the game's grass */
  --rule:   #ded4c4;
  --measure: 34rem;    /* one comfortable reading column, used everywhere */
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #ece5d8; --paper: #1c1a17; --warm: #a3927a; --accent: #8fb894; --rule: #35302a; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 ui-serif, Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

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

/* Masthead — the same on every page, so a section always tells you where you are */
.masthead { margin-bottom: 2.5rem; }
.masthead a.home {
  font-size: .95rem; letter-spacing: .04em; text-transform: lowercase;
  color: var(--warm); text-decoration: none;
}
.masthead a.home:hover { color: var(--accent); }

h1 { font-size: clamp(1.9rem, 6vw, 2.5rem); line-height: 1.2; margin: 0 0 .3rem; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; margin: 2.5rem 0 .75rem; font-weight: 600; }
.tagline { font-size: 1.1rem; font-style: italic; color: var(--accent); margin: 0 0 1.75rem; }
p { margin: 0 0 1.1rem; }
.quiet { color: var(--warm); font-size: .95rem; }

a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

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

/* Section list on the home page. A section only appears here once it EXISTS —
 * a greyed-out "coming soon" is a promise, and promises are what this site is trying not to make. */
.sections { list-style: none; padding: 0; margin: 0; }
.sections li { border-top: 1px solid var(--rule); }
.sections li:last-child { border-bottom: 1px solid var(--rule); }
.sections a { display: flex; gap: 1rem; align-items: center; padding: 1.1rem .25rem; text-decoration: none; }
.sections a:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.sections img { width: 52px; height: 52px; border-radius: 12px; flex: 0 0 auto; }
.sections .t { font-weight: 600; }
.sections .d { color: var(--warm); font-size: .95rem; }

img.mark { width: 120px; height: 120px; border-radius: 26px; box-shadow: 0 6px 24px rgb(0 0 0 / .18); }

footer { margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); color: var(--warm); font-size: .85rem; }

/* ── wider column for the story archive ─────────────────────────────────────────────────────────── */
.wrap.wide { max-width: 42rem; }

/* ── the Dan poem ───────────────────────────────────────────────────────────────────────────────── */
.verse {
  margin: 2rem 0;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  font-style: italic;
  color: var(--accent);
  line-height: 1.9;
}

/* ── #vss365 stories ────────────────────────────────────────────────────────────────────────────── */
nav.years { margin: 1.5rem 0 2.5rem; display: flex; gap: .9rem; flex-wrap: wrap; }
nav.years a { text-decoration: none; color: var(--warm); font-variant-numeric: tabular-nums; }
nav.years a:hover { color: var(--accent); }

h2 .count { font-weight: 400; font-size: .8rem; color: var(--warm); margin-left: .5rem; }

.vss { border-top: 1px solid var(--rule); padding: 1.4rem 0; }
.vss header { font-size: .85rem; color: var(--warm); margin-bottom: .5rem; }
.vss header time { font-variant-numeric: tabular-nums; }
.vss p { margin: 0; }

/* The prompt word IS the constraint each story was written against, so it is marked rather than
   left to look like a stray character. */
.tag { color: var(--accent); font-style: normal; }
.noprompt { font-style: italic; opacity: .7; }

/* ── news posts ─────────────────────────────────────────────────────────────────────────────────── */
.post { border-top: 1px solid var(--rule); padding: 1.75rem 0 .5rem; }
.post header { font-size: .85rem; color: var(--warm); }
.post h2 { margin: .3rem 0 .9rem; font-size: 1.3rem; }
.post h3 { font-size: 1.05rem; margin: 1.5rem 0 .6rem; }
.post code { font: .9em/1 ui-monospace, SFMono-Regular, Menlo, monospace;
             background: color-mix(in srgb, var(--warm) 18%, transparent);
             padding: .1em .35em; border-radius: 4px; }

/* ── the tester form ────────────────────────────────────────────────────────────────────────────── */
form { margin: 1.5rem 0 0; }
form label { display: block; margin: 1.1rem 0 .35rem; font-size: .95rem; font-weight: 600; }
form input, form textarea {
  width: 100%; padding: .6rem .7rem;
  font: inherit; font-size: 1rem;
  color: var(--ink); background: color-mix(in srgb, var(--paper) 88%, var(--warm));
  border: 1px solid var(--rule); border-radius: 8px;
}
form input:focus, form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
form textarea { resize: vertical; }
form .hint { font-size: .85rem; color: var(--warm); margin: .4rem 0 0; }
form button {
  margin-top: 1.4rem; padding: .65rem 1.4rem;
  font: inherit; font-size: 1rem; font-weight: 600;
  color: var(--paper); background: var(--accent);
  border: 0; border-radius: 8px; cursor: pointer;
}
form button:hover { filter: brightness(1.1); }
form button:disabled { opacity: .6; cursor: default; }
.cf-turnstile { margin-top: 1.4rem; }

/* Personal data deserves a visible statement, not small print buried elsewhere. */
.privacy { margin-top: 1.4rem; font-size: .85rem; color: var(--warm); line-height: 1.55; }

#form-status { margin-top: 1rem; font-size: .95rem; }
#form-status.ok  { color: var(--accent); font-weight: 600; }
#form-status.err { color: #b4472f; font-weight: 600; }
@media (prefers-color-scheme: dark) { #form-status.err { color: #e08a72; } }

/* Honeypot. OFF-SCREEN rather than display:none — better bots skip hidden fields but do not compute
   layout, so this still reads as an ordinary input to them while being invisible to people. */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
