/* Kayanou website draft. Soft, rounded look: peach cream header and page heads, white pages, light large type,
   pill buttons, rounded photos.
   One scale for everything, set in the tokens below: type sizes (--fs-*), the gap between columns (--gap-col),
   column splits (thirds and halves only), the space between sections (--sp), corner radii and the photo shape (--photo).
   Change a token here, not a single component.
   Original code written for this project. */

:root {
  --bg: #fdf3e9;
  --paper: #fffaf4;
  --white: #fff;
  --ink: #15222e;
  --mute: #566474;
  --line: #ecdfd0;
  --band-a: #fbe8d8;
  --band-b: #f4dcc6;
  --teal: #0b7a6b;
  --teal-dark: #075d51;
  --gold: #a65f00;
  --on-dark: #e9e2d0;
  --on-dark-soft: #f1e8d3;
  --on-dark-mute: #d8cfb8;
  --sand: #ecd9a8;
  --scroll: #cdb9a3;
  --field: #d9c9b6;
  --field-line: #7d8791;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --measure: 66ch;

  /* Type. Weights: 300 large type, 400 text, 500 item titles and controls, 600 labels and links. */
  --fs-xs: 0.9rem;
  --fs-sm: 1rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.5rem, 2.4vw, 1.75rem);
  --fs-lede: clamp(1.125rem, 1.5vw, 1.25rem);
  --fs-h2: clamp(1.9rem, 3.4vw, 3rem);
  --fs-sentence: clamp(1.7rem, 3.4vw, 3rem);
  --fs-display: clamp(2.4rem, 5.5vw, 4.8rem);
  --fs-hero: clamp(2.4rem, 5.9vw, 4.37rem);
  --fs-figure: clamp(3.2rem, 9vw, 7.5rem);

  /* Shape and space */
  --r-sm: 18px;
  --r: 28px;
  --r-lg: 40px;
  --photo: 4 / 3;
  --gap-col: clamp(24px, 4vw, 64px);
  --gap-nested: clamp(16px, 2.4vw, 32px);
  --gap-photo: clamp(12px, 2vw, 28px);
  --sp: clamp(56px, 7vw, 96px);
  --sp-tight: clamp(28px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--scroll) var(--white); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 var(--fs-base)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--teal); color: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(21, 34, 46, 0.4); text-underline-offset: 0.22em; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 400; line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure, blockquote { margin: 0; }
