/*
 * CampOffice: the public website (body.site). Hand-written, no build step.
 * The family pages have their own styles: resources/css/portal.css.
 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { max-width: 100%; height: auto; }

/* The Color War colors (the office's main look, docs/architecture/design.md). The old names stay so
   every rule keeps working: "pine" is now the dark ink, "lake" team blue, "sun" team gold. */
:root {
    --pine: #141a33;
    --pine-deep: #0e1330;
    --pine-light: #22b07d;
    --lake: #2f5bff;
    --lake-soft: #9db2ff;
    --birch: #f5f7fc;
    --sun: #ffc83a;
    --clay-soft: #ff8f9a;
    --bark: #d93a4c;
    --ink: #141a33;
    --muted: #4c5370;
    --paper: #ffffff;
    --sky: #e9f0ff;
    --grass: #22b07d;
    --team-blue: #2f5bff;
    --team-gold: #ffc83a;
    --team-red: #ff4d5e;
    --team-green: #22b07d;
}

/* ---------------------------------------------------------------- website */

.site {
    font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--birch);
    overflow-x: hidden;
}

.site h1, .site h2, .site h3, .site h4, .site .brand {
    font-family: "Gabarito", "Atkinson Hyperlegible", system-ui, sans-serif;
    font-optical-sizing: auto;
    color: var(--pine);
}

.site a { color: var(--lake); text-underline-offset: 0.18em; }
.site a:focus-visible, .site summary:focus-visible, .fp a:focus-visible, .fp button:focus-visible,
.fp input:focus-visible, .fp select:focus-visible, .fp textarea:focus-visible {
    outline: 3px solid var(--lake);
    outline-offset: 2px;
}

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--paper); padding: 0.5rem 1rem; }

/* header: sits on the sky of the hero picture */
.masthead { padding: 1rem 0; background: var(--sky); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.01em; text-decoration: none; color: var(--pine); }
.site a.brand { color: var(--pine); }
.brand .wordmark { font-weight: 500; }
.brand .wordmark b { font-weight: 800; }
.topnav { display: flex; align-items: center; gap: 1.5rem; }
.topnav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.98rem; }
.topnav a:hover { text-decoration: underline; }
.site .topnav a.topnav-contact { background: var(--pine); color: var(--paper); padding: 0.5rem 1rem; border-radius: 999px; }
.site .topnav a.topnav-contact:hover { background: var(--pine-deep); text-decoration: none; }
/* Below 64rem the links fold into the Menu (site-pages.css, .phone-menu); Talk to us stays. */
@media (max-width: 63.99rem) {
    .topnav a:not(.topnav-contact) { display: none; }
}

