/* harryblack.au: a plain stylesheet. No framework, no build step. */

:root {
  --bg: #fcfbf8;
  --fg: #1f1f1d;
  --muted: #6b6b66;
  --link: #1549a3;
  --rule: #e4e1da;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16161a;
    --fg: #e8e6e0;
    --muted: #9a9892;
    --link: #8ab4ff;
    --rule: #2c2c32;
  }
}

html {
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 Georgia, "Iowan Old Style", "Times New Roman", serif;
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: 38em;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

/* The tic-tac-toe board: a square as wide as the text column. On narrow screens it sits
   above the text; from 84em it sits beside it, its top level with the "Projects" heading
   (ttt.js measures that; the margin here is the no-script fallback). */
#ttt { margin: 0 0 2.5rem; }
#ttt pre {
  margin: 0;
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  font-size: 0.95em;
  line-height: 1.2;
  color: var(--fg);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}
#ttt .tx { color: var(--muted); }
#ttt .win { color: var(--link); }

@media (min-width: 84em) {
  body {
    max-width: 79em;
    display: grid;
    grid-template-columns: 38em 38em;
    column-gap: 3em;
    align-items: start;
  }
  .page { grid-column: 1; }
  #ttt { grid-column: 2; grid-row: 1; margin: 8.5rem 0 0; }
}

h1 { font-size: 1.6rem; margin: 0 0 0.25rem; font-weight: 600; }
h2 { font-size: 1.05rem; margin: 2.2rem 0 0.6rem; font-weight: 600; letter-spacing: 0.01em; }

p, li { margin: 0.4rem 0; }
ul { padding-left: 1.2em; }

a { color: var(--link); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

.muted { color: var(--muted); }

header { padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); }

time { font-variant-numeric: tabular-nums; }

.posts li { margin: 0.7rem 0; }
.posts time { display: block; }
/* "[Last updated ...]" tags run on from the end of the sentence, in grey, same size. */
.updated { color: var(--muted); margin-left: 0.3em; }
