@font-face {
  font-family: "Twin Clarendon";
  src: url("/assets/fonts/clarendon-400.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Twin Avenir";
  src: url("/assets/fonts/avenir-400.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --cypress: #10241d;
  --cypress-soft: #1c332a;
  --ink: #16231e;
  --body: #405048;
  --muted: #65726b;
  --stone: #e9ece8;
  --stone-soft: #f4f5f1;
  --white: #fffef9;
  --saddle: #a84e32;
  --saddle-dark: #823a28;
  --line: rgba(22, 35, 30, 0.18);
  --on-dark: #f3f1e8;
  --ff-display: "Twin Clarendon", Georgia, serif;
  --ff-body: "Twin Avenir", "Helvetica Neue", Arial, sans-serif;
  --container: 88rem;
  --container-narrow: 66rem;
  --section: clamp(5.75rem, 10vw, 10.5rem);
  --gap: clamp(1.25rem, 2.6vw, 2.75rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 5.25rem;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scrollbar-color: var(--saddle) var(--stone);
  scrollbar-width: thin;
}

html::-webkit-scrollbar,
.menu-overlay::-webkit-scrollbar,
.lightbox__stage::-webkit-scrollbar {
  width: 0.75rem;
}

html::-webkit-scrollbar-track,
.menu-overlay::-webkit-scrollbar-track,
.lightbox__stage::-webkit-scrollbar-track {
  background: var(--stone);
}

html::-webkit-scrollbar-thumb,
.menu-overlay::-webkit-scrollbar-thumb,
.lightbox__stage::-webkit-scrollbar-thumb {
  border: 0.2rem solid var(--stone);
  border-radius: 999px;
  background: var(--saddle);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--stone-soft);
  color: var(--body);
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

picture {
  display: contents;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.35rem, 7vw, 7.25rem);
}

h2 {
  font-size: clamp(2.65rem, 5vw, 5.35rem);
}

h3 {
  font-size: clamp(1.65rem, 2.6vw, 2.65rem);
}

p {
  max-width: 65ch;
}

::selection {
  background: var(--saddle);
  color: var(--white);
}

:focus-visible {
  outline: 0.2rem solid var(--saddle);
  outline-offset: 0.25rem;
}

.skip-link {
  position: absolute;
  z-index: 1000;
  left: 1rem;
  top: -5rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  padding: 0.8rem 1.25rem;
}

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

.container {
  width: min(calc(100% - clamp(2rem, 8vw, 8rem)), var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(calc(100% - clamp(2rem, 10vw, 10rem)), var(--container-narrow));
  margin-inline: auto;
}

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

.section-tight {
  padding-block: clamp(4rem, 7vw, 6.5rem);
}

.section-title {
  max-width: 13ch;
  margin-bottom: 1.6rem;
}

.section-lead {
  max-width: 49ch;
  margin-bottom: 2.25rem;
  color: var(--body);
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  line-height: 1.7;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  border: 0.08rem solid transparent;
  border-radius: 999px;
  padding: 0.78rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button-accent {
  background: var(--saddle);
  color: #fff;
}

.button-accent:hover {
  background: var(--saddle-dark);
}

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

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

.button-dark {
  background: var(--cypress);
  color: var(--on-dark);
}

.button-dark:hover {
  background: var(--cypress-soft);
}

.button-outline,
.button-outline-light {
  border-color: currentColor;
  background: transparent;
}

.button-outline {
  color: var(--ink);
}

.button-outline-light {
  color: var(--on-dark);
}

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

.button-outline-light:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--cypress);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.text-link span {
  transition: transform 180ms var(--ease);
}

.text-link:hover span {
  transform: translateX(0.25rem);
}

.text-link-light {
  color: var(--on-dark);
}

.site-header {
  position: absolute;
  z-index: 40;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1.1rem, 4.3vw, 4.5rem);
  color: var(--on-dark);
}

.site-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 -8rem;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 15, 12, 0.72), rgba(6, 15, 12, 0.28) 48%, transparent);
}

