/*
  BUCARESDAVA type system
  Add self-hosted Cormorant Garamond font files here when available. Until then,
  the local font and carefully chosen system fallbacks avoid a render-blocking request.
*/
@font-face {
  font-family: "Cormorant Garamond";
  src: local("Cormorant Garamond"), local("CormorantGaramond-Regular");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #111210;
  --ink-deep: #090a09;
  --charcoal: #191b1a;
  --smoke: #8f928e;
  --stone: #c9c3b7;
  --paper: #eee9df;
  --earth: #51483e;
  --river: #7f9197;
  --amber: #b88752;
  --amber-light: #d0a36e;
  --line: rgb(201 195 183 / 18%);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content: 76rem;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --header-height: 4.75rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(94deg, transparent 0 23px, rgb(255 255 255 / 1.4%) 24px 25px),
    repeating-linear-gradient(2deg, transparent 0 31px, rgb(0 0 0 / 7%) 32px 33px);
  mix-blend-mode: soft-light;
}

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

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

button,
input {
  font: inherit;
}

::selection {
  color: var(--ink-deep);
  background: var(--amber-light);
}

:focus-visible {
  outline: 2px solid var(--amber-light);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--ink-deep);
  background: var(--paper);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid rgb(238 233 223 / 12%);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-size: clamp(0.88rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1;
  text-decoration: none;
}

.kogaion-mark {
  position: relative;
  display: inline-block;
  width: 1.45rem;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 1px solid var(--amber);
  border-radius: 50%;
}

.kogaion-mark::before {
  position: absolute;
  inset: 0.32rem;
  border: 1px solid rgb(208 163 110 / 66%);
  border-radius: 50%;
  content: "";
}

.kogaion-mark::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  background: var(--amber-light);
  content: "";
  transform: translate(-50%, -50%);
}

.nav-list {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: clamp(0.8rem, 3vw, 2.4rem);
  list-style: none;
}

.nav-list a {
  display: inline-block;
  padding: 0.35rem 0;
  color: rgb(238 233 223 / 82%);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-list a:hover {
  color: var(--paper);
}

.nav-join {
  border-bottom: 1px solid var(--amber);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: max(43rem, 100svh);
  overflow: hidden;
  align-items: end;
  padding: calc(var(--header-height) + 4rem) var(--gutter) clamp(5rem, 11vh, 8rem);
}

.hero-image,
.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.hero-image {
  background-color: #242522;
  background-image: url("/images/bucaresdava-cover.jpg");
  background-position: 58% center;
  background-size: cover;
  transform: scale(1.015);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(9 10 9 / 55%) 0%, rgb(9 10 9 / 9%) 28%, rgb(9 10 9 / 88%) 100%),
    linear-gradient(90deg, rgb(9 10 9 / 96%) 0%, rgb(9 10 9 / 76%) 48%, rgb(9 10 9 / 24%) 100%),
    radial-gradient(circle at 74% 48%, rgb(184 135 82 / 12%), transparent 34%);
}

.hero-content {
  width: 100%;
  max-width: 58rem;
  min-width: 0;
}

.eyebrow,
.section-number {
  margin: 0 0 1.35rem;
  color: var(--amber-light);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 100%;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 13.25vw, 8.75rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.72;
  text-wrap: balance;
  white-space: nowrap;
}

.subtitle {
  margin: 1rem 0 0;
  color: var(--stone);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 4vw, 2.1rem);
  font-style: italic;
  letter-spacing: 0.11em;
  line-height: 1.1;
}

.hero-copy {
  width: min(100%, 39rem);
  margin: clamp(2.2rem, 6vh, 4.25rem) 0 2.25rem;
  padding-left: 1.2rem;
  border-left: 1px solid var(--amber);
  color: rgb(238 233 223 / 78%);
  font-size: clamp(0.96rem, 2.5vw, 1.08rem);
}

.hero-copy p {
  margin: 0;
}

.hero-copy .hook {
  margin-bottom: 0.45rem;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 4.5vw, 1.85rem);
  line-height: 1.3;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.button-primary {
  padding: 0.9rem 1.25rem;
  color: var(--ink-deep);
  background: var(--paper);
}

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

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 2.25rem;
  display: none;
  margin: 0;
  color: rgb(238 233 223 / 52%);
  font-size: 0.62rem;
  letter-spacing: 0.17em;
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

