/* Shared three-site house style (CLA-193, HUISSTIJL-DRIE-SITES.md, 28-09).
   This is the specimen's house.css (website-tasks/house-style-20260928) with one change:
   the font block. Literata and Inter are self-hosted from @fontsource-variable 5.3.0
   (OFL-1.1, "standard" files with the opsz and wght axes), latin + latin-ext subsets,
   the same approach as the ClarityOne house branch. Instrument Serif stays self-hosted.
   No request leaves for a third-party font service.
   Ben 28-09: the light ground is warm honey sunlight (--ivory #F3E2BE, --paper #F9EED6,
   --rule #E3CB9A; was #F4EAD8 / #FBF6EC / #D8C9AE), and the Afterglow skin uses these shared
   tokens instead of its own ivory. The night band is unchanged. */

@font-face {
  font-family: "Instrument Serif";
  src: url("./fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Literata;
  src: url("./fonts/literata-latin-standard-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: Literata;
  src: url("./fonts/literata-latin-ext-standard-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: Literata;
  src: url("./fonts/literata-latin-standard-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: Literata;
  src: url("./fonts/literata-latin-ext-standard-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: Inter;
  src: url("./fonts/inter-latin-standard-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: Inter;
  src: url("./fonts/inter-latin-ext-standard-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --ivory: #f3e2be;
  --paper: #f9eed6;
  --ink: #1c2621;
  --muted: #5e655c;
  --rule: #e3cb9a;
  --night: #121c2b;
  --champagne: #e4c49a;
  --clarity-accent: #a8742a;
  --works-accent: #2f4a41;
  --works-ochre: #c48f43;
  --afterglow-ember: #9b4a2a;
  --content-max: 1240px;
  --text-max: 720px;
  --grid-gap: 24px;
  --side-gutter: clamp(20px, 4vw, 72px);
  --section-space: clamp(128px, 10vw, 160px);
}

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

html { scroll-behavior: smooth; }
body { margin: 0; background: #e6dccb; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.specimen-intro {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px var(--side-gutter) 54px;
  color: var(--ink);
  font-family: Inter, sans-serif;
}
.specimen-intro__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid #b6a98f;
  padding-bottom: 28px;
}
.specimen-intro h1 {
  max-width: 650px;
  margin: 8px 0 12px;
  font: 400 clamp(42px, 5vw, 66px)/1.03 "Instrument Serif", Georgia, serif;
}
.specimen-intro p { max-width: 68ch; margin: 0; line-height: 1.6; }
.specimen-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}
.specimen-index a { color: var(--ink); text-underline-offset: 5px; }
.specimen-index a:hover { color: #704b21; }
.single-skin .specimen-intro { display: none; }

.skin {
  position: relative;
  --page: var(--ivory);
  --surface: var(--paper);
  --text: var(--ink);
  --subtle: var(--muted);
  --line: var(--rule);
  --focus: #6f4d1f;
  --error: #a12f24;
  --accent: var(--clarity-accent);
  --accent-text: #704a17;
  --button: #704a17;
  --button-text: var(--paper);
  background: var(--page);
  color: var(--text);
  font-family: Literata, Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  font-optical-sizing: auto;
}

.skin--works {
  --accent: var(--works-accent);
  --accent-text: var(--works-accent);
  --button: var(--works-accent);
  --focus: var(--works-accent);
}

.skin--afterglow {
  --page: var(--ivory);
  --surface: var(--paper);
  --text: #182b42;
  --subtle: #46566a;
  --line: var(--rule);
  --accent: var(--afterglow-ember);
  --accent-text: #7f3b21;
  --button: #78371f;
  --button-text: #fff9ef;
  --focus: #8a4629;
  --error: #a12f24;
}

.skin--afterglow-night {
  --page: var(--night);
  --surface: #1d2a3c;
  --text: var(--ivory);
  --subtle: #c3beaf;
  --line: #526071;
  --accent: var(--champagne);
  --accent-text: var(--champagne);
  --button: var(--champagne);
  --button-text: var(--night);
  --focus: var(--champagne);
  --error: #f0aba2;
}

.skin + .skin { border-top: 14px solid #e6dccb; }
.skin [hidden] { display: none !important; }
.skin :focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skin a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.skin a:hover { color: var(--accent-text); text-decoration-thickness: 2px; }
.skin p { max-width: 70ch; }
.skin figure { margin: 0; }
.skin h1, .skin h2, .skin h3, .skin p { overflow-wrap: anywhere; }
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus-visible {
  z-index: 10;
  top: 12px;
  left: var(--side-gutter);
  width: auto;
  height: auto;
  padding: 8px 14px;
  clip-path: none;
  background: var(--surface);
  color: var(--text);
  font: 600 15px/1.4 Inter, sans-serif;
}

.container {
  width: min(calc(100% - 2 * var(--side-gutter)), var(--content-max));
  margin-inline: auto;
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.ui-label {
  margin: 0;
  color: var(--accent-text);
  font: 500 12px/1.4 Inter, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.skin--afterglow-night .ui-label { color: var(--champagne); }
.section-title {
  margin: 16px 0 0;
  max-width: 900px;
  font: 400 clamp(48px, 4.3vw, 60px)/1.05 "Instrument Serif", Georgia, serif;
  letter-spacing: -0.018em;
}
.section-intro {
  margin: 22px 0 0;
  max-width: var(--text-max);
  color: var(--subtle);
}
.section { margin-block-start: var(--section-space); }
.text-link {
  color: var(--accent-text) !important;
  font: 500 15px/1.5 Inter, sans-serif;
}

.site-header {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 42px;
  min-height: 88px;
}
.wordmark {
  flex: 0 0 auto;
  font: 400 29px/1 "Instrument Serif", Georgia, serif;
  letter-spacing: -0.018em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark small {
  display: block;
  margin-top: 6px;
  color: var(--subtle);
  font: 500 12px/1.25 Inter, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  gap: clamp(18px, 2.5vw, 38px);
  align-items: center;
  margin-left: auto;
}
.site-nav a, .header-action, .menu-toggle {
  font: 500 15px/1.4 Inter, sans-serif;
  text-decoration: none;
}
.mobile-only-action { display: none; }
.site-nav a, .header-action { border-bottom: 1px solid transparent; }
.site-nav a:hover, .header-action:hover { border-color: currentColor; }
.header-action { margin-left: 12px; color: var(--accent-text) !important; white-space: nowrap; }
.menu-toggle { display: none; }

.draft-strip {
  padding: 9px var(--side-gutter);
  border-bottom: 1px solid var(--line);
  color: var(--subtle);
  font: 500 10px/1.4 Inter, sans-serif;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.hero { padding-top: 74px; }
.hero__copy { grid-column: 1 / span 9; }
.hero__meta {
  grid-column: 11 / span 2;
  align-self: end;
  border-left: 1px solid var(--line);
  padding-left: 18px;
  color: var(--subtle);
  font: 400 13px/1.55 Inter, sans-serif;
}
.hero h1 {
  margin: 15px 0 18px;
  max-width: 900px;
  font: 400 clamp(72px, 6.5vw, 96px)/0.99 "Instrument Serif", Georgia, serif;
  letter-spacing: -0.025em;
}
.hero__lead { max-width: 720px; margin: 0; color: var(--subtle); font-size: 19px; line-height: 1.65; }
.hero__actions { display: flex; gap: 24px; align-items: center; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 24px;
  border: 1px solid var(--button);
  border-radius: 0;
  background: var(--button);
  color: var(--button-text) !important;
  font: 500 15px/1.4 Inter, sans-serif;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}
.button:hover { background: transparent; color: var(--accent-text) !important; }
.skin--afterglow-night .button:hover { color: var(--champagne) !important; }

.image-band {
  width: 100%;
}
.image-band img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  animation: image-arrive 650ms ease both;
}
.hero .image-band { margin-top: 66px; }

.feature-band {
  padding-block: 104px 110px;
  background: var(--night);
  color: var(--ivory);
}
.skin--afterglow-night .feature-band { border-block: 1px solid #526071; }
.feature-band .ui-label { color: var(--champagne); }
.feature-band .image-band { margin-top: 24px; }
.feature-band__below { margin-top: 48px; }
.feature-band h2 {
  grid-column: 1 / span 8;
  margin: 0;
  font: 400 clamp(48px, 4.3vw, 60px)/1.05 "Instrument Serif", Georgia, serif;
  letter-spacing: -0.018em;
}
.feature-band__aside {
  grid-column: 9 / span 4;
  align-self: end;
  color: #ddd6c9;
}
.feature-band__aside p { margin: 0 0 18px; font-size: 17px; }
.feature-band__aside a { color: var(--champagne); font: 500 15px Inter, sans-serif; }

.proof__intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.proof-grid { margin-top: 50px; }
.proof-item { grid-column: span 4; min-width: 0; }
.proof-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; animation: image-arrive 650ms ease both; }
.proof-item figcaption { padding-top: 14px; }
.proof-item h3 { margin: 0; font: 400 31px/1.15 "Instrument Serif", Georgia, serif; }

.newsletter {
  border-block: 1px solid var(--line);
  padding-block: 72px;
}
.newsletter__copy { grid-column: 1 / span 6; }
.newsletter__form { grid-column: 8 / span 5; align-self: center; }
.newsletter .section-title { margin-top: 12px; }
.newsletter__copy p:not(.ui-label) { max-width: 47ch; margin: 18px 0 0; color: var(--subtle); }
.form-label {
  display: block;
  margin-bottom: 8px;
  font: 500 13px/1.4 Inter, sans-serif;
}
.form-field { margin-top: 20px; }
.form-control {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font: 400 15px/1.45 Inter, sans-serif;
}
.form-control::placeholder { color: var(--subtle); opacity: 0.85; }
.form-control:focus-visible { border-color: var(--focus); }
textarea.form-control { min-height: 112px; resize: vertical; }
.form-control[aria-invalid="true"] { border-color: var(--error); }
.form-error { min-height: 1.45em; margin: 7px 0 0; color: var(--error); font: 500 13px/1.45 Inter, sans-serif; }
.form-error:empty { min-height: 0; margin: 0; }
.form-note, .form-status { margin: 10px 0 0; color: var(--subtle); font: 400 12px/1.5 Inter, sans-serif; }
.form-status:not(:empty) { color: var(--accent-text); }
.newsletter .button { margin-top: 16px; }

.contact__intro { grid-column: 1 / span 5; }
.contact__form { grid-column: 7 / span 6; }
.contact__intro p:not(.ui-label) { margin-top: 18px; color: var(--subtle); }
.contact__form .button { margin-top: 24px; }
.form-state-sample {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.form-state-sample .ui-label { margin-bottom: 14px; }
.form-state-sample .form-field { margin-top: 0; max-width: 430px; }
.clean-view .form-note, .clean-view .form-state-sample { display: none; }

.family-panel { margin-top: var(--section-space); }
.family-grid { margin-top: 44px; }
.family-item { grid-column: span 4; border-top: 1px solid var(--line); padding-top: 18px; }
.family-item h3 { margin: 0 0 5px; font: 400 30px/1.2 "Instrument Serif", Georgia, serif; }
.family-item p { margin: 0; color: var(--subtle); font-size: 15px; }
.family-item a { display: inline-block; margin-top: 18px; color: var(--accent-text); font: 500 14px Inter, sans-serif; }

.site-footer {
  margin-top: 94px;
  padding-block: 34px 50px;
  border-top: 1px solid var(--line);
}
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer p { margin: 0; color: var(--subtle); font: 400 12px/1.6 Inter, sans-serif; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer__links a, .site-footer__links span { font: 500 14px/1.6 Inter, sans-serif; }

@keyframes image-arrive { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .site-header__inner { gap: 24px; }
  .site-nav { gap: 18px; }
  .hero__copy { grid-column: 1 / span 10; }
  .hero__meta { display: none; }
}

@media (max-width: 760px) {
  :root { --side-gutter: 20px; --section-space: 80px; --grid-gap: 18px; }
  .specimen-intro { padding: 28px 20px; }
  .specimen-intro__top { display: block; }
  .specimen-index { margin-top: 24px; }
  .site-header__inner { min-height: 72px; }
  .wordmark { font-size: 26px; }
  .header-action { display: none; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin-left: auto;
    padding: 8px 0 8px 12px;
    border: 0;
    background: transparent;
    color: var(--text);
  }
  .menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after {
    display: block;
    width: 19px;
    height: 1px;
    background: currentColor;
    content: "";
  }
  .menu-toggle__icon { position: relative; }
  .menu-toggle__icon::before { position: absolute; top: -5px; }
  .menu-toggle__icon::after { position: absolute; top: 5px; }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--side-gutter) 18px;
    border-bottom: 1px solid var(--line);
    background: var(--page);
    box-shadow: 0 14px 25px rgb(0 0 0 / 0.08);
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }
  .site-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .site-nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); }
  .site-nav .mobile-only-action { display: flex; }
  .site-nav a:last-child { border-bottom: 0; }
  .hero { padding-top: 52px; }
  .hero__copy { grid-column: 1 / -1; }
  .hero h1 { max-width: 600px; margin-top: 14px; font-size: clamp(40px, 11.5vw, 48px); line-height: 1.03; }
  .hero__lead { font-size: 18px; line-height: 1.6; }
  .hero__actions { margin-top: 26px; }
  .hero .image-band { margin-top: 50px; }
  .image-band img { aspect-ratio: 4 / 3; }
  .section-title, .feature-band h2 { font-size: clamp(32px, 8.8vw, 36px); line-height: 1.08; }
  .feature-band { padding-block: 72px 80px; }
  .feature-band__below { margin-top: 32px; }
  .feature-band h2, .feature-band__aside { grid-column: 1 / -1; }
  .feature-band__aside { margin-top: 8px; }
  .proof__intro { display: block; }
  .proof__intro .text-link { display: inline-block; margin-top: 20px; }
  .proof-grid { margin-top: 34px; row-gap: 40px; column-gap: var(--grid-gap); }
  .proof-item { grid-column: 1 / -1; }
  .proof-item h3 { font-size: 26px; }
  .newsletter { padding-block: 56px; }
  .newsletter__copy, .newsletter__form, .contact__intro, .contact__form { grid-column: 1 / -1; }
  .newsletter__form, .contact__form { margin-top: 18px; }
  .family-grid { margin-top: 30px; row-gap: 30px; column-gap: var(--grid-gap); }
  .family-item { grid-column: 1 / -1; }
  .site-footer { margin-top: 72px; }
}

@media (max-width: 360px) {
  .site-header__inner { gap: 6px; }
  .menu-toggle { gap: 6px; padding-left: 0; }
  .menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after { width: 16px; }
}

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