/* Upper Valley Women's Rugby — heritage field-guide theme
   Palette: pine + cedar + parchment (deliberately NOT any college green).
   Type: Barlow Condensed (athletic display) + Lora (editorial serif body).
   Content is ALWAYS visible with CSS alone — no JS gating. */

:root {
  --pine-900: #12362b;
  --pine-700: #1f4d3f;
  --pine-500: #2f6a55;
  --cedar-600: #b25a34;
  --cedar-500: #c96f42;
  --gold-400: #e2b664;
  --parchment: #f7f2e8;
  --parchment-2: #efe7d5;
  --paper: #fffdf8;
  --ink-900: #20261e;
  --ink-600: #4c5347;
  --line: #ded3bb;
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  color: var(--ink-900);
  background: var(--parchment);
  line-height: 1.72;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cedar-600); text-underline-offset: 2px; }
a:hover { color: var(--pine-700); }

h1, h2, h3, h4, .display, nav .brand, .btn, .eyebrow {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.04; margin: 0 0 .5rem; font-weight: 700; text-transform: uppercase; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.1; margin: 2.4rem 0 .7rem; font-weight: 600; color: var(--pine-700); text-transform: uppercase; }
h3 { font-size: 1.35rem; margin: 1.6rem 0 .4rem; font-weight: 600; color: var(--pine-900); }
p { margin: 0 0 1.05rem; }
ul, ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
li { margin-bottom: .4rem; }
strong { color: var(--pine-900); }

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }

/* Top bar / nav */
.topbar { background: var(--pine-900); color: #f3ecdd; border-bottom: 4px solid var(--cedar-500); position: sticky; top: 0; z-index: 50; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; color: #fff; text-decoration: none; letter-spacing: .02em; line-height: 1; margin-right: auto; display: flex; align-items: center; gap: .55rem; }
.brand .ball { color: var(--gold-400); font-size: 1.15rem; }
.brand small { display: block; font-family: 'Lora', serif; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-400); font-weight: 400; margin-top: 2px; }
.nav { display: flex; flex-wrap: wrap; gap: .1rem .2rem; align-items: center; }
.nav a {
  color: #e9e0cf; text-decoration: none; text-transform: uppercase;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 500; font-size: 1.02rem;
  letter-spacing: .04em; padding: .3rem .6rem; border-radius: 4px; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--pine-700); color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold-400); }

/* Hero */
.hero { position: relative; background: var(--pine-900); color: #fff; overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero .hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 9vw, 6.5rem) 1.25rem clamp(2.6rem, 7vw, 5rem); }
.hero.tall .hero-inner { padding-top: clamp(4rem, 12vw, 8rem); padding-bottom: clamp(3.5rem, 9vw, 6rem); }
.hero h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero .lede { font-size: 1.22rem; max-width: 46ch; color: #f4eddd; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .22em; font-size: .82rem; font-weight: 600; color: var(--gold-400); margin-bottom: .8rem; }
.hero .eyebrow { color: var(--gold-400); }

/* Content */
main { padding: 2.4rem 0 3rem; }
.lede { font-size: 1.22rem; color: var(--ink-600); }
main .lede { color: #37402f; }
figure { margin: 1.8rem 0; }
figure img { border-radius: 6px; box-shadow: 0 12px 34px rgba(18,54,43,.16); border: 1px solid var(--line); }
figure figcaption { font-size: .86rem; color: var(--ink-600); margin-top: .5rem; font-style: italic; text-align: center; }

.section-band { background: var(--parchment-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; margin: 1.8rem 0; padding: 0; list-style: none; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 1.3rem 1.35rem; box-shadow: 0 4px 14px rgba(18,54,43,.05); }
.card h3 { margin-top: 0; }
.card h3 a { text-decoration: none; color: var(--pine-700); }
.card h3 a:hover { color: var(--cedar-600); }
.card p { margin-bottom: 0; font-size: .98rem; color: var(--ink-600); }
.card .tag { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--cedar-600); font-weight: 600; }

/* Callout / support box */
.callout { background: linear-gradient(180deg, #f4efe2, #efe7d5); border: 1px solid var(--line); border-left: 5px solid var(--cedar-500); border-radius: 6px; padding: 1.2rem 1.35rem; margin: 1.8rem 0; }
.callout.support { border-left-color: var(--pine-500); }
.callout h3 { margin-top: 0; }

/* Stat / record list */
.record { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1.6rem 0; }
.record li { background: var(--pine-700); color: #fff; border-radius: 8px; padding: 1.1rem; text-align: center; }
.record li b { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 2.3rem; line-height: 1; color: var(--gold-400); }
.record li span { font-size: .95rem; }

/* Buttons */
.btn { display: inline-block; background: var(--cedar-500); color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 600; letter-spacing: .05em; padding: .7rem 1.4rem; border-radius: 5px; border: none; cursor: pointer; font-size: 1.05rem; transition: transform .12s ease, background .15s ease; }
.btn:hover { background: var(--cedar-600); color: #fff; transform: translateY(-2px); }
.btn.ghost { background: transparent; border: 2px solid var(--gold-400); color: var(--gold-400); }
.btn.ghost:hover { background: var(--gold-400); color: var(--pine-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 .5rem; }

/* Directions route blocks */
.route { background: var(--paper); border: 1px solid var(--line); border-radius: 7px; padding: 1rem 1.3rem; margin: 1rem 0; }
.route h3 { margin-top: .2rem; color: var(--cedar-600); }

/* Contact form */
.contact-form { display: grid; gap: 1rem; max-width: 560px; margin: 1.6rem 0; }
.contact-form label { display: grid; gap: .3rem; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; color: var(--pine-700); font-weight: 600; }
.contact-form input, .contact-form textarea { font-family: 'Lora', serif; font-size: 1rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--ink-900); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--pine-500); border-color: var(--pine-500); }

/* Footer */
footer.site { background: var(--pine-900); color: #d8cdb6; margin-top: 2rem; border-top: 4px solid var(--cedar-500); }
footer.site .wrap { padding-top: 2.4rem; padding-bottom: 2.4rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.8rem; }
footer.site h4 { color: var(--gold-400); text-transform: uppercase; font-size: 1.1rem; margin: 0 0 .7rem; }
footer.site a { color: #ece3ce; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site .fnav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; list-style: none; padding: 0; margin: 0; }
footer.site .disclaimer { font-size: .9rem; color: #b9ad93; line-height: 1.6; }
footer.site .legal { grid-column: 1 / -1; border-top: 1px solid #274a3d; padding-top: 1.1rem; font-size: .82rem; color: #a99d84; }

/* Progressive-enhancement safeguard: content is NEVER hidden waiting on JS. */
[data-aos] { opacity: 1 !important; transform: none !important; }
.reveal { animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .topbar .wrap { flex-direction: column; align-items: flex-start; }
  .brand { margin-right: 0; }
  .nav { width: 100%; }
  footer.site .wrap { grid-template-columns: 1fr; }
}
