/* Homecoming Funds LLC — Ohio Magazine Feature */

:root {
  --paper: #FFFFFF;
  --ink: #171716;
  --ink-2: #474742;
  --evergreen: #24402F;
  --evergreen-deep: #1A3023;
  --evergreen-soft: #DCE6DF;
  --on-green: #F4F7F2;
  --on-green-2: #C9D6CD;
  --brass: #85622E;
  --brass-light: #D9B97F;
  --rule: #D9D5CC;
  --field: #77746C;
  --error: #A3321F;

  --display: "Brygada 1918", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Atkinson Hyperlegible Next", Verdana, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1200px;
  --measure: 64ch;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  scrollbar-color: var(--evergreen) var(--paper);
  accent-color: var(--evergreen);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.25rem;
  line-height: 1.6;
  caret-color: var(--evergreen);
}

::selection { background: var(--evergreen-soft); color: var(--ink); }

a { color: var(--evergreen); text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; }
a:hover { color: var(--evergreen-deep); }

:focus-visible { outline: 3px solid var(--evergreen); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 1rem; top: -4rem; padding: 0.75rem 1rem; background: var(--paper); color: var(--ink); z-index: 50; }
.skip:focus { top: 1rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.lede { margin-top: 0.8rem; color: var(--ink-2); max-width: 40rem; }

.photo { margin: 0; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__frame { overflow: hidden; height: 100%; }
.credit {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--ink-2);
}
.credit--light { color: var(--on-green-2); }

/* ---------- Notice bar & masthead ---------- */

.notice-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding: 0.75rem var(--gutter);
  background: var(--evergreen-deep);
  color: var(--on-green);
  font-size: 1.05rem;
  line-height: 1.4;
}
.notice-bar__call { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--on-green); font-weight: 700; text-decoration: none; white-space: nowrap; }
.notice-bar__call:hover { color: var(--brass-light); }
.notice-bar__call .icon { width: 1.15rem; height: 1.15rem; }
.notice-bar :focus-visible { outline-color: var(--brass-light); }

.masthead { padding-block: 0.8rem 1rem; border-bottom: 1px solid var(--rule); }
.masthead__folio {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
  color: var(--ink-2);
}
.masthead__folio a { font-weight: 600; }
.nameplate {
  margin-top: 0.8rem;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--evergreen);
}
.masthead__line {
  margin: 0.7rem auto 0;
  width: fit-content;
  padding-top: 0.55rem;
  border-top: 2px solid var(--brass);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-2);
}

/* ---------- Cover spread ---------- */

.cover {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
.cover__text {
  align-self: start;
  padding: 3rem clamp(1.5rem, 5vw, 4.5rem) 2.5rem max(var(--gutter), calc((100vw - var(--max)) / 2));
}
.cover h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 4.2vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.cover__deck {
  margin-top: 1.1rem;
  max-width: 36rem;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.2rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-2);
}
.byline {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--ink-2);
}
.byline__names { font-weight: 700; color: var(--ink); }

.cover__actions { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 4.4rem;
  padding: 0.65rem 1.7rem 0.65rem 1.3rem;
  background: var(--evergreen);
  color: var(--on-green);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(23, 23, 22, 0.08), 0 10px 24px rgba(36, 64, 47, 0.22);
  transition: background-color 0.2s ease, transform 0.25s var(--ease-out);
}
.btn-call:hover { background: var(--evergreen-deep); color: var(--on-green); transform: translateY(-1px); }
.btn-call .icon { width: 1.5rem; height: 1.5rem; color: var(--brass-light); }
.btn-call__text { display: grid; line-height: 1.15; }
.btn-call__label { font-size: 1rem; font-weight: 600; color: var(--on-green-2); }
.btn-call__number { font-size: 1.55rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.text-link { font-weight: 700; font-size: 1.15rem; }
.cover__fine { margin-top: 1rem; font-size: 1.05rem; color: var(--ink-2); }

.cover__photo { display: grid; grid-template-rows: 1fr auto; }
.cover__photo .photo__frame { position: relative; min-height: 22rem; }
.cover__photo img { position: absolute; inset: 0; }
.cover__photo .credit { padding: 0 var(--gutter) 0.6rem 1rem; text-align: right; }
.cover__photo img { object-position: 50% 60%; }

/* ---------- At a glance ---------- */

.glance { background: var(--evergreen); color: var(--on-green); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.glance__title {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(217, 185, 127, 0.55);
}
.glance__list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 2.25rem;
}
.glance__list li { padding-top: 1rem; border-top: 1px solid var(--brass-light); font-size: 1.1rem; line-height: 1.5; color: var(--on-green-2); }
.glance__list strong { display: block; margin-bottom: 0.3rem; font-family: var(--display); font-size: 1.3rem; line-height: 1.25; font-weight: 600; color: var(--on-green); }

/* ---------- Feature story ---------- */

.story { padding-block: clamp(4rem, 8vw, 7rem); }
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.story__text p { margin-top: 1.1rem; max-width: var(--measure); }
.story__text h2 { margin-bottom: 1.4rem; }
.dropcap::first-letter {
  float: left;
  margin: 0.1em 0.14em 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 5.3em;
  line-height: 0.8;
  color: var(--brass);
}
.story__photo .photo__frame { aspect-ratio: 4 / 5; }

/* ---------- Pull quote spread ---------- */

.quote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--evergreen-deep); color: var(--on-green); }
.quote__photo { min-height: 34rem; display: grid; grid-template-rows: 1fr auto; }
.quote__photo .credit { padding: 0 1rem 0.6rem; }
.quote__photo img { object-position: 38% 50%; }
.quote__text {
  align-self: center;
  padding: clamp(3rem, 7vw, 6rem) max(var(--gutter), calc((100vw - var(--max)) / 2)) clamp(3rem, 7vw, 6rem) clamp(2rem, 5vw, 5rem);
}
.quote__big {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 13ch;
}
.quote__big span { color: var(--brass-light); }
.quote__list { list-style: none; margin: 2rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid rgba(217, 185, 127, 0.55); display: grid; gap: 0.8rem; max-width: 30rem; color: var(--on-green-2); }
.quote__list li { position: relative; padding-left: 1.6rem; }
.quote__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--brass-light); }