.brand {
  display: block;
  width: 6.5rem;
  height: 4.5rem;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle,
.menu-close {
  border: 0;
  cursor: pointer;
}

.menu-toggle {
  min-height: 3.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border: 0.08rem solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(13, 31, 24, 0.44);
  color: var(--white);
  padding: 0.7rem 1.3rem;
  font-size: 0.92rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.menu-toggle i,
.menu-toggle i::before {
  width: 1rem;
  height: 0.09rem;
  display: block;
  background: currentColor;
}

.menu-toggle i {
  position: relative;
}

.menu-toggle i::before {
  content: "";
  position: absolute;
  top: -0.3rem;
  left: 0;
}

.menu-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow-y: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--cypress);
  color: var(--on-dark);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.menu-open .menu-overlay {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.menu-overlay__texture,
.site-footer__texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(16, 36, 29, 0.84), rgba(16, 36, 29, 0.9)), url("/assets/images/generated/oak-contours.webp") center / cover;
  opacity: 0.72;
}

.menu-overlay__top,
.menu-overlay__inner,
.menu-overlay__foot {
  position: relative;
  z-index: 1;
}

.menu-overlay__top {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem clamp(1.1rem, 4.3vw, 4.5rem);
}

.menu-close {
  border: 0.08rem solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  padding: 0.7rem 1rem 0.7rem 1.25rem;
  font-weight: 700;
}

.menu-close span {
  margin-left: 0.45rem;
  font-size: 1.35rem;
  line-height: 0;
  vertical-align: -0.08em;
}

.menu-overlay__inner {
  width: min(calc(100% - clamp(2rem, 9vw, 10rem)), 84rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.72fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
  margin: auto;
  padding-block: clamp(2rem, 5vh, 4rem);
}

.menu-nav ul,
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-nav li {
  border-bottom: 0.05rem solid rgba(255, 255, 255, 0.16);
}

.menu-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--on-dark);
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 5vh, 4.6rem);
  line-height: 1.12;
  padding: 0.28em 0;
  text-decoration: none;
  transition: color 180ms ease, padding-left 220ms var(--ease);
}

.menu-nav a[aria-current="page"],
.menu-nav a:hover {
  color: #d78762;
  padding-left: 0.18em;
}

.menu-feature {
  align-self: center;
}

.menu-feature__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.menu-feature p {
  margin-bottom: 1.1rem;
  color: rgba(243, 241, 232, 0.77);
  font-size: 1rem;
}

.menu-overlay__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem clamp(1.5rem, 4vw, 4rem);
  border-top: 0.05rem solid rgba(255, 255, 255, 0.16);
  margin-inline: clamp(1.1rem, 4.3vw, 4.5rem);
  padding-block: 1.15rem;
  font-size: 0.9rem;
}

.menu-overlay__foot a {
  text-decoration: none;
}

.page-hero {
  position: relative;
  min-height: clamp(34rem, 76dvh, 49rem);
  display: grid;
  overflow: hidden;
  color: var(--white);
  background: var(--cypress);
}

.page-hero__media,
.page-hero__shade,
.page-hero__content {
  grid-area: 1 / 1;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-position);
}

.page-hero__shade {
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 20, 15, 0.82), rgba(8, 20, 15, 0.34) 58%, rgba(8, 20, 15, 0.16)), linear-gradient(0deg, rgba(8, 20, 15, 0.28), transparent 45%);
}

