/* ===========================================================================
   Camp page
   ---------------------------------------------------------------------------
   Three problems this is written to solve, in order of how much they cost:

   1. Everything was centred. Centred text is fine for a headline and awful
      for six paragraphs — the eye loses the left edge on every return sweep.
      Body copy here is left-aligned at ~68 characters.

   2. Register sat at the bottom, past the whole description. A parent who
      has already decided had to scroll through everything to act. The button
      now lives in a sticky rail on desktop and a fixed bar on mobile.

   3. Only the short description showed, so the writing never got read.
      The full content renders, and is typeset to be readable at length.
   =========================================================================== */

.crp-camp {
	--crp-ink:      #16191a;
	--crp-ink-2:    #56605c;
	--crp-ink-3:    #8a938e;
	--crp-rule:     #e2e6e1;
	--crp-paper:    #ffffff;
	--crp-tint:     #f4f6f3;
	--crp-accent:   var(--crp-primary, #1e5c48);
	--crp-on-accent: var(--crp-on-primary, #ffffff);
	--crp-warn:     #a8620d;

	color: var(--crp-ink);
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 24px 120px;
	font-size: 17px;
	line-height: 1.6;
	text-align: left;
}

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

/* ---------- hero ---------- */

.crp-hero {
	padding: 48px 0 30px;
	border-bottom: 1px solid var(--crp-rule);
	margin-bottom: 36px;
}

.crp-eyebrow {
	margin: 0 0 12px;
	font-size: 13px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--crp-accent);
	font-weight: 600;
}

.crp-title {
	margin: 0;
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-wrap: balance;
	max-width: 18ch;
}

.crp-lede {
	margin: 16px 0 0;
	font-size: clamp(18px, 2.2vw, 21px);
	line-height: 1.5;
	color: var(--crp-ink-2);
	max-width: 54ch;
}

/* ---------- layout ---------- */

.crp-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 56px;
	align-items: start;
}

/* ---------- facts strip ---------- */

.crp-facts {
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1px;
	background: var(--crp-rule);
	border: 1px solid var(--crp-rule);
	border-radius: 8px;
	overflow: hidden;
}

.crp-facts li {
	background: var(--crp-paper);
	padding: 16px 18px;
	margin: 0;
}

.crp-fact-k {
	display: block;
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--crp-ink-3);
	margin-bottom: 4px;
}

.crp-fact-v {
	display: block;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.3;
}

/* ---------- the description ---------- */

.crp-prose {
	max-width: 68ch;   /* the whole point of item 1 */
}

.crp-prose > * + * { margin-top: 1.15em; }

.crp-prose p {
	margin: 0;
	font-size: 17.5px;
	line-height: 1.68;
}

/* Opening paragraph carries a little more weight, so the page has a voice. */
.crp-prose > p:first-of-type {
	font-size: 19px;
	line-height: 1.6;
	color: var(--crp-ink);
}

.crp-prose h2 {
	margin: 1.9em 0 0;
	font-size: 25px;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.crp-prose h3 {
	margin: 1.6em 0 0;
	font-size: 19px;
	line-height: 1.3;
}

.crp-prose ul,
.crp-prose ol { margin: 0; padding-left: 22px; }
.crp-prose li + li { margin-top: 6px; }

.crp-prose strong { font-weight: 600; }

/* ---------- schedule ---------- */

.crp-schedule { margin-top: 56px; }

.crp-schedule h2 {
	margin: 0 0 6px;
	font-size: 25px;
	letter-spacing: -0.01em;
}

.crp-schedule-note {
	margin: 0 0 22px;
	color: var(--crp-ink-2);
	font-size: 15px;
}

.crp-days {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 18px;
}

.crp-day {
	border: 1px solid var(--crp-rule);
	border-radius: 8px;
	padding: 18px 20px 20px;
	background: var(--crp-paper);
}

.crp-day-h {
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--crp-rule);
	font-size: 15px;
	letter-spacing: 0.02em;
	color: var(--crp-accent);
	font-weight: 600;
}

