/* The Leisure Journal — "Relaxed Sunday" visual.
   Airy serif editorial, soft flat panels, muted sage/slate, hairline rules, sharp corners. */

:root {
  --bg: #f7f4ef;
  --panel: #fdfcf9;
  --ink: #374151;
  --slate: #6b7280;
  --sage: #8a9a83;
  --hair: #e2ddd3;
  --hair-strong: #cfc9bd;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.72;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hair-strong); }
a:hover { color: var(--slate); border-bottom-color: var(--slate); }

/* ---- masthead ---- */
.masthead {
  background: var(--panel);
  border-bottom: 1px solid var(--hair-strong);
  padding: 26px 0 22px;
}
.masthead-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; border-bottom: none; }
.brand-seal {
  width: 46px; height: 46px; flex: 0 0 46px;
  border: 1px solid var(--slate);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--slate); line-height: 1;
}
.brand-words { display: flex; flex-direction: column; }
.brand-title { font-size: 24px; letter-spacing: .2px; line-height: 1.1; }
.brand-sub { font-size: 12px; color: var(--slate); letter-spacing: 1.6px; text-transform: uppercase; font-family: "Segoe UI", Arial, sans-serif; margin-top: 3px; }
.main-nav { display: flex; gap: 26px; font-family: "Segoe UI", Arial, sans-serif; }
.main-nav a { font-size: 14px; letter-spacing: .3px; color: var(--slate); border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--sage); }

/* ---- opener ---- */
.opener { padding: 54px 0 40px; border-bottom: 1px solid var(--hair); }
.opener-kicker { font-family: "Segoe UI", Arial, sans-serif; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--sage); margin-bottom: 16px; }
.opener h1 { font-size: 40px; line-height: 1.16; font-weight: normal; max-width: 760px; }
.opener-lede { max-width: 620px; margin-top: 16px; color: var(--ink); font-size: 19px; font-style: italic; }

/* ---- scene rail ---- */
.rail { padding: 26px 0; border-bottom: 1px solid var(--hair); }
.rail-label { font-family: "Segoe UI", Arial, sans-serif; font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; }
.rail-track { display: flex; flex-wrap: wrap; gap: 10px; }
.scene-pill {
  font-family: "Segoe UI", Arial, sans-serif; font-size: 13px; color: var(--ink);
  border: 1px solid var(--hair-strong); background: var(--panel);
  padding: 7px 14px; display: inline-flex; align-items: center; gap: 8px;
}
.scene-pill b { font-weight: 600; }
.scene-pill .n { color: var(--slate); font-variant-numeric: tabular-nums; font-size: 12px; }
.scene-pill:hover { border-color: var(--sage); color: var(--slate); }

/* ---- roster (checklist index) ---- */
.roster { padding: 12px 0 46px; }
.roster-scene { margin-top: 34px; }
.roster-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px; }
.roster-head h2 { font-size: 24px; font-weight: normal; }
.roster-head .all { font-family: "Segoe UI", Arial, sans-serif; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--slate); }
.roster-row {
  display: grid; grid-template-columns: 30px 1fr 190px 22px; gap: 16px; align-items: start;
  padding: 18px 6px; border-bottom: 1px solid var(--hair); color: var(--ink); border-left: 2px solid transparent;
}
.roster-row:hover { background: var(--panel); border-left-color: var(--sage); color: var(--ink); }
.row-no { font-family: "Segoe UI", Arial, sans-serif; font-size: 13px; color: var(--slate); font-variant-numeric: tabular-nums; padding-top: 3px; }
.row-main { display: flex; flex-direction: column; gap: 5px; }
.row-scene { font-family: "Segoe UI", Arial, sans-serif; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--sage); }
.row-title { font-size: 19px; line-height: 1.3; }
.row-note { color: var(--slate); font-size: 14px; font-style: italic; }
.row-facts { display: flex; flex-direction: column; gap: 6px; font-family: "Segoe UI", Arial, sans-serif; font-size: 12px; padding-top: 3px; }
.row-facts .k { color: var(--slate); text-transform: uppercase; letter-spacing: .8px; font-size: 10px; display: block; }
.row-facts .v { color: var(--ink); }
.row-arrow { font-family: "Segoe UI", Arial, sans-serif; color: var(--slate); padding-top: 3px; }

