/* McKinleyville Senior Center — large, clear, easy to read */

/* A plain zero (no slash) drawn from Atkinson Hyperlegible's own zero.
   Used only for the "0" character; every other character uses the main font. */
@font-face { font-family: "MSC Plain Zero"; src: url("../fonts/plain-zero-400.woff2") format("woff2"); font-weight: 400; unicode-range: U+0030; font-display: swap; }
@font-face { font-family: "MSC Plain Zero"; src: url("../fonts/plain-zero-700.woff2") format("woff2"); font-weight: 700; unicode-range: U+0030; font-display: swap; }

:root {
  --forest: #1f4d3f;
  --forest-dark: #153a2f;
  --ocean: #2b5f7a;
  --cream: #faf6ee;
  --sand: #f1e8d6;
  --amber: #e3a23b;
  --amber-dark: #b97a17;
  --ink: #1d2422;
  --muted: #4b5652;
  --line: #ddd2bd;
  --white: #ffffff;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { font-size: 112.5%; }           /* 18px base */
@media (min-width: 800px) { html { font-size: 125%; } }   /* 20px on larger screens */

body {
  margin: 0;
  font-family: "MSC Plain Zero", "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.2;
  color: var(--forest-dark);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }

a { color: var(--ocean); }
a:hover { color: var(--forest); }
a:focus-visible, .btn:focus-visible {
  outline: 4px solid var(--amber);
  outline-offset: 3px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 10px 16px; z-index: 10; }

/* Top bar */
.topbar { background: var(--forest-dark); color: var(--sand); font-size: .85rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding: 8px 20px; }
.topbar a { color: var(--white); font-weight: 700; text-decoration: none; }

/* Header and navigation */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest-dark); font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.3rem; line-height: 1.1; }
.brand-small { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: "MSC Plain Zero", "Atkinson Hyperlegible", sans-serif; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
nav a {
  display: block; padding: 10px 14px; border-radius: 10px;
  text-decoration: none; color: var(--ink); font-weight: 700;
}
nav a:hover { background: var(--sand); color: var(--forest-dark); }
nav a[aria-current="page"] { background: var(--forest); color: var(--white); }

/* Hero */
.hero {
  background:
    linear-gradient(160deg, rgba(21,58,47,.94), rgba(43,95,122,.9)),
    var(--forest);
  color: var(--white);
}
.hero-inner { padding-top: 56px; padding-bottom: 60px; }
.hero h1 { color: var(--white); max-width: 18ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--sand); margin-bottom: .6em; }
.lead { font-size: 1.15rem; max-width: 42em; }
.hero .lead { color: #eef3ef; }

/* Big buttons */
.big-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px; min-height: 64px;
  border-radius: var(--radius); font-size: 1.15rem; font-weight: 700;
  text-decoration: none; border: 3px solid transparent;
}
.btn-icon { font-size: 1.4em; line-height: 1; }
.btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-primary:hover { background: #f0b552; color: var(--ink); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--forest-dark); }
.page-head .btn { margin-top: 8px; }

/* Info strip */
.info-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: -28px; position: relative; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 6px 18px rgba(21,58,47,.08); }
.info-card h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--amber-dark); font-family: "MSC Plain Zero", "Atkinson Hyperlegible", sans-serif; }
.info-card p { margin: 0; font-size: 1.1rem; }
.phone { font-size: 1.4rem; font-weight: 700; text-decoration: none; }

/* Sections */
.section { padding-top: 48px; padding-bottom: 24px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; }
.page-head { background: var(--sand); border-bottom: 1px solid var(--line); padding: 44px 0 36px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.feature { background: var(--white); border-left: 6px solid var(--amber); border-radius: var(--radius); padding: 24px 26px; }
.text-link { font-weight: 700; }
.empty { background: var(--white); border: 2px dashed var(--line); border-radius: var(--radius); padding: 24px; font-size: 1.1rem; }

/* Flyers */
.flyer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin-top: 12px; }
.flyer { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.flyer-preview { display: block; text-decoration: none; aspect-ratio: 8.5 / 11; background: var(--sand); overflow: hidden; }
.flyer-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .2s; }
.flyer-preview:hover img { transform: scale(1.03); }
.flyer-pdf { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, var(--sand), #e7dcc5); }
.flyer-pdf span { font-family: "Fraunces", Georgia, serif; font-size: 2.4rem; color: var(--forest); border: 4px solid var(--forest); border-radius: 12px; padding: 18px 24px; background: var(--white); }
.flyer-body { padding: 18px 20px 20px; }
.flyer-body h3 { margin-bottom: .4em; }
.flyer-date { margin: 0 0 .3em; font-weight: 700; color: var(--amber-dark); }

/* Activities */
.activity-list { display: grid; gap: 20px; }
.activity { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.activity p { margin: 0; }
.tag { display: inline-block; vertical-align: middle; font-family: "MSC Plain Zero", "Atkinson Hyperlegible", sans-serif; font-size: .75rem; background: var(--amber); color: var(--ink); border-radius: 999px; padding: 3px 12px; margin-left: 8px; }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 8px 0 8px 36px; position: relative; }
.checks li::before { content: "\2713"; position: absolute; left: 0; top: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--forest); color: var(--white); display: grid; place-items: center; font-size: .8rem; }
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.people li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.people strong { display: block; font-size: 1.1rem; }
.people span { color: var(--muted); }