.crp-day-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.crp-day-items li {
	display: grid;
	/* The time column sizes to the widest time in THIS card rather than a
	   fixed 88px. A range like "4:00-6:00pm" overflowed the fixed column and
	   printed on top of the activity beside it. Grid columns are shared
	   across rows, so every row in a card still lines up. */
	grid-template-columns: auto minmax(0, 1fr);
	gap: 10px;
	padding: 7px 0;
	font-size: 15px;
	line-height: 1.4;
	border-top: 1px solid #f1f3f0;
}
.crp-day-items li:first-child { border-top: 0; }

.crp-time {
	color: var(--crp-ink-2);
	font-variant-numeric: tabular-nums;
	font-size: 14px;
	white-space: nowrap;
}

/* On a narrow phone a long range plus a long activity can still crowd. Let
   the two stack rather than squeeze. */
@media (max-width: 380px) {
	.crp-day-items li { grid-template-columns: 1fr; gap: 2px; }
	.crp-time { font-size: 13px; }
}

.crp-activity { font-weight: 500; }

/* ---------- sticky rail ---------- */

.crp-rail {
	position: sticky;
	top: 24px;
}

.crp-card {
	border: 1px solid var(--crp-rule);
	border-radius: 10px;
	padding: 24px;
	background: var(--crp-paper);
	box-shadow: 0 1px 3px rgba(20, 30, 25, 0.05), 0 12px 28px -18px rgba(20, 30, 25, 0.28);
}

.crp-card-price {
	margin: 0 0 16px;
	font-size: 38px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.crp-card-meta {
	margin: 0 0 18px;
	padding: 0 0 18px;
	border-bottom: 1px solid var(--crp-rule);
	font-size: 14.5px;
}
.crp-card-meta dt {
	color: var(--crp-ink-3);
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 2px;
}
.crp-card-meta dd { margin: 0 0 12px; font-weight: 500; }
.crp-card-meta dd:last-child { margin-bottom: 0; }

/* ---------- capacity ---------- */

.crp-capacity { margin-bottom: 18px; }

.crp-bar {
	height: 6px;
	border-radius: 99px;
	background: var(--crp-tint);
	overflow: hidden;
	margin-bottom: 8px;
}
.crp-bar span {
	display: block;
	height: 100%;
	background: var(--crp-accent);
	border-radius: 99px;
}
.crp-capacity.is-low .crp-bar span { background: var(--crp-warn); }

.crp-capacity-t {
	margin: 0;
	font-size: 14px;
	color: var(--crp-ink-2);
}
.crp-capacity.is-low .crp-capacity-t { color: var(--crp-warn); font-weight: 600; }

/* ---------- button ---------- */

.crp-btn {
	display: block;
	width: 100%;
	padding: 15px 20px;
	background: var(--crp-accent);
	color: var(--crp-on-accent);
	border: 0;
	border-radius: 7px;
	font-size: 17px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.15s ease;
}
.crp-btn:hover  { filter: brightness(1.08); color: var(--crp-on-accent); }
.crp-btn:active { transform: translateY(1px); }
.crp-btn:focus-visible { outline: 3px solid var(--crp-accent); outline-offset: 2px; }

.crp-btn-sm { width: auto; padding: 12px 26px; font-size: 15.5px; }

.crp-fineprint {
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--crp-ink-3);
}

/* ---------- mobile bar ---------- */

.crp-mobilebar { display: none; }

@media (max-width: 900px) {
	.crp-layout { grid-template-columns: 1fr; gap: 0; }

	/* The rail becomes redundant once the fixed bar is doing the work. */
	.crp-rail { display: none; }

	.crp-camp { padding-bottom: 108px; font-size: 16.5px; }
	.crp-hero { padding-top: 32px; }
	.crp-prose p { font-size: 17px; }
	.crp-days { grid-template-columns: 1fr; }

	.crp-mobilebar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, 0.96);
		backdrop-filter: blur(8px);
		border-top: 1px solid var(--crp-rule);
		box-shadow: 0 -6px 20px -12px rgba(20, 30, 25, 0.35);
	}

	.crp-mobilebar-info { display: flex; flex-direction: column; line-height: 1.2; }
	.crp-mobilebar-price { font-size: 21px; font-weight: 700; }
	.crp-mobilebar-spots { font-size: 12.5px; color: var(--crp-ink-3); }
}

