/* Shared stylesheet. No build step; see README.md for maintenance. */

@font-face {
  font-family: Inter;
  src: url('fonts/inter-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url('fonts/montserrat-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Caveat;
  src: url('fonts/caveat-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 1. Ontwerpvariabelen — pas de huisstijl hier aan */
:root {

  /* Kleuren */
  --cream: #f8f7f5;
  --ink: #1f2e3d;
  --red: #a21d21;
  --text: #3a3a39;
  --muted: #747371;
  --white: #fff;
  --red-hover: #88191c;
  --ink-hover: #304658;
  --red-on-dark: #e87b7e;
  --text-on-dark: #f8f7f5b3;
  --border: rgba(136, 135, 134, .2);
  --border-subtle: #8887861a;
  --border-on-dark: #f8f7f533;
  --header-background: rgba(248, 247, 245, .95);
  --form-background: #f8f7f580;
  --footer-separator: #88878660;

  /* Typografie: vaste tekstschaal en responsive rollen */
  --font-body: Inter, Arial, sans-serif;
  --font-heading: Montserrat, Arial, sans-serif;
  --font-handwritten: Caveat, cursive;
  --text-xs: 13px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --font-size-body: var(--text-lg);
  --font-size-h1: 60px;
  --font-size-h2: 48px;
  --font-size-h3: 36px;
  --font-size-eyebrow: 32px;
  --font-size-intro: var(--text-xl);
  --font-size-step: 24px;
  --font-size-step-heading: 24px;

  /* Afstanden: gedeelde schaal, geen afbeeldingsafmetingen */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-15: 60px;
  --space-16: 64px;
  --space-18: 72px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --max-width: 1216px;
  --page-gutter: var(--space-10);
  --section-space: var(--space-32);

  /* Afrondingen en schaduwen */
  --radius-sm: 16px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-form: 32px;
  --radius-card: 48px;
  --radius-accent: 80px;
  --radius-pill: 999px;
  --radius-circle: 50%;
  --shadow-card: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;
  --shadow-button: 0 4px 14px #1f2e3d20;
  --transition-interactive: .18s;
}

/* 2. Basis en typografie */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--ink);
}

h1 {
  font-size: var(--font-size-h1);
  line-height: 1;
  letter-spacing: -1.5px;
}

h2 {
  font-size: var(--font-size-h2);
  line-height: 1.25;
  letter-spacing: -1.5px;
}

h3 {
  font-size: var(--font-size-h3);
  line-height: 1.12;
}

/* 3. Gedeelde layout en componenten */
.container {
  width: min(var(--max-width), calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.eyebrow {
  font-family: var(--font-handwritten);
  font-size: var(--font-size-eyebrow);
  line-height: 1.2;
  color: var(--red);
  transform: rotate(-2deg);
  transform-origin: left center;
  margin-bottom: var(--space-5);
}

.intro {
  font-size: var(--font-size-intro);
  line-height: 1.4;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--text-lg);
  line-height: 28px;
  text-align: center;
  transition: background-color var(--transition-interactive),box-shadow var(--transition-interactive);
}

.button:hover:not(:disabled) {
  box-shadow: var(--shadow-button);
}

.button-red {
  background: var(--red);
  color: var(--white);
}

.button-red:hover {
  background: var(--red-hover);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.button-dark:hover:not(:disabled) {
  background: var(--ink-hover);
}

.button-light {
  background: var(--white);
  border-color: var(--border);
  color: var(--ink);
}

.button-light:hover {
  background: var(--cream);
}

.icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

/* 4. Header en navigatie */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--header-background);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  flex-shrink: 0;
}

.brand img {
  width: 131px;
  height: 70px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--text);
}

nav a:hover {
  color: var(--red);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-4);
  color: var(--ink);
}

.menu-toggle[hidden] {
  display: none;
}

/* 5. Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  padding-block: var(--space-32);
}

.hero .intro {
  margin-top: var(--space-6);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.hero-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero-column:last-child {
  padding-top: var(--space-8);
}

.hero-images img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.hero-images .hero-tall {
  height: 256px;
}

.hero-images .hero-short {
  height: 192px;
}

.hero-images .corner-top,
.corner-top {
  border-top-left-radius: var(--radius-accent);
}

.hero-images .corner-bottom,
.corner-bottom {
  border-bottom-right-radius: var(--radius-accent);
}

/* 6. Diensten */
.services,
.work {
  background: var(--white);
}

.section-heading {
  max-width: 817px;
  margin: 0 auto var(--space-15);
}

.centered {
  text-align: center;
}

.centered .eyebrow {
  transform-origin: center;
}

.section-heading .intro {
  margin-top: var(--space-6);
}