input, textarea, button { font: inherit; color: inherit; accent-color: var(--teal); caret-color: var(--teal); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
main:focus-visible { outline: none; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 44px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.7rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Draft marker */
.draftbar { background: var(--ink); color: var(--paper); text-align: center; font: 600 var(--fs-xs)/1.3 var(--sans); letter-spacing: 0.02em; padding: 0.55rem 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); transition: box-shadow 0.2s; }
.site-header.scrolled { box-shadow: 0 8px 24px rgba(21, 34, 46, 0.08); }
.bar { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); min-height: 84px; }
.brand { display: flex; align-items: center; min-height: 44px; flex: none; }
.brand img { height: 46px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 26px); }
.nav a { display: block; padding: 0.5rem 0.15rem; font: 500 var(--fs-sm)/1.2 var(--sans); text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--gold); }
.nav a[aria-current='page'] { border-bottom-color: var(--ink); }
.nav-cta { display: none; }
.tools { display: flex; align-items: center; gap: 14px; flex: none; }
.lang { display: flex; gap: 2px; font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: 0.06em; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 0.75rem; text-decoration: none; border-radius: 999px; color: var(--mute); }
.lang a:hover { color: var(--ink); }
.lang a[aria-current='true'] { color: var(--ink); background: var(--white); }
.burger { display: none; align-items: center; min-height: 44px; padding: 0.5rem 1.1rem; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; font: 600 var(--fs-sm)/1 var(--sans); cursor: pointer; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0.75rem 1.7rem; border: 1.5px solid transparent; border-radius: 999px; font: 500 var(--fs-sm)/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.btn-sm { min-height: 46px; padding: 0.55rem 1.3rem; font-size: var(--fs-xs); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { border-color: rgba(21, 34, 46, 0.6); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--band-a); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.link { font-weight: 600; color: var(--teal-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.link:hover { color: var(--ink); }
.prose p > .link:only-child, .list-rows p > .link:only-child { display: inline-block; padding-block: 0.65rem; margin-block: -0.35rem; }
.actions .link { padding-block: 0.65rem; }

/* Type */
.lede { font-size: var(--fs-lede); line-height: 1.6; color: var(--mute); max-width: 38rem; }
.caption { font: 400 var(--fs-xs)/1.4 var(--sans); color: var(--mute); margin-top: 0.7rem; }
.note { font: 400 var(--fs-xs)/1 var(--sans); color: var(--mute); }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1em; }
.prose h3 { font-size: var(--fs-md); font-weight: 500; margin: 2em 0 0.45em; }
.prose h3:first-child { margin-top: 0; }
.prose h2 { font-size: var(--fs-lg); font-weight: 300; margin: 2.2em 0 0.5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.h-display, .page-title { font-weight: 300; font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.035em; }
.statement { font: 300 var(--fs-sentence)/1.28 var(--sans); letter-spacing: -0.02em; text-wrap: balance; max-width: 30em; margin-inline: auto; text-align: center; }
.pull { font: 300 var(--fs-sentence)/1.2 var(--sans); letter-spacing: -0.025em; max-width: 26ch; text-wrap: balance; }
.motto { font: 500 var(--fs-md)/1.35 var(--sans); color: var(--ink) !important; }

/* Home: headline and the row of photos */
.hero { background: var(--bg); padding-bottom: clamp(36px, 6vw, 88px); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.hero-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap-col); align-items: end; padding-block: clamp(36px, 6vw, 92px) clamp(28px, 4vw, 56px); }
.hero-aside .lede { margin-bottom: 1.5rem; }
/* Wide screens (two columns): the headline spreads over four lines and the right side stretches to the same height, so both sides start and end together. */
@media (min-width: 60.0625em) {
  .hero-top { align-items: stretch; }
  .hero-top .h-display { font-size: var(--fs-hero); line-height: 1.14; }
  .hero-aside { display: flex; flex-direction: column; justify-content: space-between; }
}
/* Photos: every editorial photo on the site has one shape (--photo), so photos in a row are the same size.
   How a photo is framed inside that shape is set with --pos on the img. */
.hero-collage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-photo); }
.hero-collage figure, .photo-grid figure { aspect-ratio: var(--photo); border-radius: var(--r); overflow: hidden; background: var(--band-b); }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-photo); }
.hero-collage img, .photo-grid img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }

/* Sections: each one starts the same distance below the one before; the footer supplies the space after the last one */
.section { padding-block: var(--sp) 0; }
.section-tight { padding-block: var(--sp-tight); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 48px); margin-top: 1.2rem; text-align: center; align-items: end; }
.figures strong { display: block; font: 300 var(--fs-figure)/1 var(--sans); letter-spacing: -0.045em; color: var(--ink); }
.figures span { display: block; margin: 0.7rem auto 0; max-width: 30ch; min-height: 2.9em; color: var(--mute); text-wrap: balance; }
.figures small { display: block; font: 400 var(--fs-sm)/1 var(--sans); letter-spacing: 0; color: var(--mute); margin-bottom: 0.5rem; }
.figures-label { text-align: center; margin-top: clamp(36px, 5vw, 64px); color: var(--mute); font-size: var(--fs-sm); }
.statement + .figures { margin-top: clamp(36px, 5vw, 64px); }
.dated time { color: var(--ink); }
.list-rows .date { color: var(--mute); }

/* Two column layouts use thirds and halves only, with one gap, so every second column starts on a shared line:
   one third | two thirds (labels and content), halves (text and picture, forms, news), two thirds | one third (headline and aside). */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-col); align-items: center; }
.split + .split { margin-top: var(--sp); }
.split.flip .split-media { order: 2; }
.split-media img { width: 100%; aspect-ratio: var(--photo); object-fit: cover; object-position: var(--pos, 50% 50%); border-radius: var(--r); }
.split-text h2, .news h2, .join h2, .pair h2, .pair h3 { font-weight: 300; font-size: var(--fs-h2); letter-spacing: -0.03em; }
.split-text h2 { margin-bottom: 1rem; }
.split-text p { color: var(--mute); max-width: 34rem; }
.split-text p + p { margin-top: 0.8rem; }
.split-text .link { display: inline-block; margin-top: 0.6rem; padding-block: 0.65rem; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-col); }
.pair > div { background: var(--band-a); border-radius: var(--r); padding: clamp(26px, 3.2vw, 44px); }
.pair h2, .pair h3 { margin-bottom: 0.7rem; }
.pair p { color: var(--mute); max-width: 32rem; }
.pair .link { display: inline-block; margin-top: 0.4rem; padding-block: 0.65rem; }

