/* Sarah & Samuel — alpine Editorial Coming Soon
   Bergbild, Goldfarbe und Height Map teilen dieselbe Bühne. */
:root {
  color-scheme: light;
  --paper: #faf6ef;
  --paper-deep: #e6ded0;
  --ink: #18242d;
  --ink-soft: #45515a;
  --gold: #af833d;
  --line: rgba(24, 36, 45, .2);
  --serif: "Iowan Old Style", Baskerville, "Palatino Linotype", Palatino, Georgia, serif;
  --display: Didot, "Bodoni MT", "Bodoni 72", Baskerville, Georgia, serif;
  --script: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  --sans: "Avenir Next", Avenir, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shine-x: 52%;
  --shine-y: 40%;
  --text-shine-x: 52%;
  --shine-opacity: 0;
  --motion-x: 0;
  --motion-y: 0;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body {
  min-width: 320px; margin: 0; overflow-x: hidden; color: var(--ink);
  background: var(--paper);
  font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before {
  position: fixed; z-index: 10; inset: 0; pointer-events: none; opacity: .1; content: "";
  background: url("../images/paper-texture-placeholder.svg") 0 0 / 260px; mix-blend-mode: multiply;
}
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.page-frame { position: fixed; z-index: 20; inset: .45rem; pointer-events: none; border: 1px solid rgba(175, 131, 61, .32); }
.page-frame::after { position: absolute; inset: 4px; content: ""; border: 1px solid rgba(24, 36, 45, .12); }

.hero {
  position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100svh; overflow: hidden;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1.2rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.2rem, env(safe-area-inset-left));
}
.mountain-stage {
  position: absolute; z-index: -2; right: 0; bottom: 0; left: 0; height: min(62svh, 41rem); overflow: hidden; background: transparent;
  transform: translate3d(calc(var(--motion-x) * -1px), calc(var(--motion-y) * -1px), 0) scale(1.025);
  transition: transform 1.1s cubic-bezier(.22, 1, .36, 1);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .08) 5%, rgba(0, 0, 0, .56) 16%, #000 29%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .08) 5%, rgba(0, 0, 0, .56) 16%, #000 29%);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}
.mountains, .gold-colour, .gold-shimmer, .mountain-haze { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.mountains, .gold-colour { object-fit: cover; object-position: 61% 50%; }
.gold-colour {
  opacity: .96;
  mix-blend-mode: normal;
  filter: saturate(1.48) contrast(1.09) brightness(.91);
}

/* Standard-Mask: Height Map als Luminanz. Safari erhält die genaue Goldform
   über die transparente Goldfarbebene als sichere Fallback-Maske. */
.gold-shimmer {
  pointer-events: none; opacity: var(--shine-opacity);
  background: radial-gradient(ellipse 26% 41% at var(--shine-x) var(--shine-y), rgba(255, 255, 242, 1) 0%, rgba(255, 222, 133, .94) 15%, rgba(224, 155, 44, .58) 36%, rgba(150, 91, 13, .16) 55%, transparent 70%);
  background-size: 100% 100%; background-position: center; mix-blend-mode: screen;
  filter: saturate(1.24) contrast(1.12);
  mask-image: url("../images/gold-height.png"); mask-position: 61% 50%; mask-size: cover; mask-repeat: no-repeat; mask-mode: luminance;
  -webkit-mask-image: url("../images/gold-color.webp"); -webkit-mask-position: 61% 50%; -webkit-mask-size: cover; -webkit-mask-repeat: no-repeat;
  transition: opacity .28s ease;
}
.mountain-haze {
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(250, 246, 239, .72) 0%, rgba(250, 246, 239, .32) 18%, rgba(250, 246, 239, .08) 34%, transparent 50%), linear-gradient(to top, rgba(11, 22, 30, .17), transparent 32%);
}

.masthead { position: relative; z-index: 2; display: grid; grid-template-columns: 2.75rem 1fr 2.75rem; align-items: center; width: 100%; }
.monogram {
  display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border: 1px solid rgba(24, 36, 45, .52); border-radius: 50%;
  color: var(--ink); font: 500 .66rem/1 var(--display); letter-spacing: .02em; text-decoration: none;
}
.monogram span { margin: 0 -.06rem; color: var(--gold); font-size: .52rem; font-style: italic; }
.masthead__edition { margin: 0; color: var(--ink-soft); font-size: .56rem; font-weight: 600; letter-spacing: .19em; text-align: center; text-transform: uppercase; }
.soundless-button {
  display: grid; width: 2.75rem; height: 2.75rem; place-items: center; justify-self: end; border: 0; border-radius: 50%;
  color: var(--gold); background: transparent; cursor: pointer; transition: transform .5s cubic-bezier(.22, 1, .36, 1), color .25s ease;
}
.soundless-button__mark { font: 1.08rem/1 Georgia, serif; }
.soundless-button[aria-expanded="true"] { transform: rotate(180deg); color: var(--ink); }

.hero-copy { position: relative; z-index: 1; width: min(100%, 39rem); margin: clamp(4.9rem, 13svh, 8.5rem) auto auto; text-align: center; }
.eyebrow {
  display: flex; align-items: center; justify-content: center; max-width: 22rem; margin: 0 auto 1.1rem; color: var(--gold);
  font-size: clamp(.52rem, 2.1vw, .67rem); font-weight: 650; letter-spacing: .19em; line-height: 1.65; text-transform: uppercase;
}
.eyebrow::before, .eyebrow::after { width: clamp(1.1rem, 5vw, 3rem); height: 1px; margin: 0 .75rem; content: ""; background: currentColor; opacity: .68; }
.names { display: grid; margin: 0; color: var(--ink); font: 400 clamp(3.85rem, 18vw, 7.2rem)/.78 var(--display); letter-spacing: -.055em; }
.names span { display: block; }
.names i { display: block; height: .47em; margin-block: -.4em; padding: .4em .14em; color: var(--gold); font: 400 .49em/.8 var(--script); letter-spacing: -.03em; transform: rotate(-7deg); }
.announcement { margin: 1.35rem 0 0; color: var(--ink); font: 600 clamp(.62rem, 2.4vw, .76rem)/1.3 var(--sans); letter-spacing: .19em; text-transform: uppercase; }
.gold-dot { color: var(--gold); font-size: 1.4em; vertical-align: -.08em; }
.intro { margin: .58rem 0 0; color: var(--ink-soft); font: italic clamp(1rem, 4.4vw, 1.24rem)/1.4 var(--serif); }
.dynamic-word { display: inline-block; min-width: 7.6em; color: var(--gold); font-style: normal; transition: opacity .32s ease, transform .32s ease; }
.dynamic-word.is-changing { opacity: 0; transform: translateY(.22em); }

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .has-active-shine .monogram span,
  .has-active-shine .soundless-button__mark,
  .has-active-shine .eyebrow,
  .has-active-shine .names i,
  .has-active-shine .gold-dot,
  .has-active-shine .dynamic-word,
  .has-active-shine .quiet-note span,
  .has-active-shine .outlook__ornament b,
  .has-active-shine .section-kicker,
  .has-active-shine .field-note summary i,
  .has-active-shine .invitation-note span {
    background-image: linear-gradient(105deg, #76501a 0%, #aa7425 28%, #dfb85f 42%, #fff4be 50%, #d3a043 59%, #895c1c 76%, #684518 100%);
    background-position: var(--text-shine-x) 50%;
    background-size: 230% 100%;
    background-repeat: no-repeat;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.motion-control { min-height: 3.6rem; margin-top: 1.05rem; }
.motion-hint { max-width: 17rem; margin: 0 auto; color: rgba(24, 36, 45, .68); font-size: .62rem; letter-spacing: .09em; line-height: 1.55; }
.motion-button {
  min-height: 2.75rem; padding: .55rem 1rem; border: 1px solid rgba(175, 131, 61, .55); border-radius: 999px; color: var(--ink);
  background: rgba(244, 239, 229, .55); box-shadow: 0 .25rem 1.1rem rgba(24, 36, 45, .06); font-size: .61rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.quiet-note {
  position: absolute; z-index: 3; top: 5.25rem; right: max(1.45rem, env(safe-area-inset-right)); display: flex; align-items: center; gap: .48rem;
  max-width: 13.5rem; padding: .65rem .8rem; border: 1px solid rgba(175, 131, 61, .38); color: var(--ink);
  background: rgba(244, 239, 229, .78); box-shadow: 0 .75rem 2rem rgba(24, 36, 45, .1); backdrop-filter: blur(8px); font: italic .75rem/1.35 var(--serif);
}
.quiet-note[hidden] { display: none; }
.quiet-note span { color: var(--gold); font: .8rem/1 Georgia, serif; }
.quiet-note p { margin: 0; }
.scroll-cue {
  position: relative; z-index: 2; display: inline-flex; flex-direction: column; align-items: center; gap: .5rem; align-self: center; margin-top: auto; padding: .7rem .8rem 0;
  color: var(--paper); font-size: .54rem; font-weight: 650; letter-spacing: .17em; text-decoration: none; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}
.scroll-cue i { display: block; width: 1px; height: 2.2rem; background: currentColor; opacity: .75; animation: scroll-line 2.2s ease-in-out infinite; }

.outlook {
  position: relative; padding: clamp(4.5rem, 14vw, 8rem) max(1.5rem, env(safe-area-inset-right)) clamp(4rem, 12vw, 7rem) max(1.5rem, env(safe-area-inset-left));
  background: radial-gradient(circle at 85% 12%, rgba(230, 191, 104, .16), transparent 23rem), var(--paper); text-align: center;
}
.outlook::before { position: absolute; top: 0; right: 9%; left: 9%; height: 1px; content: ""; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .75; }
.outlook__ornament { display: flex; align-items: center; justify-content: center; gap: .58rem; margin-bottom: 1.1rem; color: var(--gold); }
.outlook__ornament span { width: 2.35rem; height: 1px; background: currentColor; opacity: .6; }
.outlook__ornament b { font: .74rem/1 Georgia, serif; font-weight: 400; }
.section-kicker { margin: 0 0 .8rem; color: var(--gold); font-size: .58rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.outlook h2 { max-width: 20rem; margin: 0 auto; color: var(--ink); font: 400 clamp(2rem, 9.4vw, 3.6rem)/1.02 var(--display); letter-spacing: -.045em; }
.outlook__lead { max-width: 31rem; margin: 1.15rem auto 0; color: var(--ink-soft); font: 400 clamp(1rem, 4.2vw, 1.2rem)/1.52 var(--serif); }
.field-note { width: min(100%, 34rem); margin: 2rem auto 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.field-note summary {
  display: flex; min-height: 3.75rem; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; cursor: pointer;
  color: var(--ink); font-size: .65rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
}
.field-note summary::-webkit-details-marker { display: none; }
.field-note summary i { color: var(--gold); font: 1.25rem/1 var(--serif); font-style: normal; transition: transform .35s ease; }
.field-note[open] summary i { transform: rotate(45deg); }
.field-note p { max-width: 29rem; margin: -.1rem 0 1.45rem; color: var(--ink-soft); font: italic 1rem/1.55 var(--serif); }
.invitation-note { margin: 2.25rem 0 0; color: var(--ink-soft); font: italic .86rem/1.5 var(--serif); }
.invitation-note span { margin-right: .25rem; color: var(--gold); font-style: normal; }
.site-footer { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.45rem 1rem max(1.3rem, env(safe-area-inset-bottom)); color: var(--ink-soft); background: var(--paper-deep); text-align: center; }
.site-footer p, .site-footer a { margin: 0; font-size: .57rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; }
.site-footer a { min-height: 2.75rem; display: inline-grid; place-items: center; color: inherit; text-decoration: none; transition: color .25s ease; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes scroll-line {
  0%, 100% { transform: scaleY(.42); transform-origin: top; opacity: .45; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}
@media (min-width: 620px) {
  .page-frame { inset: .8rem; }
  .hero { padding: max(2rem, env(safe-area-inset-top)) max(2.4rem, env(safe-area-inset-right)) max(1.75rem, env(safe-area-inset-bottom)) max(2.4rem, env(safe-area-inset-left)); }
  .mountain-stage { height: min(69svh, 49rem); }
  .masthead { grid-template-columns: 3.25rem 1fr 3.25rem; }
  .monogram { width: 2.8rem; height: 2.8rem; font-size: .76rem; }
  .hero-copy { margin-top: clamp(5.5rem, 15svh, 10.5rem); }
  .names { font-size: clamp(5.25rem, 12vw, 8.5rem); }
  .announcement { margin-top: 1.8rem; }
  .quiet-note { top: 6rem; right: max(2.8rem, env(safe-area-inset-right)); }
  .outlook { padding-inline: 2rem; }
}
@media (min-width: 900px) {
  .hero { min-height: max(43rem, 100svh); padding: max(2rem, env(safe-area-inset-top)) max(4.5rem, env(safe-area-inset-right)) max(1.75rem, env(safe-area-inset-bottom)) max(4.5rem, env(safe-area-inset-left)); }
  .mountain-stage { height: 77%; }
  .mountains, .gold-colour { object-position: center 53%; }
  .gold-shimmer { mask-position: center 53%; -webkit-mask-position: center 53%; }
  .hero-copy { width: min(49%, 42rem); margin: clamp(5rem, 14svh, 10rem) 0 auto; text-align: left; }
  .eyebrow { justify-content: flex-start; margin-left: 0; }
  .eyebrow::before { display: none; }
  .names { font-size: clamp(5.4rem, 9.4vw, 9.5rem); }
  .names i { padding-left: 1.15em; }
  .motion-hint { margin-left: 0; }
  .scroll-cue { align-self: flex-start; margin-left: 8.5%; }
  .outlook { padding-block: 7rem; }
}
@media (hover: hover) and (pointer: fine) {
  .soundless-button:hover { color: var(--ink); transform: rotate(38deg); }
  .site-footer a:hover, .field-note summary:hover { color: var(--gold); }
}
@media (max-height: 690px) and (min-width: 700px) {
  .hero-copy { margin-top: 3.2rem; }
  .names { font-size: clamp(4.8rem, 9vw, 6.8rem); }
  .motion-control { margin-top: .65rem; }
  .scroll-cue { padding-top: .2rem; }
  .scroll-cue i { height: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
