:root {
  color-scheme: light;
  font: 100%/1.55 Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1f292c;
  background: #faf9f5;
  --fine: #cfcec6;
  --quiet: #545e5d;
  --deep: #27494b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, input:focus-visible + label { outline: 3px solid #147f99; outline-offset: 4px; }
.wrap { width: min(100% - 8vw, 1270px); margin-inline: auto; }
.sitehead, .nav, .wordmark, .sitefoot, .section-link, .controls, .caption { display: flex; align-items: center; }
.sitehead { min-height: 5.6rem; justify-content: space-between; border-bottom: 1px solid var(--fine); gap: 1.2rem; }
.wordmark { gap: .65rem; text-decoration: none; font-size: 1.18rem; letter-spacing: -.045em; font-weight: 670; }
.wordmark img { width: 2rem; height: 2rem; }
.wordmark small { font: inherit; font-weight: 400; }
.nav { gap: clamp(1rem, 2.4vw, 2.6rem); font-size: .88rem; }
.nav a { text-decoration: none; }
.nav a:hover, .sitefoot a:hover { text-decoration: underline; }
.nav .language { border-left: 1px solid var(--fine); padding-left: clamp(1rem, 2.4vw, 2.6rem); }
.hero { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(2.4rem, 4vw, 5rem); align-items: center; padding: clamp(3.5rem, 8vh, 7.5rem) 0; }
.hero h1, .project h2, .error h1 {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400; letter-spacing: -.072em; line-height: 1.02;
}
.hero h1 { font-size: clamp(3.8rem, min(6.5vw, 10vh), 6.8rem); max-width: 11ch; }
.hero h1 em { color: var(--deep); font-weight: 400; }
.intro > p { max-width: 31em; color: var(--quiet); font-size: clamp(1.07rem, 1.25vw, 1.22rem); line-height: 1.62; margin: 1.5rem 0 1.65rem; }
.section-link { width: fit-content; gap: .8rem; font-size: .94rem; font-weight: 580; }
.section-link span { text-decoration: underline; text-underline-offset: .28em; }
.section-link b { font-size: 1rem; font-weight: 400; }
.section-link { text-decoration: none; }
.hero-actions, .download-fields { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.15rem; }
.download-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem; padding: .65rem 1.3rem;
  font: inherit; font-size: .94rem; line-height: 1.25; font-weight: 600; text-decoration: none; cursor: pointer;
  color: #fff; background: var(--deep); border: 1px solid var(--deep); border-radius: .4rem;
}
.download-button:hover { background: #1d393a; }
.download-button:focus-visible, .download-fields input:focus-visible { outline: 3px solid #147f99; outline-offset: 3px; }
.download-section { align-items: start; scroll-margin-top: 1.5rem; }
.download-form label { display: block; font-weight: 650; }
.download-form p { margin: .2rem 0 .85rem; color: var(--quiet); }
.download-fields { gap: .6rem; }
.download-fields input {
  width: 8rem; max-width: 100%; min-height: 2.85rem; padding: .45rem .8rem; border: 1px solid #758381;
  border-radius: .4rem; color: inherit; background: #fff; font: inherit; letter-spacing: .38em;
}
.stage { min-width: 0; }
.studio { padding: clamp(1.45rem, 5vw, 5rem) clamp(1.1rem, 3.7vw, 3.7rem); background: linear-gradient(128deg,#eee6d5, #e1d7c3 51%, #d9c8b1); border-radius: .65rem; overflow: hidden; }
.device {
  position: relative; padding: 2.25% 2.45%; width: 100%; border-radius: 3.5% / 5.6%;
  border: 1px solid #a3a29e; background: #27282a;
  box-shadow: inset 0 0 0 2px #4d4e4c, 1px 3px 0 #75726b, 3px 9px 10px -5px #5b554c82, 6px 26px 24px -15px #665b4a85;
}
.device img { display: block; width: 100%; height: auto; aspect-ratio: 8/5; border-radius: 1.6% / 2.5%; transition: filter .45s ease; }
.device::before { content: ""; position: absolute; top: 1.35%; left: 50%; width: .65%; aspect-ratio: 1; border-radius: 50%; background: #111819; }
.stage:has(#night:checked) .device img { filter: brightness(.35); }
.caption { justify-content: space-between; gap: .6rem; margin-top: .86rem; flex-wrap: wrap; }
.caption p { font-size: .83rem; font-weight: 560; }
.controls { margin: 0; padding: .16rem; border: 1px solid #c6c8bd; border-radius: 2rem; gap: .16rem; }
.controls input, .visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.controls label { cursor: pointer; font-size: .76rem; color: #4e5754; padding: .31rem .72rem; border-radius: 2rem; line-height: 1.3; }
.controls input:checked + label { color: #fff; background: var(--deep); }
.project { display: grid; grid-template-columns: .78fr 1.22fr; column-gap: clamp(2.4rem, 5vw, 5rem); padding-block: clamp(2.8rem, 5vw, 5.25rem); border-top: 1px solid var(--fine); }
.project h2 { font-size: clamp(2.3rem, 4vw, 4rem); max-width: 13ch; }
.rows article { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(1rem, 2vw, 2.5rem); padding: 1.15rem 0; border-top: 1px solid var(--fine); }
.rows article:first-child { border: 0; padding-top: .25rem; }
h3 { font-size: 1.05rem; line-height: 1.4; letter-spacing: -.03em; font-weight: 620; }
.rows p, .project > p { max-width: 54ch; color: var(--quiet); }
.cloud { background: #e7eeea; }
.cloud .project { border: 0; padding-block: clamp(2.6rem, 4.8vw, 4.5rem); }
.cloud h2 { color: var(--deep); }
.sitefoot { justify-content: space-between; padding-block: 1.55rem; gap: .8rem 2rem; flex-wrap: wrap; }
.sitefoot p { font-size: .76rem; color: var(--quiet); }
.sitefoot cite { font-style: normal; }
.error { min-height: 65vh; display: grid; align-content: center; justify-items: start; gap: 1.5rem; }
.error h1 { font-size: clamp(3rem, 8vw, 5rem); }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr 1.1fr; gap: 1.7rem; }
  .hero h1 { font-size: clamp(3.1rem, 6vw, 4rem); }
  .project { grid-template-columns: .75fr 1.25fr; }
  .rows article { display: block; }
  .rows article h3 { margin-bottom: .35rem; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 2.35rem); }
  .sitehead { min-height: 4.25rem; }
  .nav a:not(.language) { display: none; }
  .nav .language { border: 0; padding: .35rem 0; }
  .hero { grid-template-columns: 1fr; padding-block: 2.6rem 2.25rem; gap: 1.85rem; }
  .hero h1 { max-width: 14ch; font-size: clamp(3.2rem, 11vw, 4.4rem); }
  .intro > p { font-size: 1.04rem; margin: .95rem 0; }
  .studio { padding: 2.1rem 1.35rem; }
  .project { grid-template-columns: 1fr; gap: 1.65rem; padding-block: 2.15rem; }
  .project h2 { max-width: none; }
  .rows article { padding: 1rem 0; }
  .rows article:last-child { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .device img { transition: none; } }
