/* ─────────────────────────────────────────────────────────────
   Natural Schoolwear
   Brand: eucalyptus #2F4A3A · cream #F7F6F1 · white · Outfit
   ───────────────────────────────────────────────────────────── */

:root {
  --green: #2F4A3A;
  --green-deep: #24392C;
  --green-soft: #3D5C49;
  --sage: #8FA393;
  --sage-pale: #E4E8DF;
  --cream: #F7F6F1;
  --white: #FFFFFF;
  --ink: #1F2B24;
  --ink-muted: #56645B;

  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale: 1.25 ratio from an 18px base */
  --step--1: 0.889rem;
  --step-0: 1.125rem;
  --step-1: 1.406rem;
  --step-2: 1.758rem;
  --step-3: 2.197rem;
  --step-4: clamp(2.2rem, 4.2vw, 3.1rem);
  --step-5: clamp(2.8rem, 7.4vw, 5.6rem);

  --wrap: 72rem;
  --wrap-narrow: 42rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space-section: clamp(4rem, 9vw, 7.5rem);
  --radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 48rem) { body { font-size: var(--step-0); } }

img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.band--green :focus-visible, .site-footer :focus-visible { outline-color: var(--cream); }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--green); color: var(--white); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); }

/* ── Type ─────────────────────────────────────────────── */

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; font-weight: 400; color: var(--green); }
p { margin: 0 0 1em; }

/* Lowercase, light display type echoes the logo's "natural" */
.display { font-weight: 300; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
.display--xl { font-size: var(--step-5); }
.display--l { font-size: var(--step-4); line-height: 1.08; }
.display--m { font-size: var(--step-4); }

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink); font-weight: 300; max-width: 34em; }
@media (max-width: 40rem) { .lede { font-size: var(--step-0); } }

.leaf { width: 0.62em; height: 0.62em; fill: currentColor; display: inline-block; vertical-align: 0.5em; }
.leaf--big { width: 2.5rem; height: 2.5rem; color: var(--green); margin: 0 auto 1.5rem; }

.text-link { display: inline-block; font-weight: 500; color: var(--green); text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 0.3em; }
.text-link:hover { text-decoration-color: var(--green); }

/* ── Buttons ──────────────────────────────────────────── */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.5rem;
  border: 1.5px solid var(--green); border-radius: 999px;
  background: var(--green); color: var(--white);
  font: 500 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.button:hover { background: var(--green-deep); }
.button--small { min-height: 2.5rem; padding: 0.45rem 1.1rem; font-size: 0.95rem; }
.button--ghost { background: transparent; color: var(--green); }
.button--ghost:hover { background: var(--white); }
.button--light { background: var(--cream); color: var(--green); border-color: var(--cream); }
.button--light:hover { background: var(--white); }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* ── Header ───────────────────────────────────────────── */

.site-header { position: relative; z-index: 5; }
.site-header__inner { display: flex; align-items: center; gap: 2rem; padding-block: 1.25rem; }
.site-header__logo img { width: 132px; height: auto; }
@media (min-width: 48rem) { .site-header__logo img { width: 150px; } }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 1rem; padding-block: 0.4rem; border-bottom: 1.5px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--green); color: var(--green); }

