/* markdmills.net — one shared stylesheet for every page */
:root {
  --paper: #f7f2ea;
  --paper-2: #efe7da;
  --ink: #221c18;
  --ink-soft: #5a5049;
  --accent: #99291d;       /* the site's existing brand red */
  --accent-deep: #6e1d14;
  --line: #d9cebe;
  --card: #fffdf9;
  --max: 1080px;
  --read: 720px;
  --radius: 10px;
  --serif-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --serif-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 1.125rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
h1, h2, h3, h4 { font-family: var(--serif-display); line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.6rem; font-weight: 600; }
h4 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.read { max-width: var(--read); }
.center { text-align: center; }
.center.read { margin-left: auto; margin-right: auto; }

/* ---------- header ---------- */
.site-header {
  background: var(--ink);
  color: #f3ece2;
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { max-width: 1320px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-family: var(--serif-display); font-size: 1.6rem; font-weight: 600; color: #f3ece2; text-decoration: none; letter-spacing: .02em; white-space: nowrap; flex-shrink: 0; }
.brand:hover { color: #fff; }
.nav-toggle { display: none; }
.nav-button { display: none; cursor: pointer; font-family: var(--sans); font-size: .95rem; border: 1px solid #6b615a; border-radius: 6px; padding: 6px 12px; color: #f3ece2; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 4px 16px; justify-content: flex-end; }
.site-nav a { font-family: var(--sans); font-size: .88rem; color: #e6dccf; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }

@media (max-width: 1000px) {
  .nav-button { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--ink); border-top: 1px solid #3a322c; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 20px 16px; }
  .site-nav a { display: block; font-size: 1.05rem; padding: 10px 0; border-bottom: 1px solid #3a322c; }
}

/* ---------- sections ---------- */
section { padding: 56px 0; }
section.tint { background: var(--paper-2); }
section.dark { background: var(--ink); color: #efe7da; }
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }
.eyebrow { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .6em; font-weight: 600; }
section.dark .eyebrow { color: #e0a79e; }
.lede { font-size: 1.3rem; color: var(--ink-soft); }
section.dark .lede { color: #d7ccbf; }
.rule { width: 64px; height: 3px; background: var(--accent); border: 0; margin: 0 0 1.4em; }
.center .rule { margin-left: auto; margin-right: auto; }

.hero { padding: 64px 0 48px; }
.hero img { border-radius: var(--radius); margin-top: 28px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: .95rem;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 6px; border: 0; cursor: pointer;
}
.btn:hover { background: var(--accent-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn.ghost:hover { background: var(--accent); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2em; }
.center .btn-row { justify-content: center; }

/* ---------- books ---------- */
.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.book-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; }
.book-card img { border-radius: 4px; margin-bottom: 14px; width: 100%; height: 300px; object-fit: contain; background: var(--paper-2); }
.book-card h3 { font-size: 1.4rem; margin-bottom: .2em; }
.book-card .meta { font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); margin-bottom: 1em; flex: 1; }

.book {
  display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start;
  padding: 40px 0; border-top: 1px solid var(--line);
}
.book:first-of-type { border-top: 0; }
.book img { border-radius: 4px; box-shadow: 0 10px 28px rgba(34, 28, 24, .18); }
.book .status { font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 700px) {
  .book { grid-template-columns: 1fr; gap: 20px; }
  .book img { max-width: 220px; }
}

details.more summary { cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: .95rem; color: var(--accent); margin: .4em 0 1em; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: " +"; }
details.more[open] summary::after { content: " −"; }

/* ---------- feature rows (image + text) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 36px 0; }
.feature.flip > :first-child { order: 2; }
.feature img { border-radius: var(--radius); }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 20px; }
  .feature.flip > :first-child { order: 0; }
}
figure { margin: 0; }
figcaption { font-size: .95rem; font-style: italic; color: var(--ink-soft); margin-top: .6em; }

/* ---------- game cards ---------- */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card img { border-radius: 6px; margin-bottom: 14px; }
.card .example { background: var(--paper-2); border-left: 3px solid var(--accent); padding: 12px 14px; font-size: 1rem; margin-top: 1em; }
.card .example p:last-child { margin-bottom: 0; }

.quote { font-family: var(--serif-display); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; font-style: italic; }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.15rem; }
.faq details p { margin-top: .8em; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- newsletter signup ---------- */
.signup-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 560px; margin: 0 auto; }
section.dark .signup-box { background: #2f2721; border-color: #4a3f37; }
.signup { display: grid; gap: 12px; margin-top: 1em; }
.signup input { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
.signup .fine { font-family: var(--sans); font-size: .8rem; color: var(--ink-soft); margin: 0; }
section.dark .signup .fine { color: #bcb0a3; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cfc4b7; padding: 44px 0 28px; font-family: var(--sans); font-size: .9rem; }
.site-footer a { color: #efe7da; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #9d9187; margin-bottom: .9em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45em; }
.copyright { border-top: 1px solid #3a322c; margin-top: 32px; padding-top: 18px; color: #9d9187; }

/* ---------- missing-image placeholder (until real images are added) ---------- */
.img-missing {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 180px; background: repeating-linear-gradient(45deg, #ece3d5, #ece3d5 10px, #e5dac9 10px, #e5dac9 20px);
  border: 1px dashed #b9a88f; border-radius: 6px; color: #7a6a58;
  font-family: var(--sans); font-size: .8rem; padding: 12px; word-break: break-all;
}
.book-card .img-missing, .book .img-missing { aspect-ratio: 2 / 3; }

/* ---------- draft notes: remove every .todo before launch ---------- */
.todo { border: 2px dashed #c9731d; background: #fff4e3; color: #7a4308; font-family: var(--sans); font-size: .9rem; padding: 12px 14px; border-radius: 6px; margin: 1em 0; }
.todo::before { content: "DRAFT NOTE: "; font-weight: 700; }

/* Desktop: brand on top, full menu on its own row so all ten links fit */
.site-nav a { white-space: nowrap; }
@media (min-width: 1001px) {
  .site-header .wrap { flex-direction: column; justify-content: center; gap: 2px; padding-top: 10px; padding-bottom: 8px; }
  .site-nav ul { flex-wrap: wrap; justify-content: center; gap: 2px 22px; }
}

/* ---------- logo in header ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; background: #f3ece2; object-fit: contain; padding: 2px; }

/* ---------- full-width banners ---------- */
.banner { width: 100%; display: block; }
.banner-wrap { background: var(--ink); }

/* ---------- small card icons (Trumpster decks) ---------- */
.card img.icon { width: auto; max-width: 100%; height: 110px; object-fit: contain; margin: 0 auto 14px; border-radius: 6px; }

/* ---------- RSS feed lists ---------- */
.feed-list { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 1.5em 0; }
.feed-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.feed-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feed-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.feed-body h3 { font-size: 1.35rem; margin: 0; }
.feed-body h3 a { color: var(--ink); text-decoration: none; }
.feed-body h3 a:hover { color: var(--accent); }
.feed-date { font-family: var(--sans); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.feed-summary { font-size: 1rem; color: var(--ink-soft); margin: 0; flex: 1; }
.feed-more { font-family: var(--sans); font-weight: 600; font-size: .9rem; margin-top: 6px; }
.feed-body audio { width: 100%; margin-top: 8px; }
.feed-status { font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); padding: 18px 0; }
section.dark .feed-item { background: #2f2721; border-color: #4a3f37; }
section.dark .feed-body h3 a { color: #fff; }
section.dark .feed-summary, section.dark .feed-date { color: #cbbfb2; }

/* The home banner's lettering is too small to read on phones; the hero text below says the same thing */
@media (max-width: 600px) { .banner-wrap { display: none; } }

/* Wide instruction sheet: shown at full height, scroll sideways to read */
.strip { overflow-x: auto; border-radius: 8px; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.strip img { height: min(1115px, 75vh); width: auto; max-width: none; display: block; }
.strip-hint { font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); text-align: right; margin: 8px 0 32px; }

/* Reader reviews */
.review { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.review .stars { color: #b8860b; letter-spacing: 2px; margin: 0; font-size: 1.1rem; }
.review blockquote { margin: 0; font-style: italic; flex: 1; }
.review figcaption { font-family: var(--sans); font-size: .9rem; font-style: normal; color: var(--ink-soft); }
