/* KAPNARA - kapnara.in. Colour tokens come from data/brand.json via an inline :root block in index.html. */
@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Didot and Optima are the brand faces (macOS / iOS); others get Bodoni Moda and the brand.json text fallbacks. */
  --display: Didot, "Bodoni Moda", "Bodoni 72", Georgia, serif;
  --text: Optima, Candara, "Gill Sans", "Trebuchet MS", sans-serif;
  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--grey);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  hanging-punctuation: first last;
}
p, dd { text-wrap: pretty; }
h1, h2, dt { text-wrap: balance; }
a { color: var(--teal); text-decoration-color: var(--sand); text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { text-decoration-color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
h1, h2, h3, p, dl, dd { margin: 0; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--teal); color: var(--cream); padding: .5rem 1rem; z-index: 20;
}
.skip:focus { top: 1rem; }

/* ---------- first screen: the S1 page the rose opening settles on ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* optical centre: the group sits a little above the true middle, as a designer would place it */
  padding: 2.5rem var(--gutter) 7rem;
  text-align: center;
}
.hero h1 { line-height: 0; }
.lockup { width: min(26rem, 82vw); height: auto; display: block; }
.descriptor {
  margin-top: .25rem;
  font-family: var(--text);
  font-size: .9375rem;
  letter-spacing: .04em;
  color: var(--grey);
}
.drop {
  display: block;
  width: 1px;
  height: clamp(4rem, 12vh, 7rem);
  margin: 2.25rem 0 1.75rem;
  background: var(--sand);
}
.hero-line {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem);
  color: var(--grey);
}
.hero-mail { margin-top: 1rem; letter-spacing: .03em; }

/* ---------- reading column ---------- */
main { padding: 0 var(--gutter); }
.block {
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) 0 0;
  display: grid;
  gap: .75rem 3rem;
}
.block > * { max-width: var(--measure); }
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1.15;
  color: var(--teal);
}
.label-name { letter-spacing: .02em; }
/* The one filled button on the page: square-cornered like the stationery, teal ink, no arrow. */
.button {
  display: inline-block;
  padding: .85rem 1.75rem;
  background: var(--teal);
  color: var(--cream);
  font-family: var(--text);
  font-size: 1rem;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color .15s ease-out;
}
.button:hover { background: #0e3838; color: var(--cream); }
.button:active { transform: scale(.98); }
.intro { padding-top: 0; }
/* Uneven rhythm on purpose: spacing follows how much each pause matters, not one value for every section. */
.space-m { padding-top: clamp(4rem, 10vw, 7rem); }
.space-l { padding-top: clamp(5rem, 13vw, 10rem); }
.lead, .statement p { font-variant-numeric: oldstyle-nums proportional-nums; }
.statement p {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.35;
  color: var(--teal);
  max-width: 30ch;
}
.lead {
  font-family: var(--display);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.5;
  color: var(--teal);
}

.materials { display: grid; gap: 1.75rem; }
.material dt {
  font-family: var(--display);
  font-size: 1.375rem;
  color: var(--teal);
}
.native { font-size: 1.0625rem; color: var(--grey); margin-left: .35em; }
.material dd { margin-top: .25rem; }

.contact-mail {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.3;
  word-break: break-word;
}
.addresses {
  max-width: none;
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  font-size: .9375rem;
  line-height: 1.6;
}
.address h3 { font-family: var(--text); font-weight: 400; font-size: .9375rem; color: var(--teal); }
.ids { margin-top: 1.5rem; font-size: .875rem; line-height: 1.7; letter-spacing: .02em; font-variant-numeric: lining-nums tabular-nums; }

.foot {
  padding: clamp(4rem, 10vw, 7rem) var(--gutter) 2.5rem;
  text-align: center;
  font-size: .8125rem;
  color: #6f7774;
}

/* Headings sit in their own column beside the text on wide screens. */
@media (min-width: 60rem) {
  .block { grid-template-columns: 16rem 1fr; }
  .block > h2 { grid-column: 1; grid-row: 1 / span 6; padding-top: .15rem; }
  .block > :not(h2) { grid-column: 2; }
  .intro { grid-template-columns: 16rem 1fr; }
  .intro .lead { grid-column: 2; }
}

/* ---------- rose opening (layer added by rose.js; absent without JS or with reduced motion) ---------- */
.petals {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
}
.petal {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform, opacity;
}
.petal svg { display: block; width: 100%; height: 100%; }
