/* Senior Moments Club: homepage redesign prototype.
   Loaded after style.css. Forest green, gold and cream; sizes follow the approved reference image. */

:root {
  --forest: #17472b;
  --forest-dark: #0f3520;
  --forest-nav: #14502b;
  --gold: #c8a02a;
  --gold-soft: #e6d8b0;
  --cream: #fdf8ea;
  --cream-deep: #f7edd2;
  --ink: #2c2a25;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* existing page palette, remapped so every older page (stories, forms, privacy...) takes the new look */
  --ivory: #fcf8ec;
  --paper: #fffdf5;
  --slate: var(--forest);
  --slate-soft: #3f5f49;
  --coral: var(--gold);
  --coral-dark: var(--forest);
  --text: var(--ink);
  --muted: #5c5a4f;
  --line: var(--gold-soft);
}

body { background: var(--ivory); font-family: var(--serif); color: var(--ink); }
h1, h2, h3, .tagline, .byline, .src, .more, .button, button.button { font-family: var(--serif); }
h2 { border-bottom-color: var(--gold); }
a { text-decoration-color: var(--gold); }
.button { background: var(--forest); border-radius: 10px; }
.button:hover { background: var(--forest-dark); }
.button-quiet { background: transparent; color: var(--forest); border-color: var(--forest); }
.button-quiet:hover { background: var(--forest); color: #fff; }
.skip { background: var(--forest); }

/* ---------- Header ---------- */
.club-header { background: linear-gradient(180deg, #fdf8e8 0%, #f8efd3 100%); border-bottom: 0; }
.club-head {
  position: relative; display: flex; align-items: center; gap: 1.6rem;
  max-width: 1400px; margin: 0 auto; padding: .8rem 2rem; min-height: 100px; overflow: hidden;
}
.club-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--forest); flex: none; }
.club-brand .ic-sprig { width: 92px; height: 79px; flex: none; }
.club-name { position: relative; display: block; font-size: 3rem; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; padding-bottom: .5rem; }
.club-name .ic-swoosh { position: absolute; left: 0; bottom: 0; width: 100%; height: .3em; }
.club-tag { max-width: 22rem; margin: 0; padding-left: 1.6rem; border-left: 1px solid var(--gold-soft); font-style: italic; font-size: 1.3rem; line-height: 1.5; color: #3a3830; position: relative; z-index: 1; }
.club-art {
  position: absolute; right: 0; bottom: 0; height: 100%; width: auto; max-width: 42%; object-fit: cover; object-position: right bottom;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 35%); mask-image: linear-gradient(to right, transparent 0, #000 35%);
  pointer-events: none;
}

/* ---------- Navigation bar ---------- */
.club-nav { background: var(--forest-nav); border-top: 1px solid #0c3b20; border-bottom: 3px solid #0c3b20; }
.club-nav ul { list-style: none; margin: 0 auto; padding: 0; max-width: 1400px; display: flex; flex-wrap: wrap; justify-content: center; }
.club-nav a {
  display: flex; align-items: center; gap: .5rem; min-height: 48px; padding: .6rem 1.9rem; position: relative;
  color: #fdf3d6; font-weight: 700; font-size: 1.12rem; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.club-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.club-nav a.current { border-bottom-color: var(--gold); color: #fff; }
.club-nav a:focus-visible, .club-footer a:focus-visible { outline: 3px solid #fff; outline-offset: -4px; border-radius: 4px; }
.ic { width: 1.35em; height: 1.35em; flex: none; }
.club-nav .ic-home { color: #f3d98a; }

/* ---------- Page frame ---------- */
.club-page { max-width: 1240px; margin: 0 auto; padding: 1.4rem 1.25rem 2.6rem; }
.club-page.club-narrow { max-width: 760px; }
.club-page .card.page { margin-top: 0; }

/* ---------- Back in the Day panel ---------- */
.share {
  display: grid; grid-template-columns: 260px 1fr; gap: 0; align-items: center;
  background: linear-gradient(135deg, #fffcf0 0%, #f9f0d8 100%); border: 1px solid var(--gold-soft); border-radius: 16px;
  padding: 1.1rem 1.6rem 1.2rem 1.4rem; margin-bottom: 2.4rem; box-shadow: 0 1px 3px rgba(80, 60, 10, .08);
}
.share-art img { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto; }   /* vector artwork with its own transparent background: no fade mask needed */
.share-main { border-left: 1px solid #cdbf93; padding-left: 2.2rem; margin-left: 1.2rem; min-width: 0; }
.share-main h1 { position: relative; display: inline-block; margin: 0 0 .5rem; padding-bottom: .55rem; font-size: 3rem; line-height: 1.1; color: var(--forest); }
.share-main h1 .ic-swoosh { position: absolute; left: 0; bottom: 0; width: 100%; height: .3em; }
.share-lead { margin: 0 0 1rem; font-style: italic; font-size: 1.2rem; line-height: 1.45; color: #2f2d27; }
.share-label { display: block; margin: 0 0 .5rem; font-weight: 700; font-size: 1.45rem; color: #1f1d18; }
.share textarea {
  display: block; width: 100%; min-height: 6.4rem; resize: vertical; padding: .85rem 1rem;
  font: 1.15rem/1.5 var(--sans); color: var(--ink); background: #fff; border: 1px solid #8a97ad; border-radius: 10px;
}
.share textarea::placeholder { color: #55524a; opacity: 1; }
.share textarea:focus-visible, .share-email input:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.share [aria-invalid="true"] { border: 2px solid #a1301f; }
.share-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1.6rem; align-items: start; margin-top: .6rem; }
.share-counts { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem 1rem; font-size: 1rem; color: #3a3830; }
.share-count.near { color: #8a2a1a; font-weight: 700; }
.share-hint { font-style: italic; }
.share-btn {
  align-self: start; min-height: 56px; padding: .8rem 2.1rem; font-size: 1.35rem; font-weight: 700; color: #fdf3d6; white-space: nowrap;
  background: linear-gradient(180deg, #1d5a35 0%, #123f25 100%); border: 1px solid #0c3320; border-radius: 10px; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.share-btn:hover { background: linear-gradient(180deg, #17482b 0%, #0c321c 100%); color: #fff; }
.share-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.share-email { margin-top: .9rem; max-width: 30rem; }
.share-email label { display: block; font-weight: 700; font-size: 1.1rem; margin-bottom: .25rem; }
.share-email input { width: 100%; font: 1.1rem var(--sans); padding: .7rem .9rem; min-height: 48px; background: #fff; border: 1px solid #8a97ad; border-radius: 10px; }
.share-email-help { margin: .3rem 0 0; font-size: .95rem; color: #4a483e; }
.share-note { display: flex; align-items: center; gap: .7rem; margin: .9rem 0 0; font-style: italic; font-size: 1rem; color: #3a3830; }
.share-note .ic { width: 30px; height: 30px; color: #6b6a5e; }
.share .alert { margin: 0 0 1rem; font-family: var(--sans); }

/* ---------- Section headings ---------- */
.memories, .around { border-top: 2px solid var(--gold); padding-top: 1.1rem; margin-bottom: 2rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.memories h2, .around h2 { margin: 0; padding: 0; border: 0; font-size: 2.3rem; line-height: 1.2; color: var(--forest); }
.around h2 { margin-bottom: 1.2rem; }
.view-all { font-weight: 700; font-size: 1.15rem; color: var(--forest); text-decoration: none; padding: .5rem 0; }
.view-all:hover { text-decoration: underline; text-decoration-color: var(--gold); }

/* ---------- Memory cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.7rem; }
.card-memory { display: flex; flex-direction: column; background: #fffcf1; border: 1px solid var(--gold-soft); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 6px rgba(80, 60, 10, .1); }
.card-photo { display: block; aspect-ratio: 2 / 1; background: linear-gradient(135deg, #f1e7c8, #e5d8ac); overflow: hidden; }
.card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-photo-empty { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.card-photo-empty .ic-sprig { width: 84px; height: 72px; opacity: .55; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: .9rem 1.2rem 1rem; }
.card-body h3 { margin: 0 0 .35rem; font-size: 1.55rem; line-height: 1.25; color: var(--forest);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.card-excerpt { margin: 0 0 .9rem; font-size: 1.1rem; line-height: 1.5; color: #2c2a25; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.read-more { font-weight: 700; font-size: 1.1rem; color: var(--forest); padding: .5rem 0; min-height: 44px; display: inline-flex; align-items: center; }
.card-smiles { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.card-smiles .ic { width: 30px; height: 30px; color: var(--gold); }
.card-smiles:hover span { text-decoration: underline; }

/* ---------- Around the Web ---------- */
.around-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.around-panel { background: #fffcf1; border: 1px solid var(--gold-soft); border-radius: 12px; padding: 1rem 1.3rem 1.2rem; box-shadow: 0 1px 4px rgba(80, 60, 10, .08); }
.around-panel h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem; font-size: 1.5rem; color: var(--forest); }
.around-panel h3 .ic { width: 32px; height: 32px; color: var(--forest); }
.around-panel ul { margin: 0; padding-left: 1.15rem; }
.around-panel li { margin: 0 0 .7rem; font-size: 1.05rem; line-height: 1.4; }
.around-panel li::marker { color: var(--forest); }
.around-panel a { color: var(--ink); text-decoration: none; }
.around-panel a:hover { color: var(--forest); text-decoration: underline; text-decoration-color: var(--gold); }
.around-panel .muted { margin: 0; }

/* ---------- Footer ---------- */
.club-footer { background: var(--forest-nav); border-top: 3px solid #0c3b20; color: #fdf3d6; padding: 0; text-align: left; }
.club-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; max-width: 1400px; margin: 0 auto; padding: 1.1rem 2rem .6rem; }
.club-footer a { color: #fdf3d6; }
.foot-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.4rem; text-decoration: none; }
.foot-brand .ic-sprig { width: 44px; height: 38px; filter: brightness(1.9) saturate(.9); }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.foot-nav li + li { border-left: 1px solid rgba(253, 243, 214, .55); }
.foot-nav a { display: inline-block; padding: .55rem 1.3rem; text-decoration: none; font-size: 1rem; }
.foot-nav a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.foot-copy { margin: 0; font-size: 1rem; }
.club-footer .foot-small { max-width: 1400px; margin: 0 auto; padding: 0 2rem 1.1rem; font-size: .88rem; line-height: 1.5; color: #e8dfbf; }
.club-footer .foot-small a { color: #fdf3d6; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .around-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .club-art { max-width: 32%; }
  .club-name { font-size: 2.5rem; }
  .club-nav a { padding: .6rem 1.2rem; }
}
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .club-art { display: none; }
  .share { grid-template-columns: 150px 1fr; padding-right: 1.3rem; }
  .share-row { grid-template-columns: 1fr; }
  .share-btn { justify-self: end; }
  .share-main { padding-left: 1.4rem; margin-left: .8rem; }
  .share-main h1 { font-size: 2.5rem; }
  .club-head { flex-wrap: wrap; justify-content: center; row-gap: .1rem; }
  .club-tag { flex-basis: 100%; text-align: center; border-left: 0; padding-left: 0; font-size: 1.1rem; }
}

/* ---------- Phone ---------- */
@media (max-width: 700px) {
  html { font-size: 112.5%; }
  .club-head { justify-content: center; padding: .7rem 1rem; min-height: 0; }
  .club-art { display: none; }
  .club-brand { min-width: 0; gap: .4rem; }
  .club-brand .ic-sprig { width: 44px; height: 38px; }
  .club-name { font-size: 1.5rem; }
  .club-footer .foot-small a { display: inline-block; padding: .6rem .5rem; }
  .club-nav ul { display: grid; grid-template-columns: 1fr 1fr; }
  .club-nav li:first-child { grid-column: 1 / -1; }
  .club-nav a { justify-content: center; padding: .55rem .6rem; font-size: 1.05rem; text-align: center; }
  .club-page { padding: 1rem .9rem 2rem; }
  .share { grid-template-columns: 1fr; padding: 1.1rem 1rem 1.2rem; }
  .share-art { display: none; }
  .share-main { border-left: 0; padding-left: 0; margin-left: 0; }
  .share-main h1 { font-size: 1.95rem; }
  .share-label { font-size: 1.3rem; }
  .share-row { grid-template-columns: 1fr; }
  .share-btn { width: 100%; }
  .share-email { max-width: none; }
  .cards, .around-grid { grid-template-columns: 1fr; }
  .memories h2, .around h2 { font-size: 1.8rem; }
  .club-foot { flex-direction: column; text-align: center; padding: 1.1rem 1rem .5rem; }
  .club-footer .foot-small { text-align: center; padding: 0 1rem 1.1rem; }
  .foot-nav li + li { border-left: 0; }
}

/* Smiles Hall of Fame: memory titles are plain until hovered or focused */
.hall-title { text-decoration: none; color: var(--forest); padding: .25rem 0; border-radius: 3px; }
.hall-title:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--gold); }
.hall-title:focus-visible { text-decoration: underline; outline: 3px solid var(--forest); outline-offset: 3px; background: rgba(200, 160, 42, .18); }

/* All Memories page heading */
.memories h1.all-title { margin: 0; padding: 0; border: 0; font-size: 2.3rem; line-height: 1.2; color: var(--forest); }
@media (max-width: 700px) { .memories h1.all-title { font-size: 1.8rem; } }
.club-page .pager { margin-top: 1.8rem; }

/* Title field, permission box and the "no title" question in the Back in the Day box. */
.share-titlefield { margin: 0 0 .9rem; max-width: 40rem; }
.share-titlefield .share-label { font-size: 1.25rem; }
.share-titlefield input { width: 100%; font: 1.15rem var(--sans); padding: .7rem .9rem; min-height: 48px; background: #fff; border: 1px solid #8a97ad; border-radius: 10px; }
.share-titlefield input:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.share-consent { display: flex; align-items: flex-start; gap: .7rem; margin: .9rem 0 0; font-size: 1.05rem; line-height: 1.4; color: #2f2d27; }
.share-consent input { flex: 0 0 auto; width: 26px; height: 26px; margin: .1rem 0 0; accent-color: var(--forest); }
.share-consent input:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.share-consent label { cursor: pointer; }
.share-confirm { grid-template-columns: 1fr; }
.share-confirm .share-main { border-left: 0; padding-left: 0; margin-left: 0; }
.share-generated { margin: 0 0 1.1rem; padding: .8rem 1rem; background: #fff; border: 1px solid var(--gold-soft, #e6d9a8); border-radius: 10px; font-size: 1.35rem; font-weight: 700; color: var(--forest); overflow-wrap: anywhere; }
.share-confirm-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0 0 .6rem; }
@media (max-width: 700px) { .share-confirm-actions .button { width: 100%; } }

/* Comparison of the contributor's original with the editor's suggestion: side by side on wide screens, stacked on narrow ones. */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: .6rem 0 1rem; }
.compare-col h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.compare-box { background: #fff; border: 1px solid #cdbf93; border-radius: 10px; padding: .8rem 1rem; height: 100%; }
.compare-title { margin: 0 0 .5rem; font-weight: 700; font-size: 1.1rem; }
.compare-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.compare del { background: #fbd9d3; color: #6b1b10; text-decoration: line-through; text-decoration-thickness: 2px; }
.compare ins { background: #d6ecc8; color: #1d4a12; text-decoration: underline; text-decoration-thickness: 2px; }
.compare-legend del { background: #fbd9d3; color: #6b1b10; text-decoration: line-through; }
.compare-legend ins { background: #d6ecc8; color: #1d4a12; text-decoration: underline; }
.compare-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0 0 1.5rem; }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } .compare-actions .button { width: 100%; } }