@font-face {
  font-family: "Bellefair";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/bellefair-400.woff2") format("woff2");
  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: "Parisienne";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/parisienne-400.woff2") format("woff2");
  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: "Spectral";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/spectral-400-italic.woff2") format("woff2");
  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: "Spectral";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/spectral-300.woff2") format("woff2");
  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: "Spectral";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/spectral-400.woff2") format("woff2");
  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;
}

:root {
  --green-950: #0d241a;
  --green-900: #143020;
  --green-800: #1a3b29;
  --green-700: #24503a;
  --ivory: #f3eedf;
  --ivory-2: #d8d9c5;
  --champagne: #cdb77f;
  --line: rgb(205 183 127 / 0.42);
  --line-soft: rgb(243 238 223 / 0.16);
  --danger: #f0b8a6;

  --font-display: "Bellefair", "Times New Roman", serif;
  --font-body: "Spectral", Georgia, serif;
  --font-script: "Parisienne", "Bellefair", cursive;
  --font-cjk: "Noto Serif CJK SC", "Songti SC", "SimSun", serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 3.5rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --measure: 62ch;

  color-scheme: dark;
}

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

html {
  background: var(--green-900);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--champagne) var(--green-950);
  scrollbar-width: thin;
  scroll-padding-top: calc(var(--nav-h) + 0.5rem);
}

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

body {
  margin: 0;
  min-height: 100svh;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  caret-color: var(--champagne);
  overflow-x: clip;
}

::selection {
  background: var(--champagne);
  color: var(--green-950);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--green-950);
}
::-webkit-scrollbar-thumb {
  background: var(--green-700);
  border-radius: 10px;
  border: 2px solid var(--green-950);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--champagne);
}

[hidden] {
  display: none !important;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  transition: text-decoration-color 0.2s, color 0.2s;
}
a:not(.btn):hover {
  text-decoration-color: var(--champagne);
  color: #fff;
}

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

:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ivory);
  color: var(--green-950);
  border-radius: 999px;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip:hover {
  color: var(--green-950);
}
.skip:focus {
  top: 1rem;
}

.caps {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.26em;
}

.amp {
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0 2rem;
  border: 1px solid var(--ivory);
  border-radius: 999px;
  background: var(--ivory);
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.3;
  text-align: center;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease-out), border-color 0.2s;
}
.btn:hover:not(:disabled) {
  background: #fff;
  color: var(--green-950);
}
.btn:active:not(:disabled) {
  transform: scale(0.98);
}
.btn .icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.25s var(--ease-out);
}
.btn:hover:not(:disabled) .icon {
  transform: translateX(3px);
}
.btn--ghost {
  background: transparent;
  color: var(--ivory);
  border-color: var(--line);
}
.btn--ghost:hover:not(:disabled) {
  background: rgb(243 238 223 / 0.08);
  color: #fff;
  border-color: var(--champagne);
}
.btn--sm {
  min-height: 2.75rem;
  padding: 0 1.25rem;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.iconbtn:hover {
  background: rgb(243 238 223 / 0.1);
  border-color: var(--champagne);
}
.iconbtn:active {
  transform: scale(0.94);
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--ivory);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
}
