/* Senior Settlement media site, vintage paper style, original design.
   Brand pack 2026-11-21: deep red #9B2822, gold #C88A33, cream #F3E0B8,
   ink #2B2618, on aged paper. The old sage green is gone everywhere. */
:root {
  --paper: #F1E9D6;
  --cream: #E9DFC6;
  --brand: #9B2822;
  --brand-dark: #7A1F1A;
  --brand-light: #F5E4D3;
  --gold: #C88A33;
  --navy: #46536A;
  --ink: #2B2618;
  --muted: #6B6255;
  --line: #C9BC9C;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at center, rgba(255,252,240,0.35) 0%, rgba(255,252,240,0) 55%, rgba(122,94,52,0.12) 100%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.36 0 0 0 0 0.26 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}
a { color: var(--brand-dark); }
a:focus, button:focus, input:focus { outline: 3px solid var(--brand); outline-offset: 2px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.masthead { background: var(--brand); color: #fff; text-align: center; padding: 24px 16px 20px; border-bottom: 4px solid var(--gold); }
.nav { background: var(--brand-dark); }
.nav .wrap { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 6px; padding-bottom: 6px; }
.nav a { color: #fff; text-decoration: none; font-weight: 700; padding: 10px 14px; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { background: #fff; color: var(--brand-dark); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); line-height: 1.25; }
h1 { font-size: 38px; }
h2 { font-size: 30px; border-bottom: 3px solid var(--brand); padding-bottom: 8px; }
h3 { font-size: 24px; }
.lede { font-size: 21px; color: var(--muted); }
.hero { margin: 28px 0; }
.hero img { width: 100%; height: auto; border-radius: 10px; display: block; border: 1px solid var(--line); }
.hero-home img { width: 80%; margin: 0 auto; }
.credit { font-size: 14px; color: var(--muted); margin-top: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; margin: 24px 0; }
.card { background: #FAF4E4; border: 1px solid var(--line); border-radius: 10px; padding: 22px; box-shadow: 0 2px 6px rgba(90, 70, 35, 0.12); }
.card img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; display: block; }
.card h3 { margin-top: 12px; }
.teaser { background: var(--brand-light); border-left: 6px solid var(--brand); padding: 20px 22px; border-radius: 0 10px 10px 0; margin: 28px 0; }
.button { display: inline-block; background: var(--brand); color: #fff; font-weight: 800; text-decoration: none; padding: 14px 22px; border-radius: 8px; font-size: 18px; }
.button:hover { text-decoration: underline; }
article { background: #FAF4E4; border: 1px solid var(--line); border-radius: 10px; padding: 28px; margin: 24px 0; box-shadow: 0 2px 6px rgba(90, 70, 35, 0.12); }
article img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 8px; display: block; margin: 16px 0; }
.rule { border: 0; border-top: 2px solid var(--line); margin: 32px 0; }
footer { background: var(--navy); color: #D5DBEA; margin-top: 48px; padding: 36px 0; }
footer a { color: #fff; }
/* Games shelf, vintage board game marketplace */
.shelf-intro { margin-bottom: 8px; }
.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; margin: 24px 0 8px; }
.game-box { display: block; background: #FAF4E4; border: 1px solid var(--line); border-radius: 10px; padding: 16px 16px 20px; text-decoration: none; color: var(--ink); box-shadow: 0 3px 0 var(--line); }
.game-box:hover { box-shadow: 0 6px 0 var(--line); transform: translateY(-2px); }
.game-box h2, .game-box h3 { margin: 14px 0 4px; font-size: 24px; }
.game-box p { margin: 4px 0; }
.game-box .meta { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.game-box .play { display: inline-block; margin-top: 10px; font-weight: 800; color: var(--brand-dark); border-bottom: 3px solid var(--brand); }
.cover { position: relative; height: 320px; border-radius: 8px; overflow: hidden; border: 4px solid #1B2238; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; padding: 16px 12px; }
.cover::after { content: ""; position: absolute; inset: 8px; border: 2px solid rgba(255,255,255,0.65); border-radius: 4px; pointer-events: none; }
.cover .brand { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; margin: 0; }
.cover .cover-title { font-family: Georgia, "Times New Roman", serif; font-weight: 800; font-size: 30px; line-height: 1.05; margin: 0; }
.cover .cover-tag { font-family: Georgia, serif; font-style: italic; font-size: 14px; margin: 0; }
.cover .cover-foot { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; margin: 0; }
.cover-riddles { background: #2B1B3D; color: #F5D76E; }
.cover-riddles .brand, .cover-riddles .cover-foot { color: #E8C86A; }
.cover-riddles .cover-mark { font-family: Georgia, serif; font-size: 52px; line-height: 1; font-weight: 800; color: #F5D76E; }
.cover-scramble { background: #F3EDDD; color: #1B2238; }
.cover-scramble .brand, .cover-scramble .cover-foot { color: #8C2B2E; }
.tiles { display: flex; gap: 4px; margin: 0; }
.tiles span { display: inline-block; background: #fff; border: 2px solid #1B2238; border-radius: 4px; font-family: Georgia, serif; font-weight: 800; font-size: 20px; line-height: 1; padding: 7px 6px; box-shadow: 2px 2px 0 #1B2238; }
.tiles span:nth-child(odd) { transform: rotate(-4deg); }
.tiles span:nth-child(even) { transform: rotate(3deg); background: #B3282D; color: #fff; border-color: #7A1B1E; }
.cover-rebus { background: #0F5E5A; color: #FFD966; }
.cover-rebus .brand, .cover-rebus .cover-foot { color: #FFE9A8; }
.rebus-row { display: flex; gap: 6px; align-items: center; margin: 0; font-family: Georgia, serif; font-weight: 800; font-size: 16px; }
.rebus-row span { background: #fff; color: #0F5E5A; border-radius: 6px; padding: 6px 8px; border: 2px solid #083B38; }
.rebus-row i { font-style: normal; color: #FFD966; font-size: 20px; }
.cover-trivia { background: #B3282D; color: #fff; }
.cover-trivia .brand, .cover-trivia .cover-foot { color: #FFD9A8; }
.cover-trivia .cover-mark { font-family: Georgia, serif; font-size: 56px; line-height: 1; font-weight: 800; background: #14213D; color: #FFD966; width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 4px solid #FFD966; }
.cover-states { background: #14213D; color: #FFD966; }
.cover-states .brand, .cover-states .cover-foot { color: #9FB6D8; }
.cover-states .stars { font-size: 22px; letter-spacing: 0.2em; margin: 0; }
.cover-states .abbr { font-family: Georgia, serif; font-weight: 800; font-size: 18px; letter-spacing: 0.12em; color: #fff; margin: 0; }
.cover-odd { background: #FFF6E5; color: #1B2238; }
.cover-odd .brand, .cover-odd .cover-foot { color: #8C2B2E; }
.cover-insurance { background: #1F4D2E; color: #FFD966; }
.cover-insurance .brand, .cover-insurance .cover-foot { color: #BFE3C6; }
.cover-insurance .cover-mark { font-family: Georgia, serif; font-size: 56px; line-height: 1; font-weight: 800; color: #FFD966; }
.dots { display: flex; gap: 10px; margin: 0; align-items: center; }
.dots span { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #1B2238; }
.dots .dot-red { background: #D62828; }
.dots .dot-yellow { background: #FCBF49; }
.dots .dot-blue { background: #2A6F97; }
.dots .dot-square { background: #2A9D8F; border-radius: 6px; transform: rotate(8deg); }
.shelf-note { font-size: 15px; color: var(--muted); margin: 4px 0 0; }
.back-shelf { font-size: 15px; }

/* Games */
.game { background: #FAF4E4; border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin: 24px 0; box-shadow: 0 2px 6px rgba(90, 70, 35, 0.12); }
.game ol, .game ul { padding-left: 22px; }
.game li { margin-bottom: 18px; }
.answer { display: none; background: var(--brand-light); border-radius: 8px; padding: 12px 14px; margin-top: 8px; }
.answer.show { display: block; }
button { font-size: 17px; font-weight: 700; padding: 10px 16px; border-radius: 8px; border: 2px solid var(--brand-dark); background: #fff; color: var(--brand-dark); cursor: pointer; margin-top: 8px; }
button:hover { background: var(--brand-light); }
input[type="text"] { font-size: 18px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 8px; width: 100%; max-width: 360px; }
.result { font-weight: 700; margin-top: 8px; }
.result.good { color: var(--brand-dark); }
.result.bad { color: var(--brand); }
.score { font-size: 20px; font-weight: 800; color: var(--navy); }
.quiz-q { margin-bottom: 22px; border: 0; padding: 0; }
.quiz-q legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.quiz-q label { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; cursor: pointer; }
@media (max-width: 640px) {
  .masthead .site-logo { width: 170px; }
  h1 { font-size: 30px; }
  h2 { font-size: 25px; }
  body { font-size: 17px; }
}

/* Puzzles, vintage photo jigsaws */
.puzzle-cover { position: relative; height: 240px; border-radius: 8px; overflow: hidden; border: 4px solid #1B2238; background: #1B2238; }
.puzzle-cover img { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - 54px); object-fit: cover; display: block; }
.puzzle-title { position: absolute; bottom: 0; left: 0; right: 0; margin: 0; padding: 10px 12px; background: rgba(27,34,56,0.88); color: #fff; font-family: Georgia, "Times New Roman", serif; font-weight: 800; font-size: 26px; line-height: 1.1; }
.puzzle-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0; }
.puzzle-controls button:disabled { opacity: 0.45; cursor: default; }
#preview img { width: min(360px, 100%); height: auto; border-radius: 8px; border: 1px solid var(--line); display: block; margin-top: 12px; }
.play-area { position: relative; background: #EFE7D3; border: 1px solid var(--line); border-radius: 10px; padding: 20px 16px; margin-top: 16px; }
.board { position: relative; width: min(600px, 100%); aspect-ratio: 3 / 2; margin: 0 auto; background: #E8DFC8; border: 3px solid #1B2238; border-radius: 6px; }
.tray-label { text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin: 20px 0 8px; }
.tray { position: relative; height: 240px; background: var(--brand-dark); border: 3px solid #1B2238; border-radius: 6px; }
.jigsaw-piece { position: absolute; touch-action: none; cursor: grab; background-repeat: no-repeat; filter: drop-shadow(2px 3px 3px rgba(59, 54, 44, 0.4)); }
.jigsaw-piece.dragging { cursor: grabbing; opacity: 0.92; filter: drop-shadow(4px 8px 8px rgba(59, 54, 44, 0.5)); }
.jigsaw-piece.locked { cursor: default; filter: drop-shadow(0 0 2px #C88A33) drop-shadow(0 0 8px rgba(200, 138, 51, 0.6)); }
.jigsaw-piece:focus-visible { outline: none; filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 10px #9B2822); }
.hero img, .card img, article img { filter: sepia(0.18) saturate(0.85) contrast(0.97); }

.recipe-meta { color: var(--muted); font-size: 15px; }
.recipe-card img { height: 220px; }
.recipe-photo { border-radius: 8px; margin: 12px 0; }
article h4 { margin: 18px 0 6px; }
article ul, article ol { margin: 6px 0 12px; }

/* Reader's Digest style homepage sections: kickers, Most Popular, jokes */
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); margin: 0 0 6px; }
.popular { list-style: none; counter-reset: pop; padding: 0; margin: 24px 0; }
.popular li { counter-increment: pop; position: relative; padding: 12px 0 12px 56px; border-bottom: 1px solid var(--line); font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 700; }
.popular li::before { content: counter(pop); position: absolute; left: 0; top: 6px; width: 44px; text-align: center; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 800; color: var(--brand); }
.numbered-list li { margin-bottom: 14px; }
.joke p { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 19px; }
/* Global overflow guards: no image or element may widen the page */
img { max-width: 100%; height: auto; }
html, body { overflow-x: clip; }

/* Logo lockup in the masthead and footer */
.masthead .site-logo { width: 230px; height: auto; display: block; margin: 0 auto; }
.footer-logo { width: 120px; height: auto; }
/* Skip link, visible on keyboard focus only */
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: var(--brand-dark); padding: 10px 16px; font-weight: 800; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
/* Leading photos for homepage sections */
.section-photo { width: 100%; max-height: 300px; object-fit: cover; border-radius: 10px; display: block; margin: 16px 0; border: 1px solid var(--line); }

/* Photo credits align with their image's left edge, never outside it. */
.hero-home .credit { width: 80%; margin: 8px auto 0; }
#photoCredit { margin: 8px auto 0; }