/* Events and news */
.news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-col); align-items: start; }
.news h2 { margin-bottom: 1.4rem; }
.news figure img { width: 100%; aspect-ratio: var(--photo); object-fit: cover; object-position: var(--pos, 50% 50%); border-radius: var(--r); }
.list-rows li { border-top: 1px solid var(--line); padding: 1.15rem 0; }
.list-rows li:last-child { border-bottom: 1px solid var(--line); }
.list-rows h3 { font-size: var(--fs-md); font-weight: 500; }
.list-rows h3 a { color: var(--teal-dark); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.25em; padding-block: 0.65rem; }
.list-rows h3 a:hover { color: var(--ink); }
.list-rows p { color: var(--mute); margin-top: 0.35rem; max-width: 40rem; }
.list-rows .date { font: 600 var(--fs-xs)/1.2 var(--sans); margin: 0 0 0.35rem; }

/* Join band: a rounded card */
.join { padding: var(--sp) var(--gap-photo) 0; }
.join .wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap-col); align-items: center; background: var(--bg); border-radius: var(--r-lg); padding-block: clamp(36px, 6vw, 80px); }
.join .lede { color: var(--ink); margin-top: 0.8rem; }

/* Inner pages */
.page-head { margin-top: -1px; padding-block: calc(clamp(40px, 7vw, 104px) + 1px) clamp(28px, 4vw, 56px); background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap-col); align-items: end; }
/* Two columns: the title and the intro start on the same line, so a short title no longer sinks to the bottom under a tall intro, and the head is a little tighter. */
@media (min-width: 56.3125em) {
  .page-head { padding-block: calc(clamp(36px, 4.6vw, 72px) + 1px) clamp(28px, 3.4vw, 48px); }
  .page-head-grid { align-items: start; }
}
.margin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap-col); padding-block: clamp(32px, 5vw, 64px); border-top: 1px solid var(--line); }
.margin-grid > h2 { font-size: var(--fs-lg); font-weight: 300; position: sticky; top: 120px; align-self: start; }
.dated li, .rows li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap-nested); }
.dated li { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.dated li:first-child { border-top: 0; padding-top: 0; }
.dated time { font: 600 var(--fs-sm)/1.3 var(--sans); }
.dated h3 { font-size: var(--fs-md); font-weight: 500; margin-bottom: 0.4rem; }
.dated p { color: var(--mute); max-width: var(--measure); }
.rows li { padding: 0.95rem 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; padding-top: 0; }
.rows .n { font: 500 var(--fs-base)/1.3 var(--sans); }
.rows .d { color: var(--mute); }
.rows .d strong { display: block; color: var(--ink); font-weight: 500; }
.rows .meta { display: block; font-size: var(--fs-sm); }
.rows .d strong + .meta { margin-top: 0.25rem; }
.program h3 { font: 500 var(--fs-md)/1.3 var(--sans); margin: 2.6rem 0 0.7rem; }
.program h3:first-child { margin-top: 0; }
.program .where { color: var(--mute); font-size: var(--fs-sm); margin: -0.35rem 0 0.9rem; }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px) clamp(14px, 2vw, 24px); }
.team img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--band-b); border-radius: var(--r); }
.team figcaption { margin-top: 0.7rem; }
.team .n { display: block; font: 500 var(--fs-base)/1.25 var(--sans); }
.team .d { display: block; color: var(--mute); font-size: var(--fs-xs); margin-top: 0.15rem; }

