@font-face {
  font-family: "Madeline";
  src: url("./madeline.regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5efe6;
  --text-main: #3b3128;
  --text-soft: #6b5a4a;
  --overlay: rgba(24, 17, 11, 0.45);
  --text-hero: #f2efea;
  --btn-bg: #cebba6;
  --btn-icon: #3b3128;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Madeline", "Brush Script MT", cursive;
  /* ~1.25× default text scale using rem so iOS “Larger Text” can grow the layout */
  --hero-text-scale: 1.25;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  /* Let Safari honour user text size; avoid none / fixed px-only scaling */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 100%;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg);
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.hero {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: visible;
  background:
    url("./coming-soon-hero-image.png") center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: max(0px, env(safe-area-inset-left), env(safe-area-inset-right));
  /* Same inset top + bottom so the block isn’t visually biased toward the bottom */
  padding-block: max(0px, env(safe-area-inset-top), env(safe-area-inset-bottom));
}

/* Tint over photo — not a DOM sibling so it cannot throw off flex/grid centering */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 2, 0.53);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: min(100%, 960px);
  padding-block: calc(1.25rem * var(--hero-text-scale));
  padding-inline: calc(1.125rem * var(--hero-text-scale));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(1.375rem * var(--hero-text-scale));
  text-align: center;
  box-sizing: border-box;
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  color: var(--text-hero);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.brand-overline {
  margin: 0;
  font-family: var(--font-heading);
  font-size: calc(0.8125rem * var(--hero-text-scale));
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-name {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.08;
  gap: 0.12em;
  /* Middle line size; top & bottom use ~70% (~30% smaller) — rem + vw so root text size can scale */
  --brand-title-large: clamp(
    calc(1.75rem * var(--hero-text-scale)),
    calc(3vw + 1.25rem * var(--hero-text-scale)),
    calc(2.875rem * var(--hero-text-scale))
  );
}

.brand-name-line {
  display: block;
  max-width: 100%;
  overflow-wrap: break-word;
}

.brand-name-line--large {
  font-size: var(--brand-title-large);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-name-line--small {
  font-size: calc(var(--brand-title-large) * 0.7);
  letter-spacing: 0.14em;
  text-transform: none;
}

.hero-content {
  max-width: 640px;
  margin-top: 0;
  padding-block: 4px;
  padding-inline: 0;
  color: var(--text-hero);
  margin-inline: auto;
  font-family: var(--font-body);
  font-weight: 400;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-actions {
  margin-top: calc(0.75rem * var(--hero-text-scale));
  display: flex;
  justify-content: center;
  gap: calc(0.75rem * var(--hero-text-scale));
  flex-wrap: wrap;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(3.25rem * var(--hero-text-scale));
  height: calc(3.25rem * var(--hero-text-scale));
  border-radius: 50%;
  text-decoration: none;
  border: 1px solid rgba(242, 239, 234, 0.45);
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.hero-button-icon {
  display: inline-flex;
  margin: 0;
}

.hero-button-label {
  display: inline-block;
}

.hero-button.primary {
  background: var(--btn-bg);
  color: var(--btn-icon);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.hero-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(242, 239, 234, 0.75);
}

.hero-kicker {
  margin: 0;
  font-family: var(--font-accent);
  font-size: calc(0.9375rem * var(--hero-text-scale));
  letter-spacing: 0.06em;
  text-transform: none;
}

.hero-text {
  margin: 0 0 calc(0.5rem * var(--hero-text-scale));
  font-size: calc(0.9375rem * var(--hero-text-scale));
  line-height: 1.55;
}

.hero-text:last-of-type {
  margin-bottom: 0;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(242, 239, 234, 0.35);
  margin-top: 32px;
  font-size: 12px;
  color: var(--text-hero);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer a {
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
}

.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dot {
  opacity: 0.7;
}

@media (max-width: 768px) {
  :root {
    /* Slightly less aggressive on narrow screens; still rem-based for accessibility */
    --hero-text-scale: 1.12;
  }

  .hero {
    background-attachment: scroll;
  }

  .hero-inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-block: 0.875rem;
    padding-inline: max(0.875rem, env(safe-area-inset-left), env(safe-area-inset-right));
    gap: 0.875rem;
  }

  .hero-content {
    max-width: 100%;
    width: 100%;
    padding-block: 3px;
    padding-inline: 0;
  }

  .hero-kicker {
    font-size: calc(0.875rem * var(--hero-text-scale));
  }

  .hero-text {
    margin-bottom: 0.375rem;
    font-size: calc(0.9375rem * var(--hero-text-scale));
    line-height: 1.55;
  }

  .brand-overline {
    font-size: calc(0.75rem * var(--hero-text-scale));
    letter-spacing: 0.16em;
  }

  .brand-name {
    --brand-title-large: clamp(
      calc(1.5rem * var(--hero-text-scale)),
      calc(4.5vw + 1rem * var(--hero-text-scale)),
      calc(2.25rem * var(--hero-text-scale))
    );
  }

  .hero-actions {
    margin-top: 8px;
  }
}

