/* GoGoYears: large, calm type for easy reading; one teal for actions, sun-yellow
   for highlights. System fonts only, so pages load fast and look sharp everywhere. */
:root {
  --paper: #fbfaf7;
  --card: #ffffff;
  --ink: #1c2a3a;
  --muted: #566475;
  --line: #e3e1da;
  --teal: #0e6e6e;
  --teal-dark: #0a5454;
  --teal-soft: #e2f0ef;
  --sun: #f4c542;
  --blue: #1a57a3;
  --blue-soft: #e2ecfa;
  --blue-line: #5285c6;
  --sun-soft: #fdf3d3;
  --alert: #a33a2c;
  --alert-soft: #fbe9e6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 19px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); line-height: 1.55;
}
a { color: var(--teal); }
.menu-btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sun); outline-offset: 2px;
}
.wrap {
  max-width: 920px; margin: 0 auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; text-wrap: balance; margin: 0; font-weight: 600; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0; max-width: 64ch; }

/* Header: bright blue band, "GoGoYears.ORG | Active Retirement Network"; on phones the
   menu folds behind a menu button (only when JavaScript is on, so it never gets stuck shut). */
.top { background: var(--blue); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding-block: 14px; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-width: 0; }
.brand .word { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.brand .yrs { color: var(--sun); }
.brand .org { font-family: var(--sans); font-weight: 600; font-size: .62em; letter-spacing: .08em; color: var(--blue-soft); margin-left: 2px; }
.brand .rule { width: 1px; height: 26px; background: var(--blue-line); }
.brand .tag { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--blue-soft); white-space: nowrap; }
.nav { display: flex; gap: 6px 18px; align-items: center; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: #fff; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav form { margin: 0; }
.nav button { background: none; border: 0; color: var(--blue-soft); font: inherit; cursor: pointer; padding: 0; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--blue-line); background: none; padding: 0; cursor: pointer; place-items: center; }
.menu-btn svg { width: 24px; height: 24px; }
.menu-btn .close { display: none; }
@media (max-width: 760px) {
  .top .wrap { flex-wrap: nowrap; }
  .brand { flex-direction: column; align-items: flex-start; gap: 3px; }
  .brand .rule { display: none; }
  .brand .word { font-size: 1.3rem; }
  .brand .tag { font-size: .95rem; }
  .js .menu-btn { display: grid; flex: none; }
  .js .nav { display: none; }
  .js .top.open .wrap { flex-wrap: wrap; }
  .js .top.open .nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; border-top: 1px solid var(--blue-line); }
  .js .top.open .nav a, .js .top.open .nav button { font-size: 1.05rem; padding: 12px 2px; border-bottom: 1px solid #376fb6; text-align: left; width: 100%; }
  .js .top.open .menu-btn .open { display: none; }
  .js .top.open .menu-btn .close { display: block; }
}

main.wrap { padding-block: 32px 64px; display: flex; flex-direction: column; gap: 28px; }
.flash { background: var(--teal-soft); border-left: 5px solid var(--teal); padding: 14px 18px; border-radius: 6px; font-weight: 600; }

/* Buttons and forms */
.btn {
  display: inline-block; background: var(--teal); color: #fff; border: 0; border-radius: 8px;
  padding: 13px 22px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--teal-dark); }
.btn.secondary { background: #fff; color: var(--teal); border: 2px solid var(--teal); padding: 11px 20px; }
.btn.quiet { background: none; color: var(--muted); border: 2px solid var(--line); padding: 11px 20px; }
.btn.danger { background: #fff; color: var(--alert); border: 2px solid #e2b6ae; padding: 11px 20px; }
.btn.small { padding: 7px 14px; font-size: .9rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
form.stack { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
label small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=datetime-local], textarea {
  font: 1rem var(--sans); padding: 12px 14px; border: 2px solid #cdd3da; border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
textarea { min-height: 130px; resize: vertical; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }

/* Home */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding-block: 12px; }
.hero h1 { font-size: 2.6rem; }
.eyebrow { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 8px; }
.hero p.lede { font-size: 1.2rem; color: var(--muted); margin-top: 14px; }
.hero .row { margin-top: 22px; }
.ticket {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: 0 2px 0 var(--line);
}
.ticket .stub { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ticket strong { font-family: var(--serif); font-size: 1.25rem; }
.ticket .meta { color: var(--muted); font-size: .95rem; }
.pill { display: inline-block; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill.going { background: var(--teal-soft); color: var(--teal-dark); }
.pill.wait { background: var(--sun-soft); color: #7a5a00; }
.pill.cancelled { background: var(--alert-soft); color: var(--alert); }
.pill.draft { background: #eceef1; color: var(--muted); }
.pill.full { background: #eceef1; color: var(--muted); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero h1 { font-size: 2.1rem; } }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.how b { font-family: var(--serif); font-size: 1.1rem; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }

/* Outings */
.list { display: flex; flex-direction: column; gap: 16px; }
.outing {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px;
  display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center;
}
.date { text-align: center; border-right: 2px dashed var(--line); padding-right: 16px; }
.date .mon { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.date .day { font-family: var(--serif); font-size: 2rem; line-height: 1; }
.date .dow { font-size: .85rem; color: var(--muted); }
.outing h3 a { color: var(--ink); text-decoration: none; }
.outing h3 a:hover { text-decoration: underline; }
.outing .meta { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.outing .side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.outing .side .count { font-size: .9rem; color: var(--muted); }
.outing.cancelled { opacity: .7; }
@media (max-width: 640px) {
  .outing { grid-template-columns: 72px 1fr; }
  .outing .side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}
.empty { background: var(--card); border: 1px dashed #cdd3da; border-radius: 12px; padding: 28px; color: var(--muted); }

.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; } }
.facts { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rsvp-box { background: var(--sun-soft); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.who { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.who li { background: var(--teal-soft); color: var(--teal-dark); padding: 4px 12px; border-radius: 999px; font-size: .95rem; }
.prose { display: flex; flex-direction: column; gap: 14px; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; max-width: 64ch; }

/* Admin */
.admin-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.stats { display: flex; gap: 14px; flex-wrap: wrap; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px; }
.stats b { font-size: 1.4rem; font-variant-numeric: tabular-nums; display: block; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
td form { margin: 0; display: inline; }
.copy { display: flex; gap: 8px; flex-wrap: wrap; }
.copy input { flex: 1; min-width: 0; font-size: .9rem; }
.note { color: var(--muted); font-size: .92rem; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; gap: 8px 20px; flex-wrap: wrap; padding-block: 22px; }
footer a { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.gap-top { margin-top: 8px; }
.visually-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.welcome { margin-top: 12px; font-weight: 600; color: var(--teal-dark); }
