/* aaronpufal.com */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("/fonts/source-serif.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("/fonts/source-serif-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f2f4f6;
  --surface: #ffffff;
  --ink: #131a22;
  --muted: #4d5b69;
  --rule: #c9d0d8;
  --brass: #80590f;
  --band: #17273a;
  --band-ink: #f2f4f6;
  --band-muted: #b4c0cc;
  --band-brass: #d8a94e;
  --band-rule: #314459;
  --btn-bg: #17273a;
  --btn-ink: #ffffff;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif", Georgia, "Times New Roman", serif;
  --wrap: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f151c;
    --surface: #17202a;
    --ink: #e8ecf0;
    --muted: #a3b0bd;
    --rule: #2c3948;
    --brass: #d8a94e;
    --band: #0a0f15;
    --band-ink: #e8ecf0;
    --band-muted: #a3b0bd;
    --band-brass: #d8a94e;
    --band-rule: #2c3948;
    --btn-bg: #d8a94e;
    --btn-ink: #10161d;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--surface); color: var(--ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-head { background: var(--band); color: var(--band-ink); border-bottom: 1px solid var(--band-rule); }
.site-head .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem; }
.site-name { font-family: var(--sans); font-weight: 800; font-stretch: 75%; font-size: 1.35rem; letter-spacing: .01em; color: var(--band-ink); text-decoration: none; }
.site-name:hover { color: var(--band-brass); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-nav a { font-family: var(--sans); font-weight: 500; font-size: .98rem; color: var(--band-ink); text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--band-brass); color: var(--band-ink); }
.site-head :focus-visible { outline-color: var(--band-brass); }

/* Hero band */
.hero { background: var(--band); color: var(--band-ink); padding: 3.5rem 0 4rem; }
.hero h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 62%;
  font-size: clamp(4rem, 15vw, 11.5rem);
  line-height: .86;
  letter-spacing: -.01em;
  margin: 0 0 1.75rem;
  text-transform: uppercase;
}
.hero .lead { font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.45; max-width: 38rem; margin: 0; color: var(--band-ink); }
.hero .lead a { color: var(--band-ink); text-decoration-color: var(--band-brass); }
.hero .lead a:hover { color: var(--band-brass); }
.hero-facts { list-style: none; margin: 2.5rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--band-rule); display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.25rem 2.5rem; font-family: var(--sans); font-size: .98rem; line-height: 1.4; color: var(--band-muted); }
.hero-facts strong { display: block; color: var(--band-ink); font-weight: 700; font-size: 1.05rem; }

/* Page title band for inner pages */
.page-head { background: var(--band); color: var(--band-ink); padding: 3rem 0 3.25rem; }
.page-head h1 { font-family: var(--sans); font-weight: 800; font-stretch: 68%; font-size: clamp(2.75rem, 8vw, 5.5rem); line-height: .95; margin: 0; text-transform: uppercase; }
.page-head .sub { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.4; margin: 1rem 0 0; max-width: 44rem; color: var(--band-ink); }
.page-head .status { font-family: var(--sans); font-weight: 600; color: var(--band-brass); margin: 0 0 .75rem; font-size: 1rem; }

/* Sections */
main section { padding: 3.5rem 0; border-bottom: 1px solid var(--rule); }
main section:last-of-type { border-bottom: 0; }
h2 { font-family: var(--sans); font-weight: 800; font-stretch: 75%; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.08; margin: 0 0 1.25rem; }
h3 { font-family: var(--sans); font-weight: 700; font-stretch: 85%; font-size: 1.3rem; line-height: 1.2; margin: 2rem 0 .5rem; }
p { margin: 0 0 1.1rem; }
.prose { max-width: 42rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .4rem; }
.muted { color: var(--muted); }
.small { font-size: .95rem; }

