/* Mindhatch shared design system. Kept separate from the legacy main.css.
   Sections follow the HTML. Change the tokens here before adding overrides. */
@font-face {
    font-family: "Poppins";
    src: url("../webfonts/poppins-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #14364e;
    --text: #2e556f;
    --paper: #fffaf3;
    --white: #fff;
    --teal: #27a0b4;
    --deep-teal: #166f82;
    --orange: #f08519;
    --orange-hover: #ffb663;
    --aqua: #dff3f7;
    --sand: #ffe8ce;
    --line: #c4d5d6;
    --page-width: 76rem;
    --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --heading-font: "Poppins", var(--body-font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--text); font: 1.0625rem/1.7 var(--body-font); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--ink); font-family: var(--heading-font); font-weight: 700; }
h1 { font-size: clamp(2.65rem, 4.3vw, 4.25rem); line-height: 1.13; letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 3.15vw, 2.9rem); line-height: 1.2; letter-spacing: -.045em; }
h3 { font-size: 1.15rem; line-height: 1.4; letter-spacing: -.025em; }
p + p { margin-top: 1rem; }
a { color: var(--deep-teal); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
button, summary, [role="button"] { cursor: pointer; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--deep-teal); outline-offset: 5px; }
[hidden] { display: none !important; }
main:focus { outline: none; }
.container { width: min(var(--page-width), calc(100% - 5rem)); margin-inline: auto; }
.section-space { padding-block: clamp(4rem, 7vw, 7rem); }
.eyebrow, .small-label { color: var(--deep-teal); font-size: .75rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { margin-bottom: 1.3rem; }
.section-intro > p:not(.eyebrow) { margin-top: 1.4rem; max-width: 36rem; }
.text-link { display: inline-flex; gap: .8rem; align-items: center; min-height: 44px; font-weight: 700; }
.text-link span { font-size: 1.2em; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.3rem;
    min-height: 54px;
    padding: .9rem 1.4rem;
    border: 2px solid transparent;
    border-radius: .45rem;
    background: var(--orange);
    color: var(--ink);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 750;
    line-height: 1.5;
    transition: background-color .15s ease, box-shadow .15s ease;
}
.button:hover { background: var(--orange-hover); box-shadow: 0 4px 0 rgba(20, 54, 78, .13); text-decoration: none; }
.button-small { min-height: 46px; padding: .65rem 1rem; font-size: .85rem; }
.skip-link { position: absolute; z-index: 10; top: 1rem; left: 1rem; padding: .75rem 1rem; background: var(--ink); color: white; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

/* Reusable header. The navigation wraps instead of becoming a scripted menu. */
.site-header { padding-block: 1.8rem; border-bottom: 1px solid var(--line); }
.header-layout, .nav-links { display: flex; align-items: center; }
.header-layout { justify-content: space-between; gap: 2rem; }
.brand { display: inline-block; text-decoration: none; flex-shrink: 0; }
.brand-name { font: 700 2.75rem/1.15 var(--heading-font); letter-spacing: -.055em; white-space: nowrap; }
.brand .mind { color: var(--teal); }
.brand .hatch { color: var(--orange); }
.brand-purpose { display: block; margin-top: .4rem; color: var(--text); font-size: .65rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.nav-links { list-style: none; margin: 0; padding: 0; gap: 2rem; }
.nav-links a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: .875rem; font-weight: 650; text-decoration: none; }
.nav-links a:not(.button):hover { text-decoration: underline; }

/* Hero: an editorial introduction alongside the open-hatch illustration. */
.hero { padding-block: 5rem 5.5rem; }
.hero-layout { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 4rem; }
.hero .eyebrow { display: flex; align-items: center; gap: .65rem; letter-spacing: .09em; }
.eyebrow-line { display: inline-block; width: 1.5rem; height: 2px; background: var(--deep-teal); flex-shrink: 0; }
.hero h1 span { color: var(--deep-teal); }
.hero-intro { margin-top: 1.7rem; max-width: 35rem; font-size: 1.13rem; line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem; margin-top: 2rem; }
.hero-note { font-size: .8rem; margin-top: 1.7rem; }
.perspective-visual { position: relative; padding: 1.6rem 1.8rem 1.5rem; border: 1px solid var(--line); border-radius: 50% 50% .75rem .75rem / 14% 14% .75rem .75rem; background: linear-gradient(155deg, #eef8f5 0%, #f6f8ec 54%, var(--sand) 100%); }
.visual-heading { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding-top: 1rem; }
.visual-heading .small-label { font-size: .65rem; }
.visual-index { font-size: .7rem; color: var(--text); }
.hatch-illustration { width: 100%; margin-block: .3rem -.5rem; }
.perspective-visual figcaption { text-align: center; font-size: .95rem; line-height: 1.6; }
.perspective-visual figcaption strong { color: var(--ink); }
.visual-footnote { display: flex; justify-content: center; gap: 1rem; padding-top: 1.6rem; margin-top: 1.5rem; border-top: 1px solid #b2c7c3; color: var(--deep-teal); font-size: .7rem; font-weight: 650; }

/* Subject areas are a readable list, with each item adding distinct substance. */
.explore-section { background: var(--white); border-block: 1px solid var(--line); }
.explore-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6rem; }
.exploration-list { list-style: none; padding: 0; margin: 0; }
.exploration-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.2rem; padding-block: 1.8rem; border-bottom: 1px solid var(--line); }
.exploration-list li:first-child { padding-top: 0; }
.exploration-list li:last-child { border: 0; padding-bottom: 0; }
.list-number { font: 700 1rem/1.7 var(--heading-font); color: var(--deep-teal); }
.exploration-list p { margin-top: .45rem; font-size: .95rem; }
.topic-caption { display: block; margin-top: .7rem; color: var(--deep-teal); font-size: .72rem; font-weight: 600; }

/* The exercise is self-contained and fully usable with native HTML details. */
.practice-section { background: var(--aqua); }
.practice-layout { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 6rem; }
.quiet-note { font-size: .85rem; }
.practice-paper { background: var(--paper); border-top: 5px solid var(--orange); padding: 2.5rem; border-radius: .3rem; box-shadow: 10px 12px 0 #bddfe2; }
.practice-paper blockquote { color: var(--ink); font-size: 1.2rem; margin-block: 1.2rem 1.5rem; line-height: 1.7; }
.practice-paper blockquote strong { font-size: 1.65rem; }
.observation-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; padding-block: 1.2rem; border-block: 1px solid var(--line); }
.observation-pair dt { color: var(--deep-teal); font-size: .72rem; font-weight: 750; }
.observation-pair dd { margin-top: .4rem; font-size: .88rem; }
.practice-question { margin-top: 1.4rem; font-size: .95rem; }
details { margin-top: 1.4rem; border-top: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 48px; padding-block: .9rem; color: var(--deep-teal); font-size: .88rem; font-weight: 750; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary span { font-size: 1.5rem; line-height: 1; }
details[open] summary span { transform: rotate(45deg); }
.details-content { padding: .2rem 0 .6rem; font-size: .9rem; }

/* The practice sequence and purpose statement. */
.section-heading { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 4rem; }
.section-heading > p { max-width: 29rem; }
.practice-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; padding: 0; margin: 3.5rem 0 0; list-style: none; }
.practice-steps li { position: relative; }
.practice-steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.15rem; left: 3.4rem; right: -.5rem; height: 1px; background: var(--line); }
.step-dot { display: flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; margin-bottom: 1.2rem; border: 1px solid var(--deep-teal); border-radius: 50%; color: var(--deep-teal); font-size: .85rem; font-weight: 700; }
.practice-steps li:last-child .step-dot { background: var(--orange); border-color: var(--ink); color: var(--ink); }
.practice-steps h3 { font-size: 1.02rem; }
.practice-steps p { margin-top: .6rem; font-size: .87rem; }
.approach-note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .83rem; }
.purpose-section { background: var(--ink) url("../../images/banner.jpg") center / cover; color: var(--white); }
.purpose-layout { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 5rem; }
.purpose-section .eyebrow { color: var(--orange-hover); }
.purpose-section h2 { color: var(--white); }
.purpose-copy { font-size: 1rem; }
.purpose-copy > p:first-child { font-size: 1.2rem; color: var(--sand); }

/* Project status and editorial commitments. */
.next-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6rem; align-items: center; }
.next-layout .text-link { margin-top: 1.5rem; }
.principles { padding-left: 2rem; border-left: 3px solid var(--orange); }
.principles ul { margin: 1.3rem 0 0; padding: 0; list-style: none; }
.principles li + li { margin-top: 1.5rem; }
.principles strong { display: block; color: var(--ink); font-size: 1rem; }
.principles li span { display: block; font-size: .92rem; margin-top: .3rem; }
.education-note { font-size: .75rem; border-top: 1px solid var(--line); margin-top: 1.8rem; padding-top: 1.2rem; }