/* ---------- Sources ---------- */

.sources { padding-block: clamp(4rem, 8vw, 7rem); }
.sources__list {
  margin: 2.8rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 5rem);
}
.sources__list > div { padding-block: 1.6rem 1.9rem; border-top: 1px solid var(--rule); }
.sources__list > div:nth-child(-n+2) { border-top: 2px solid var(--ink); }
.sources__list dt { font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1.3; }
.sources__list dd { margin: 0.65rem 0 0; max-width: var(--measure); }
.sources__list .cite { margin-top: 0.85rem; font-size: 1rem; font-weight: 700; color: var(--brass); letter-spacing: 0.01em; }

/* ---------- Steps ---------- */

.steps { padding-block: clamp(4rem, 8vw, 7rem); }
.band { margin: 0; }
.band .photo__frame { aspect-ratio: 21 / 8; }
.band .credit { padding-inline: var(--gutter); text-align: right; }
.steps__grid { display: block; }
.steps__head { margin-bottom: 2.4rem; }
.steps__list { list-style: none; margin: 0; padding: 0; counter-reset: step; columns: 2 24rem; column-gap: clamp(2.5rem, 5vw, 4.5rem); column-rule: 1px solid var(--rule); border-top: 2px solid var(--ink); }
.steps__list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  column-gap: 1.2rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--rule);
}
.steps__list li { break-inside: avoid; }
.steps__list li:first-child { border-top: 0; }
.steps__list li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: var(--display);
  font-weight: 600;
  font-size: 3.4rem;
  line-height: 0.9;
  color: var(--brass);
  font-variant-numeric: lining-nums tabular-nums;
}
.steps__list h3 { font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1.15; }
.steps__list p { grid-column: 2; margin-top: 0.4rem; max-width: var(--measure); }

/* ---------- Q&A ---------- */

.questions { padding-block: clamp(4rem, 8vw, 7rem); }
.qa {
  margin: 2.2rem 0 0;
  padding-top: 1.6rem;
  border-top: 2px solid var(--ink);
  columns: 2 22rem;
  column-gap: clamp(2.5rem, 5vw, 4.5rem);
  column-rule: 1px solid var(--rule);
}
.qa > div { break-inside: avoid; padding-bottom: 1.8rem; }
.qa dt { font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.3; }
.qa dd { margin: 0.5rem 0 0; color: var(--ink-2); max-width: var(--measure); }
.qa__mark { font-family: var(--display); font-weight: 600; color: var(--brass); margin-right: 0.2rem; }

/* ---------- Reply ---------- */

.reply { padding-block: clamp(4rem, 8vw, 7rem); background: var(--evergreen); color: var(--on-green); }
.reply__grid { display: grid; grid-template-columns: 1fr; gap: 2.4rem; }
.reply__grid > * { max-width: 46rem; }
.reply__intro p { margin-top: 1rem; color: var(--on-green-2); }
.reply__or { font-weight: 600; }
.reply__or a { font-size: 1.7rem; font-weight: 700; color: var(--on-green); text-decoration: none; font-variant-numeric: tabular-nums; }
.reply__or a:hover { color: var(--brass-light); }
.reply :focus-visible { outline-color: var(--brass-light); }

