/* ---------------------------------------------------------------
   Schweizerhaus – Coming Soon
   Palette and typography taken from the desktop design.
   --------------------------------------------------------------- */

:root {
  --cream:        #F0ECE1;   /* sky colour of the background image */
  --ink:          #20262A;
  --ink-soft:     #3B4246;
  --clay:         #A5633F;   /* buttons and rule */
  --clay-hover:   #8E5333;

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-body:    "Cormorant Garamond", "Garamond", Georgia, serif;
  --font-label:   "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --vh: 1vh;
}

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

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  position: relative;
  height: 100vh;
  height: calc(var(--vh) * 100);
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--cream);
  background-image: url("img/bg-desktop.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
}

/* ---------- Content ---------- */

.content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(92vw, 52rem);
  padding-top: clamp(1.75rem, 12vh, 10rem);
  opacity: 0;
  transform: translateY(8px);
  animation: arrive 900ms cubic-bezier(.2,.7,.2,1) 120ms forwards;
}

@keyframes arrive {
  to { opacity: 1; transform: none; }
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw + 0.6rem, 2.75rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
}

.rule {
  display: block;
  background: var(--clay);
}
.rule--vertical {
  width: 1px;
  height: clamp(2.5rem, 7vh, 4.5rem);
  margin: clamp(1rem, 3vh, 2.25rem) 0;
}
.rule--horizontal {
  width: 3rem;
  height: 1px;
  margin: clamp(1rem, 3vh, 2rem) 0 clamp(.8rem, 2vh, 1.4rem);
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 8.5vw + 1rem, 7.5rem);
  letter-spacing: -.01em;
  text-transform: uppercase;
  line-height: .95;
  white-space: nowrap;
  color: var(--ink);
}

.intro {
  margin: clamp(1.1rem, 2.6vh, 1.6rem) 0 0;
  max-width: 34rem;
  font-size: clamp(1.15rem, 1.2vw + .8rem, 1.55rem);
  line-height: 1.4;
  color: var(--ink-soft);
}

.opening {
  margin: 0;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: clamp(.8rem, .5vw + .6rem, 1rem);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink);
}

.actions {
  display: flex;
  gap: 1.5rem;
  margin-top: clamp(1.4rem, 3.5vh, 2.25rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  min-width: 17rem;
  padding: 1.1rem 2.25rem;
  background: var(--clay);
  color: var(--cream);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}
.button:hover { background: var(--clay-hover); }
.button:active { transform: translateY(1px); }
.button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.button__arrow {
  width: 1.4rem;
  height: .7rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms ease;
}
.button:hover .button__arrow { transform: translateX(4px); }

/* Wide, short viewports: anchor the image top so the scenery overflows the
   bottom edge rather than climbing into the text */
/* @media (min-aspect-ratio: 19/10) {
  .page { background-position: center 42vh; }
} */

/* ---------- Tablet (portrait) ---------- */

@media (max-width: 1024px) {
  .content {
    padding-top: clamp(2.5rem, 9vh, 6rem);
    width: min(88vw, 44rem);
  }
  .rule--vertical { background: var(--ink); }
  .rule--horizontal { background: var(--ink); }
  .brand { letter-spacing: .3em; }
  .headline { font-size: clamp(3.4rem, 11vw, 6.5rem); }
  .intro { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
  .actions { gap: 1.25rem; width: 100%; }
  .button { flex: 1 1 0; min-width: 0; }
  .page { background-image: url("img/bg-portrait.png"); }
}

/* ---------- Phone ---------- */

@media (max-width: 600px) {
  .content {
    padding-top: clamp(2rem, 7vh, 4rem);
    width: min(86vw, 26rem);
  }
  .brand { font-size: clamp(1.4rem, 6.5vw, 1.9rem); letter-spacing: .26em; }
  .rule--vertical { height: clamp(2.4rem, 6vh, 3.5rem); margin: 1.2rem 0; }
  .headline { font-size: clamp(2.6rem, 11.5vw, 4.4rem); letter-spacing: -.005em; }
  .intro { font-size: clamp(1.1rem, 4.4vw, 1.3rem); margin-top: 1.1rem; }
  .opening { font-size: clamp(.68rem, 2.9vw, .82rem); letter-spacing: .26em; }
  .actions { flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
  .button { width: 100%; padding: 1.15rem 1.5rem; }
}

/* ---------- Short viewports: keep everything on one screen ---------- */

@media (max-height: 560px) {
  .content { padding-top: 1.25rem; }
  .rule--vertical { height: 1.5rem; margin: .6rem 0; }
  .rule--horizontal { margin: .6rem 0 .5rem; }
  .headline { font-size: clamp(2.4rem, 8vh, 4.5rem); }
  .intro { font-size: 1rem; line-height: 1.3; margin-top: .6rem; }
  .actions { margin-top: .9rem; }
  .button { padding: .7rem 1.5rem; min-width: 13rem; }
}

@media (prefers-reduced-motion: reduce) {
  .content { animation: none; opacity: 1; transform: none; }
  .button, .button__arrow { transition: none; }
}
