/* FotoboxVienna Coming Soon. Tokens copied from src/app/globals.css so the
   temporary page matches the main site; keep them in sync if those change. */

@font-face {
  font-family: "Fraunces";
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/fraunces-900-soft50-opsz72.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dmsans-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dmsans-500.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/dmsans-800.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/caveat-600.woff2") format("woff2");
}
/* Metric-matched fallbacks (same values next/font generates for the main site). */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Times New Roman");
  ascent-override: 84.71%;
  descent-override: 22.09%;
  line-gap-override: 0%;
  size-adjust: 115.45%;
}
@font-face {
  font-family: "DM Sans Fallback";
  src: local("Arial");
  ascent-override: 94.9%;
  descent-override: 29.66%;
  line-gap-override: 0%;
  size-adjust: 104.53%;
}
@font-face {
  font-family: "Caveat Fallback";
  src: local("Arial");
  ascent-override: 124.77%;
  descent-override: 38.99%;
  line-gap-override: 0%;
  size-adjust: 76.94%;
}

:root {
  --page: #faf8f3;
  --surface: #fffdf9;
  --ink: #171412;
  --muted: #625d55;
  --line: #e8e0d3;
  --gold: #b58946; /* decorative only */
  --gold-deep: #9b7138; /* large text, logotype, icons */
  --gold-text: #8a6430; /* small gold text: 5.0:1 on page */
  --gold-soft: #f6e7cc;

  --font-sans: "DM Sans", "DM Sans Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Fraunces", "Fraunces Fallback", ui-serif, Georgia, serif;
  --font-script: "Caveat", "Caveat Fallback", "Segoe Script", cursive;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 0.375rem;
}

.page {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 80rem;
  min-height: 100svh;
  margin-inline: auto;
  padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-block: 1.125rem 0.5rem;
}

.logo {
  display: inline-flex;
  margin: 0;
  padding-right: 0.5em;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  text-decoration: none;
  color: var(--ink);
}

.logo__accent {
  position: relative;
  color: var(--gold-deep);
}

.logo__burst {
  position: absolute;
  top: -0.17em;
  left: calc(100% - 0.17em);
  width: 0.7em;
  height: 0.7em;
  color: var(--ink);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.4375rem 0.875rem 0.4375rem 0.75rem;
  border: 1px solid #e3cfa9;
  border-radius: 999px;
  background: var(--surface);
  color: var(--gold-text);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 16px -10px rgb(125 88 38 / 0.45);
}

.status svg {
  width: 0.8125rem;
  height: 0.8125rem;
  flex: none;
  color: var(--gold);
}

/* ---------- Hero ---------- */

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 1.75rem;
  padding-block: 1.5rem 1rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.2rem + 4.2vw, 5rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.headline__line {
  display: block;
}

.headline__emphasis {
  color: var(--gold-deep);
}

.lead {
  max-width: 31rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.signoff {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}

.signoff__rule {
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}

.note {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 600;
  color: var(--ink);
  line-height: 0.95;
}

.signoff .note {
  font-size: 1.625rem;
  color: var(--gold-text);
}

/* ---------- Illustration stage ---------- */

.stage {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  aspect-ratio: 720 / 760;
}

.stage__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage .note {
  position: absolute;
  top: 31%;
  left: 1%;
  width: 30%;
  font-size: 5.2cqw;
  transform: rotate(-11deg);
}

.stage__heart {
  display: block;
  width: 0.95em;
  height: 0.95em;
  margin: 0.15em 0 0 2.6em;
}

.stage__arrow {
  position: absolute;
  top: 46%;
  left: 14%;
  width: 17%;
  color: var(--ink);
  transform: rotate(-24deg);
}

.twinkle {
  position: absolute;
  color: var(--gold);
}

.twinkle--a {
  top: 3%;
  left: 74%;
  width: 3.4%;
}

.twinkle--b {
  top: 86%;
  left: 77%;
  width: 2.6%;
}

@media (prefers-reduced-motion: no-preference) {
  .twinkle {
    animation: twinkle 3.6s ease-in-out infinite;
  }

  .twinkle--b {
    animation-delay: 1.8s;
  }

  @keyframes twinkle {
    0%,
    100% {
      opacity: 1;
      transform: scale(1) rotate(0deg);
    }
    50% {
      opacity: 0.35;
      transform: scale(0.7) rotate(20deg);
    }
  }
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 1rem max(1.25rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 0.25rem 1.25rem;
}

.site-footer a {
  display: inline-block;
  padding-block: 0.5rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.25em;
}

.site-footer a:hover {
  color: var(--gold-text);
}

/* ---------- Secondary pages (404, legal) ---------- */

.content {
  flex: 1;
  max-width: 44rem;
  padding-block: 2.5rem 3rem;
}

.content h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  /* Long German compounds break only where the markup allows it: a soft
     hyphen at the word boundary ("Datenschutz&shy;erklärung"). The
     overflow-wrap fallback prevents clipping for any other long word. */
  overflow-wrap: break-word;
  hyphens: manual;
}

.content h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.content p,
.content li {
  color: var(--muted);
  line-height: 1.65;
}

.content a {
  color: var(--ink);
  text-decoration-color: var(--gold);
  text-underline-offset: 0.25em;
}

/* Label/value lists on the legal pages: stacked on phones, two columns from 40rem. */
.facts {
  margin: 1rem 0;
}

.facts div {
  margin-bottom: 0.75rem;
}

.facts dt {
  color: var(--ink);
  font-weight: 500;
}

.facts dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (width >= 40rem) {
  .facts div {
    display: grid;
    grid-template-columns: 13.5rem minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 0.5rem;
  }
}

/* Legal templates while in draft (coming-soon/legal-drafts/). */
.draft-banner {
  margin-bottom: 2rem;
  padding: 0.875rem 1rem;
  border: 1px solid #e3cfa9;
  border-radius: 0.75rem;
  background: var(--gold-soft);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.content .pending {
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--gold);
  background: var(--surface);
  color: var(--ink);
}

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding-block: 0.5rem;
  font-weight: 500;
}

/* ---------- Breakpoints ---------- */

/* Phones up to 399px: keep logo and status pill on one line. */
@media (width < 25rem) {
  .logo {
    font-size: 1.375rem;
  }

  .status {
    gap: 0.375rem;
    padding-inline: 0.625rem;
    letter-spacing: 0.16em;
  }
}

@media (width < 22.5rem) {
  .site-header {
    column-gap: 0.5rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .status {
    letter-spacing: 0.12em;
  }

  .status svg {
    display: none;
  }
}

@media (width >= 40rem) {
  .page {
    padding-inline: 1.5rem;
  }

  .site-header {
    padding-top: 1.5rem;
  }

  .logo {
    font-size: 1.75rem;
  }

  .status {
    font-size: 0.75rem;
  }

  .eyebrow {
    font-size: 0.8125rem;
  }

  .lead {
    font-size: 1.125rem;
  }

  .stage {
    max-width: 31rem;
  }
}

@media (width >= 64rem) {
  .page {
    padding-inline: 2.5rem;
  }

  .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
    padding-block: 1rem;
  }

  /* Fit the illustration into the viewport height on short laptop screens
     (aspect 720:760 → width = height × 0.947). */
  .stage {
    max-width: min(42rem, calc((100svh - 11rem) * 0.947));
    margin-right: -1rem;
  }

  .lead {
    font-size: 1.1875rem;
  }

  .signoff .note {
    font-size: 1.875rem;
  }
}
