/* joedelfgauwcontent.com — "The Notebook" editorial theme.
   Deliberately its own design system: warm paper, Fraunces + Newsreader,
   madder-red accent. Shares nothing with joedelfgauw.com's Authority theme. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&display=swap');

:root {
  --paper: #f8f4eb;
  --paper-deep: #f0eadb;
  --card: #fffdf7;
  --ink: #23201a;
  --ink-soft: #6b6354;
  --ink-faint: #9c9384;
  --line: #ddd2bd;
  --line-soft: #e9e1d0;
  --accent: #8c3220;
  --accent-deep: #6c2414;
  --shell: 1000px;
  --measure: 680px;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Newsreader', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.72;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 50% -8%, #fffef9 0%, transparent 60%),
    var(--paper);
}

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }
.measure { max-width: var(--measure); margin: 0 auto; }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(140,50,32,.4); transition: color .15s ease, text-decoration-color .15s ease; }
a:hover { color: var(--accent-deep); text-decoration-color: currentColor; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: 3.2rem; margin: 0 0 .35em; }
h2 { font-size: 1.9rem; margin: 1.7em 0 .5em; }
h3 { font-size: 1.25rem; margin: 1.5em 0 .4em; }
p { margin: 0 0 1.15em; }

em, .it { font-family: var(--display); font-style: italic; font-weight: 500; }

/* Small-caps label used everywhere (section markers, metas) */
.smallcaps {
  display: block;
  font-family: var(--body); font-size: .74rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}

/* ============ Masthead — classic ruled newspaper top ============ */
.masthead { border-bottom: 3px double var(--line); background: transparent; }
.masthead .shell {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 24px; padding-top: 26px; padding-bottom: 18px;
}
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: -.01em; color: var(--ink); text-decoration: none;
}
.wordmark:hover { color: var(--ink); text-decoration: none; }
.wordmark .wm-amp { font-style: italic; font-weight: 400; color: var(--accent); }
.m-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.m-nav a {
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.m-nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.m-nav a.is-here { color: var(--accent); border-bottom-color: var(--accent); }

/* Thin dateline strip under the masthead */
.dateline {
  border-bottom: 1px solid var(--line-soft);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
}
.dateline .shell { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }

/* ============ Front page ============ */
.front-head { text-align: center; padding: 84px 0 64px; }
.front-head .smallcaps { margin-bottom: 22px; }
.front-head .smallcaps::before, .front-head .smallcaps::after { content: " ~ "; color: var(--line); }
.front-head h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); max-width: 18ch; margin: 0 auto .3em; }
.front-head h1 .it { color: var(--accent); }
.front-head .lead {
  font-size: 1.22rem; color: var(--ink-soft); max-width: 58ch; margin: 0 auto;
  line-height: 1.65;
}
.front-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* Buttons — square-cornered, engraved; nothing like the glossy indigo pills */
.btn-ink, .btn-plain {
  display: inline-block; padding: 13px 26px; font-family: var(--body);
  font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-ink { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-ink:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; text-decoration: none; }
.btn-plain { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-plain:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }

/* Section divider — centered small caps between hairlines */
.divider { display: flex; align-items: center; gap: 20px; margin: 0 0 44px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.divider .smallcaps { color: var(--ink-faint); }

.section { padding: 72px 0; }
.section + .section { padding-top: 0; }

/* ============ Colophon (fact sheet) — index-card table ============ */
.colophon {
  border: 1px solid var(--line); border-radius: 3px; background: var(--card);
  box-shadow: 0 1px 0 var(--line-soft), 0 14px 34px rgba(90,74,48,.07);
}
.colophon-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 20px;
  padding: 17px 26px; border-top: 1px solid var(--line-soft);
}
.colophon-row:first-child { border-top: 0; }
.colophon-row .k {
  font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-faint); padding-top: 5px;
}
.colophon-row .v { font-size: 1.05rem; }

/* ============ Contents (article list) — magazine TOC ============ */
.toc { border-top: 1px solid var(--line); }
.toc-item {
  display: block; text-decoration: none; color: var(--ink);
  padding: 30px 4px 28px; border-bottom: 1px solid var(--line);
}
.toc-item:hover { text-decoration: none; color: var(--ink); background: linear-gradient(0deg, rgba(140,50,32,.035), rgba(140,50,32,.035)); }
.toc-top { display: flex; align-items: baseline; gap: 16px; }
.toc-no { font-family: var(--display); font-style: italic; font-size: 1rem; color: var(--accent); flex: none; width: 34px; }
.toc-cat { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }
.toc-title {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  line-height: 1.12; margin: 8px 0 6px; padding-left: 50px;
  transition: color .15s ease;
}
.toc-item:hover .toc-title { color: var(--accent-deep); }
.toc-sub { color: var(--ink-soft); font-size: 1.02rem; padding-left: 50px; max-width: 62ch; }
.toc-item .toc-go { display: block; padding-left: 50px; margin-top: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }

/* ============ Note (prose section) ============ */
.note-prose { max-width: 62ch; margin: 0 auto; font-size: 1.13rem; }
.note-prose p { margin-bottom: 1.2em; }