/* Reusable footer and newsletter. */
.site-footer { background: #eef5f2; border-top: 1px solid var(--line); }
.newsletter-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; padding-block: 4.5rem; }
.newsletter-band h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
.newsletter-band h2 + p { margin-top: 1rem; max-width: 35rem; font-size: .95rem; }
.newsletter-action { justify-self: end; }
.newsletter-action p { font-size: .75rem; margin-top: .75rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); padding-block: 2.7rem; }
.brand-footer .brand-name { font-size: 2rem; }
.footer-bottom p { margin-top: .6rem; font-size: .75rem; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; }
.footer-bottom li a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; }
.footer-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding-block: 1.2rem; border-top: 1px solid var(--line); font-size: .7rem; }
.footer-meta p { margin: 0; }

/* Native dialog supplies focus containment, inert background, and Escape close. */
#newsletter-dialog { width: min(36rem, calc(100% - 2rem)); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--line); border-radius: .75rem; color: var(--text); background: var(--paper); box-shadow: 0 20px 80px #14364e55; overflow: auto; }
#newsletter-dialog::backdrop { background: rgba(10, 31, 46, .7); }
.dialog-content { padding: 1.2rem 2rem 2rem; }
.dialog-close { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 44px; padding: .5rem .75rem; margin: 0 0 1.5rem auto; border: 1px solid var(--deep-teal); border-radius: .35rem; background: var(--paper); color: var(--deep-teal); font-size: .85rem; font-weight: 700; }
.dialog-close:hover { background: var(--aqua); }
.dialog-close span { font-size: 1.5rem; line-height: 1; }
.signup-panel { max-width: 34rem; margin-inline: auto; padding-bottom: 2rem; }
.signup-panel h2 { font-size: 1.8rem; }
.signup-panel > p:not(.eyebrow) { margin-top: 1rem; }
.signup-panel .eyebrow { font-size: .65rem; }
#signup-description { font-size: .95rem; }
.signup-status, .signup-help, .signup-privacy { font-size: .8rem; }
.signup-help a { display: inline-block; padding-block: .3rem; }
.signup-status { color: var(--deep-teal); }
.signup-privacy { border-top: 1px solid var(--line); padding-top: 1rem; }
body.newsletter-open { overflow: hidden; }
html:not(.signup-enhanced) .signup-status { display: none; }