/* hero: the words on the sky, the camp picture growing up from the bottom edge */
.hero { background: var(--sky); padding-top: 2rem; }
.hero-copy { padding-bottom: 1.5rem; position: relative; z-index: 1; }
@media (min-width: 60rem) { .hero { padding-top: 3.5rem; } }
.hero h1 {
    font-size: clamp(2.4rem, 6.4vw, 4.8rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
    max-width: 15ch;
}
.hero-lede { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 34em; margin: 0 0 2rem; color: #3a4160; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-note { font-size: 0.95rem; color: var(--muted); margin: 1rem 0 0; max-width: 34em; }
.hero-scene { margin-top: -1rem; }
.hero-scene img {
    display: block; width: 100%;
    height: clamp(16rem, 30vw, 30rem);
    object-fit: cover; object-position: 55% 100%;
    /* The painting's sky fades into the page's, so there is no edge under the words. */
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%);
    mask-image: linear-gradient(to bottom, transparent, #000 22%);
}
@media (min-width: 60rem) {
    .hero-scene { margin-top: -5rem; }
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    border: 2px solid var(--pine);
    line-height: 1.2;
}
.site a.btn-sun { background: var(--sun); color: var(--pine-deep); border-color: var(--sun); box-shadow: 0 4px 0 #d9a514; }
.site a.btn-sun:hover { background: #ffd35f; }
.site a.btn-line { background: transparent; color: var(--pine); }
.site a.btn-line:hover { background: var(--pine); color: var(--paper); }
.site a.btn-pine { background: var(--team-blue); border-color: var(--team-blue); color: var(--paper); box-shadow: 0 4px 0 #1d3fc4; }
.site a.btn-pine:hover { background: #4a70ff; }

/* sections */
.section-h { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
.section-lede { font-size: 1.15rem; color: var(--muted); max-width: 36em; margin: 0 0 2.5rem; }

/* what changes in your office */
.helps { background: var(--paper); padding: 4.5rem 0; }
.helps-grid { display: grid; gap: 3rem; }
@media (min-width: 60rem) { .helps-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 4.5rem; align-items: start; } }
.helps-intro .section-lede { margin-bottom: 0; }
.helps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
/* Each part of the office keeps its team color, as in the office's menu. */
.helps-list li { padding: 1.25rem 0 1.25rem 1.25rem; border-left: 4px solid var(--team-blue); }
.helps-list li:nth-child(3) { border-left-color: var(--team-green); }
.helps-list li:nth-child(4), .helps-list li:nth-child(6) { border-left-color: var(--team-gold); }
.helps-list li:nth-child(5) { border-left-color: var(--team-red); }
.helps-list h3 { margin: 0 0 0.3rem; font-size: 1.3rem; line-height: 1.2; }
.helps-list p { margin: 0; max-width: 36em; }

/* everything that comes with it: four reasons, then every part of the office in its menu color */
.everything { background: var(--paper); padding: 4.5rem 0; border-top: 1px solid #e1e5f0; }
.reasons { list-style: none; margin: 0 0 3rem; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 44rem) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .reasons { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.reasons li { background: var(--birch); border-radius: 1rem; padding: 1.4rem 1.4rem 1.5rem; }
.reasons h3 { margin: 0 0 0.4rem; font-size: 1.2rem; line-height: 1.2; }
.reasons p { margin: 0; color: var(--muted); }
.everything-grid { display: grid; gap: 2.25rem 2.5rem; }
@media (min-width: 44rem) { .everything-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .everything-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.everything-group h3 { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.85rem; font-size: 1.25rem; }
.everything-group h3::before { content: ""; width: 0.75rem; height: 0.75rem; border-radius: 0.2rem; background: var(--group); flex: none; }
.everything-group h3 a { color: var(--pine); text-decoration: none; }
.everything-group h3 a:hover { text-decoration: underline; }
.everything-blue { --group: var(--team-blue); }
.everything-green { --group: var(--team-green); }
.everything-gold { --group: #e0a100; }
.everything-red { --group: var(--team-red); }
.everything-ink { --group: #6b7290; }
.everything .ticks li::before { border-color: var(--group); }
.everything-note { margin: 2.5rem 0 0; color: var(--muted); font-size: 0.95rem; max-width: 46em; }

/* the camp year, in four parts */
.year { background: var(--birch); padding: 4.5rem 0; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: stage; }
@media (min-width: 40rem) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .stages { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } }
.stage { counter-increment: stage; }
.stage img { display: block; width: 100%; height: auto; border-radius: 1rem; margin-bottom: 1rem; }
.stage-name { margin: 0; font-size: 1.35rem; line-height: 1.15; }
.stage-name::before { content: counter(stage) ". "; color: var(--lake); }
.stage-when { margin: 0.15rem 0 0.5rem; font-weight: 700; color: var(--bark); }
.stage p:last-child { margin: 0; }
.assist { margin-top: 3rem; padding: 1.5rem 1.75rem; background: var(--paper); border-radius: 1rem; max-width: 52rem; }
.assist h3 { margin: 0 0 0.4rem; font-size: 1.3rem; }
.assist p { margin: 0; }

/* the two options */
.pricing { background: var(--pine); color: #e3e7f5; padding: 4.5rem 0; }
.pricing .section-h { color: var(--paper); }
.pricing .section-lede { color: #c3c8de; }
.offers { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.offer { background: var(--paper); color: var(--ink); border-radius: 1.25rem; padding: 1.75rem 1.75rem 2rem; border-top: 8px solid var(--lake-soft); }
.offer-full { border-top-color: var(--sun); }
.offer:not(.offer-full) { border-top-color: var(--team-blue); }
.offer-name { margin: 0; font-size: 1.6rem; line-height: 1.15; }
.offer-price { margin: 0.6rem 0 0; font-size: 1.15rem; color: var(--muted); }
.offer-price strong { font-family: "Gabarito", system-ui, sans-serif; font-size: clamp(2.4rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; color: var(--pine); margin-right: 0.15rem; }
.offer-for { margin: 0.5rem 0 1.25rem; font-weight: 700; color: var(--pine); }
.offer-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.offer-list li { position: relative; padding-left: 1.6rem; }
.offer-list li::before { content: ""; position: absolute; left: 0.1rem; top: 0.45em; width: 0.75rem; height: 0.42rem; border-left: 3px solid var(--pine-light, #4f7d55); border-bottom: 3px solid var(--pine-light, #4f7d55); transform: rotate(-45deg); }
.pricing-more { margin: 1.75rem 0 0; }
.site .pricing-more a { color: var(--sun); font-weight: 700; }

/* questions */
.faq { padding: 4.5rem 0; }
.faq-wrap { max-width: 50rem; }
.faq details { border-bottom: 2px solid #e1e5f0; }
.faq summary {
    cursor: pointer; list-style: none;
    padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
    font-weight: 700; font-size: 1.12rem; color: var(--pine);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 0.25rem; top: 0.85rem;
    font-size: 1.6rem; line-height: 1; color: var(--lake);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.25rem; max-width: 40em; }

/* contact */
.contact { background: var(--sun); padding: 4.5rem 0; color: var(--pine-deep); }
.contact-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .contact-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 4rem; } }
.contact-art { width: 100%; max-width: 26rem; height: auto; border-radius: 1.25rem; transform: rotate(1.2deg); box-shadow: 0 16px 32px -18px rgba(20, 26, 51, 0.6); }
@media (max-width: 51.99rem) { .contact-art { display: none; } }
.contact .section-lede { color: var(--pine-deep); }
.contact-mail { margin: 1rem 0 0; font-family: "Gabarito", system-ui, sans-serif; font-weight: 800; font-size: clamp(1.3rem, 4vw, 2rem); overflow-wrap: anywhere; }
.site .contact a:not(.btn) { color: var(--pine-deep); }
.contact-demo { margin: 1.5rem 0 0; }

.foot { background: var(--pine-deep); color: #c3c8de; padding: 2.5rem 0 1.5rem; font-size: 0.95rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.site .brand-small { font-size: 1.05rem; color: var(--paper); gap: 0.45rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site .foot-nav a { color: #e3e7f5; text-decoration: none; }
.site .foot-nav a:hover { text-decoration: underline; }
.foot-end { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; }
.site .foot-staff { color: #9aa1bd; font-size: 0.8rem; text-decoration: none; }
.site .foot-staff:hover { color: #e3e7f5; text-decoration: underline; }

/* --------------------------------------------------------------- motion */

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