.mobile-nav { display: none; }
@media (max-width: 47.99rem) {
  .site-header__inner { gap: 0.75rem; }
  .site-nav { display: none; }
  .site-header__cta { margin-left: auto; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary { list-style: none; width: 2.75rem; height: 2.75rem; display: grid; place-content: center; gap: 6px; cursor: pointer; border-radius: 999px; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { display: block; width: 20px; height: 1.5px; background: var(--green); transition: transform 0.2s; }
  .mobile-nav[open] summary span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .mobile-nav[open] summary span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-nav ul { position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 13rem; list-style: none; margin: 0; padding: 0.5rem; background: var(--white); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(47, 74, 58, 0.18); }
  .mobile-nav a { display: block; padding: 0.7rem 0.9rem; color: var(--ink); text-decoration: none; }
}
@media (max-width: 22rem) { .site-header__cta { display: none; } .mobile-nav { margin-left: auto; } }

/* ── Hero ─────────────────────────────────────────────── */

.hero { padding-block: clamp(2rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem); overflow-x: clip; }
.hero__grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 60rem) { .hero__grid { grid-template-columns: 1.35fr 1fr; gap: 4rem; } }
.hero__copy .display { max-width: 9.5em; margin-bottom: 0.4em; }
.hero__copy .lede { margin-bottom: 2rem; }
.hero__small { font-size: var(--step--1); color: var(--ink-muted); margin-top: 0.75rem; }

.hero__label { position: relative; display: flex; justify-content: center; padding-top: 1.75rem; }
@media (min-width: 60rem) { .hero__label { padding-top: 2.5rem; } }

/* The seam the label is stitched to */
.seam { position: absolute; top: 0; left: -10%; right: -40vw; height: 14px; border-top: 1.5px dashed var(--sage); }
@media (max-width: 59.99rem) { .seam { left: -50vw; right: -50vw; } }

/* ── Care label (the signature element) ───────────────── */

.care-label { margin: 0; transform-origin: 50% -1.75rem; transform: rotate(-2.5deg); animation: swing 1.4s cubic-bezier(.3, 1.4, .5, 1) both 0.2s; }
.care-label__tag {
  position: relative; width: min(19.5rem, 82vw);
  padding: 2rem 1.75rem 1.5rem;
  background: var(--white); color: var(--green);
  border-radius: 3px 3px 10px 10px;
  box-shadow: 0 1px 0 rgba(47, 74, 58, 0.06), 0 18px 40px -18px rgba(47, 74, 58, 0.35);
  background-image: repeating-linear-gradient(0deg, rgba(47, 74, 58, 0.028) 0 1px, transparent 1px 3px);
}
/* stitching */
.care-label__tag::before { content: ""; position: absolute; inset: 9px; border: 1.25px dashed rgba(47, 74, 58, 0.32); border-radius: 2px 2px 6px 6px; pointer-events: none; }
/* the fold at the top where it's sewn in */
.care-label__tag::after { content: ""; position: absolute; left: 0; right: 0; top: -1.75rem; height: 1.75rem; background: linear-gradient(var(--sage-pale), var(--white)); border-radius: 3px 3px 0 0; box-shadow: inset 0 -1px 0 rgba(47, 74, 58, 0.12); }
.care-label__mark { width: 7.5rem; height: auto; margin: 0 auto 1.5rem; }
.care-label__fibre { font-size: 1.9rem; font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; text-align: center; margin: 0 0 1.4rem; }
.care-label__fibre span { display: block; font-size: 0.85rem; letter-spacing: 0; margin-top: 0.5rem; color: var(--ink-muted); }
.care-label__head { font-size: 0.85rem; font-weight: 500; text-align: center; margin: 0 0 0.5rem; padding-top: 1.1rem; border-top: 1px solid rgba(47, 74, 58, 0.18); }
.care-label__out { list-style: none; margin: 0 0 1.25rem; padding: 0; text-align: center; font-size: 0.95rem; line-height: 1.7; }
.care-label__out li { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(47, 74, 58, 0.55); }
.care-label__care { display: flex; justify-content: center; gap: 0.6rem; padding-block: 1rem; border-top: 1px solid rgba(47, 74, 58, 0.18); border-bottom: 1px solid rgba(47, 74, 58, 0.18); }
.care-label__care svg { width: 2rem; height: 1.5rem; color: var(--green); }
.care-label__foot { margin: 1rem 0 0; font-size: 0.8rem; text-align: center; color: var(--ink-muted); }

@keyframes swing {
  0% { transform: rotate(-9deg); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: rotate(-2.5deg); opacity: 1; }
}

/* ── Sections ─────────────────────────────────────────── */

.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(1.5rem, 4vw, 3rem) var(--space-section); }
.section--white { background: var(--white); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section__head .display { margin: 0; }

.split { display: grid; gap: 3rem; }
@media (min-width: 60rem) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.split__head p { color: var(--ink-muted); max-width: 30em; }

.reasons { list-style: none; margin: 0; padding: 0; display: grid; }
.reasons li { padding-block: 1.75rem; border-top: 1px solid rgba(47, 74, 58, 0.2); }
.reasons li:first-child { border-top: 0; padding-top: 0.25rem; }
@media (max-width: 59.99rem) { .reasons li:first-child { border-top: 1px solid rgba(47, 74, 58, 0.2); padding-top: 1.75rem; } }
.reasons h3 { font-size: var(--step-2); font-weight: 300; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 0.6rem; }
.reasons h3 .leaf { width: 0.5em; height: 0.5em; vertical-align: 0; flex: none; }
.reasons p { max-width: 32em; }

/* What goes in / stays out */
.inout { display: grid; gap: 1px; margin-top: 2.5rem; background: rgba(47, 74, 58, 0.18); border-block: 1px solid rgba(47, 74, 58, 0.18); }
@media (min-width: 48rem) { .inout { grid-template-columns: 1fr 1fr; } }
.inout__col { background: var(--white); padding: 2rem 0; }
@media (min-width: 48rem) { .inout__col { padding: 2.5rem 3rem 2.5rem 0; } .inout__col--out { padding: 2.5rem 0 2.5rem 3rem; } }
.inout h3 { font-size: var(--step-3); font-weight: 300; margin-bottom: 1rem; }
.inout ul { list-style: none; margin: 0; padding: 0; }
.inout li { padding: 0.65rem 0 0.65rem 1.75rem; position: relative; border-top: 1px dashed rgba(47, 74, 58, 0.2); }
.inout li:first-child { border-top: 0; }
.inout__col:not(.inout__col--out) li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 0.7rem; height: 0.7rem; background: var(--green); clip-path: path("M0 11.2C0 4.66 4.2 0 11.2 0C11.2 7 6.53 11.2 0 11.2Z"); }
.inout__col--out li { color: var(--ink-muted); }
.inout__col--out li::before { content: ""; position: absolute; left: 0.1rem; top: 1.25em; width: 0.75rem; height: 1.5px; background: var(--ink-muted); }
.inout__note { margin: 2rem 0 0; max-width: 38em; color: var(--ink-muted); font-size: var(--step--1); }
@media (min-width: 48rem) { .inout__note { font-size: 1rem; } }

