/* Studland Summer Camp
   Crimson Pro, Outfit, and Dekko are used under the SIL Open Font License.
   See fonts/OFL.txt. */

@font-face {
  font-family: "Crimson Pro";
  src: url("../fonts/crimson-pro.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Pro";
  src: url("../fonts/crimson-pro-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Dekko";
  src: url("../fonts/dekko.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3eee4;
  --paper-2: #f7f3ea;
  --card: #fffdf8;
  --ink: #24312a;
  --pine: #1b3a2c;
  --meadow: #2f6a4a;
  --muted: #5c675f;
  --sky: #99ccff;
  --sky-deep: #2f6f96;
  --clay: #a33b2b;
  --gold: #e0a82a;
  --gold-soft: #f3d48a;
  --line: rgba(27, 58, 44, 0.12);
  --shadow: 0 14px 34px rgba(48, 36, 16, 0.12);
  --serif: "Crimson Pro", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --hand: "Dekko", "Segoe Print", cursive;
  --wrap: 1080px;
  --read: 42rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 0% -10%, rgba(153, 204, 255, 0.28), transparent 42%),
    radial-gradient(ellipse at 100% 0%, rgba(224, 168, 42, 0.14), transparent 36%),
    var(--paper);
  font-family: var(--sans);
  font-weight: 430;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-variant-numeric: oldstyle-nums;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--meadow);
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(153, 204, 255, 0.95);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--clay);
  text-decoration-color: var(--clay);
}

:focus-visible {
  outline: 2px solid var(--sky-deep);
  outline-offset: 3px;
}

::selection {
  background: #f0d48a;
  color: var(--pine);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--pine);
  color: #fff;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
}
.skip:focus { top: 0.6rem; }

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.reading {
  width: min(var(--read), 100%);
  margin-inline: auto;
}

h1, h2, h3, .brand-name, .deck, .season-status, .tent-note, .ticket-postcode {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  color: var(--pine);
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 3.7rem);
  line-height: 1.08;
}
h1.sentence {
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  line-height: 1.2;
}
h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  line-height: 1.2;
}
h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

p { margin: 0; }
p + p { margin-top: 1rem; }

.kicker,
.footer-label,
.season,
.action small {
  font-family: var(--sans);
  font-weight: 640;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--meadow);
}

.stress {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 560;
  color: var(--pine);
  text-decoration: underline;
  text-decoration-color: var(--sky);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.hookup {
  font-weight: 650;
  color: var(--clay);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 243, 234, 0.96);
  border-bottom: 1px solid var(--line);
}

.skybar {
  height: 5px;
  background: linear-gradient(90deg, #7eb6de, var(--sky) 30%, #f3d48a 70%, #7eb6de);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--wrap), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.75rem 0 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}
.brand:hover { color: inherit; }

.sun { display: block; flex: none; }
.sun text {
  font-family: var(--sans);
  font-weight: 700;
}

.brand-name {
  display: block;
  font-size: 1.48rem;
  line-height: 1;
}
.brand-est {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--hand);
  font-size: 1.22rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--meadow);
  line-height: 1;
}

.bn-mark {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 640;
  color: var(--meadow);
}

.site-nav {
  border-top: 1px solid var(--sky);
}

.site-nav ul {
  display: flex;
  justify-content: center;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0 auto;
  padding: 0.15rem 1.1rem 0.35rem;
  width: min(var(--wrap), 100%);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.site-nav ul::-webkit-scrollbar { display: none; }

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--pine);
  text-decoration: none;
  font-weight: 560;
  font-size: 0.96rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.site-nav a:hover { color: var(--clay); }

@media (max-width: 980px) {
  .site-nav ul {
    justify-content: flex-start;
    width: 100%;
    scroll-snap-type: x proximity;
  }
  .site-nav li { scroll-snap-align: start; }
  .site-nav {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 28px), transparent);
  }
}

