/* Retirement Fore All: site styles
   Large, readable type for older readers; WCAG AA contrast; no external resources. */

@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/roboto-slab-latin-700-normal.woff2") format("woff2"); }

:root {
  --forest: #1E4D2B;      /* primary */
  --forest-dark: #153820;
  --cream: #F7F0DC;
  --paper: #FFFDF6;       /* page background */
  --ink: #1C2620;         /* body text: about 15:1 on paper */
  --muted: #3D4A41;       /* secondary text: about 9:1 on paper */
  --gold: #F2B705;        /* accent: decoration and on-green only */
  --fairway: #7DB52F;
  --line: #D9CFB4;
  --focus: #F2B705;
  --radius: 14px;
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 125%; /* 20px base */ -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", Verdana, Tahoma, "Segoe UI", sans-serif;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Roboto Slab", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--forest);
  margin: 1.6em 0 0.5em;
}
h1 { font-size: 2.1rem; margin-top: 0.6em; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; margin-top: 1.2em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 700; }

a { color: var(--forest); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--forest-dark); text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--forest-dark);
  border-radius: 4px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: 44rem; }

/* Skip link */
.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--forest); color: var(--cream);
  padding: 0.6rem 1rem; border-radius: 8px; z-index: 10; font-weight: 700;
}
.skip:focus { top: 1rem; color: var(--cream); }

/* Header */
.site-header { background: var(--forest); color: var(--cream); border-bottom: 6px solid var(--gold); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--cream); text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { width: 64px; height: 64px; }
.brand-name { font-family: "Roboto Slab", Georgia, serif; font-weight: 700; font-size: 1.3rem; line-height: 1.1; }
.brand-name .fore { color: var(--gold); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a { color: var(--cream); text-decoration: none; font-weight: 700; padding: 0.4rem 0.2rem; display: inline-block; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: #fff; border-bottom-color: var(--cream); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

main { padding-bottom: 3rem; }

/* Hero */
.hero { background: var(--cream); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding-top: 2rem; padding-bottom: 2.25rem; }
.hero h1 { font-size: 2.3rem; margin-top: 0; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }
.hero img { width: 300px; height: 300px; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero img { width: 200px; height: 200px; order: -1; }
  .hero h1 { font-size: 1.8rem; }
  h1 { font-size: 1.75rem; }
}

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.btn {
  display: inline-block; padding: 0.75rem 1.25rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 3px solid var(--forest);
  min-height: 48px;
}
.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--forest-dark); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--forest); }
.btn-secondary:hover { background: #fff; color: var(--forest-dark); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; padding: 0; list-style: none; margin: 1rem 0 0; }
.card {
  background: #fff; border: 2px solid var(--line); border-top: 8px solid var(--forest);
  border-radius: var(--radius); padding: 1.1rem 1.25rem 1.25rem; margin: 0;
}
.card h3 { margin-top: 0.1em; }
.card p:last-child { margin-bottom: 0; }
a.card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
a.card-link:hover .card { border-color: var(--forest); background: #FFFEF9; }
a.card-link:hover h3 { text-decoration: underline; }
.card .go { font-weight: 700; color: var(--forest); }
.hole { display: inline-block; background: var(--forest); color: var(--cream); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 6px; padding: 0.1rem 0.5rem; margin-bottom: 0.4rem; }

/* Help resource entries */
.resource {
  background: #fff; border: 2px solid var(--line); border-left: 8px solid var(--forest);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1rem;
}
.resource h3 { margin: 0 0 0.35em; }
.resource p { margin-bottom: 0.5em; }
.resource p:last-child { margin-bottom: 0; }
.resource .contact { font-size: 1.1rem; }
.resource .who { color: var(--muted); font-size: 0.95rem; }
a[href^="tel:"] { font-weight: 700; white-space: nowrap; }

/* Notes */
.note {
  background: var(--cream); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }
.note-warn { border-color: var(--forest); border-width: 3px; }
.checked { color: var(--muted); font-size: 0.95rem; }

.breadcrumb { margin: 1.25rem 0 0; font-size: 0.95rem; }
.breadcrumb a { font-weight: 700; }

/* Footer */
.site-footer { background: var(--forest-dark); color: var(--cream); padding: 2rem 0 2.5rem; border-top: 6px solid var(--gold); }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: #fff; }
.site-footer .disclaimer { max-width: 50rem; font-size: 0.95rem; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0 0 1rem; }
.site-footer .small { font-size: 0.9rem; margin: 0; }

/* Print: guides and help pages print cleanly */
@media print {
  html { font-size: 12pt; }
  .site-header, .site-nav, .buttons, .skip { display: none !important; }
  .site-footer { background: none; color: #000; border: 0; padding: 1rem 0 0; }
  .site-footer a { color: #000; }
  body { background: #fff; }
  .resource, .card, .note { break-inside: avoid; border-color: #888; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