/* Book rows */
.book { display: grid; grid-template-columns: minmax(9rem, 15rem) 1fr; gap: 2rem 3rem; align-items: start; }
.book + .book { margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid var(--rule); }
.book h2, .book h3.book-title { font-family: var(--sans); font-weight: 800; font-stretch: 75%; font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.02; margin: 0 0 .35rem; }
.book h3.book-title a { text-decoration: none; }
.book h3.book-title a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.book .subtitle { font-style: italic; font-size: 1.2rem; line-height: 1.35; margin: 0 0 1rem; color: var(--muted); }
.book .status { font-family: var(--sans); font-weight: 700; font-size: .98rem; color: var(--brass); margin: 0 0 .5rem; }
.book .body { max-width: 40rem; }
@media (max-width: 40rem) {
  .book { grid-template-columns: 1fr; }
  .book .cover { max-width: 13rem; }
}

/* Cover: real image or typographic stand-in */
.book > a { text-decoration: none; display: block; }
.cover { aspect-ratio: 2 / 3; width: 100%; background: #17273a; color: #f2f4f6; border: 1px solid #314459; box-shadow: 0 18px 30px -18px rgba(8, 14, 22, .65); display: flex; flex-direction: column; justify-content: space-between; padding: 1.25rem 1.1rem; overflow: hidden; }
.cover.has-img { padding: 0; background: none; border: 0; display: block; }
.cover.has-img img { width: 100%; height: 100%; object-fit: cover; }
.cover .c-title { font-family: var(--sans); font-weight: 800; font-stretch: 62%; text-transform: uppercase; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: .92; color: #f2f4f6; }
.cover .c-sub { font-family: var(--serif); font-style: italic; font-size: .85rem; line-height: 1.3; color: #b4c0cc; margin-top: .6rem; }
.cover .c-author { font-family: var(--sans); font-weight: 600; font-size: .9rem; color: #d8a94e; }
.cover.alt { background: #22262b; border-color: #3c4249; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }
.btn { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.2; padding: .85rem 1.3rem; background: var(--btn-bg); color: var(--btn-ink); text-decoration: none; border: 2px solid var(--btn-bg); border-radius: 2px; cursor: pointer; }
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }

/* Awards */
.awards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 2.5rem; }
.awards li { padding: .9rem 0; border-top: 1px solid var(--rule); font-family: var(--sans); line-height: 1.3; }
.awards strong { display: block; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.awards span { color: var(--muted); font-size: .95rem; }
.awards .result { color: var(--brass); font-weight: 700; }

/* Two column prose layouts */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem 3rem; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }

.portrait { aspect-ratio: 4 / 5; background: var(--surface); border: 1px solid var(--rule); display: flex; align-items: flex-end; padding: 1rem; font-family: var(--sans); font-size: .9rem; color: var(--muted); max-width: 22rem; }
.portrait.has-img { padding: 0; border: 0; display: block; }
.portrait.has-img img { width: 100%; height: 100%; object-fit: cover; }

.names { columns: 2 14rem; column-gap: 2.5rem; list-style: none; padding: 0; margin: 0 0 1.1rem; font-family: var(--sans); font-size: 1.02rem; }
.names li { padding: .3rem 0; break-inside: avoid; }

dl.specs { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.5rem; margin: 0 0 1.1rem; font-family: var(--sans); font-size: 1rem; }
dl.specs dt { color: var(--muted); }
dl.specs dd { margin: 0; color: var(--ink); }

.contact-email { font-family: var(--sans); font-weight: 700; font-size: 1.25rem; margin: 1rem 0 0; min-height: 1.6em; overflow-wrap: anywhere; }

/* Footer */
.site-foot { background: var(--band); color: var(--band-muted); font-family: var(--sans); font-size: .95rem; padding: 2.5rem 0; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-foot a { color: var(--band-ink); text-decoration-color: var(--band-brass); }
.site-foot a:hover { color: var(--band-brass); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-foot :focus-visible { outline-color: var(--band-brass); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