/* Map */
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: var(--radius); }

/* Footer */
.site-footer { background: var(--forest-dark); color: #e8efe9; margin-top: 56px; padding-top: 40px; }
.site-footer h2 { color: var(--white); font-size: 1.15rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); margin-top: 20px; padding-top: 16px; padding-bottom: 24px; font-size: .85rem; color: #b9c7bf; }

@media (max-width: 600px) {
  .btn { width: 100%; justify-content: center; }
  nav ul { gap: 2px; }
  nav a { padding: 8px 10px; }
}

@media print {
  .topbar, nav, .big-buttons, .site-footer { display: none; }
}

.group-title { margin-top: 24px; padding-bottom: 6px; border-bottom: 3px solid var(--amber); }
.activity-list .group-title:first-child { margin-top: 0; }
.activity h3 { margin-bottom: .25em; }
.activity .when { font-weight: 700; color: var(--amber-dark); margin-bottom: .4em; }
.activity p + p { margin-top: .4em; }
.brand img { border-radius: 50%; background: var(--white); }

/* Today at the Center */
.hero-inner.has-today { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .hero-inner.has-today { grid-template-columns: 1.15fr .85fr; } }
.today { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 22px 24px 20px; border-top: 8px solid var(--amber); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.today-label { margin: 0; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; font-weight: 700; color: var(--amber-dark); }
.today h2 { font-size: 1.5rem; margin-bottom: .4em; }
.today ul { list-style: none; margin: 0; padding: 0; }
.today li { display: grid; grid-template-columns: 9.5em 1fr; gap: 4px 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.today .t { font-weight: 700; color: var(--forest); }
.today .cancelled { color: var(--muted); }
.today .cancelled .t { color: var(--muted); text-decoration: line-through; }
.today em { font-style: normal; font-weight: 700; color: #a3361f; font-size: .9em; }
.today-more { display: inline-block; margin-top: 12px; font-weight: 700; }
@media (max-width: 520px) { .today li { grid-template-columns: 1fr; } }

/* Donate */
.donate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 28px; }
.donate-card { background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--forest); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; }
.donate-card .btn { margin-top: auto; align-self: flex-start; }
.donate-card .address { font-weight: 700; }
.feature-photo { display: block; width: calc(100% + 52px); max-width: none; margin: -24px -26px 18px; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 35%; border-radius: var(--radius) var(--radius) 0 0; }

/* Framed menu buttons, with Donate highlighted */
nav ul { gap: 8px; }
nav a { border: 2px solid var(--forest); background: var(--white); color: var(--forest-dark); }
nav a:hover { background: var(--sand); }
nav a[aria-current="page"] { background: var(--forest); color: var(--white); border-color: var(--forest); }
nav a[href="donate.php"] { background: var(--amber); border-color: var(--amber-dark); color: var(--ink); }
nav a[href="donate.php"]:hover { background: #f0b552; }
nav a[href="donate.php"][aria-current="page"] { background: var(--amber); color: var(--ink); border-color: var(--forest-dark); box-shadow: inset 0 0 0 2px var(--forest-dark); }

/* Notice banner */
.notice { background: #fdf0d5; border-bottom: 3px solid var(--amber); color: var(--ink); font-size: 1.05rem; }
.notice .wrap { padding-top: 12px; padding-bottom: 12px; }
.notice-tag { display: inline-block; background: #a3361f; color: var(--white); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; border-radius: 6px; padding: 3px 10px; margin-right: 8px; vertical-align: 2px; }

/* Resources */
.resource-list { display: grid; gap: 22px; }
.resource { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--forest); border-radius: var(--radius); padding: 24px 26px; }
.phones { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 1em; }
.phones dt { color: var(--muted); }
.phones dd { margin: 0; font-weight: 700; }
.resource-foot { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .phones { grid-template-columns: 1fr; } .phones dd { margin-bottom: 8px; } }
@media (min-width: 1000px) { nav ul { gap: 6px; } nav a { padding: 9px 11px; font-size: .9rem; } }

/* Recognition badges */
.badges { text-align: center; }
.badges h2 { font-size: 1.2rem; color: var(--muted); font-family: "MSC Plain Zero", "Atkinson Hyperlegible", sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.badge-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; margin-top: 8px; }
.badge-row img { display: block; height: 120px; width: auto; max-width: 100%; }
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; }

/* Show each flyer whole, whatever its paper size or shape */
.flyer-preview { background: #eee6d6; padding: 8px; }
.flyer-preview img { object-fit: contain; object-position: center; }

/* Bigger name and logo on laptops and desktops; phones keep the compact size */
@media (min-width: 900px) {
  /* One line, full name, large: "McKinleyville Senior Center" */
  .brand { font-size: clamp(2.2rem, 5vw, 3.2rem); gap: 20px; line-height: 1.05; white-space: nowrap; }
  .brand-small { display: inline; font: inherit; color: inherit; letter-spacing: 0; text-transform: none; }
  .brand img { width: 104px; height: 104px; flex-shrink: 0; }
  .header-inner { row-gap: 16px; padding-top: 18px; padding-bottom: 18px; }
}
.partners { border-top: 3px solid var(--line); margin-top: 24px; }
.feature-figure { margin: 0 0 18px; }
.feature-figure .feature-photo { margin-bottom: 8px; }
.feature-figure figcaption { font-size: .85rem; font-style: italic; color: var(--muted); }