.service-list {
  display: grid;
  gap: var(--space-15);
}

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  scroll-margin-top: 30px;
}

.service-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.service-image.corner-top {
  border-top-left-radius: var(--radius-accent);
}

.service-image.corner-bottom {
  border-bottom-right-radius: var(--radius-accent);
}

.service-copy {
  padding-left: var(--space-12);
  font-size: var(--text-xl);
  line-height: 1.4625;
}

.service-copy h3 {
  margin-bottom: var(--space-6);
}

.service-copy h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  margin-top: 10px;
  background: var(--red);
}

.service-lead {
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.625;
}

.service.reverse .service-image {
  grid-column: 2;
  grid-row: 1;
}

.service.reverse .service-copy {
  grid-column: 1;
  grid-row: 1;
  padding-left: 0;
  padding-right: var(--space-12);
}

/* 7. Over ons */
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-image {
  width: 100%;
  height: 500px;
  border-radius: var(--radius-lg);
}

.about-copy h2 {
  margin-bottom: var(--space-8);
}

.about-copy p:not(.eyebrow)+p {
  margin-top: var(--space-6);
}

.about-copy .button {
  margin-top: var(--space-8);
}

/* 8. Werkwijze */
.process {
  background: var(--ink);
  color: var(--text-on-dark);
}

.process h2,
.process h3 {
  color: var(--white);
}

.process .eyebrow {
  color: var(--red-on-dark);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: var(--space-8);
  list-style: none;
  padding: 0;
  margin: var(--space-20) 0 var(--space-16);
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  border-top: 2px dashed var(--border-on-dark);
}

.steps li {
  position: relative;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 4px solid var(--ink);
  border-radius: var(--radius-circle);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: var(--font-size-step);
  position: relative;
}

.steps li:first-child .step-number,
.steps li:last-child .step-number {
  background: var(--red);
  color: var(--white);
}

.steps h3 {
  font-size: var(--font-size-step-heading);
  line-height: 32px;
  margin: var(--space-6) 0 var(--space-3);
}

.steps p {
  line-height: 28px;
}

/* 9. Fotosectie — verhoudingen volgen het Figma-ontwerp */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
  grid-template-rows: minmax(0,.2782fr) minmax(0,.57835fr) minmax(0,.2105fr);
  aspect-ratio: 1216/1345.52;
}

.work-grid img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  min-height: 0;
  aspect-ratio: 1.52;
}

.work-grid .work-featured {
  grid-column: 1/span 2;
  grid-row: 1/span 2;
  aspect-ratio: 1600/2124;
}

.work-grid .work-small {
  grid-column: 3;
  grid-row: 1;
  aspect-ratio: auto;
}

.work-grid .work-tall {
  grid-column: 3;
  grid-row: 2;
  aspect-ratio: auto;
}

/* 10. Contact en formulier */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  background: var(--white);
  padding: var(--space-20);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.contact-copy .intro {
  margin-top: var(--space-6);
}

.contact-details {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-12);
  font-style: normal;
  font-size: var(--text-xl);
  line-height: 28px;
  color: var(--ink);
}

.contact-details>a,
.contact-details>div {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.contact-details a:hover {
  color: var(--red);
}

.contact-details span:last-child {
  overflow-wrap: anywhere;
}

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-circle);
  background: var(--cream);
  border: 1px solid var(--border-subtle);
}

.icon-circle img {
  object-fit: contain;
}

.contact-form {
  display: grid;
  gap: var(--space-6);
  background: var(--form-background);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-form);
  padding: var(--space-8);
  min-width: 0;
}

.contact-form label {
  display: block;
  min-width: 0;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--border);
  background: transparent;
  color: var(--ink);
  padding: 18px var(--space-2);
  min-height: 63px;
  border-radius: 0;
  line-height: 26px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 118px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
}

.contact-form .button {
  width: 100%;
}

.contact-form .button:disabled {
  cursor: not-allowed;
}

.form-note {
  font-size: var(--text-sm);
  line-height: 1.5;
}

.form-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 11. Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  column-gap: var(--space-6);
  row-gap: var(--space-2);
  color: var(--ink);
  font-size: var(--text-base);
}

.footer-meta span+span::before {
  content: '•';
  color: var(--footer-separator);
  margin-right: var(--space-6);
}

/* 12. Toegankelijkheid */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  z-index: 20;
}

.skip-link:focus {
  transform: translateY(0);
}

/* 13. Responsive — breedtes blijven expliciet in mediaqueries */
@media (min-width:1400px) {
  .hero {
    min-height: 752px;
  }

}