/* Isolate the retained vendor embed. The outer panel supplies its heading.
   !important is needed because MailerLite emits its own per-form CSS. */
#signup-panel #mailerlite-form .ml-form-embedContent { display: none; }
#signup-panel #mailerlite-form .ml-form-embedWrapper { width: 100% !important; max-width: 100% !important; background: transparent !important; }
#signup-panel #mailerlite-form .ml-form-embedBody { padding: 1.3rem 0 0 !important; }
#signup-panel #mailerlite-form .ml-form-successBody { padding: 1.3rem 0 !important; }
#signup-panel #mailerlite-form label { display: block; margin-bottom: .45rem; color: var(--ink); font: 650 .9rem/1.5 var(--body-font); }
#signup-panel #mailerlite-form input[type="email"] { min-height: 50px; padding: .8rem !important; border: 1px solid var(--deep-teal) !important; border-radius: .35rem !important; background: var(--white) !important; color: var(--ink) !important; font: 1rem/1.5 var(--body-font) !important; }
#signup-panel #mailerlite-form input::placeholder { color: var(--text) !important; opacity: 1; }
#signup-panel #mailerlite-form button.primary { min-height: 50px; border: 2px solid transparent !important; border-radius: .35rem !important; background: var(--orange) !important; color: var(--ink) !important; font: 750 1rem/1.5 var(--body-font) !important; }
#signup-panel #mailerlite-form button.primary:hover { background: var(--orange-hover) !important; }
#signup-panel #mailerlite-form :focus-visible { outline: 3px solid var(--deep-teal) !important; outline-offset: 3px !important; }
#signup-panel #mailerlite-form .ml-form-successContent h4 { color: var(--ink) !important; font-family: var(--heading-font) !important; }
#signup-panel #mailerlite-form .ml-form-successContent p { color: var(--text) !important; font: 1rem/1.7 var(--body-font) !important; }