/* Schools */
.schools { background: var(--sage-pale); }
.schools__grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 60rem) { .schools__grid { grid-template-columns: 1.1fr 1fr; gap: 5rem; } }
.schools .button { margin: 0.5rem 0 1.25rem; }

/* Page heads */
.page-head { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 3rem); }
.page-head .display { margin-bottom: 0.35em; }
.page-head--center { text-align: center; padding-block: clamp(4rem, 12vw, 9rem); }
.page-head--center .lede { margin-inline: auto; }
.page-head--center .button { margin: 0.5rem 0.25rem; }

/* Green waitlist band */
.band--green { background: var(--green); color: var(--cream); padding-block: var(--space-section); }
.band--green .display { color: var(--cream); }
.band--green .lede { color: var(--cream); opacity: 0.92; }
.band__grid { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .band__grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; } }

/* ── Forms ────────────────────────────────────────────── */

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 0.95rem; font-weight: 500; }
.optional { font-weight: 400; opacity: 0.75; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }

input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 1rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid rgba(47, 74, 58, 0.35); border-radius: var(--radius);
}
textarea { resize: vertical; min-height: 9rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 74, 58, 0.18); }

.form--inline { grid-template-columns: 1fr; max-width: 34rem; }
@media (min-width: 30rem) { .form--inline { grid-template-columns: 1fr auto; gap: 0.5rem; } }
.form--inline input { border-radius: 999px; padding-inline: 1.25rem; }

.field--choices { gap: 0.5rem; }
.field--choices legend { margin-bottom: 0.5rem; }
.field--choices label { display: flex; align-items: center; gap: 0.6rem; font-weight: 400; cursor: pointer; }
input[type="radio"] { width: 1.15rem; height: 1.15rem; accent-color: var(--green); margin: 0; }

.band--green input[type="text"], .band--green input[type="email"] { background: var(--cream); border-color: transparent; }
.band--green input:focus { box-shadow: 0 0 0 3px rgba(247, 246, 241, 0.4); }
.band--green input[type="radio"] { accent-color: var(--cream); }
.band--green .form__note { font-size: var(--step--1); opacity: 0.85; margin: 0; }
.band--green .form__note a { color: var(--cream); }
.band--green .button { justify-self: start; }

.form__status { margin: 0; font-size: 0.95rem; min-height: 0; grid-column: 1 / -1; }
.form__status:empty { display: none; }
.form__status[data-state="error"] { color: #8A2D1F; font-weight: 500; }
.band--green .form__status[data-state="error"] { color: #FFD9CF; }
.form__status[data-state="ok"] { font-weight: 500; }

.form--contact { margin-bottom: 2rem; }
.form--contact .button { justify-self: start; }
.contact__aside { padding-top: 1.5rem; border-top: 1px solid rgba(47, 74, 58, 0.2); }
.contact__aside p { margin: 0 0 0.25rem; }
[data-show-for][hidden] { display: none; }

/* ── Blog listing ─────────────────────────────────────── */

.post-grid { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 40rem) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-grid--index { margin-top: 4rem; }

.post-card__link { display: block; color: inherit; text-decoration: none; }
.post-card__cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; aspect-ratio: 16 / 10; }
.post-card__cover .cover { width: 100%; height: 100%; object-fit: cover; }
.post-card__meta { font-size: var(--step--1); color: var(--ink-muted); margin: 0 0 0.35rem; }
.post-card__title { font-size: var(--step-1); line-height: 1.25; margin-bottom: 0.5rem; text-wrap: balance; }
.post-card__link:hover .post-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.post-card__desc { color: var(--ink-muted); font-size: 1rem; margin: 0; }

.post-feature__link { display: grid; gap: 1.5rem 3rem; color: inherit; text-decoration: none; align-items: center; }
@media (min-width: 60rem) { .post-feature__link { grid-template-columns: 1.3fr 1fr; } }
.post-feature__cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.post-feature__cover .cover { width: 100%; height: 100%; object-fit: cover; }
.post-feature__title { font-size: var(--step-3); font-weight: 300; letter-spacing: -0.015em; line-height: 1.12; text-wrap: balance; }
.post-feature__text p:not(.post-card__meta) { color: var(--ink-muted); }
.post-feature__link:hover .post-feature__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }

