@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/fraunces-latin-ext-wght-normal.woff2) format("woff2");
  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: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/fraunces-latin-wght-normal.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 {
  --forest-950: #0f1712;
  --forest-900: #16211a;
  --forest-800: #1f2e24;
  --sand-50: #faf7f2;
  --sand-200: #e6dccb;
  --moss-300: #a9bf9a;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
  background: var(--forest-900);
  color: var(--sand-50);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.scene {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url(/bg.svg) center bottom / cover no-repeat;
  transform: scale(1.04);
  animation: settle 2.4s cubic-bezier(.2, .7, .2, 1) both;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(15, 23, 18, .7) 0%, rgba(15, 23, 18, .35) 45%, rgba(15, 23, 18, 0) 75%),
    linear-gradient(to top, rgba(15, 23, 18, .94) 0%, rgba(15, 23, 18, .55) 45%, rgba(15, 23, 18, .2) 100%);
}

header, main, footer {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-inline: 1.25rem;
}

@media (min-width: 640px) {
  header, main, footer { padding-inline: 2rem; }
}

header {
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: .01em;
  color: inherit;
  text-decoration: none;
}

.brand svg { width: 1.35rem; height: 1.35rem; color: var(--moss-300); }

/* Language dropdown: <details> so it works without JavaScript. */
.lang { position: relative; }

.lang summary {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .75rem;
  border: 1px solid rgba(230, 220, 203, .25);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
  list-style: none;
  user-select: none;
  backdrop-filter: blur(6px);
  background: rgba(15, 23, 18, .25);
  transition: background-color .2s, border-color .2s;
}

.lang summary::-webkit-details-marker { display: none; }

.lang summary:hover,
.lang[open] summary { background: rgba(15, 23, 18, .55); border-color: rgba(230, 220, 203, .45); }

.lang summary:focus-visible { outline: 2px solid var(--moss-300); outline-offset: 2px; }

.lang summary svg { width: .9rem; height: .9rem; }

.lang .chevron { transition: transform .2s; }
.lang[open] .chevron { transform: rotate(180deg); }

.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + .4rem);
  min-width: 9.5rem;
  margin: 0;
  padding: .35rem;
  list-style: none;
  background: var(--forest-900);
  border: 1px solid rgba(230, 220, 203, .18);
  border-radius: .75rem;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6);
  z-index: 10;
}

.lang a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .55rem .7rem;
  border-radius: .5rem;
  font-size: .9rem;
  color: var(--sand-200);
  text-decoration: none;
}

.lang a:hover, .lang a:focus-visible { background: var(--forest-800); color: var(--sand-50); outline: none; }

.lang a[aria-current="page"] { color: var(--sand-50); }
.lang a[aria-current="page"]::after { content: "✓"; color: var(--moss-300); }

.lang .code { font-size: .7rem; letter-spacing: .08em; color: rgba(230, 220, 203, .5); }

main {
  margin-top: auto;
  padding-bottom: 3.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.25rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--moss-300);
}

.eyebrow::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--moss-300);
  animation: pulse 2.6s ease-in-out infinite;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.5rem, 13vw, 9rem);
  line-height: .95;
  letter-spacing: -.03em;
}

.lead {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  line-height: 1.25;
}

.sub {
  margin: .6rem 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--sand-200);
}

footer {
  padding-bottom: 1.5rem;
  font-size: .75rem;
  color: rgba(230, 220, 203, .45);
}

.rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.d1 { animation-delay: .08s; }
.d2 { animation-delay: .16s; }
.d3 { animation-delay: .24s; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.1); } to { transform: scale(1.04); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  .rise, .scene::before, .eyebrow::before { animation: none; }
}
