/* Global styles for 't Heerenhuys: fonts, brand tokens, base elements and
   shared pieces (buttons, eyebrow, display heading, sections, reveal).
   Section styles live in their components (src/components/*.astro). */

@font-face {
  font-family: Cormorant Garamond;
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/cormorant-garamond-cyrillic-ext-500-normal.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Cormorant Garamond;
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Cormorant Garamond;
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/cormorant-garamond-vietnamese-500-normal.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Cormorant Garamond;
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/cormorant-garamond-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, 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: Cormorant Garamond;
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Cormorant Garamond;
  font-style: italic;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/cormorant-garamond-cyrillic-ext-500-italic.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Cormorant Garamond;
  font-style: italic;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/cormorant-garamond-cyrillic-500-italic.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Cormorant Garamond;
  font-style: italic;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/cormorant-garamond-vietnamese-500-italic.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Cormorant Garamond;
  font-style: italic;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/cormorant-garamond-latin-ext-500-italic.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, 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: Cormorant Garamond;
  font-style: italic;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Cormorant Garamond;
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/assets/fonts/cormorant-garamond-cyrillic-ext-600-normal.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Cormorant Garamond;
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/assets/fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Cormorant Garamond;
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/assets/fonts/cormorant-garamond-vietnamese-600-normal.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Cormorant Garamond;
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/assets/fonts/cormorant-garamond-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, 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: Cormorant Garamond;
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Jost Variable;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/jost-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Jost Variable;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/jost-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, 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: Jost Variable;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/jost-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1c2622;
  --green-900: #1f2d27;
  --green-800: #26382f;
  --green-700: #2f4a3e;
  --paper: #f8f6f1;
  --stone: #eceae3;
  --sage: #e2e7e0;
  --card: #fff;
  --line: #cfccc1;
  --line-soft: #e1ded5;
  --text: #1f2622;
  --text-soft: #414a45;
  --on-dark: #f3f0e8;
  --on-dark-soft: #c9cfc9;
  --brass: #cdb487;
  --brass-deep: #8a6c3e;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Jost Variable", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --header-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (width <= 899px) {
  :root {
    --header-h: 68px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  margin: 0;
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
}

body.nav-open,
body.gallery-open {
  overflow: hidden;
}

img,
svg,
picture {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul[role="list"],
ol {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

table {
  border-collapse: collapse;
}

main:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 3px;
}

.on-dark :focus-visible,
.on-dark:focus-visible {
  outline-color: var(--brass);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  padding-inline: var(--gutter);
  margin-inline: auto;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  position: absolute !important;
}

.skip-link {
  z-index: 100;
  background: var(--paper);
  color: var(--green-900);
  padding: .75rem 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s;
  position: absolute;
  top: -100px;
  left: 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow,
.label {
  font-family: var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-700);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.4;
}

.eyebrow {
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.1rem;
  display: flex;
}

.eyebrow:before {
  content: "";
  background: var(--brass-deep);
  flex: none;
  width: 28px;
  height: 1px;
}

.display {
  font-family: var(--serif);
  letter-spacing: -.012em;
  color: var(--green-900);
  text-wrap: balance;
  font-size: clamp(2.35rem, 1.6rem + 3.2vw, 3.9rem);
  font-weight: 500;
  line-height: 1.04;
}

.lead {
  color: var(--text-soft);
  max-width: 36em;
  font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem);
  line-height: 1.6;
}

svg[aria-hidden="true"] {
  flex: none;
}

.btn {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --btn-bd: currentColor;
  min-height: 48px;
  font-family: var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  justify-content: center;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.5rem;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform .3s var(--ease);
}

.btn:hover svg {
  transform: translate(3px);
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  min-height: 42px;
  padding: .6rem 1.15rem;
  font-size: .78rem;
}

.btn--light {
  --btn-bg: var(--paper);
  --btn-fg: var(--green-900);
  --btn-bd: var(--paper);
}

.btn--light:hover {
  --btn-bg: #fff;
  --btn-bd: #fff;
}

.btn--ghost-light {
  --btn-fg: #fff;
  --btn-bd: #ffffffb3;
  background: #141c1840;
}

.btn--ghost-light:hover {
  --btn-bg: #ffffff24;
  --btn-bd: #fff;
}

.btn--dark {
  --btn-bg: var(--green-900);
  --btn-fg: var(--paper);
  --btn-bd: var(--green-900);
}

.btn--dark:hover {
  --btn-bg: var(--green-700);
  --btn-bd: var(--green-700);
}

.btn--outline {
  --btn-fg: var(--green-900);
  --btn-bd: var(--green-900);
}

.btn--outline:hover {
  --btn-bg: var(--green-900);
  --btn-fg: var(--paper);
}

.text-link {
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--green-700);
  transition: background-size .4s var(--ease), color .3s;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  align-items: center;
  gap: .55rem;
  margin-top: 1.6rem;
  padding-bottom: .45rem;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
}

.text-link svg {
  width: 18px;
  height: 18px;
  transition: transform .3s var(--ease);
}

.text-link:hover {
  color: var(--green-900);
  background-size: 40% 1px;
}

.text-link:hover svg {
  transform: translate(4px);
}

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

.section--stone {
  background: var(--stone);
}

.section--sage {
  background: var(--sage);
}

.section-head {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.25rem 3rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
  display: grid;
}

.section-head__aside {
  color: var(--text-soft);
  max-width: 30em;
  font-size: 1.08rem;
}

.section-head--stack {
  grid-template-columns: 1fr;
  gap: 0;
}

.section-head--stack .section-head__aside {
  max-width: 42em;
  margin-top: 1.1rem;
}

@media (width <= 767px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: var(--delay, 0s);
    transform: translateY(26px);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
:before,
:after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
.map,
.filter,
.nav-toggle {
    display: none !important;
  }
}

@keyframes hero-zoom {
  0% {
    transform: scale(1.07);
  }

  to {
    transform: none;
  }
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes tile-in {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%, to {
    box-shadow: 0 0 0 6px #1f2d271f;
  }

  50% {
    box-shadow: 0 0 0 11px #1f2d270a;
  }
}

/* Plain text pages (Page.astro: privacy statement, 404). */
.page {
  padding-top: calc(var(--header-h) + var(--section) * .6);
  padding-bottom: var(--section);
}

.page h1 {
  font-family: var(--serif);
  color: var(--green-900);
  font-size: clamp(2.35rem, 1.6rem + 3.2vw, 3.9rem);
  font-weight: 500;
  line-height: 1.04;
  margin-bottom: 1.25rem;
}

.prose {
  max-width: 42em;
  margin-top: 2rem;
}

.prose h2 {
  font-family: var(--serif);
  color: var(--green-900);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 2rem 0 .5rem;
}

.prose p + p {
  margin-top: 1rem;
}

.prose a {
  color: var(--green-700);
}

.todo {
  color: var(--text-soft);
  font-style: italic;
}

[hidden] {
  display: none !important;
}
