@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-display: block;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("assets/nunito-sans.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: block;
}

:root {
  color-scheme: dark;
  --wood-dark: #17120f;
  --cream: #f8eedc;
  --parchment: #e8d9c2;
  --gold: #dabb7d;
  --frame-inset: clamp(2rem, 5.7vw, 7rem);
  background: var(--wood-dark);
  color: var(--cream);
  font: 400 100%/1.5 "Nunito Sans", system-ui, sans-serif;
  font-synthesis: none;
}

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

body { margin: 0; }

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

.workshop {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 30%;
  display: block;
  overflow: hidden;
}

.workshop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.workshop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, var(--wood-dark) 0%, rgba(23, 18, 15, .97) 5%, rgba(23, 18, 15, .74) 20%, rgba(23, 18, 15, .15) 57%, transparent 76%),
    linear-gradient(180deg, rgba(14, 11, 9, .74), transparent 29%, transparent 75%, rgba(14, 11, 9, .46));
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 2.2rem var(--frame-inset);
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(.55rem, 1.1vw, .85rem);
  color: var(--cream);
  font-size: clamp(.72rem, 1.2vw, .96rem);
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand img {
  display: block;
  width: clamp(2rem, 4.4vw, 3.3rem);
  height: auto;
}

.languages {
  display: flex;
  gap: .15rem;
  padding: .125rem .25rem;
  border: 1px solid rgba(218, 187, 125, .32);
  border-radius: 999px;
  background: rgba(23, 18, 15, .88);
}

.languages a, .languages [aria-current] {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding-inline: .47rem;
  color: var(--cream);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .095em;
  line-height: 1;
  text-decoration: none;
}

.languages [aria-current] { color: var(--gold); }

.languages a:hover { text-decoration: underline; }

.languages a:focus-visible,
.languages [aria-current]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
  border-radius: 999px;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 1rem var(--frame-inset) clamp(3rem, 11vh, 7rem);
}

.copy { max-width: 45rem; }

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  --heading-size: clamp(3.6rem, 7.2vw, 7.5rem);
  font-size: var(--heading-size);
  font-weight: 600;
  letter-spacing: -.038em;
  line-height: 1.1;
}

h1 span { display: block; }

.description {
  max-width: 24em;
  margin: clamp(1.4rem, 2.8vw, 2.5rem) 0 0;
  color: var(--parchment);
  font-size: clamp(1.065rem, 1.55vw, 1.45rem);
  line-height: 1.52;
  text-wrap: pretty;
}

.status {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: clamp(1.75rem, 3.7vw, 3.15rem) 0 0;
  color: var(--gold);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .23em;
  line-height: 1.35;
}

.status::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

@media (max-width: 62rem) and (orientation: portrait), (max-width: 43rem) {
  :root { --frame-inset: clamp(1.35rem, 5.8vw, 3.45rem); }

  .masthead { padding-block: 1.18rem; }

  .workshop {
    inset: 0 0 auto;
    height: clamp(20.5rem, 53svh, 41rem);
  }

  .workshop img { object-position: center 44%; }

  .workshop::after {
    background: linear-gradient(180deg, rgba(23, 18, 15, .8), transparent 31%, transparent 57%, rgba(23, 18, 15, .38) 79%, var(--wood-dark) 100%);
  }

  main {
    align-items: start;
    padding-block: clamp(15.25rem, 35svh, 27rem) clamp(2.75rem, 5svh, 4.5rem);
  }

  h1 { --heading-size: clamp(3.3rem, 12.2vw, 6.8rem); }
}

@media (max-width: 24rem) {
  h1 { --heading-size: clamp(2.72rem, 12.8vw, 3.3rem); }
  .description { font-size: 1.04rem; }
}

@media (max-height: 36rem) and (min-width: 44rem) and (orientation: landscape) {
  .masthead { padding-block: 1rem; }
  main { padding-block-end: 2.3rem; }
  h1 { --heading-size: clamp(3rem, 6.5vw, 5.2rem); }
  .description { margin-top: 1.2rem; }
  .status { margin-top: 1.25rem; }
}

@media (min-width: 44rem) and (max-width: 62rem) and (orientation: portrait) {
  .workshop { height: clamp(27rem, 61svh, 48rem); }
  main { padding-block-start: clamp(22rem, 40.5svh, 32rem); }
}

@media (max-width: 24rem) and (max-height: 38rem) {
  .workshop { height: clamp(16rem, 55svh, 20.5rem); }
  main { padding-block: clamp(12.75rem, 33svh, 15.25rem) 1.75rem; }
  .status { margin-top: 1.5rem; }
}

.fonts-pending .brand span,
.fonts-pending .languages,
.fonts-pending .copy {
  visibility: hidden;
}

.fonts-fallback {
  font-family: system-ui, sans-serif;
}

.fonts-fallback h1 {
  font-family: Georgia, serif;
  font-size: calc(var(--heading-size) * .8);
}
