/* ashbydaniels.com — one reading column of full posts, a narrow sidebar, oxblood links. */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/fonts/literata.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/fonts/literata-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #fbfaf7;
  --ink: #1f1c1a;
  --muted: #6d655e;
  --rule: #ddd7cd;
  --accent: #7a2228;
  --wash: #f1ece4;
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Literata", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 1.125rem; line-height: 1.7; }
img, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem .75rem; z-index: 10; }

.wrap { max-width: 62rem; margin: 0 auto; padding-inline: 1.25rem; padding-block: 2.5rem 4rem; }

/* Masthead */
.mast { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.name { font-family: var(--f-display); font-weight: 600; font-size: 1.9rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; font-variation-settings: "opsz" 144; }
nav.main { display: flex; flex-wrap: wrap; gap: 1.25rem; font-family: var(--f-mono); font-size: .8rem; text-transform: lowercase; }
nav.main a { color: var(--muted); text-decoration: none; }
nav.main a:hover { color: var(--ink); }
nav.main a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

.layout { display: grid; grid-template-columns: minmax(0, 38rem) 15rem; justify-content: space-between; gap: 3rem; padding-top: 2.5rem; }
main { min-width: 0; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.2; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 2.4rem); margin: 0 0 1rem; font-variation-settings: "opsz" 144; }
.meta { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* Posts */
.entry { padding-bottom: 2.75rem; margin-bottom: 2.75rem; border-bottom: 1px solid var(--rule); }
.entry > h2, .entry > h1 { margin: 0 0 1rem; }
.entry > h2 { font-size: 1.6rem; font-variation-settings: "opsz" 96; }
.entry > h2 a, .entry > h1 a { color: var(--ink); text-decoration: none; }
.entry > h2 a:hover { color: var(--accent); }
.body > * { margin-top: 0; margin-bottom: 1.15rem; }
.body h2 { font-size: 1.3rem; margin-top: 2rem; }
.body h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.body ul, .body ol { padding-left: 1.4rem; }
.body li { margin-bottom: .4rem; }
blockquote { margin: 1.5rem 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--accent); font-style: italic; color: var(--muted); }
figure { margin: 1.5rem 0; }
figure img, figure video { display: block; width: 100%; height: auto; border: 1px solid var(--rule); background: #fff; }
figcaption { margin-top: .5rem; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); line-height: 1.5; }
.body code { font-family: var(--f-mono); font-size: .9em; background: var(--wash); padding: .1em .3em; }
.body hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

.entry-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 1.5rem; }
.share { display: flex; gap: 1rem; }
.share a, .share button { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.share a:hover, .share button:hover { color: var(--accent); }
.date-link { color: inherit; text-decoration: none; }
.date-link:hover { color: var(--accent); }
.pager { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--f-mono); font-size: .85rem; }

/* Sidebar */
aside.side { display: flex; flex-direction: column; gap: 2rem; font-size: .95rem; line-height: 1.6; }
.side h2 { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .6rem; }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.side p { margin: 0; }
.signup { padding: 1.1rem 1rem 1.2rem; background: var(--wash); border-top: 2px solid var(--ink); }
.signup p { margin: 0 0 .8rem; color: var(--muted); font-size: .92rem; }
.signup form { display: flex; flex-direction: column; gap: .5rem; }
.signup input[type="email"] { min-width: 0; font: inherit; font-size: .95rem; padding: .55rem .7rem; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 2px; }
.signup button { font-family: var(--f-mono); font-size: .82rem; padding: .6rem 1rem; border: 0; background: var(--ink); color: var(--paper); border-radius: 2px; cursor: pointer; }
.signup button:hover { background: var(--accent); }
.signup-top { display: none; margin-bottom: 2.25rem; }

/* Archive */
.archive h2 { font-family: var(--f-mono); font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: .06em; border-bottom: 1px solid var(--rule); padding-bottom: .4rem; margin: 2rem 0 .75rem; }
.archive ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.archive li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; }
.archive li a { color: var(--ink); }

footer.site { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }

@media (max-width: 52rem) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .side .signup { display: none; }
  .signup-top { display: block; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
