/* Good Shepherd Kennel & Stable Club — site styles
   Fonts: Coustard (headings), Atkinson Hyperlegible Next (text). Both SIL OFL, hosted locally. */

@font-face {
  font-family: "Coustard";
  src: url("../fonts/coustard-latin-900-normal.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Coustard";
  src: url("../fonts/coustard-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --field: #173A27;      /* deep pasture green: dark bands and all text on white */
  --field-2: #1F4A33;    /* slightly lifted green for hover on dark */
  --straw: #F2B630;      /* donate, focus on dark */
  --straw-2: #F8CC63;
  --denim: #24478F;      /* links on light backgrounds */
  --sage: #E7EEE4;       /* the documents band */
  --paper: #FFFFFF;
  --mist: #DCE7DF;       /* secondary text on dark */

  --display: "Coustard", "Rockwell", "Roboto Slab", Georgia, serif;
  --text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  --wrap: 74rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--field);
  font-family: var(--text);
  font-size: 1.25rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
h1, h2 { font-weight: 900; }
h3 { font-weight: 400; }

p { margin: 0; }

a {
  color: var(--denim);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 4px; }

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

.wrap {
  width: min(100% - 3rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--straw);
  color: var(--field);
  font-weight: 700;
}
.skip:focus { top: 1rem; }

/* ---------- On dark green ---------- */

.on-dark { background: var(--field); color: var(--paper); }
.on-dark a { color: var(--paper); text-decoration-color: var(--straw); }
.on-dark :focus-visible { outline-color: var(--straw); }

/* ---------- Buttons ---------- */

.btn,
.on-dark .btn {
  display: inline-block;
  padding: 0.5em 1.15em 0.55em;
  background: var(--straw);
  color: var(--field);
  border: 3px solid var(--field);
  border-radius: 5px;
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
}
.btn:hover,
.on-dark .btn:hover { background: var(--straw-2); }
.on-dark .btn { border-color: var(--straw); }

/* ---------- Header ---------- */

.site-head { padding-block: 1rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-weight: 900;
  margin: 0;
  font-size: 1.45rem;
  white-space: nowrap;
}
.on-dark .brand { color: var(--paper); }
.brand img { width: 3.25rem; height: 3.25rem; border-radius: 8px; }

/* ---------- Hero ---------- */

.hero { padding-block: 3rem 5rem; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  align-items: start;
  gap: 2.5rem 4.5rem;
}

.hero h1 {
  grid-column: 1 / -1;
  font-size: clamp(2.75rem, 1.5rem + 4.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
}

.lede {
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1.3;
}
.where { margin-top: 1rem; color: var(--mist); }

.give {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}
.btn-big { font-size: 1.875rem; padding: 0.45em 1.4em 0.5em; }

/* Ernie's introduction video */
.intro { margin: 0; }
.intro video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  box-shadow: 0 1.25rem 2.5rem -1rem rgba(0, 0, 0, 0.5);
}
.intro figcaption { margin-top: 0.9rem; font-size: 1.0625rem; color: var(--mist); }

/* ---------- Learn about the club ---------- */

.learn { background: var(--sage); padding-block: 3rem 3.25rem; }

.learn h2 { font-size: 1.75rem; }

.docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.docs a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  height: 100%;
  min-height: 7.5rem;
  padding: 1.1rem 1.25rem 1rem;
  background: var(--paper);
  border: 2px solid var(--paper);
  border-radius: 6px;
  color: var(--field);
  font-family: var(--display);
  font-size: 1.375rem;
  line-height: 1.2;
  text-decoration: none;
}
.docs a:hover { border-color: var(--field); }
.docs .kind {
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 700;
  color: var(--denim);
}

/* ---------- Ways to help ---------- */

.help { padding-block: 5rem 6rem; }
.help h2 { font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem); }

.way h3 { font-size: 1.625rem; margin-bottom: 0.6rem; }
.way p + p { margin-top: 0.75rem; }
.way .act { font-weight: 700; margin-top: 1rem; }
.way .act .btn { font-size: 1.25rem; }

.member {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2rem 5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 6px solid var(--field);
}
.member h3 { font-size: 2.125rem; }
.member-text p:not(.act) { max-width: 32ch; }

.prices { margin: 0; padding: 0; list-style: none; }
.prices li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-block: 0.35rem;
}
.prices .dots {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 3px dotted rgba(23, 58, 39, 0.4);
  transform: translateY(-0.3em);
}
.prices .amt {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.625rem;
  line-height: 1.2;
}

.ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.25rem 5rem;
  margin-top: 4rem;
}
.ways .way {
  padding-top: 1.25rem;
  border-top: 3px solid var(--field);
}
.ways .way p:not(.act) { max-width: 60ch; }

/* ---------- Contact ---------- */

.site-foot { padding-block: 4.5rem 2.5rem; }
.site-foot h2 { font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.5rem 3.5rem;
  margin-top: 2.25rem;
}
.site-foot h3 { font-size: 1.375rem; margin-bottom: 0.75rem; color: var(--straw); }
.site-foot address { font-style: normal; }
.site-foot .org { display: block; margin-bottom: 0.5rem; }
@media (min-width: 23rem) { .site-foot .org { white-space: nowrap; } }
.site-foot address + p { margin-top: 0.5rem; }
.where-note + p { margin-top: 0.75rem; }
.phone { font-family: var(--display); font-weight: 900; font-size: 2.25rem; line-height: 1.1; }
.phone a { text-decoration-thickness: 3px; }

.officers { margin: 0; padding: 0; list-style: none; }
.officers li + li { margin-top: 1rem; }
.officers .who { display: block; font-weight: 700; }
.officers .soon { color: var(--mist); }
.nowrap { white-space: nowrap; }

.foot-end {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.foot-end img { width: 7.5rem; height: auto; border-radius: 6px; }
.legal { font-size: 1rem; color: var(--mist); }

/* ---------- Smaller screens ---------- */

/* Contact: phone and address side by side, officers below, until there's room for three columns */
@media (max-width: 75rem) {
  .contact-grid { grid-template-columns: auto minmax(0, 1fr); column-gap: 2.5rem; }
  .contact-grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 48rem) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 62rem) {
  .member { gap: 2rem 3rem; }
}

@media (max-width: 48rem) {
  body { font-size: 1.125rem; }
  .hero { padding-block: 2rem 3.5rem; }
  .hero-inner { gap: 2rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .lede { font-size: 1.5rem; }
  .member, .ways { grid-template-columns: 1fr; }
  .ways { gap: 2.5rem; margin-top: 3rem; }
  .help { padding-block: 3.5rem 4rem; }
}

@media (max-width: 34rem) {
  .wrap { width: min(100% - 2rem, var(--wrap)); }
  .docs { grid-template-columns: 1fr; }
  .foot-end { flex-direction: column; align-items: flex-start; }
  .docs a { min-height: 0; }
  .prices .term { font-size: 1.0625rem; }
  .prices .amt { font-size: 1.375rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .skip, .intro { display: none; }
  .on-dark { background: none; color: #000; }
  .on-dark a, a { color: #000; }
}
