@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f3e9;
  background: #22271b;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 280px; }
body { position: relative; }
::selection { color: #22271b; background: #e7e0c5; }

.scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.scene picture, .scene img { display: block; width: 100%; height: 100%; }
.scene img { object-fit: cover; object-position: center 60%; }
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(12 20 12 / 26%) 0%, rgb(12 20 12 / 8%) 26%, rgb(12 20 12 / 8%) 55%, transparent 72%, rgb(9 16 9 / 60%) 100%);
}

.page {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 680px;
  min-height: max(680px, 100svh);
  padding: max(35px, env(safe-area-inset-top)) max(48px, env(safe-area-inset-right)) max(31px, env(safe-area-inset-bottom)) max(48px, env(safe-area-inset-left));
}

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark { width: 25px; height: 31px; }
.brand-name { font-size: 12px; font-weight: 500; letter-spacing: .055em; }
.brand:focus-visible { outline: 1px solid #f5f3e9; outline-offset: 9px; border-radius: 2px; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .03em; color: #e3e4d8; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #c2cb9c; box-shadow: 0 0 10px #c2cb9c30; }

.hero { display: grid; place-items: center; text-align: center; padding: 80px 0 104px; }
.hero-content { width: 100%; transform: translateY(-18px); }
h1 {
  margin: 0;
  font-family: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(88px, 10.7vw, 172px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.032em;
  text-wrap: balance;
  text-shadow: 0 3px 32px rgb(11 19 10 / 10%);
}
.origin { margin: 29px 0 0; color: #e6e7db; font-size: 11px; font-weight: 400; line-height: 1.8; letter-spacing: .19em; text-transform: uppercase; }
.divider { display: block; width: 28px; height: 1px; margin: 30px auto 24px; background: #d9d7b6; opacity: .6; }
.coming-soon { margin: 0; color: #ecece1; font-size: 18px; font-weight: 300; line-height: 1.6; letter-spacing: .005em; text-wrap: balance; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer p { margin: 0; color: #dddfcf; font-size: 10px; line-height: 1.5; letter-spacing: .035em; }
.launch-note { display: inline-flex; align-items: center; gap: 9px; }
.launch-dot { width: 5px; height: 5px; border: 1px solid #dddfcf; border-radius: 50%; }

@media (prefers-reduced-motion: no-preference) {
  .hero-content { animation: arrive 1.3s cubic-bezier(.2, .65, .3, 1) both; }
  .masthead, .footer { animation: fade-in 1.5s ease both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(-18px); } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 800px) {
  .page { padding: max(28px, env(safe-area-inset-top)) 28px max(25px, env(safe-area-inset-bottom)); }
  .scene img { object-position: 72% center; }
  .status { font-size: 10px; }
  .hero { padding-bottom: 170px; }
  h1 { font-size: clamp(80px, 13vw, 108px); }
  .origin { letter-spacing: .14em; }
}

@media (max-width: 600px) {
  .page { min-height: max(560px, 100svh); padding: max(25px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); }
  .brand { gap: 10px; }
  .brand-mark { width: 22px; height: 28px; }
  .brand-name { font-size: 11px; }
  .status { display: none; }
  .scene img { object-position: 77% center; }
  .scene::after { background: linear-gradient(180deg, rgb(12 20 12 / 20%), rgb(12 20 12 / 17%) 42%, transparent 64%, rgb(9 16 9 / 65%) 100%); }
  .hero { padding: 28px 0 194px; }
  h1 { font-size: clamp(74px, 22vw, 122px); line-height: .9; letter-spacing: -.025em; }
  h1 span { display: block; }
  h1 span + span { margin-top: 3px; }
  .origin { margin-top: 27px; font-size: 9px; line-height: 1.8; letter-spacing: .12em; }
  .divider { margin: 23px auto 19px; width: 24px; }
  .coming-soon { max-width: 250px; margin-inline: auto; font-size: 15px; }
  .footer { justify-content: center; }
  .footer-note { display: none; }
  .footer .launch-note { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
}

@media (max-width: 350px) {
  .page { padding-inline: 18px; }
  .origin { max-width: 245px; margin-inline: auto; font-size: 8px; }
}

@media (max-height: 550px) and (min-width: 601px) {
  .page { min-height: max(360px, 100svh); padding: 22px 32px; }
  .hero { padding: 40px 0; }
  h1 { font-size: clamp(72px, 10vw, 110px); }
  .origin { margin-top: 16px; }
  .divider { margin-block: 16px; }
  .coming-soon { font-size: 15px; }
}
