/* New England Light — independent regional-photography editorial.
   Light highland field-journal theme: eucalyptus green + wattle ochre on cool paper.
   Custom editorial system (CSS Grid / Flexbox + custom properties).
   CONTENT IS ALWAYS VISIBLE — no JS-gated hiding anywhere. */

:root {
  --ink: #26382e;
  --ink-soft: #3e5245;
  --accent: #c0873c;
  --accent-deep: #9c6a28;
  --slate: #6e7c74;
  --paper: #f4f5f1;
  --paper-alt: #eaede6;
  --paper-deep: #e2e6dc;
  --line: #d7ddd0;
  --text: #23271f;
  --text-soft: #55605a;
  --white: #fbfcf9;
  --shadow-sm: 0 1px 3px rgba(38, 56, 46, .08), 0 6px 20px rgba(38, 56, 46, .06);
  --shadow-md: 0 6px 28px rgba(38, 56, 46, .14);
  --measure: 44rem;
  --max: 76rem;
  --serif-display: "Fraunces", Georgia, "Times New Roman", serif;
  --serif-body: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 1.125rem;
  line-height: 1.72;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

/* Safeguard: never let any reveal library leave content hidden (insurance). */
[data-aos] { opacity: 1 !important; transform: none !important; }

/* Accessibility */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 245, 241, .94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  max-width: var(--max); margin: 0 auto; padding: .85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.wordmark {
  font-family: var(--serif-display);
  font-weight: 600; font-size: 1.4rem; letter-spacing: .01em;
  color: var(--ink); text-decoration: none; line-height: 1; white-space: nowrap;
  display: inline-flex; align-items: baseline; gap: .5rem;
}
.wordmark .mark {
  font-size: 1.05rem; color: var(--accent-deep);
  border: 1.5px solid var(--accent); border-radius: 50%;
  width: 1.9rem; height: 1.9rem; display: inline-flex; align-items: center; justify-content: center;
}
.wordmark small { display: block; font-family: var(--sans); font-weight: 500;
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--slate); }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
  text-decoration: none; padding: .35rem 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--accent); transition: right .22s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 6px;
  width: 2.6rem; height: 2.4rem; cursor: pointer; color: var(--ink); align-items: center; justify-content: center;
}
.nav-toggle svg { width: 1.3rem; height: 1.3rem; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--paper-deep); }
.hero__img {
  width: 100%; height: clamp(300px, 46vh, 540px); object-fit: cover;
}
.hero--home .hero__img { height: clamp(360px, 62vh, 660px); }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,28,22,.10) 0%, rgba(20,28,22,0) 34%, rgba(20,28,22,.42) 100%);
}
.hero__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: var(--max); margin: 0 auto; padding: 1.4rem 1.5rem;
  color: var(--white);
}
.hero__eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: #f2e4cf; margin: 0 0 .4rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.hero__title {
  font-family: var(--serif-display); font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.02; margin: 0; max-width: 20ch;
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
}

/* ---------- Article ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.article { max-width: var(--measure); margin: 0 auto; padding: 3rem 0 3.5rem; }
.article > h1 {
  font-family: var(--serif-display); font-weight: 600; color: var(--ink);
  font-size: clamp(2rem, 4.6vw, 2.9rem); line-height: 1.08; margin: 0 0 1.1rem;
  letter-spacing: -.005em;
}
.article h2 {
  font-family: var(--serif-display); font-weight: 600; color: var(--ink);
  font-size: 1.55rem; line-height: 1.2; margin: 2.4rem 0 .8rem; padding-top: .3rem;
}
.article h2::before {
  content: ""; display: block; width: 2.4rem; height: 3px; background: var(--accent);
  border-radius: 2px; margin-bottom: .9rem;
}
.article h3 { font-family: var(--serif-display); font-weight: 600; font-size: 1.2rem; color: var(--ink-soft); margin: 1.6rem 0 .5rem; }
.article p { margin: 0 0 1.15rem; }
.article .lede {
  font-size: 1.32rem; line-height: 1.55; color: var(--ink-soft); font-style: italic;
  margin: 0 0 1.6rem; padding-left: 1.1rem; border-left: 3px solid var(--accent);
}
.article ul, .article ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.article li { margin: 0 0 .55rem; }
.article ul { list-style: none; padding-left: 0; }
.article ul li { position: relative; padding-left: 1.5rem; }
.article ul li::before {
  content: ""; position: absolute; left: .1rem; top: .72em; width: .5rem; height: .5rem;
  background: var(--accent); border-radius: 50%;
}
.article dl { margin: 0 0 1.3rem; }
.article dt { font-weight: 600; color: var(--ink); margin-top: 1rem; }
.article dd { margin: .2rem 0 .2rem; color: var(--text-soft); }
.article strong { color: var(--ink); }
.article a { font-weight: 600; }

/* Figures */
.figure { margin: 2rem 0; }
.figure img { border-radius: 6px; box-shadow: var(--shadow-md); width: 100%; }
.figure figcaption {
  font-family: var(--sans); font-size: .82rem; color: var(--slate); margin-top: .6rem; text-align: center;
  letter-spacing: .01em;
}

/* Contact form */
.contact-form { display: grid; gap: 1rem; margin: 1.5rem 0 .5rem; }
.contact-form label { display: grid; gap: .35rem; font-family: var(--sans); font-size: .82rem;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.contact-form input, .contact-form textarea {
  font-family: var(--serif-body); font-size: 1rem; color: var(--text);
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: .7rem .8rem;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(192,135,60,.18); }
.contact-form button {
  justify-self: start; font-family: var(--sans); font-weight: 600; letter-spacing: .04em;
  color: var(--white); background: var(--ink); border: none; border-radius: 6px;
  padding: .75rem 1.6rem; cursor: pointer; transition: background .2s ease;
}
.contact-form button:hover { background: var(--accent-deep); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #d5ddce; margin-top: 3rem; }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 3rem 1.5rem 1.5rem;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.footer h2 { font-family: var(--serif-display); color: var(--white); font-size: 1.15rem; margin: 0 0 .8rem; font-weight: 600; }
.footer p { margin: 0 0 .8rem; font-size: .96rem; color: #c3cdbd; line-height: 1.6; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 .5rem; }
.footer a { color: #e7ecdf; text-decoration: none; font-size: .95rem; }
.footer a:hover { color: var(--accent); text-decoration: underline; }
.footer__brand .wm { font-family: var(--serif-display); font-size: 1.4rem; color: var(--white); font-weight: 600; }
.footer__disclaimer {
  max-width: var(--max); margin: 0 auto; padding: 1.2rem 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,.12); font-family: var(--sans); font-size: .78rem;
  color: #9fab98; line-height: 1.6; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: space-between;
}
.footer__disclaimer p { margin: 0; color: #9fab98; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .nav.is-open { max-height: 30rem; }
  .nav a { padding: .95rem 1.5rem; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .masthead__inner { position: relative; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.6rem; }
}

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