/* Cormorant Garamond + Jost, both OFL (licences in fonts/) */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("fonts/Jost-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #2b2e3b;
  --text: #f1ebe0;
  --text-soft: rgba(241, 235, 224, 0.82);
  --accent: #d4b47c;
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 8vw, 9rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
  display: block;
  animation: settle 2.8s var(--ease) both;
}

/* darken the left so the text holds up over the sky */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(22, 24, 33, 0.72) 0%,
      rgba(22, 24, 33, 0.5) 32%,
      rgba(22, 24, 33, 0.14) 58%,
      rgba(22, 24, 33, 0) 78%),
    linear-gradient(180deg,
      rgba(18, 20, 28, 0.3) 0%,
      rgba(18, 20, 28, 0) 28%,
      rgba(18, 20, 28, 0) 66%,
      rgba(18, 20, 28, 0.45) 100%);
}

.page {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding:
    max(env(safe-area-inset-top), clamp(24px, 6.5vh, 64px))
    var(--gutter)
    max(env(safe-area-inset-bottom), clamp(28px, 9vh, 96px));
}

.masthead { flex: none; }

.masthead a { display: inline-block; }

h1 {
  margin: 0;
  line-height: 0;
}

.logo {
  display: block;
  width: clamp(190px, min(18vw, 30vh), 280px);
  height: auto;
}

.content { max-width: min(35rem, 38vw); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 clamp(1.25rem, 3.6vh, 2.25rem);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: normal;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 2.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
  transform-origin: left;
  animation: draw 1.6s var(--ease) 0.7s both;
}

/* light sweep across "Coming Soon" */
.sheen {
  color: transparent;
  background: linear-gradient(100deg,
    var(--accent) 0%,
    var(--accent) 42%,
    #fbf0d6 50%,
    var(--accent) 58%,
    var(--accent) 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: sheen 3.5s ease-in-out 2.4s infinite;
}

.intro {
  margin: 0;
  font-size: clamp(1.1rem, min(1.55vw, 2.6vh), 1.4rem);
  line-height: 1.55;
  color: var(--text-soft);
  text-wrap: pretty;
}

.contact { margin: clamp(1.75rem, 4.8vh, 3rem) 0 0; }

.contact a {
  position: relative;
  display: inline-block;
  padding-bottom: 0.55em;
  font-family: var(--sans);
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  letter-spacing: 0.12em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.4s var(--ease);
}

.contact a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0.28);
  transition: transform 0.6s var(--ease);
}

.contact a:hover,
.contact a:focus-visible { color: var(--accent); }

.contact a:hover::after,
.contact a:focus-visible::after { transform: scaleX(1); }

.contact a:focus-visible,
.masthead a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 6px;
}

.reveal {
  animation: rise 1.3s var(--ease) both;
  animation-delay: calc(400ms + var(--i, 0) * 150ms);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes sheen {
  0% { background-position: 100% 0; }
  60%, 100% { background-position: 0 0; }
}

@keyframes settle {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .bg img, .eyebrow::before, .sheen { animation: none; }
  .contact a, .contact a::after { transition: none; }
}

/* portrait - tablets and phones */
@media (max-aspect-ratio: 1/1) {
  .bg img { object-position: 60% 50%; }

  .bg::after {
    background: linear-gradient(180deg,
      rgba(22, 24, 33, 0.55) 0%,
      rgba(22, 24, 33, 0.22) 20%,
      rgba(22, 24, 33, 0.4) 42%,
      rgba(22, 24, 33, 0.86) 70%,
      rgba(22, 24, 33, 0.92) 100%);
  }

  .content { max-width: 35rem; }
  .logo { width: min(58vw, 230px); }
  .intro { font-size: clamp(1.05rem, 4.4vw, 1.35rem); }
}

@media (max-width: 380px) {
  .intro { font-size: 1rem; line-height: 1.5; }
  .contact a { letter-spacing: 0.08em; }
}

/* phones on their side */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .bg::after {
    background: linear-gradient(90deg,
      rgba(22, 24, 33, 0.86) 0%,
      rgba(22, 24, 33, 0.74) 45%,
      rgba(22, 24, 33, 0.32) 72%,
      rgba(22, 24, 33, 0.1) 100%);
  }
  .page { gap: 12px; }
  .content { max-width: min(36rem, 56vw); }
  .eyebrow { margin-bottom: 0.9rem; font-size: 0.82rem; }
  .logo { width: clamp(160px, 46vh, 210px); }
  .intro { font-size: 0.95rem; line-height: 1.45; }
  .contact { margin-top: 1rem; }
}