/* ── Article ──────────────────────────────────────────── */

.post__head { padding-block: clamp(2rem, 6vw, 4.5rem) 2rem; }
.post__crumbs { font-size: var(--step--1); color: var(--ink-muted); margin-bottom: 1.25rem; }
.post__crumbs a { color: var(--ink-muted); }
.post__title { font-size: var(--step-4); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.post__meta { color: var(--ink-muted); font-size: var(--step--1); margin: 0; }
.post__meta span::before { content: "·"; margin-inline: 0.5em; }
.post__cover { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.post__cover .cover { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 40rem) { .post__cover .cover { aspect-ratio: 16 / 10; } }
.draft-flag { display: inline-block; margin-top: 1rem; padding: 0.35rem 0.8rem; background: #FFF3C4; color: #5C4A00; border-radius: 4px; font-size: var(--step--1); }

.prose { padding-bottom: var(--space-section); }
.prose > * { max-width: 40rem; }
.prose h2 { font-size: var(--step-2); font-weight: 400; margin: 2.25em 0 0.6em; letter-spacing: -0.01em; }
.prose h3 { font-size: var(--step-1); font-weight: 500; margin: 2em 0 0.5em; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: 0.5em; padding-left: 0.25rem; }
.prose ul { list-style: none; padding-left: 1.6rem; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ""; position: absolute; left: -1.35rem; top: 0.6em; width: 0.6rem; height: 0.6rem; background: var(--green); clip-path: path("M0 9.6C0 4 3.6 0 9.6 0C9.6 6 5.6 9.6 0 9.6Z"); }
.prose ol li::marker { color: var(--green); font-weight: 500; }
.prose strong { font-weight: 500; color: var(--green); }
.prose blockquote { margin: 2rem 0; padding-left: 1.5rem; border-left: 2px solid var(--green); font-size: var(--step-1); font-weight: 300; }
.prose .aside { font-size: var(--step--1); color: var(--ink-muted); font-style: italic; padding-top: 1.25rem; margin-top: 2rem; border-top: 1px solid rgba(47, 74, 58, 0.18); }
.prose .aside + .aside { border-top: 0; margin-top: 0; padding-top: 0; }
.prose img { border-radius: var(--radius); margin-block: 2rem; }
.prose hr { border: 0; border-top: 1px solid rgba(47, 74, 58, 0.2); margin: 3rem 0; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid rgba(47, 74, 58, 0.12); vertical-align: top; }
.prose thead th { background: var(--green); color: var(--cream); font-weight: 500; }
.prose tbody th { font-weight: 500; color: var(--green); }
.prose tbody tr:last-child > * { border-bottom: 0; }

.post-nav { display: grid; gap: 1rem; padding-bottom: var(--space-section); margin-top: calc(var(--space-section) * -0.5); }
@media (min-width: 40rem) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav__link { display: block; padding: 1.25rem 0; border-top: 1px solid rgba(47, 74, 58, 0.25); color: var(--green); text-decoration: none; font-size: var(--step-0); line-height: 1.35; }
.post-nav__link span { display: block; font-size: var(--step--1); color: var(--ink-muted); margin-bottom: 0.3rem; }
.post-nav__link--next { text-align: right; }
.post-nav__link:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* ── Footer ───────────────────────────────────────────── */

.site-footer { background: var(--green-deep); color: var(--cream); padding-block: 4rem 2.5rem; }
.site-footer__inner { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .site-footer__inner { grid-template-columns: 1fr auto; } }
.site-footer__logo { width: 160px; height: auto; }
.site-footer__cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; align-content: start; }
.site-footer a { color: var(--cream); text-decoration: none; font-size: 1rem; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__small { grid-column: 1 / -1; margin: 1rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(247, 246, 241, 0.15); font-size: var(--step--1); opacity: 0.75; }

/* ── Motion preferences ───────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
}