/* Mast ---------------------------------------------------- */

.mast img {
  display: block;
  width: 100%;
  height: auto;
}

/* Intro --------------------------------------------------- */

.page-intro {
  text-align: center;
  padding: 2.3rem 0 0.4rem;
}

.page-intro .kicker { margin-bottom: 0.45rem; }

.rule {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: min(9rem, 40%);
  margin: 0.95rem auto 0;
}
.rule::before,
.rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--sky);
}
.rule span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(224, 168, 42, 0.2);
}

.deck {
  width: min(44rem, 100%);
  margin: 1.15rem auto 0;
  font-size: clamp(1.28rem, 2.1vw, 1.55rem);
  line-height: 1.45;
  font-weight: 480;
}

.center { text-align: center; }

/* Season notice ------------------------------------------- */

.season-banner {
  background:
    linear-gradient(180deg, rgba(163, 59, 43, 0.06), rgba(163, 59, 43, 0.02));
  border-bottom: 1px solid rgba(163, 59, 43, 0.16);
  text-align: center;
  padding: 1.7rem 0 1.55rem;
}
.season-status {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  color: var(--clay);
  line-height: 1.1;
}
.season-thanks {
  margin-top: 0.45rem;
  font-size: 1.12rem;
}
.season-links { margin-top: 0.7rem; }
.season-warn {
  display: inline-block;
  margin: 0.95rem 0 0;
  padding: 0.4rem 0.85rem;
  border: 1px dashed rgba(163, 59, 43, 0.55);
  color: var(--clay);
  font-weight: 640;
  background: rgba(255, 253, 248, 0.7);
}

/* Photographs --------------------------------------------- */

.snap-row { text-align: center; margin: 1.6rem auto 0.4rem; }

.snap-pair {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
}

.snap {
  display: block;
  width: 230px;
  max-width: 44vw;
  transform: rotate(var(--tilt, -2.5deg));
  transition: transform 0.35s ease;
  text-decoration: none;
}
.snap:last-child { --tilt: 2.4deg; margin-top: 1.5rem; }
.snap:first-child { --tilt: -3deg; }
.snap img {
  display: block;
  width: 100%;
  background: #fff;
  box-shadow: var(--shadow);
}
.snap:hover { transform: rotate(0deg) translateY(-6px); }
.snap.feature { width: min(320px, 70vw); }

.see-photos { margin-top: 1.15rem; font-size: 0.98rem; }

/* Meadow welcome ------------------------------------------ */

.meadow-band {
  margin-top: 2.6rem;
  padding: 3.2rem 0 3rem;
  text-align: center;
  color: #f6f1e6;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(255, 255, 255, 0.08), transparent 42%),
    radial-gradient(ellipse at 90% 120%, rgba(224, 168, 42, 0.18), transparent 46%),
    linear-gradient(165deg, #24543c, #173528 55%, #1d4032);
}
.meadow-band p {
  width: min(40rem, 100%);
  margin-inline: auto;
  font-size: 1.12rem;
}
.meadow-band strong {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 560;
  font-size: 1.28em;
  color: var(--gold-soft);
}
.hand-quote {
  margin-top: 0.85rem;
  font-family: var(--hand);
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  line-height: 1.2;
  color: #fff;
}

/* Facilities, lists, cards -------------------------------- */

.block { margin: 2.8rem auto; }

.facilities-block h2 { text-align: center; }

.nice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nice-list li {
  position: relative;
  padding: 0.62rem 0 0.62rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.nice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 3px rgba(153, 204, 255, 0.28);
}

.facilities { columns: 2 260px; column-gap: 2.4rem; margin-top: 0.4rem; }
.facilities li { break-inside: avoid; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem 1.15rem;
  box-shadow: 0 12px 30px rgba(40, 32, 16, 0.045);
}

.footnotes {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footnotes a { color: inherit; }

.callout {
  background: #fffaf3;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  padding: 1.05rem 1.15rem;
}
.callout.warn {
  background: #fbf4ef;
  border-left-color: var(--clay);
}

.tent-note {
  margin: 1.4rem 0;
  text-align: center;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--clay);
  line-height: 1.25;
}

.tariff {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0.3rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(40, 32, 16, 0.045);
}
.tariff li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.35;
  font-variant-numeric: lining-nums;
}
.tariff li:last-child { border-bottom: 0; }