/* ============ Pull-quote band ============ */
.quotecard { padding: 78px 0; }
.quotecard .inner {
  max-width: 780px; margin: 0 auto; text-align: center;
  border-top: 3px double var(--line); border-bottom: 3px double var(--line);
  padding: 52px 20px;
}
.quotecard blockquote {
  margin: 0; font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3.6vw, 2.3rem); line-height: 1.3; color: var(--ink);
}
.quotecard blockquote .hi { color: var(--accent); }
.quotecard .who { margin-top: 20px; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }

/* ============ Box grid (profiles / contact methods) ============ */
.box-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.box-grid.two { grid-template-columns: repeat(2, 1fr); }
.box {
  display: block; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 3px; background: var(--card);
  padding: 24px 26px 26px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.box:hover { text-decoration: none; color: var(--ink); border-color: var(--accent); box-shadow: 0 10px 26px rgba(90,74,48,.1); }
.box .k { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.box .v { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.15; }
.box .sub { color: var(--ink-soft); font-size: .95rem; margin-top: 6px; }

/* ============ End matter / CTA ============ */
.endmatter { text-align: center; padding: 84px 0 96px; }
.endmatter h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); margin: 0 0 .4em; }
.endmatter h2 .it { color: var(--accent); }
.endmatter p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 30px; }

/* ============ Footer — single centered colophon ============ */
.foot { border-top: 3px double var(--line); background: var(--paper-deep); padding: 44px 0 40px; text-align: center; }
.foot .wordmark { font-size: 1.25rem; }
.foot-links { display: flex; justify-content: center; gap: 12px 28px; flex-wrap: wrap; margin: 18px 0 22px; padding: 0; list-style: none; }
.foot-links a {
  font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
}
.foot-links a:hover { color: var(--accent); }
.foot .fine { font-size: .85rem; color: var(--ink-faint); margin: 0; }

/* ============ Article pages ============ */
.crumbline { font-size: .82rem; color: var(--ink-faint); padding: 20px 0 0; }
.crumbline a { color: var(--ink-faint); text-decoration: none; }
.crumbline a:hover { color: var(--accent); }

.paper-head { text-align: center; padding: 64px 0 52px; border-bottom: 1px solid var(--line-soft); margin-bottom: 60px; }
.paper-head .smallcaps { margin-bottom: 18px; }
.paper-head .smallcaps::before, .paper-head .smallcaps::after { content: " ~ "; color: var(--line); }
.paper-head h1 { font-size: clamp(2.2rem, 5.6vw, 3.6rem); max-width: 22ch; margin: 0 auto .35em; }
.paper-head .lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 56ch; margin: 0 auto; line-height: 1.65; }

.paper { max-width: var(--measure); margin: 0 auto; padding: 0 28px 20px; }
.paper .byline {
  text-align: center; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 44px;
}
.paper .byline::after { content: ""; display: block; width: 44px; height: 2px; background: var(--accent); margin: 18px auto 0; }
.paper p, .paper li { font-size: 1.13rem; }
.paper ul { padding-left: 1.2em; }
.paper li { margin-bottom: .5em; }
.paper h2 { font-size: 1.75rem; }

/* Drop cap on the opening paragraph */
.paper .opener::first-letter {
  font-family: var(--display); font-weight: 600; float: left;
  font-size: 4.4em; line-height: .82; padding: .06em .12em 0 0; color: var(--accent);
}

/* In-article pull line */
.paper .pull {
  margin: 40px 0; text-align: center; font-family: var(--display); font-style: italic;
  font-weight: 500; font-size: 1.55rem; line-height: 1.35; color: var(--ink);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 12px;
}

/* Next read */
.nextlink {
  display: block; margin: 56px 0 10px; padding: 24px 28px; text-decoration: none;
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 3px;
  background: var(--card); color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.nextlink:hover { text-decoration: none; color: var(--ink); border-color: var(--accent); box-shadow: 0 10px 26px rgba(90,74,48,.1); }
.nextlink .k { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }
.nextlink .t { display: block; margin-top: 8px; font-family: var(--display); font-weight: 600; font-size: 1.35rem; }
.nextlink .t::after { content: " →"; color: var(--accent); }

/* ============ Reveal — gentle fade-up, scroll-sweep driven ============ */
html.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .rv { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .box-grid, .box-grid.two { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17.5px; }
  .shell { padding: 0 20px; }
  .masthead .shell { justify-content: center; text-align: center; }
  .m-nav { justify-content: center; gap: 18px; }
  .dateline .shell { justify-content: center; }
  .front-head { padding: 56px 0 44px; }
  .section { padding: 52px 0; }
  .colophon-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 20px; }
  .toc-title, .toc-sub, .toc-item .toc-go { padding-left: 0; }
  .box-grid, .box-grid.two { grid-template-columns: 1fr; }
  .quotecard { padding: 52px 0; }
  .paper-head { padding: 44px 0 38px; margin-bottom: 42px; }
  .paper { padding: 0 20px 12px; }
  .endmatter { padding: 60px 0 68px; }
}
