/* Hidden Springs Piano — site styles */

@font-face {
    font-family: 'Instrument Sans';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('/assets/fonts/instrument-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Instrument Sans';
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('/assets/fonts/instrument-sans-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Instrument Sans';
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url('/assets/fonts/instrument-sans-latin-600-normal.woff2') format('woff2');
}

/* ---------- Tokens ---------- */

:root {
    --paper: #F7F4EE;
    --tone: #EEE9DF;
    --white: #FFFDF9;
    --ink: #1C1B18;
    --ink-soft: #3A3732;
    --muted: #66615A;
    --quiet: #8C867C;
    --line: rgba(28, 27, 24, 0.12);
    --line-strong: rgba(28, 27, 24, 0.24);
    --green: #2E4938;
    --green-deep: #22362A;
    --green-mist: #DCE3DA;
    --danger: #8A2E22;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink-soft);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--green);
    color: var(--paper);
}

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

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

p {
    text-wrap: pretty;
}

a {
    color: var(--green);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--green);
    color: var(--paper);
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

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

.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding-inline: clamp(20px, 4vw, 48px);
}

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 32px clamp(40px, 6vw, 96px);
    align-items: start;
}

.section {
    padding-block: clamp(80px, 10vw, 144px);
}

.section--tight {
    padding-top: 0;
}

.section--tone {
    background: var(--tone);
}

main {
    animation: rise 0.8s var(--ease) both;
}

/* ---------- Type ---------- */

.display {
    margin: 0;
    font-weight: 400;
    font-size: clamp(2.9rem, 7.4vw, 6.6rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    color: var(--ink);
    text-wrap: balance;
}

.h2 {
    margin: 0;
    font-weight: 400;
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: var(--ink);
    text-wrap: balance;
}

.h3 {
    margin: 0 0 16px;
    font-weight: 500;
    font-size: 1.3rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--muted);
}

.eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.lead {
    margin: 0;
    max-width: 40ch;
    font-size: clamp(1.1rem, 1.4vw, 1.25rem);
    line-height: 1.55;
    color: var(--ink-soft);
}

.lead--spaced {
    margin-top: 28px;
}

.body {
    margin: 0 0 20px;
    max-width: 58ch;
    font-size: 1.08rem;
    color: var(--ink-soft);
}

.fine {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-arrow {
    display: inline-block;
    transition: transform 0.3s var(--ease);
}

.btn:hover .btn-arrow,
.link:hover .btn-arrow {
    transform: translateX(4px);
}

.btn--primary {
    background: var(--green);
    color: var(--paper);
}

.btn--primary:hover {
    background: var(--green-deep);
}

.btn--ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn--ghost:hover {
    border-color: var(--ink);
}

.btn--light {
    background: var(--paper);
    color: var(--green-deep);
}

.btn--light:hover {
    background: var(--white);
}

.btn--small {
    padding: 11px 20px;
    font-size: 0.92rem;
}

.btn--block {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.6;
    cursor: progress;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--line-strong);
    font-weight: 500;
    color: var(--green);
    text-decoration: none;
    transition: border-color 0.25s ease;
}

.link:hover {
    border-bottom-color: var(--green);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 244, 238, 0.86);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-block: 18px;
}

.wordmark {
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.nav-link:hover,
.nav-link[aria-current='page'] {
    background: var(--tone);
    color: var(--ink);
}

.nav .btn {
    margin-left: 10px;
}

.menu-toggle {
    display: none;
    padding: 10px 18px;
    background: var(--tone);
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
}

/* ---------- Photos ---------- */

.photo {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, #E6DECF 0%, #D8CDB9 55%, #C9BCA4 100%);
}

.photo--wide {
    aspect-ratio: 16 / 8;
}

.photo--portrait {
    aspect-ratio: 4 / 5;
}

.photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: settle 1.6s var(--ease) both;
}

/* Keeps the teacher's hand and the student's hands in frame at wide crops. */
.photo--hero img {
    object-position: 55% 62%;
}

/* ---------- Home ---------- */

.hero {
    padding-block: clamp(48px, 7vw, 104px) clamp(32px, 4vw, 56px);
}

.hero-foot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 32px clamp(40px, 6vw, 96px);
    align-items: end;
    margin-top: clamp(32px, 4vw, 56px);
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 32px clamp(24px, 4vw, 56px);
    margin: clamp(40px, 5vw, 64px) 0 0;
    padding: 0;
    list-style: none;
}

.facts li {
    padding-top: 22px;
    border-top: 1px solid var(--line-strong);
}

.facts p {
    margin: 0;
    max-width: 34ch;
    color: var(--muted);
}

.statement {
    margin: 0;
    max-width: 26ch;
    font-weight: 400;
    font-size: clamp(1.8rem, 3.8vw, 3.1rem);
    line-height: 1.16;
    letter-spacing: -0.03em;
    color: var(--quiet);
}

.statement strong {
    font-weight: 400;
    color: var(--ink);
}

.price-card {
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(28, 27, 24, 0.25);
}