/* Reflow: no hidden mobile menu or fixed header to obstruct content/focus. */
@media (max-width: 68rem) {
    .hero-layout { gap: 2rem; }
    .explore-layout, .practice-layout, .next-layout { gap: 3rem; }
    .nav-links { gap: 1.2rem; }
    .practice-paper { padding: 1.8rem; }
    .practice-steps { gap: 1.4rem; }
}
@media (max-width: 52rem) {
    .container { width: calc(100% - 3rem); }
    .site-header { padding-block: 1.3rem; }
    .header-layout { flex-wrap: wrap; gap: 1rem; }
    .header-layout nav { width: 100%; }
    .nav-links { justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; }
    .hero { padding-block: 3.5rem 4rem; }
    .hero-layout, .explore-layout, .practice-layout, .next-layout, .purpose-layout, .section-heading { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-copy { max-width: 40rem; }
    h1 { font-size: clamp(2.8rem, 7.5vw, 4rem); }
    .perspective-visual { max-width: 30rem; width: 100%; margin-inline: auto; }
    .practice-steps { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
    .practice-steps li::after { display: none; }
    .newsletter-band { grid-template-columns: 1fr; gap: 1.8rem; }
    .newsletter-action { justify-self: start; }
    .principles { padding-left: 1.5rem; }
}
@media (max-width: 30rem) {
    .container { width: calc(100% - 2.5rem); }
    .brand-name { font-size: 2.5rem; }
    .nav-links { justify-content: flex-start; gap: .5rem 1.2rem; }
    .nav-links .button { font-size: .8rem; }
    .hero .eyebrow { font-size: .63rem; }
    h1 { font-size: 2.7rem; }
    .hero-intro { font-size: 1rem; }
    .actions { align-items: stretch; flex-direction: column; }
    .actions .text-link { align-self: flex-start; }
    .perspective-visual { padding-inline: 1rem; }
    .visual-heading .small-label { font-size: .6rem; }
    .exploration-list li { grid-template-columns: 1.6rem 1fr; gap: .7rem; }
    .practice-paper { padding: 1.4rem; box-shadow: 6px 7px 0 #bddfe2; }
    .observation-pair { grid-template-columns: 1fr; gap: 1rem; }
    .practice-steps { grid-template-columns: 1fr; margin-top: 2rem; }
    .practice-steps li { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; }
    .step-dot { grid-row: span 2; margin: 0; }
    .practice-steps p { grid-column: 2; margin-top: .3rem; }
    .footer-bottom { flex-direction: column; }
    .dialog-content { padding: 1rem 1.2rem; }
    .signup-panel h2 { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
    .button, .step-dot, .practice-paper, .perspective-visual { border: 1px solid CanvasText; }
    .brand .mind, .brand .hatch, .hero h1 span { color: LinkText; }
    :focus-visible { outline-color: Highlight; }
}
@media print {
    .site-header nav, .actions, .newsletter-band, #signup-panel, dialog, .skip-link { display: none !important; }
    body, .explore-section, .practice-section, .site-footer { background: white; color: black; }
    .purpose-section { background: white; color: black; }
    .purpose-section h2, .purpose-section p { color: black; }
    .section-space { padding-block: 1.5rem; }
    .container { width: 100%; }
    .practice-paper { box-shadow: none; }
}