.date-grid,
.place-grid,
.two-lists,
.split,
.footer-grid,
.contact-layout {
  display: grid;
  gap: 1.15rem;
}

.date-grid,
.place-grid,
.two-lists { grid-template-columns: 1fr 1fr; }
.split,
.contact-layout { grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr); align-items: center; }
.footer-grid { grid-template-columns: 1.4fr 1fr 1.15fr; gap: 2rem; }

.date-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sky);
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.2rem;
  box-shadow: 0 10px 26px rgba(40, 32, 16, 0.05);
}
.date-card h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
}

.ticket {
  background:
    linear-gradient(180deg, rgba(153, 204, 255, 0.22), transparent 28%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.3rem 1.35rem 1.15rem;
  box-shadow: var(--shadow);
}
.ticket-address {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--pine);
  margin-top: 0.35rem;
}
.ticket-postcode {
  margin: 0.35rem 0 0.7rem;
  font-size: 2rem;
  letter-spacing: 0.04em;
}
.w3w {
  font-family: var(--hand);
  font-size: 1.55rem;
  color: var(--pine);
  line-height: 1.1;
  margin: 0.2rem 0 0.8rem;
}
.coords {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem 1.1rem;
  margin: 0;
  align-items: baseline;
}
.coords div { display: contents; }
.coords dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 640;
}
.coords dd {
  margin: 0;
  font-variant-numeric: lining-nums;
  font-weight: 560;
}

.card-img {
  display: block;
  width: min(100%, 523px);
  margin-inline: auto;
  background: #fff;
  box-shadow: var(--shadow);
}
.map-img { width: min(100%, 460px); }

.route { margin-top: 1.55rem; }
.two-lists { align-items: start; }

.contact-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.8rem;
  margin-top: 0.45rem;
  font-variant-numeric: lining-nums;
  font-weight: 600;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.1rem 0;
}
.action {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: 0 8px 20px rgba(40, 32, 16, 0.05);
  color: var(--pine);
}
.action:hover { border-color: var(--gold); color: var(--pine); }
.action strong {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 560;
  font-variant-numeric: lining-nums;
  line-height: 1.2;
}

.postal-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.place h2,
.place h3 { font-size: 1.4rem; }
.place p { line-height: 1.5; }
.phone {
  display: inline-block;
  margin-top: 0.55rem;
  font-weight: 650;
  font-variant-numeric: lining-nums;
  color: var(--pine);
  text-decoration: none;
  border-bottom: 2px solid var(--sky);
}
.phone:hover { color: var(--clay); border-bottom-color: var(--clay); }

.emergency {
  grid-column: 1 / -1;
  border-left: 4px solid var(--clay);
}

/* Rules --------------------------------------------------- */

.agreement {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.28rem;
  text-align: center;
  line-height: 1.4;
}