.price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.price-figure {
    font-weight: 400;
    font-size: clamp(4rem, 8vw, 6rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: var(--ink);
}

.price-unit {
    font-size: 1rem;
    color: var(--muted);
}

.price-sub {
    margin: 14px 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.cta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 32px clamp(40px, 6vw, 96px);
    align-items: end;
    padding: clamp(40px, 7vw, 96px);
    border-radius: var(--radius-lg);
    background: var(--green);
    color: var(--green-mist);
}

.cta .display {
    font-size: clamp(2.6rem, 6vw, 5rem);
    color: var(--paper);
}

.cta-text {
    margin: 0 0 28px;
    max-width: 44ch;
    font-size: 1.08rem;
    color: var(--green-mist);
}

/* ---------- About ---------- */

.quote {
    margin: clamp(56px, 7vw, 96px) 0;
    padding: 0;
}

.quote p {
    margin: 0;
    max-width: 24ch;
    font-weight: 400;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: var(--green);
    text-wrap: balance;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 11px 20px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
}

/* ---------- Resources ---------- */

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
}

.card {
    padding: clamp(24px, 3.5vw, 40px);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 1px 0 var(--line);
}

.card--spaced {
    margin-bottom: 48px;
}

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

.list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.list li:last-child {
    border-bottom: none;
}

.tag {
    flex: none;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--green-mist);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--green-deep);
}

.shelf {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    column-gap: 32px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.shelf li {
    padding: 16px 0;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
    border-top: 1px solid var(--line);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
    list-style: none;
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-icon {
    position: relative;
    flex: none;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.5px;
    margin: -0.75px 0 0 -6px;
    background: var(--ink);
    transition: transform 0.35s var(--ease), background 0.3s ease;
}

.faq-icon::after {
    transform: rotate(90deg);
}

.faq-item[open] .faq-icon {
    background: var(--green);
    border-color: var(--green);
}

.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
    background: var(--paper);
}

.faq-item[open] .faq-icon::after {
    transform: rotate(0deg);
}

.faq-answer {
    margin: 0;
    padding: 0 60px 26px 0;
    max-width: 62ch;
    font-size: 1.06rem;
    color: var(--ink-soft);
}

.policy-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.notice {
    margin-bottom: 48px;
    padding: clamp(28px, 4vw, 44px);
    border-radius: var(--radius-lg);
    background: var(--green);
    color: var(--green-mist);
}

.notice-title {
    margin: 0 0 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--paper);
}

.notice-text {
    margin: 0;
    max-width: 70ch;
    font-size: 1.06rem;
    line-height: 1.65;
}

.notice-text strong {
    font-weight: 600;
    color: var(--paper);
}

.policy-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 12px clamp(32px, 5vw, 80px);
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.points {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0 0 0 1.1em;
}

.points li {
    padding-left: 4px;
    color: var(--ink-soft);
}

.points li::marker {
    color: var(--green);
}

.policy-close {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-style: italic;
}

/* ---------- Contact ---------- */

.details {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 48px 0 0;
}

.details dt {
    margin-bottom: 4px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--muted);
}

.details dd {
    margin: 0;
    font-size: 1.08rem;
    color: var(--ink);
}

.optional {
    font-weight: 400;
    color: var(--muted);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
}

.input {
    width: 100%;
    padding: 14px 16px;
    background: var(--paper);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.input::placeholder {
    color: var(--muted);
}

.input:hover {
    border-color: var(--line);
}

.input:focus {
    outline: none;
    border-color: var(--green);
    background: var(--white);
}

textarea.input {
    min-height: 120px;
    resize: vertical;
}

/* Spam trap: hidden from people, visible to naive bots. */
.trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin: 0;
    font-size: 0.95rem;
    color: var(--danger);
}

.form-status:empty {
    display: none;
}

.thanks {
    padding: 48px 8px;
    text-align: center;
}

.thanks-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--green);
    font-size: 1.5rem;
    color: var(--paper);
}

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

.site-footer {
    padding-block: clamp(56px, 7vw, 96px) 28px;
    border-top: 1px solid var(--line);
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 40px;
}

.footer-brand {
    margin: 0 0 12px;
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.footer-label {
    margin: 0 0 14px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--muted);
}

.footer-text {
    margin: 0;
    max-width: 32ch;
    line-height: 1.8;
    color: var(--ink-soft);
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--green);
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(48px, 6vw, 80px);
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
    color: var(--muted);
}

/* ---------- Motion ---------- */

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes settle {
    from {
        transform: scale(1.06);
    }
    to {
        transform: scale(1);
    }
}

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

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
    .js .menu-toggle {
        display: inline-flex;
    }

    .js .nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
        padding: 8px 0 12px;
    }

    .js .nav.is-open {
        display: flex;
    }

    .nav {
        flex-wrap: wrap;
    }

    .js .nav-link {
        padding: 14px 16px;
        font-size: 1.15rem;
    }

    .js .nav .btn {
        margin: 8px 0 0;
    }

    .photo--wide {
        aspect-ratio: 4 / 3;
    }

    .faq-answer {
        padding-right: 0;
    }
}