@media (prefers-reduced-motion: reduce) {
	.crp-btn { transition: none; }
}

/* ===========================================================================
   Image hero
   ---------------------------------------------------------------------------
   The title sits on the photo behind a scrim rather than beside it. A camp
   sells on atmosphere, and a photo pushed below the fold does none of that
   work. The scrim is a gradient rather than a flat wash so the top of the
   image stays visible while the text keeps its contrast.
   =========================================================================== */

.crp-hero--image {
	position: relative;
	margin: 0 -24px 28px;
	padding: 0;
	border-bottom: 0;
	min-height: 340px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	border-radius: 0;
	isolation: isolate;
}

.crp-hero--image .crp-hero-img,
.crp-hero--image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.crp-hero-scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to bottom,
		rgba(12, 20, 16, 0.05) 0%,
		rgba(12, 20, 16, 0.35) 45%,
		rgba(12, 20, 16, 0.82) 100%
	);
}

.crp-hero-text {
	position: relative;
	z-index: 2;
	padding: 36px 24px 30px;
	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
}

.crp-hero--image .crp-eyebrow { color: #a8dcc4; }

.crp-hero--image .crp-title {
	color: #fff;
	text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
	max-width: 20ch;
}

.crp-lede--under {
	margin: 0 0 34px;
	font-size: clamp(18px, 2.2vw, 21px);
	line-height: 1.5;
	color: var(--crp-ink-2);
	max-width: 54ch;
}

@media (min-width: 901px) {
	.crp-hero--image { min-height: 420px; border-radius: 0 0 14px 14px; }
}

/* ===========================================================================
   Archive
   =========================================================================== */

.crp-archive {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 24px 96px;
	color: #16191a;
	text-align: left;
}

.crp-archive-head {
	padding: 48px 0 28px;
	border-bottom: 1px solid #e2e6e1;
	margin-bottom: 36px;
}

.crp-archive-head h1 {
	margin: 0;
	font-size: clamp(32px, 5vw, 48px);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.crp-archive-lede {
	margin: 12px 0 0;
	font-size: 18px;
	color: #56605c;
	max-width: 52ch;
}

.crp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 26px;
}

.crp-cardlink {
	border: 1px solid #e2e6e1;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.crp-cardlink:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 34px -20px rgba(20, 30, 25, 0.45);
}

.crp-cardlink.is-past { opacity: 0.62; }
.crp-cardlink.is-past:hover { opacity: 1; }

.crp-cardlink-a {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}
.crp-cardlink-a:focus-visible {
	outline: 3px solid var(--crp-primary, #1e5c48);
	outline-offset: 2px;
}

.crp-cardlink-media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #eef1ed;
	overflow: hidden;
}
.crp-cardlink-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.crp-cardlink-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1e5c48 0%, #2f6b45 55%, #3f8a5c 100%);
}

.crp-tag {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 11px;
	border-radius: 99px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	background: rgba(255, 255, 255, 0.94);
	color: #16191a;
	backdrop-filter: blur(4px);
}
.crp-tag--low  { background: #a8620d; color: #fff; }
.crp-tag--full { background: #7d221d; color: #fff; }
.crp-tag--past { background: rgba(22, 25, 26, 0.78); color: #fff; }

.crp-cardlink-body {
	padding: 20px 22px 22px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.crp-cardlink-dates {
	margin: 0 0 7px;
	font-size: 12.5px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--crp-primary-text, #1e5c48);
	font-weight: 600;
}

.crp-cardlink-title {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.22;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.crp-cardlink-excerpt {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.55;
	color: #56605c;
}

.crp-cardlink-foot {
	margin: auto 0 0;
	padding-top: 14px;
	border-top: 1px solid #eef1ed;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.crp-cardlink-price { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }

.crp-cardlink-cta {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--crp-primary, #1e5c48);
}

.crp-archive-empty { color: #56605c; font-size: 17px; }

@media (max-width: 900px) {
	.crp-hero--image { margin-left: -24px; margin-right: -24px; min-height: 260px; }
	.crp-hero-text { padding: 28px 24px 24px; }
	.crp-archive { padding-bottom: 64px; }
	.crp-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.crp-cardlink { transition: none; }
	.crp-cardlink:hover { transform: none; }
}