@media (max-width:1199px) {
  :root {
    --section-space: var(--space-24);
    --font-size-h1: 50px;
    --font-size-h2: 40px;
  }

  nav {
    gap: var(--space-5);
    font-size: var(--text-base);
  }

  .header-inner {
    gap: var(--space-4);
  }

  .header-call {
    padding-inline: 18px;
    font-size: var(--text-base);
  }

  .hero {
    padding-block: var(--space-24);
  }

  .service-copy {
    padding-left: var(--space-4);
  }

  .service.reverse .service-copy {
    padding-right: var(--space-4);
  }

  .service,
  .two-columns {
    gap: var(--space-10);
  }

  .contact-card {
    padding: var(--space-12);
    gap: var(--space-10);
  }

  .contact-details {
    font-size: var(--text-lg);
  }

  .contact-details>a,
  .contact-details>div {
    gap: 14px;
  }

  .footer-inner {
    align-items: flex-start;
  }

  .footer-meta {
    max-width: 720px;
  }

}

@media (max-width:959px) {
  :root {
    --section-space: var(--space-20);
    --page-gutter: var(--space-6);
    --font-size-h1: 44px;
    --font-size-h2: 36px;
    --font-size-h3: 30px;
  }

  h2 {
    letter-spacing: -1px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding-bottom: var(--space-3);
  }

  .header-inner nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .header-call {
    margin-left: auto;
  }

  .hero {
    gap: var(--space-6);
    padding-block: var(--space-18);
  }

  .hero-images {
    gap: var(--space-3);
  }

  .hero-column {
    gap: var(--space-3);
  }

  .hero-images .hero-tall {
    height: 210px;
  }

  .hero-images .hero-short {
    height: 156px;
  }

  .actions {
    gap: var(--space-3);
  }

  .hero .button {
    font-size: var(--text-base);
    padding-inline: 18px;
  }

  .service-copy {
    font-size: var(--text-lg);
    padding-left: 0;
  }

  .service.reverse .service-copy {
    padding-right: 0;
  }

  .service,
  .two-columns {
    gap: var(--space-8);
  }

  .about-image {
    height: 480px;
  }

  .steps {
    grid-template-columns: repeat(2,1fr);
    gap: var(--space-10);
    margin: var(--space-12) 0 0;
  }

  .steps::before {
    display: none;
  }

  .contact-card {
    grid-template-columns: 1fr;
    padding: var(--space-12);
  }

  .contact-form {
    max-width: none;
  }

  .contact-copy {
    max-width: 640px;
  }

  .contact-details {
    grid-template-columns: 1fr 1fr;
  }

  .work-grid {
    gap: var(--space-4);
  }

  .footer-meta {
    font-size: var(--text-sm);
    column-gap: 14px;
  }

  .footer-meta span+span::before {
    margin-right: 14px;
  }

}