.reply__form {
  display: grid;
  gap: 1.2rem;
  padding-top: 1.6rem;
  border-top: 2px solid var(--brass-light);
  color: var(--on-green);
}
.reply__form .field label { color: var(--on-green); }
.reply__form .optional { color: var(--on-green-2); }
.reply__form .field__error, .reply__form .reply__status[data-tone="error"] { color: #F4B9A6; }
.reply__form .reply__status[data-tone="ok"] { color: var(--brass-light); }
.reply__form .field [aria-invalid="true"] { border-color: #F4B9A6; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 1.1rem; }
.optional { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--field);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  min-height: 3.5rem;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2324402F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.2rem;
  padding-right: 2.8rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--evergreen); box-shadow: 0 0 0 3px var(--evergreen-soft); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: 1rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; }

.button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 3.75rem;
  padding: 0 2rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--evergreen-deep);
  background: var(--on-green);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.button:hover { background: #fff; }
.button[disabled] { opacity: 0.7; cursor: progress; }
.reply__status { font-weight: 600; min-height: 1.6em; }
.reply__status[data-tone="ok"] { color: var(--evergreen); }
.reply__status[data-tone="error"] { color: var(--error); }

/* ---------- Footer ---------- */

.footer { background: var(--evergreen-deep); color: var(--on-green-2); padding-block: 3rem calc(3rem + env(safe-area-inset-bottom, 0px)); }
.footer__inner { display: grid; gap: 0.9rem; }
.footer a { color: var(--on-green); }
.nameplate--footer { margin: 0; text-align: left; font-size: 2rem; color: var(--on-green); }
.footer__fine { font-size: 1rem; max-width: 72ch; line-height: 1.55; }

.folio {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--ink-2);
}
.folio--dark { color: var(--on-green-2); border-top-color: rgba(217, 185, 127, 0.55); }
.story .folio, .steps .folio, .reply .folio { margin-top: clamp(3rem, 6vw, 4.5rem); }

@media (min-width: 901px) {
  .sources__list > div:nth-child(even) { border-left: 1px solid var(--rule); padding-left: clamp(2rem, 5vw, 5rem); margin-left: calc(-1 * clamp(2rem, 5vw, 5rem) / 2); }
  .story__photo { border-left: 1px solid var(--rule); padding-left: clamp(2rem, 5vw, 5rem); }
}

.call-bar { display: none; }

/* ---------- Motion: the cover photo settles once ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .cover__photo img { animation: settle 1.6s var(--ease-out) both; }
  @keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .glance__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .cover { grid-template-columns: 1fr; min-height: 0; }
  .cover__photo { order: -1; min-height: 0; }
  .cover__photo .photo__frame { aspect-ratio: 4 / 3; min-height: 0; width: 100%; }
  .cover__text { padding: 2.25rem var(--gutter) 3rem; }
  .story__grid, .steps__grid, .reply__grid { grid-template-columns: 1fr; }
  .quote { grid-template-columns: 1fr; }
  .quote__photo { min-height: 0; }
  .quote__photo .photo__frame { aspect-ratio: 3 / 2; }
  .quote__text { padding: 3rem var(--gutter); }
  .sources__list { grid-template-columns: 1fr; }
  .sources__list > div:nth-child(2) { border-top: 1px solid var(--rule); }
}

@media (max-width: 640px) {
  body { font-size: 1.15rem; }
  .masthead__folio { font-size: 0.95rem; }
  .masthead__folio { display: none; }
  .cover__photo .photo__frame { aspect-ratio: 16 / 10; }
  .notice-bar { font-size: 0.95rem; padding-block: 0.5rem; }
  .notice-bar p { font-size: 1rem; }
  .glance__list { grid-template-columns: 1fr; }
  .btn-call { width: 100%; justify-content: center; }
  .button { justify-self: stretch; justify-content: center; }
  .steps__list li { grid-template-columns: 3rem 1fr; }
  .steps__list li::before { font-size: 2.6rem; }

  .call-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: var(--evergreen-deep);
    transform: translateY(110%);
  }
  .call-bar.is-shown { transform: none; }
  .call-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.4rem; border-radius: 999px; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
  .call-bar__call { background: var(--on-green); color: var(--evergreen-deep); }
  .call-bar__call:hover { color: var(--evergreen-deep); }
  .call-bar__call .icon { width: 1.25rem; height: 1.25rem; }
  .call-bar__note { border: 2px solid var(--on-green); color: var(--on-green); }
  .call-bar :focus-visible { outline-color: var(--brass-light); }
  .footer { padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .call-bar { transition: transform 0.3s var(--ease-out); }
}