.rules {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  counter-reset: rule;
}
.rules > li {
  counter-increment: rule;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 0.9rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.rules > li::before {
  content: counter(rule, decimal-leading-zero);
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.35rem;
  color: #b8892e;
  line-height: 1.3;
}
.rules h2 {
  font-size: 1.28rem;
  margin: 0;
}
.rules .nice-list { margin-top: 0.35rem; }
.management {
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.closer {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--pine);
}

/* Gallery ------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem 1.15rem;
  align-items: start;
  margin: 1.6rem 0 2rem;
}
.gallery figure { margin: 0; }
.gallery .span-all { grid-column: 1 / -1; }
.gallery .span-2 { grid-column: span 2; }
.gallery .span-all .zoom { width: min(100%, 680px); margin-inline: auto; }

.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 2px;
}
.zoom img {
  display: block;
  width: 100%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(40, 32, 16, 0.14);
}
.gallery figcaption {
  font-family: var(--hand);
  font-size: 1.4rem;
  text-align: center;
  color: var(--pine);
  line-height: 1.15;
  margin-top: 0.45rem;
}
.gallery figure { scroll-margin-top: 8.5rem; }

.lightbox {
  border: 0;
  padding: 0.5rem;
  background: transparent;
  color: #fff;
  max-width: 98vw;
}
.lightbox::backdrop { background: rgba(14, 24, 18, 0.86); }
.lightbox-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "close close close"
    "prev fig next";
  align-items: center;
  gap: 0.55rem 0.4rem;
}
.lightbox-close { grid-area: close; justify-self: end; }
.lightbox-prev { grid-area: prev; }
.lightbox-next { grid-area: next; }
.lightbox figure { grid-area: fig; margin: 0; }
.lightbox-cap {
  grid-area: cap;
  text-align: center;
  font-family: var(--hand);
  font-size: 1.6rem;
  margin: 0.2rem 0 0;
}
.lightbox img {
  display: block;
  max-width: min(86vw, 960px);
  max-height: 76vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  background: #fff;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.85rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.22); }

.fine { color: var(--muted); font-size: 0.95rem; }
.gallery-note { text-align: center; color: var(--muted); margin-top: 0.8rem; }

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

.site-footer {
  margin-top: 3.5rem;
  background: var(--pine);
  color: #e7efe8;
  padding: 2.8rem 0 1.3rem;
}
.site-footer a { color: var(--gold-soft); text-decoration-color: rgba(243, 212, 138, 0.45); }
.site-footer a:hover { color: #fff; }
.footer-brand {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.7rem;
  color: #fff;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}
.footer-label { color: var(--sky); margin-bottom: 0.45rem; }
.site-footer .w3w { color: #fff; font-size: 1.35rem; margin: 0.45rem 0; }
.site-footer .fine { color: #c9d7ce; margin-top: 0.7rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 1.7rem;
}
.footer-nav a {
  color: #d7e6dc;
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-nav a:hover,
.footer-nav a[aria-current="page"] { color: var(--gold-soft); }
.legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(153, 204, 255, 0.35);
  color: #d5e2da;
  font-size: 0.92rem;
}
.legal p { margin: 0; }

/* Layout shifts ------------------------------------------- */

@media (max-width: 800px) {
  .date-grid,
  .place-grid,
  .two-lists,
  .split,
  .contact-layout,
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .emergency { grid-column: auto; }
  .contact-layout { align-items: start; }
}

@media (max-width: 640px) {
  .bn-mark { display: none; }
  .brand-name { font-size: 1.22rem; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .span-2,
  .gallery .span-all { grid-column: auto; }
  .facilities { columns: 1; }
  .coords { grid-template-columns: auto 1fr; }
  .lightbox-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "close close"
      "fig fig"
      "prev next";
  }
}

@media (max-width: 420px) {
  .snap-pair { flex-direction: column; align-items: center; }
  .snap { width: min(240px, 78vw); max-width: none; }
  .snap:last-child { margin-top: 0.8rem; }
  .wrap { width: min(var(--wrap), calc(100% - 1.6rem)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .snap { transition: none; }
  .snap:hover { transform: rotate(var(--tilt, -2.5deg)); }
}

@media print {
  .site-header { position: static; }
  .skybar, .see-photos, .lightbox, .footer-nav { display: none; }
  body { background: #fff; }
  .meadow-band, .site-footer { background: #fff; color: #000; }
  .meadow-band strong, .hand-quote, .footer-brand { color: #000; }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