@media (max-width:639px) {
  :root {
    --section-space: var(--space-16);
    --page-gutter: var(--space-5);
    --font-size-body: 16px;
    --font-size-h1: 42px;
    --font-size-h2: 34px;
    --font-size-h3: 30px;
    --font-size-eyebrow: 30px;
    --font-size-intro: 18px;
    --radius-accent: 56px;
    --font-size-step-heading: 22px;
  }

  h1 {
    line-height: 1.08;
    letter-spacing: -1.2px;
  }

  h2 {
    line-height: 1.18;
  }

  .eyebrow {
    margin-bottom: var(--space-4);
  }

  .intro {
    line-height: 1.55;
  }

  .site-header .brand img {
    width: 112px;
    height: 60px;
  }

  .header-inner {
    min-height: 76px;
    padding-bottom: 0;
    gap: var(--space-3);
  }

  .header-call {
    display: none;
  }

  .menu-toggle:not([hidden]) {
    display: flex;
    gap: var(--space-3);
    align-items: center;
  }

  .header-inner nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) 0 var(--space-4);
  }

  .header-inner nav a {
    padding: 10px var(--space-2);
    border-bottom: 1px solid var(--border);
  }

  .js .header-inner nav {
    display: none;
  }

  .js .header-inner nav.is-open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    padding: var(--space-14) 0 var(--space-16);
  }

  .hero-copy {
    max-width: 540px;
  }

  .actions {
    margin-top: var(--space-7);
  }

  .button {
    font-size: var(--text-base);
    min-height: 54px;
    padding: var(--space-3) var(--space-5);
  }

  .hero-images .hero-tall {
    height: auto;
    aspect-ratio: 1.125;
  }

  .hero-images .hero-short {
    height: auto;
    aspect-ratio: 1.5;
  }

  .hero-column:last-child {
    padding-top: var(--space-6);
  }

  .hero-images .corner-top,
  .service-image.corner-top {
    border-top-left-radius: var(--radius-accent);
  }

  .hero-images .corner-bottom,
  .service-image.corner-bottom {
    border-bottom-right-radius: var(--radius-accent);
  }

  .section-heading {
    margin-bottom: var(--space-10);
  }

  .service-list {
    gap: var(--space-14);
  }

  .service,
  .two-columns {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .service.reverse .service-image,
  .service.reverse .service-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .service-copy h3 {
    margin-bottom: 18px;
  }

  .service-image {
    border-radius: var(--radius-md);
  }

  .about-image {
    height: auto;
    aspect-ratio: 1.15;
  }

  .about-copy h2 {
    margin-bottom: var(--space-6);
  }

  .about-copy .button {
    margin-top: var(--space-6);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-top: var(--space-10);
  }

  .steps li {
    padding-left: var(--space-20);
    min-height: 64px;
  }

  .step-number {
    position: absolute;
    left: 0;
    top: 0;
  }

  .steps h3 {
    margin: 0 0 var(--space-2);
  }

  .steps p {
    font-size: var(--text-base);
    line-height: 26px;
  }

  .work-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-template-rows: auto;
    aspect-ratio: auto;
    gap: var(--space-3);
    margin-top: var(--space-8);
  }

  .work-grid .work-featured {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 4/3;
    object-position: center 30%;
  }

  .work-grid .work-small,
  .work-grid .work-tall {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1;
  }

  .work-grid img {
    aspect-ratio: 1;
  }

  .work-grid img:last-child {
    grid-column: 1/-1;
    aspect-ratio: 2;
  }

  .contact-card {
    width: calc(100% - 24px);
    padding: var(--space-8) var(--space-5);
    border-radius: var(--radius-xl);
    gap: var(--space-9);
  }

  .contact-details {
    grid-template-columns: 1fr;
    margin-top: var(--space-8);
    gap: var(--space-5);
    font-size: var(--text-base);
  }

  .contact-form {
    padding: var(--space-6) 18px;
    border-radius: var(--radius-lg);
    gap: 18px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: var(--text-base);
  }

  .contact-copy .intro {
    margin-top: var(--space-5);
  }

  .site-footer {
    padding: var(--space-10) 0 var(--space-7);
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-6);
  }

  .footer-meta {
    justify-content: flex-start;
    font-size: var(--text-xs);
    column-gap: var(--space-3);
    row-gap: var(--space-3);
  }

  .footer-meta span+span::before {
    display: none;
  }

  .footer-meta span:nth-child(n+3) {
    width: 100%;
  }

}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none!important;
  }

}

/* Contact protection and feedback; preserve the existing form layout. */
.contact-honeypot { display: none; }
.contact-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  font-size: var(--text-base);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-status--error { border-left-color: var(--red); }
.contact-status:empty { display: none; }

/* Privacy page uses the existing type, colors, spacing and buttons. */
.privacy-page { max-width: 860px; }
.privacy-page h1 { overflow-wrap: anywhere; }
.privacy-page h2 { margin-top: var(--space-12); font-size: var(--font-size-h3); }
.privacy-page p, .privacy-page address { margin-top: var(--space-6); }
.privacy-page address { font-style: normal; }
.privacy-page a:not(.button) { text-decoration: underline; overflow-wrap: anywhere; }

/* Local consent UI: equal actions, non-modal banner on first visit. */
.consent-panel {
  position: fixed;
  inset: auto 16px 16px;
  margin: 0 auto;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  z-index: 30;
  font-size: 16px;
  line-height: 1.5;
}
.consent-panel:modal { inset: 16px; margin: auto; height: fit-content; }
.consent-panel::backdrop { background: rgb(31 46 61 / 45%); }
.consent-panel h2 { font-size: 24px; line-height: 1.25; letter-spacing: normal; }
.consent-panel p { margin-top: 12px; }
.consent-panel a { text-decoration: underline; }
.consent-actions { display: flex; gap: 12px; margin-top: 20px; }
.consent-actions .button { flex: 1; padding: 12px; min-width: 0; font-size: 16px; }
.consent-panel :focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.consent-error { color: var(--red); }

.consent-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.consent-close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-circle); background: transparent; color: var(--ink); font: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.consent-close:hover { background: var(--white); }

.error-layout { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.error-layout > .site-header, .error-layout > .site-footer { flex-shrink: 0; }
.error-page { max-width: 860px; text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: clamp(48px, 7vh, 88px); }
.error-code { color: var(--red); font-size: clamp(80px, 15vw, 128px); font-weight: 600; line-height: 1; margin-bottom: var(--space-6); }
.error-page h1 { font-size: clamp(28px, 4vw, 40px); }
.error-page .intro { margin-top: var(--space-6); }
.error-page .button { margin-top: var(--space-8); }
