/* Chankhasi Primary School · site styles */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 400 650;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #fbf7f0;
  --paper-2: #f4ecdf;
  --paper-3: #ecdfcb;
  --sky-top: #f6eee1;
  --ink: #231d18;
  --ink-2: #4b4038;
  --muted: #74675b;
  --line: #e3d6c2;
  --clay: #ad4526;
  --clay-deep: #8c351b;
  --lake: #1d5a78;
  --lake-deep: #143f55;
  --lake-soft: #dcebf0;
  --sun: #e9a73a;
  --sun-soft: #f8e2b4;
  --leaf: #3d6a47;
  --radius: 16px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

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

a {
  color: var(--lake);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
@media (hover: hover) { a:hover { color: var(--clay); } }

:focus-visible {
  outline: 2px solid var(--lake);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer :focus-visible,
.cta-panel :focus-visible,
.quote :focus-visible { outline-color: #fff; }
.footer-nav a:focus-visible { color: #fff; text-decoration: underline; }

::selection { background: var(--sun-soft); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 8vw, 5rem); letter-spacing: -.025em; line-height: 1; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); letter-spacing: -.02em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; text-wrap: pretty; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  font: 650 .78rem/1.2 var(--sans);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 1rem;
}

.lead {
  font-size: clamp(1.15rem, 2.1vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38ch;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 10px;
}
.skip:focus { left: 8px; }
.skip:hover { color: var(--paper); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  font: 650 1rem/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .15s, box-shadow .2s;
}
@media (hover: hover) { .btn:hover { background: var(--clay-deep); color: #fff; } }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(35, 29, 24, .55);
}
@media (hover: hover) { .btn-ghost:hover { background: rgba(35, 29, 24, .06); color: var(--ink); } }

.btn-light { background: var(--paper); color: var(--clay-deep); }
@media (hover: hover) { .btn-light:hover { background: #fff; color: var(--clay-deep); } }

.link-btn {
  font: inherit;
  font-weight: 600;
  color: var(--lake);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
@media (hover: hover) { .link-btn:hover { color: var(--clay); } }

/* Header */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(246, 238, 225, .9);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.scrolled {
  background: rgba(251, 247, 240, .92);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
@media (hover: hover) { .brand:hover { color: var(--ink); } }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font: 600 1.25rem/1 var(--serif);
  letter-spacing: -.01em;
}
.brand-name small {
  font: 650 .6rem/1 var(--sans);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--clay-deep);
}

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 999px;
  transition: background-color .2s, color .2s;
}
@media (hover: hover) { .site-nav a:hover { color: var(--ink); background: rgba(35, 29, 24, .06); } }
.site-nav .nav-cta { background: var(--clay); color: #fff; margin-left: 8px; padding-inline: 16px; }
@media (pointer: coarse) { .site-nav a { display: inline-flex; align-items: center; min-height: 44px; } }
@media (hover: hover) { .site-nav .nav-cta:hover { background: var(--clay-deep); color: #fff; } }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(35, 29, 24, .06);
  color: var(--ink);
  font: 600 .95rem/1 var(--sans);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s, opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 920px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(60, 40, 20, .35);
  }
  .js .site-nav.open { display: flex; }
  .js .site-nav a { padding: 13px 10px; border-radius: 10px; font-size: 1.06rem; }
  .js .site-nav .nav-cta { margin: 10px 0 0; justify-content: center; text-align: center; }
  /* Without JavaScript the menu cannot open, so show the links as a wrapped row instead */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
}

/* Hero */

.hero {
  --art-h: clamp(300px, 36vw, 900px);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg,
    var(--sky-top) 0%,
    #f7e6c6 45%,
    #f4cb8e calc(100% - var(--art-h) * .62),
    #efb674 calc(100% - var(--art-h) * .5577),
    #efb674 100%);
}

.hero-text {
  position: relative;
  z-index: 1;
  padding-top: clamp(36px, 5.5vw, 76px);
  padding-bottom: 0;
}
.hero .eyebrow { color: var(--clay-deep); }
.hero h1 { margin-bottom: .3em; }
.h1-line {
  display: block;
  margin-top: .08em;
  font-size: .56em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.005em;
  color: var(--clay-deep);
}
.hero .lead { color: var(--ink-2); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

.hero-art { margin-top: clamp(-40px, -3vw, 0px); }
.hero-art svg { width: 100%; height: var(--art-h); }

.h-sun { animation: sunrise 3.2s cubic-bezier(.2, .65, .15, 1) both; }
.h-glitter { animation: glitter 3.4s ease-out both; }
.h-birds { animation: birds 16s ease-in-out infinite alternate; }
@keyframes sunrise { from { transform: translateY(70px); } to { transform: none; } }
@keyframes glitter { 0%, 30% { opacity: 0; } to { opacity: 1; } }
@keyframes birds { from { transform: translate(0, 0); } to { transform: translate(40px, -12px); } }

/* Decorative weave, after the reed mats of the lakeshore */

.weave {
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cpath d='M0 12 6 0l6 12z' fill='%23ad4526'/%3E%3Cpath d='M12 0l6 12 6-12z' fill='%23e9a73a'/%3E%3C/svg%3E") repeat-x center / 24px 12px;
  opacity: .9;
}

/* Sections */

section:not(.hero) { padding-block: clamp(72px, 10vw, 128px); }
.band { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .lead { max-width: 46ch; }
.sub-title {
  font-size: 1.45rem;
  margin: 0 0 22px;
}

/* About */

.about { background: var(--paper); }
.about-grid {
  display: grid;
  gap: clamp(40px, 6vw, 88px);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); align-items: start; }
}
@media (min-width: 1000px) {
  .about-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
}
.about-text { container-type: inline-size; }
.about-text .lead { max-width: 40ch; margin-bottom: 1.1em; }
.about-text p:not(.lead):not(.eyebrow) { max-width: 60ch; color: var(--ink-2); }
.chichewa { font-style: italic; font-weight: 400; color: var(--clay); }
.proverb {
  margin: -.15em 0 1.1em;
  font: italic 400 clamp(1.1rem, 1.8vw, 1.28rem)/1.45 var(--serif);
  color: var(--clay);
  text-wrap: balance;
}
.proverb .gloss { color: var(--muted); }
.hero-ny {
  margin: -.2em 0 1.1em;
  font: italic 400 clamp(1rem, 1.7vw, 1.15rem)/1.4 var(--serif);
  color: var(--clay-deep);
}
.quote .motto-ny {
  margin: -8px 0 22px;
  font: italic 400 1.1rem/1.4 var(--serif);
  color: #f3e3c4;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  margin: 40px 0 0;
  max-width: 560px;
}
@container (min-width: 540px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  border-top: 2px solid var(--clay);
  padding-top: 14px;
}
.stat dd {
  margin: 0 0 6px;
  font: 600 clamp(2rem, 4vw, 2.5rem)/1 var(--serif);
  letter-spacing: -.02em;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
.stat dt { font-size: .9rem; line-height: 1.3; color: var(--muted); }

.map-figure { margin: 0; }
@media (min-width: 700px) { .map-figure { position: sticky; top: calc(var(--header-h) + 24px); } }
.map-figure .map { width: min(100%, 320px, 42vh); height: auto; margin-inline: auto; }
.map-figure figcaption {
  max-width: 30ch;
  margin: 16px auto 0;
  text-align: center;
  font: italic 400 1.02rem/1.4 var(--serif);
  color: var(--muted);
}
@media (min-width: 700px) { .map-figure .map { width: min(100%, 320px); } }

.map .m-sea { fill: #efe6d6; }
.map .m-nbr { fill: #efe6d6; stroke: #d6c6ad; stroke-width: .8; stroke-linejoin: round; }
.map .m-land { fill: #fbf4e6; stroke: #8b6f57; stroke-width: 1.1; stroke-linejoin: round; }
.map .m-lake { fill: #a4cad8; stroke: #79a9bc; stroke-width: .7; stroke-linejoin: round; }
.map .m-river { fill: none; stroke: #92bfcf; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.map .m-country { font: 650 9px/1 var(--sans); letter-spacing: .22em; fill: #ab9780; }
.map .m-lake-label { font: italic 400 13px var(--serif); letter-spacing: .08em; fill: #2c6781; }
.map .m-town { fill: var(--ink-2); }
.map .m-capital { fill: #fbf4e6; stroke: var(--ink-2); stroke-width: 1.5; }
.map .m-town-label,
.map .m-school-label,
.map .m-school-sub {
  paint-order: stroke;
  stroke: #fbf4e6;
  stroke-width: 3.5px;
  stroke-linejoin: round;
}
.map .m-town-label { font: 500 10.5px var(--sans); fill: var(--ink-2); }
.map .m-school-halo {
  fill: var(--clay);
  opacity: .22;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 3s ease-out infinite;
}
.map .m-school-dot { fill: var(--clay); stroke: #fff; stroke-width: 1.8; }
.map .m-school-label { font: 600 14.5px var(--serif); fill: var(--clay-deep); }
.map .m-school-sub { font: italic 400 11px var(--serif); fill: var(--muted); }
.map .m-scale path { fill: none; stroke: var(--muted); stroke-width: 1; }
.map .m-scale text { font: 500 9px var(--sans); letter-spacing: .04em; fill: var(--muted); }
.map .m-inset rect { fill: #fbf7f0; stroke: #d6c6ad; stroke-width: .8; }
.map .m-inset-land { fill: #dccdb6; }
.map .m-inset-mw { fill: var(--clay); }
.map .m-inset text { font: italic 400 10px var(--serif); fill: var(--muted); }
@keyframes pulse {
  0% { transform: scale(.55); opacity: .4; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}

/* Story */

.story-grid {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: start; }
  .story-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--sun), var(--clay));
}
.timeline li { position: relative; padding: 0 0 40px 46px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 3px solid var(--clay);
}
.timeline li:last-child::before { background: var(--sun); border-color: var(--sun); box-shadow: 0 0 0 5px rgba(233, 167, 58, .25); }
.timeline .year {
  display: inline-block;
  margin-bottom: 8px;
  font: italic 400 1.1rem/1.2 var(--serif);
  color: var(--clay);
}
.timeline h3 { font-size: 1.4rem; margin-bottom: .35em; }
.timeline p { margin: 0; color: var(--ink-2); max-width: 54ch; }

.quote {
  position: relative;
  margin: 0;
  padding: 34px 32px 32px;
  border-radius: var(--radius);
  background: var(--lake);
  color: #d6e6ec;
  overflow: hidden;
}
.quote::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 174, 66, .35), rgba(240, 174, 66, 0) 70%);
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  margin: 0 0 22px;
  font: italic 400 clamp(1.55rem, 2.8vw, 2rem)/1.28 var(--serif);
  color: #fff;
  text-wrap: balance;
}
.quote .qm { color: var(--sun); }
.quote .qm:first-child { margin-left: -.4em; }
.quote figcaption { font-size: .95rem; line-height: 1.4; }
.story-aside { display: grid; gap: 20px; align-content: start; }
@media (min-width: 600px) and (max-width: 899px) {
  .story-aside { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .story-aside .quote { display: flex; flex-direction: column; justify-content: center; }
}

/* Cards */

.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
}
.band .card { background: #fffdf8; }
.card .icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--sun-soft);
  color: var(--clay-deep);
}
.card .icon svg { width: 25px; height: 25px; }
.card h3,
.card h4 { font-size: 1.28rem; margin-bottom: .45em; }
.card p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.cards--needs .icon { background: var(--lake-soft); color: var(--lake); }
@media (max-width: 559px) {
  .cards--4 .card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; padding: 22px 20px 24px; }
  .cards--4 .card .icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
}
@media (max-width: 899px) {
  .cards--3 .card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; padding: 22px 20px 24px; }
  .cards--3 .card .icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
}

/* Photos */

.photo { margin: 0; }
.photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--paper-3);
}
.photo figcaption {
  margin-top: 12px;
  font: italic 400 1rem/1.4 var(--serif);
  color: var(--muted);
}
.photo--banner,
.photo--wide { margin: 0 0 clamp(40px, 6vw, 64px); }
.photo-row {
  display: grid;
  gap: clamp(16px, 2.5vw, 24px);
  grid-template-columns: 1fr;
  margin: 0 0 clamp(40px, 6vw, 64px);
}
@media (min-width: 600px) { .photo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.illustration img { border-radius: var(--radius); background: var(--paper-3); }
.split {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  grid-template-columns: 1fr;
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.split .section-head { margin-bottom: 0; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 700px) {
  .photo--banner img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 62% 50%; }
}

.photo-slot { display: none; }
.draft .photo-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  max-height: 320px;
  width: 100%;
  padding: 20px;
  border: 1.5px dashed #cdb89b;
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, rgba(173, 69, 38, .05) 0 12px, rgba(173, 69, 38, 0) 12px 24px), var(--paper-3);
  color: var(--muted);
  font: italic 400 1rem/1.4 var(--serif);
  text-align: center;
}
.draft .photo-slot--banner { aspect-ratio: 5 / 2; margin-bottom: clamp(40px, 6vw, 64px); }
.draft .photo-slot--wide { aspect-ratio: 16 / 9; margin-bottom: clamp(40px, 6vw, 64px); }

.aside-note {
  max-width: 62ch;
  margin: 36px 0 0;
  font: italic 400 1.08rem/1.55 var(--serif);
  color: var(--ink-2);
}

/* Friends */

.partners {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.partners li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 22px 24px;
  border-radius: var(--radius);
  background: #fffdf8;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .98rem;
  line-height: 1.5;
}
.partners strong { font: 600 1.15rem/1.25 var(--serif); color: var(--ink); }
.partner-place { font-size: .85rem; letter-spacing: .02em; color: var(--muted); margin-bottom: 8px; }
.partners .partners-next {
  justify-content: center;
  background: transparent;
  border: 1.5px dashed #cdb89b;
}
.partners-next a { font-weight: 600; margin-top: 4px; }

/* Help */

.help { background: var(--paper); }
.cards--needs { margin-bottom: clamp(56px, 7vw, 80px); }

.ways {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.ways li { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) {
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; border-top: 0; }
  .ways li { border-top: 2px solid var(--ink); border-bottom: 0; }
}
@media (min-width: 1100px) { .ways { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ways h4 { font-size: 1.28rem; margin-bottom: .4em; }
.ways p { margin: 0 0 .6em; color: var(--ink-2); font-size: 1rem; }

.cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(28px, 5vw, 48px) clamp(28px, 5vw, 56px);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--clay);
  color: #fff;
}
.cta-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: clamp(-40px, 6vw, 90px);
  bottom: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--sun);
  opacity: .9;
  box-shadow: 0 0 0 26px rgba(233, 167, 58, .18), 0 0 0 56px rgba(233, 167, 58, .08);
}
.cta-panel .btn { position: relative; }
.cta-line {
  margin: 0;
  font: italic 400 clamp(1.7rem, 4vw, 2.5rem)/1.15 var(--serif);
  color: #fff;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: clamp(40px, 6vw, 88px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; } }

.contact-details { margin: 36px 0 0; display: grid; gap: 22px; }
.contact-details dt {
  font: 650 .78rem/1.2 var(--sans);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-details dd { margin: 0; color: var(--ink); line-height: 1.55; }

.form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 22px;
  background: #fffdf8;
  border: 1px solid var(--line);
}
.field label { display: block; margin-bottom: 7px; font-weight: 600; font-size: .95rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #9a8670;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%234b4038' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lake);
  box-shadow: 0 0 0 3px rgba(29, 90, 120, .18);
}
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-size: .98rem; min-height: 1.5em; }
.form-status.is-ok { color: var(--leaf); font-weight: 600; }
.form-status.is-error { color: var(--clay-deep); font-weight: 600; }
.form-status.is-note { color: var(--muted); }

/* Footer */

.site-footer {
  background: var(--lake-deep);
  color: #bcd2dc;
  padding: 64px 0 48px;
}
.footer-inner {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-thanks { text-align: right; }
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-mark { width: 44px; height: 44px; }
.footer-name { margin: 0; font: 600 1.25rem/1.2 var(--serif); color: #fff; }
.footer-place { margin: 2px 0 0; font-size: .95rem; }
.footer-thanks { margin: 0; font: italic 400 1.2rem/1.4 var(--serif); color: #f3e3c4; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.footer-nav a { color: #d8e6ec; text-decoration: none; font-size: .95rem; }
@media (hover: hover) { .footer-nav a:hover { color: #fff; text-decoration: underline; } }
.footer-small {
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .88rem;
  color: #93b1be;
}
@media (min-width: 860px) { .footer-small { text-align: right; } }

/* Draft review marks */

.draft .tbc {
  background: #fff0a3;
  box-shadow: 0 0 0 2px #fff0a3;
  border-radius: 3px;
  color: var(--ink);
  cursor: help;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.draft .quote .tbc { color: var(--ink); }
.draft.no-marks .tbc { background: none; box-shadow: none; color: inherit; cursor: auto; }
.draft.no-marks .timeline .year { color: var(--clay); }

.draft-bar { display: none; }
.draft .draft-bar {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  transform: translateX(-50%);
  width: min(100% - 24px, 640px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 10px 10px 18px;
  border-radius: 14px;
  background: rgba(35, 29, 24, .94);
  color: #f5ecde;
  font-size: .9rem;
  line-height: 1.4;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
}
.draft-bar p { margin: 0; }
@media (max-width: 600px) { .draft-more { display: none; } }
.draft-bar button {
  flex: none;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #fff0a3;
  color: var(--ink);
  font: 650 .85rem/1 var(--sans);
  cursor: pointer;
}
.draft .site-footer { padding-bottom: 120px; }

.note-pop {
  position: absolute;
  z-index: 70;
  max-width: min(320px, calc(100vw - 24px));
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #f5ecde;
  font: 400 .88rem/1.45 var(--sans);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  pointer-events: none;
}
.note-pop[hidden] { display: none; }

@media (orientation: landscape) and (max-height: 500px) {
  :root { --header-h: 56px; }
  .hero-text { padding-top: 24px; }
}

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

@media print {
  .site-header, .draft-bar, .note-pop, .hero-art, .weave, .form, .nav-toggle { display: none !important; }
  body { background: #fff; }
  section:not(.hero) { padding-block: 24px; }
}