.page-hero__content {
  z-index: 2;
  align-self: end;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.page-hero h1 {
  max-width: 10ch;
  margin-bottom: 1.2rem;
  color: var(--white);
  font-size: clamp(3.6rem, 7.2vw, 7rem);
}

.page-hero p {
  max-width: 39rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.closing {
  background: var(--stone-soft);
  padding: clamp(3rem, 8vw, 7.5rem) 0 0;
}

.closing__frame {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(20rem, 0.88fr);
  min-height: 37rem;
  background: var(--cypress);
}

.closing__media {
  min-height: 27rem;
  overflow: hidden;
}

.closing__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing__copy {
  align-self: center;
  padding: clamp(3rem, 7vw, 6.5rem);
}

.closing__copy h2 {
  max-width: 10ch;
  margin-bottom: 1.35rem;
  color: var(--on-dark);
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.closing__copy p {
  margin-bottom: 2rem;
  color: rgba(243, 241, 232, 0.76);
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--cypress);
  color: rgba(243, 241, 232, 0.74);
  padding-top: clamp(5rem, 9vw, 8rem);
}

.footer-grid,
.partner-row,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 1.5fr) repeat(3, minmax(9rem, 0.75fr));
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.site-footer h2 {
  margin-bottom: 1.3rem;
  color: var(--on-dark);
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 700;
}

.site-footer li + li {
  margin-top: 0.65rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-brand > a:first-child {
  display: block;
  width: 8.5rem;
  margin-bottom: 1.4rem;
}

.footer-brand img {
  width: 100%;
  height: auto;
}

.footer-brand p {
  max-width: 27rem;
  margin-bottom: 1.7rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.partner-row {
  display: grid;
  grid-template-columns: 1fr minmax(16rem, 1.1fr) auto;
  align-items: center;
  gap: 2rem;
  border-top: 0.05rem solid rgba(255, 255, 255, 0.16);
  border-bottom: 0.05rem solid rgba(255, 255, 255, 0.16);
  padding-block: 1.7rem;
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.78rem;
}

.powered-by img {
  width: 8.5rem;
  height: 2.25rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.partner-row p {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.media-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rule-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  display: grid;
  grid-template-columns: minmax(9rem, 0.65fr) 1fr;
  gap: 1rem;
  border-bottom: 0.05rem solid var(--line);
  padding: 1rem 0;
}

.rule-list strong {
  color: var(--ink);
}

.notice {
  border-left: 0.24rem solid var(--saddle);
  background: color-mix(in srgb, var(--saddle) 7%, transparent);
  padding: 1.3rem 1.5rem;
}

.notice p:last-child {
  margin-bottom: 0;
}

.no-js [data-reveal] {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 650ms var(--ease), transform 650ms var(--ease);
  }

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

  .menu-nav li {
    opacity: 0;
    transform: translateX(-1rem);
    transition: opacity 350ms ease, transform 500ms var(--ease);
  }

  .menu-open .menu-nav li {
    opacity: 1;
    transform: none;
  }

  .menu-open .menu-nav li:nth-child(2) { transition-delay: 40ms; }
  .menu-open .menu-nav li:nth-child(3) { transition-delay: 80ms; }
  .menu-open .menu-nav li:nth-child(4) { transition-delay: 120ms; }
  .menu-open .menu-nav li:nth-child(5) { transition-delay: 160ms; }
  .menu-open .menu-nav li:nth-child(6) { transition-delay: 200ms; }
  .menu-open .menu-nav li:nth-child(7) { transition-delay: 240ms; }
}

@media (max-width: 900px) {
  .header-book {
    display: none;
  }

  .menu-overlay__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .menu-feature {
    display: none;
  }

  .menu-nav a {
    font-size: clamp(2.1rem, 8vw, 3.25rem);
  }

  .closing__frame,
  .footer-grid,
  .partner-row {
    grid-template-columns: 1fr;
  }

  .closing__media {
    max-height: 31rem;
  }

  .closing__copy {
    padding: 3rem clamp(1.4rem, 7vw, 3rem) 3.8rem;
  }

  .partner-row {
    align-items: start;
  }

  .partner-row p {
    text-align: left;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 4.65rem;
    --section: 5.5rem;
  }

  body {
    font-size: 1rem;
  }

  .container,
  .container-narrow {
    width: min(calc(100% - 2rem), var(--container));
  }

  .site-header {
    padding-inline: 1rem;
  }

  .brand {
    width: 5.4rem;
    height: 3.85rem;
  }

  .menu-toggle {
    min-height: 2.8rem;
    padding: 0.6rem 1rem;
  }

  .menu-overlay__top {
    padding-inline: 1rem;
  }

  .menu-overlay__foot {
    flex-direction: column;
    margin-inline: 1rem;
  }

  .page-hero {
    min-height: 36rem;
  }

  .page-hero__content {
    padding-bottom: 3.5rem;
  }

  .page-hero h1 {
    font-size: clamp(3.1rem, 15vw, 5rem);
  }

  .button-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
  }

  .rule-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand,
  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1.5rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f1e9;
    --body: #c2cbc5;
    --muted: #98a59e;
    --stone: #182a23;
    --stone-soft: #102019;
    --white: #f6f5ee;
    --line: rgba(255, 255, 255, 0.17);
  }

  html {
    color-scheme: dark;
  }

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

  .notice {
    background: rgba(168, 78, 50, 0.12);
  }
}

@media print {
  .site-header,
  .menu-overlay,
  .closing,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