/* Forms */
.forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-col); }
.forms h2 { font-size: var(--fs-lg); font-weight: 300; margin-bottom: 1.2rem; }
.forms h2.gap { margin-top: 2.6rem; }
.forms p { color: var(--mute); max-width: 34rem; }
.forms p.form-note { margin-top: 0; }
.form-grid { display: grid; gap: 1rem; }
.field label { display: block; font: 600 var(--fs-xs)/1.3 var(--sans); margin-bottom: 0.4rem; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 0.75rem 1.1rem; border: 1.5px solid var(--field-line); border-radius: var(--r-sm); background: var(--white); }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(166, 95, 0, 0.35); }
.field textarea { min-height: 150px; resize: vertical; }
.hint { color: var(--mute); font-size: var(--fs-xs); }
.form-note { min-height: 1.6em; color: var(--mute); font-size: var(--fs-xs); }
.contact-list { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.contact-list dt { font: 600 var(--fs-xs)/1.3 var(--sans); margin-bottom: 0.15rem; }
.contact-list dd { font-size: var(--fs-md); }
.contact-list a { display: inline-block; padding-block: 0.7rem; margin-block: -0.3rem; color: var(--teal-dark); font-weight: 600; }

/* Footer: the brand takes one third, the three link columns share the rest, so Pages starts on the same line as every other second column */
.site-footer { background: var(--ink); color: var(--on-dark); padding: clamp(40px, 6vw, 72px) 0 26px; margin-top: var(--sp); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--gap-col); }
.footer-pages { display: grid; grid-template-rows: repeat(var(--rows, 4), auto); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: clamp(16px, 2vw, 28px); }
.footer-brand img { height: 52px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 30rem; color: var(--on-dark-mute); font-size: var(--fs-sm); }
.footer-brand .tagline { font: 400 var(--fs-md)/1.35 var(--sans); color: var(--paper); margin-bottom: 0.7rem; }
.footer-title { font: 500 var(--fs-base)/1.2 var(--sans); color: var(--sand); margin-bottom: 0.9rem; }
.site-footer li + li { margin-top: 0; }
.site-footer li a, .footer-bottom a { display: inline-block; min-width: 44px; padding-block: 0.4rem; }
.site-footer a { color: var(--on-dark); text-decoration-color: rgba(233, 226, 208, 0.55); }
.site-footer a:hover { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--sand); }
.footer-bottom { margin-top: clamp(28px, 4vw, 44px); padding-top: 18px; border-top: 1px solid rgba(233, 226, 208, 0.22); display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: var(--fs-xs); color: var(--field); }

/* Motion: the home headline settles in on load */
@keyframes rise { from { transform: translateY(16px); } to { transform: none; } }
.hero-top > * { animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-top > *:nth-child(2) { animation-delay: 0.1s; }

/* Tablet and phone. Breakpoints are in em, so they move with the visitor's text size setting. */
@media (max-width: 70em) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--paper); border-radius: 0 0 var(--r) var(--r); box-shadow: 0 18px 30px rgba(21, 34, 46, 0.14); padding: 0.5rem clamp(18px, 4vw, 44px) 1.4rem; }
  .nav.open { display: block; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 0.95rem 0.1rem; border-bottom: 1px solid var(--line); font-size: var(--fs-base); }
  .nav-cta { display: block; padding-top: 1rem; }
  .nav-cta .btn { display: flex; border-bottom: 1.5px solid transparent; }
  .burger { display: inline-flex; }
  .tools { margin-left: auto; }
}
@media (max-width: 56.25em) {
  .hero-top, .split, .news, .join .wrap, .page-head-grid, .margin-grid, .pair, .dated li, .forms { grid-template-columns: minmax(0, 1fr); }
  .split.flip .split-media { order: 0; }
  .margin-grid > h2 { position: static; }
  .rows li { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 43.75em) {
  .brand img { height: 38px; }
  .bar { min-height: 70px; }
  .tools > .btn { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer li a { padding-block: 0.6rem; }
  .footer-bottom a { padding-block: 0.7rem; }
  .figures strong { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  .figures { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .figures span { min-height: 0; }
  .pair > div { padding: 26px 22px; }
  .hero-collage { grid-template-columns: minmax(0, 1fr); }
  .hero-collage figure:nth-child(3) { display: none; }
  .photo-grid { grid-template-columns: minmax(0, 1fr); }
  .photo-grid figure:nth-child(n+3) { display: none; }
}
@media (max-width: 24em) {
  .bar, .tools { gap: 8px; }
  .brand img { height: 32px; }
  .burger { padding: 0.5rem 0.85rem; }
}

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