.descent {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 76vh;
  overflow: hidden;
  place-items: center;
  padding: 7rem var(--gutter);
  background:
    linear-gradient(180deg, #111210 0%, #171918 47%, #121413 100%);
}

.descent::before,
.descent::after {
  position: absolute;
  z-index: -1;
  right: -15%;
  left: -15%;
  height: 25%;
  border-top: 1px solid rgb(127 145 151 / 15%);
  border-radius: 50%;
  content: "";
  transform: rotate(-3deg);
}

.descent::before {
  top: 29%;
}

.descent::after {
  top: 62%;
  opacity: 0.5;
  transform: rotate(2deg);
}

.river-line {
  position: absolute;
  z-index: -1;
  top: 49%;
  left: 50%;
  width: 125%;
  height: 5rem;
  border-top: 1px solid rgb(127 145 151 / 32%);
  border-radius: 45%;
  filter: drop-shadow(0 0 1.5rem rgb(127 145 151 / 12%));
  transform: translate(-50%, -50%) rotate(-5deg);
}

.descent blockquote {
  margin: 0;
  color: var(--stone);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 6.5vw, 4.5rem);
  line-height: 1.22;
  text-align: center;
  text-wrap: balance;
}

.descent blockquote p {
  margin: 0;
}

.section {
  position: relative;
  padding: clamp(6rem, 13vw, 11rem) var(--gutter);
}

.section-grid {
  width: min(100%, var(--content));
  margin: 0 auto;
}

.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 9vw, 6.1rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-wrap: balance;
}

.story {
  background:
    linear-gradient(90deg, transparent 49.9%, var(--line) 50%, transparent 50.1%),
    #121413;
}

.story-copy {
  max-width: 38rem;
  margin-top: 3.25rem;
  color: rgb(238 233 223 / 70%);
}

.story-copy p {
  margin: 0 0 1.25rem;
}

.story-copy .lead {
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.35;
}

.eras {
  display: grid;
  width: min(100%, var(--content));
  margin: clamp(4rem, 9vw, 7rem) auto 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.eras li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.eras span,
.eras small {
  display: block;
}

.eras span {
  color: var(--stone);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.eras small {
  margin-top: 0.2rem;
  color: var(--smoke);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artifact {
  isolation: isolate;
  display: grid;
  min-height: 90vh;
  align-items: center;
  gap: clamp(3rem, 10vw, 8rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 50%, rgb(81 72 62 / 25%), transparent 31%),
    linear-gradient(125deg, #0b0c0b, #151615 55%, #0e0f0e);
}

.artifact::after {
  position: absolute;
  z-index: -1;
  inset: 8% -30%;
  border-top: 1px solid rgb(201 195 183 / 8%);
  border-bottom: 1px solid rgb(201 195 183 / 8%);
  content: "";
  transform: rotate(-4deg);
}

.artifact-image-wrap {
  position: relative;
  display: grid;
  width: min(84vw, 31rem);
  aspect-ratio: 1;
  margin: 0 auto;
  place-items: center;
}

.artifact-rings,
.artifact-rings::before,
.artifact-rings::after {
  position: absolute;
  border: 1px solid rgb(184 135 82 / 18%);
  border-radius: 50%;
  content: "";
}

.artifact-rings {
  inset: 0;
}

.artifact-rings::before {
  inset: 10%;
}

.artifact-rings::after {
  inset: 21%;
}

.artifact-image {
  position: relative;
  z-index: 1;
  width: 69%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 2rem 2.5rem rgb(0 0 0 / 72%));
}

.artifact-fallback {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 56%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(184 135 82 / 30%);
  border-radius: 50%;
  color: rgb(208 163 110 / 64%);
  background:
    radial-gradient(circle at 42% 36%, rgb(201 195 183 / 11%), transparent 24%),
    #171815;
  box-shadow: 0 2rem 2.5rem rgb(0 0 0 / 52%);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 11vw, 5.5rem);
  opacity: 0;
}

.artifact-image-wrap.is-missing .artifact-image {
  opacity: 0;
}

.artifact-image-wrap.is-missing .artifact-fallback {
  opacity: 1;
}

.artifact-copy {
  max-width: 33rem;
}

.artifact-copy h2 {
  text-transform: uppercase;
}

.artifact-lines {
  margin: 2.2rem 0 0;
  color: var(--stone);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 4.5vw, 2.2rem);
  line-height: 1.5;
}

.artifact-note {
  margin: 3rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--smoke);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.signup {
  isolation: isolate;
  min-height: 84vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgb(9 10 9 / 8%), rgb(9 10 9 / 58%)),
    radial-gradient(circle at 50% 35%, rgb(184 135 82 / 12%), transparent 34%),
    #171716;
}