/* ---- page open ---- */
.page-open { padding: 42px 0 20px; }
.crumb { font-family: "Segoe UI", Arial, sans-serif; font-size: 12px; letter-spacing: .5px; color: var(--slate); margin-bottom: 12px; }
.crumb a { color: var(--slate); border-bottom-color: var(--hair-strong); }
.page-open h1 { font-size: 36px; line-height: 1.18; font-weight: normal; max-width: 780px; }
.page-open .lede { color: var(--slate); margin-top: 12px; font-style: italic; max-width: 640px; }

/* ---- pastime card (fact card, top of entry) ---- */
.pastime-card { background: var(--panel); border: 1px solid var(--hair-strong); border-top: 3px solid var(--sage); margin: 12px 0 34px; }
.card-cap { display: flex; align-items: baseline; justify-content: space-between; padding: 13px 20px; border-bottom: 1px solid var(--hair); }
.card-cap .cap-name { font-family: "Segoe UI", Arial, sans-serif; font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--slate); }
.card-cap .cap-scene { font-family: "Segoe UI", Arial, sans-serif; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--sage); }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact-cell { padding: 16px 20px; border-bottom: 1px solid var(--hair); border-right: 1px solid var(--hair); }
.fact-cell:nth-child(3n) { border-right: none; }
.fact-cell:nth-last-child(-n+3) { border-bottom: none; }
.fact-k { display: block; font-family: "Segoe UI", Arial, sans-serif; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--sage); margin-bottom: 6px; }
.fact-v { font-size: 16px; color: var(--ink); }
.fact-v ul { list-style: none; }
.fact-v li { padding: 2px 0; }

/* ---- passage ---- */
.passage { max-width: 720px; padding: 0 0 30px; }
.passage .sec { padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--hair); }
.passage .sec:last-child { border-bottom: none; }
.passage h2 { font-size: 23px; font-weight: normal; margin-bottom: 14px; display: flex; align-items: baseline; gap: 12px; }
.sec-num { font-family: "Segoe UI", Arial, sans-serif; font-size: 13px; color: var(--sage); font-variant-numeric: tabular-nums; }
.passage p { margin-bottom: 14px; }
.passage p:last-child { margin-bottom: 0; }
.related { margin-top: 4px; }
.related-list { list-style: none; }
.related-list li { padding: 10px 0; border-bottom: 1px solid var(--hair); }
.related-list li:last-child { border-bottom: none; }

/* ---- article layout ---- */
.article { padding-bottom: 40px; }

/* ---- footer ---- */
.site-foot { background: var(--panel); border-top: 1px solid var(--hair-strong); margin-top: 20px; padding: 34px 0; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-brand { flex: 1 1 340px; }
.foot-brand .foot-name { font-size: 20px; }
.foot-brand p { color: var(--slate); font-size: 14px; margin-top: 8px; font-style: italic; }
.foot-nav { display: flex; gap: 20px; font-family: "Segoe UI", Arial, sans-serif; align-items: flex-start; }
.foot-nav a { font-size: 13px; color: var(--slate); border-bottom: none; }
.foot-nav a:hover { color: var(--ink); }
.copyline { flex: 1 1 100%; font-family: "Segoe UI", Arial, sans-serif; font-size: 12px; color: var(--slate); margin-top: 12px; border-top: 1px solid var(--hair); padding-top: 14px; }

/* ---- legal prose ---- */
.legal-body { max-width: 720px; padding-bottom: 40px; }
.legal-body h2 { font-size: 20px; font-weight: normal; margin: 22px 0 10px; }
.legal-body p { margin-bottom: 14px; }

@media (max-width: 820px) {
  .opener h1 { font-size: 32px; }
  .roster-row { grid-template-columns: 26px 1fr 22px; }
  .row-facts { display: none; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .fact-cell:nth-child(3n) { border-right: 1px solid var(--hair); }
  .fact-cell:nth-child(2n) { border-right: none; }
  .fact-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--hair); }
  .fact-cell:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 560px) {
  .masthead-inner { flex-direction: column; align-items: flex-start; }
  .opener h1 { font-size: 27px; }
  .page-open h1 { font-size: 28px; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact-cell { border-right: none !important; }
  .roster-row { gap: 10px; }
}
