/* ---------------------------------------------------------------
   Justin Eberhardt — site styles
   Palette lives here at the top. Change these six values and the
   whole site changes with them.
   --------------------------------------------------------------- */
:root{
  --paper:#faf8f4;      /* page ground: warm off-white */
  --paper-2:#f2eee6;    /* slightly deeper panel */
  --ink:#22201c;        /* body text: warm near-black */
  --muted:#6d6659;      /* dates, captions, secondary */
  --rule:#e2dbd0;       /* hairlines */
  --accent:#2c5b60;     /* links: deep blue-green */
  --accent-2:#194247;   /* link hover */
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font:1.125rem/1.72 Georgia,'Iowan Old Style','Times New Roman',serif;
  -webkit-font-smoothing:antialiased;
}
img{display:block;max-width:100%;height:auto}
figure{margin:0}

/* ---- layout ---- */
.wrap{max-width:1080px;margin:0 auto;padding:0 24px}
.wrap > *{max-width:760px}   /* prose stays readable, left edge matches the header */
.wrap-wide{max-width:1080px;margin:0 auto;padding:0 24px}

/* ---- header / nav ---- */
header.site{border-bottom:1px solid var(--rule)}
header.site .wrap-wide{
  display:flex;align-items:baseline;justify-content:space-between;
  gap:24px;padding-top:26px;padding-bottom:22px;
}
.brand{
  font:1.0625rem/1.2 Georgia,serif;color:var(--ink);
  text-decoration:none;letter-spacing:.01em;
}
.brand:hover{color:var(--accent)}
nav.site{display:flex;flex-wrap:wrap;gap:22px;
  font:.9375rem/1 system-ui,-apple-system,'Segoe UI',sans-serif}
nav.site a{color:var(--muted);text-decoration:none}
nav.site a:hover{color:var(--accent)}
nav.site a[aria-current]{color:var(--ink);text-decoration:underline;
  text-underline-offset:5px;text-decoration-thickness:1px}

/* ---- links ---- */
a{color:var(--accent);text-underline-offset:3px;text-decoration-thickness:1px}
a:hover{color:var(--accent-2)}
a:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}

/* ---- headings ---- */
h1,h2,h3{line-height:1.18;font-weight:400;margin:0 0 .5em}
h1{font-size:2.5rem;letter-spacing:-.02em}
h2{font-size:1.625rem;letter-spacing:-.01em}
h3{font-size:1.1875rem}
p{margin:0 0 1.15em}

/* ---- home ---- */
.lede{padding:64px 0 10px;max-width:660px}
.lede h1{font-size:2.75rem;margin-bottom:.35em}
.lede p{font-size:1.1875rem}
.lede .sig{color:var(--muted);font-size:1rem;font-family:system-ui,sans-serif}
.lede .opening{font-size:1.3125rem;line-height:1.6}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.mnxc-mark{width:200px;height:auto}

.band{padding:44px 0;border-top:1px solid var(--rule)}
.band-head{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:6px}
.band-head h2{margin:0}
.band-head a{font:.9375rem/1 system-ui,sans-serif;white-space:nowrap}
.band-note{color:var(--muted);font:1rem/1.6 system-ui,sans-serif;margin:0 0 8px}

/* ---- post lists ---- */
ul.posts{list-style:none;margin:14px 0 0;padding:0}
ul.posts li{
  display:flex;justify-content:space-between;align-items:baseline;gap:24px;
  padding:13px 0;border-bottom:1px solid var(--rule);
}
ul.posts li:last-child{border-bottom:0}
ul.posts a{font-size:1.1875rem;text-decoration:none}
ul.posts a:hover{text-decoration:underline}
ul.posts time{font:.875rem/1.5 system-ui,sans-serif;color:var(--muted);white-space:nowrap}

/* ---- essays ---- */
article.essay{padding:52px 0 20px}
article.essay h1{font-size:2.375rem;margin-bottom:.3em}
article.essay .date{
  font:.875rem/1.5 system-ui,sans-serif;color:var(--muted);
  margin:0 0 34px;letter-spacing:.02em;
}
article.essay p{margin:0 0 1.25em}
article.essay img{margin:32px auto;border-radius:2px}
article.essay .ref{font-size:.9375rem;color:var(--muted);margin-top:2.2em}
article.essay .author{margin-top:2em;color:var(--muted);font-style:italic}
.essay-foot{padding:0 0 56px;font:.9375rem/1 system-ui,sans-serif}

/* ---- canoe page ---- */
.hero{margin:0 0 8px}
.hero.centered{max-width:760px;margin:22px auto 8px}
.hero.centered figcaption{text-align:center}
.hero img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:2px}
figcaption{font:.875rem/1.55 system-ui,sans-serif;color:var(--muted);margin-top:9px}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin:30px 0}
.pair img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:2px}
.spec{
  background:var(--paper-2);border:1px solid var(--rule);border-radius:3px;
  padding:24px 26px;margin:34px 0;
  font:1rem/1.7 system-ui,-apple-system,sans-serif;
}
.spec h3{font-family:Georgia,serif;margin-bottom:.5em}
.spec dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:6px 20px}
.spec dt{color:var(--muted)}
.spec dd{margin:0}
.notice{
  border-left:3px solid var(--accent);padding:4px 0 4px 20px;margin:30px 0;
  color:var(--ink);
}
.notice p:last-child{margin-bottom:0}

/* ---- galleries ---- */
.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;margin:26px 0 10px}
.gallery figure a{display:block}
.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:2px}
.gallery.tall img{aspect-ratio:auto}
.strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:22px}
.strip img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:2px}

/* ---- footer ---- */
footer.site{
  border-top:1px solid var(--rule);margin-top:30px;
  font:.875rem/1.6 system-ui,sans-serif;color:var(--muted);
}
footer.site .wrap-wide{display:flex;justify-content:space-between;gap:20px;
  flex-wrap:wrap;padding-top:24px;padding-bottom:42px}
footer.site a{color:var(--muted)}
footer.site a:hover{color:var(--accent)}
footer.site .links{display:flex;gap:20px}

/* ---- misc ---- */
.skip{position:absolute;left:16px;top:-60px;background:var(--paper);
  padding:10px 14px;border:1px solid var(--rule);z-index:9}
.skip:focus{top:10px}
.draft{
  background:#fff5d6;border:1px solid #e8d08a;border-radius:3px;
  padding:14px 18px;margin:26px 0;font:.9375rem/1.6 system-ui,sans-serif;color:#5c4a12;
}
.draft b{color:#3d3008}

/* ---- responsive ---- */
@media (max-width:760px){
  body{font-size:1.0625rem}
  header.site .wrap-wide{display:block;padding-top:20px}
  nav.site{margin-top:14px;gap:18px}
  .lede{padding:40px 0 6px}
  .lede h1{font-size:2.125rem}
  h1{font-size:2rem}
  article.essay h1{font-size:1.875rem}
  ul.posts li{display:block;padding:12px 0}
  ul.posts time{display:block;margin-top:3px}
  .wrap > *{max-width:none}
  .pair,.gallery{grid-template-columns:1fr 1fr;gap:16px}
  .strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .plainlist{columns:1}
  .band-head{flex-wrap:wrap}
}
@media (max-width:430px){
  .gallery,.pair{grid-template-columns:1fr}
  .strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