.signup::before {
  position: absolute;
  z-index: -1;
  inset: 2rem;
  border: 1px solid rgb(201 195 183 / 10%);
  content: "";
}

.signup-inner {
  width: min(100%, 53rem);
  margin: 0 auto;
  text-align: center;
}

.signup-intro {
  max-width: 41rem;
  margin: 2rem auto 0;
  color: rgb(238 233 223 / 72%);
}

.signup-form {
  max-width: 46rem;
  margin: 3.25rem auto 0;
  text-align: left;
}

.field label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--stone);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.field-row {
  display: grid;
  gap: 0.75rem;
}

.field input {
  width: 100%;
  min-height: 3.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgb(201 195 183 / 38%);
  border-radius: 0;
  color: var(--paper);
  background: rgb(9 10 9 / 58%);
  -webkit-appearance: none;
  appearance: none;
}

.field input::placeholder {
  color: rgb(201 195 183 / 45%);
}

.field input:hover {
  border-color: rgb(201 195 183 / 65%);
}

.field input:focus-visible {
  border-color: var(--amber-light);
  outline-offset: 2px;
}

.field input[aria-invalid="true"] {
  border-color: #d09a79;
}

.button-submit {
  min-height: 3.75rem;
  padding: 0.9rem 1.2rem;
  border-color: var(--amber);
  color: var(--paper);
  background: var(--earth);
  cursor: pointer;
}

.button-submit:hover:not(:disabled) {
  color: var(--ink-deep);
  background: var(--amber-light);
}

.button-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button-arrow {
  font-size: 1.1rem;
  transition: transform 220ms ease;
}

.button-submit:hover:not(:disabled) .button-arrow {
  transform: translateX(0.2rem);
}

.form-status {
  min-height: 1.7em;
  margin: 0.8rem 0 0;
  color: var(--stone);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.form-status[data-state="success"] {
  color: #cfb88f;
}

.form-status[data-state="error"] {
  color: #d9a487;
}

.privacy-note,
.noscript-note {
  margin: 0.2rem 0 0;
  color: var(--smoke);
  font-size: 0.75rem;
}

.site-footer {
  display: grid;
  gap: 1.5rem;
  padding: 3rem var(--gutter);
  align-items: end;
  border-top: 1px solid var(--line);
  color: var(--smoke);
  background: var(--ink-deep);
  font-size: 0.72rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  width: fit-content;
  color: var(--stone);
  text-decoration: none;
}

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

.footer-title {
  display: grid;
  gap: 0.15rem;
}

.footer-title strong {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}

.footer-title span {
  font-family: var(--serif);
  font-style: italic;
}

.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 36rem) {
  .field-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
  }

  .field input {
    border-right: 0;
  }

  .button-submit {
    min-width: 15rem;
  }

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

@media (min-width: 48rem) {
  .scroll-cue {
    display: block;
  }

  .section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(19rem, 0.75fr);
    gap: clamp(3rem, 9vw, 8rem);
  }

  .story-copy {
    margin-top: 0;
    padding-top: 2.3rem;
  }

  .eras {
    grid-template-columns: repeat(3, 1fr);
  }

  .eras li {
    padding: 1.75rem;
    border-right: 1px solid var(--line);
  }

  .eras li:first-child {
    padding-left: 0;
  }

  .eras li:last-child {
    padding-right: 0;
    border-right: 0;
  }

  .artifact {
    grid-template-columns: minmax(19rem, 0.9fr) minmax(20rem, 0.75fr);
  }
}

@media (min-width: 75rem) {
  .hero-image {
    background-position: center;
  }
}

@media (max-width: 25rem) {
  :root {
    --gutter: clamp(1rem, 5vw, 1.25rem);
  }

  .site-header {
    gap: 0.75rem;
  }

  .nav-list {
    gap: clamp(0.75rem, 4vw, 1rem);
  }

  .nav-list a {
    padding-block: 0.6rem;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 22rem) {
  .wordmark span:last-child {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .button,
  .field input,
  .kogaion-mark {
    border: 1px solid ButtonText;
  }
}
