/* Pozivnica „Nit": listovi pamučnog papira preko Madere u sumrak, povezani jednom niti */
:root {
  --green: #2B3D31;
  --green-deep: #121B16;
  --paper: #F8F3EA;
  --paper-2: #EFE7DA;
  --letter: #F2EDE3;
  --ink: #2A352E;
  --ink-soft: #66705F;
  --frame: #A7B0A2;
  --bordo: #7A2232;
  --rust: #B0532E;
  --blush: #E4A98B;
  --cream: #F3EBDD;
  --cream-dim: rgba(243, 235, 221, .72);

  --font-serif: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --font-sans: "Jost", "Futura", "Century Gothic", "Segoe UI", sans-serif;
  /* krasopis i imena: Pinyon Script (konačan izbor), klasičan bakropisni rukopis kao imena u drugom dizajnu */
  --font-script: "Pinyon Script", "Snell Roundhand", "Segoe Script", cursive;
  --script-scale: 1.12;
  --font-names: var(--font-script);
  --font-amp: "Great Vibes", cursive;   /* najlepši znak & od svih krasopisa */
  --names-scale: 1.2;
  --names-weight: 400;
  --names-style: normal;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .28 0 0 0 0 .24 0 0 0 0 .18 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-strong: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--green-deep); -webkit-text-size-adjust: 100%; }
html.is-locked, html.is-locked body { overflow: hidden; overscroll-behavior: none; }
body {
  margin: 0;
  background: var(--green-deep);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.55;
  font-weight: 500;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* Lenis (glatko skrolovanje na računaru) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

/* ================= Naslovna ================= */
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--green);
  z-index: 0;
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain-strong); opacity: .22; mix-blend-mode: overlay;
}
.hero__frame {
  position: absolute; pointer-events: none;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: calc(12px + env(safe-area-inset-left, 0px));
  border: 1px solid rgba(243, 235, 221, .3);
  border-radius: 22px;
}
.hero__dim { position: absolute; inset: 0; background: #0A100D; opacity: 0; pointer-events: none; }
.hero__tap {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; background: transparent; cursor: pointer;
  touch-action: none; -webkit-tap-highlight-color: transparent;
}
.hero__tap:focus-visible { outline-offset: -18px; }
.hero__skip {
  position: absolute;
  top: calc(22px + env(safe-area-inset-top, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  padding: 10px 6px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--cream-dim);
}
.hero__cue {
  position: absolute; left: 50%;
  bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  color: var(--cream); text-decoration: none;
  font-family: var(--font-sans); font-size: 10.5px; letter-spacing: .36em; text-transform: uppercase;
  opacity: 0; visibility: hidden;
}
.hero__cue i {
  display: block; width: 1px; height: 46px;
  background: linear-gradient(var(--cream), rgba(243, 235, 221, 0));
  transform-origin: top; animation: cue 2.4s var(--ease-out) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* tekst unutar SVG scene */
.sv-label { font-family: var(--font-sans); font-size: 9.5px; letter-spacing: 3.2px; font-weight: 500; }
.sv-label--sm { font-size: 8.5px; letter-spacing: 3px; }
/* ime gosta na naslovnoj: kurziv koji se lako čita (krasopis ostaje za imena mladenaca) */
.sv-guest { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 46px; letter-spacing: .2px; }
/* karton pre dodira: krupnija i jasnija slova, kao na štampanoj pozivnici */
.sv-label--cover { font-size: 10.5px; letter-spacing: 4.6px; }
.sv-stamp { font-family: var(--font-serif); font-size: 17px; font-weight: 500; letter-spacing: 5px; font-variant-numeric: lining-nums; }
.sv-name {
  font-family: var(--font-names); font-size: calc(54px * var(--names-scale));
  font-weight: var(--names-weight); font-style: var(--names-style);
}
.sv-amp { font-family: var(--font-amp); font-size: calc(46px * var(--script-scale)); }
#motes { mix-blend-mode: screen; }

/* ================= Sadržaj ================= */
main {
  position: relative;
  z-index: 2;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.gap { display: flex; justify-content: center; height: 120px; }
.gap svg { width: 40px; height: 100%; overflow: visible; }
.gap path { fill: none; stroke: var(--cream); stroke-width: 1.2; stroke-opacity: .85; }

.sheet {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(64px, 13vw, 84px) clamp(28px, 8vw, 60px) clamp(54px, 11vw, 72px);
  background-color: var(--paper);
  background-image: var(--grain);
  text-align: center;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 44px 80px -40px rgba(0, 0, 0, .8);
  transform-origin: 50% 0;
}
.sheet::before, .sheet::after { content: ""; position: absolute; pointer-events: none; border: 1px solid var(--frame); }
.sheet::before { inset: 12px; }
.sheet::after { inset: 17px; opacity: .6; }
.sheet__body { position: relative; z-index: 1; display: grid; justify-items: center; gap: 20px; }

.knot {
  position: absolute; top: -8px; left: 50%; z-index: 3;
  width: 16px; height: 16px; margin-left: -8px;
  transform: rotate(45deg);
  background: var(--paper); border: 1px solid var(--frame);
}
.knot::after { content: ""; position: absolute; inset: 4px; background: var(--bordo); }

/* cveće je u traci iznad i ispod teksta: visina trake (padding) je uvek veća od visine cveća */
.sheet--flowers { padding-top: clamp(124px, 33vw, 190px); padding-bottom: clamp(124px, 33vw, 190px); }
.flora {
  position: absolute; z-index: 0; pointer-events: none; overflow: visible;
  width: clamp(160px, 44vw, 270px); height: auto; aspect-ratio: 240 / 150;
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0 0, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 100% 100% at 0 0, #000 72%, transparent 100%);
}
.flora--tl { top: 0; left: 0; }
.flora--br { right: 0; bottom: 0; transform: rotate(180deg); }

/* tipografija */
.eyebrow {
  margin: 0; font-family: var(--font-sans); font-weight: 500;
  font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--bordo);
}
.greeting { margin: 0; font-family: var(--font-script); font-size: calc(clamp(42px, 11vw, 52px) * var(--script-scale)); line-height: 1.05; color: var(--bordo); }
.lead {
  margin: 0; max-width: 24ch; text-wrap: balance;
  font-style: italic; font-size: clamp(21px, 5.4vw, 24px); line-height: 1.45;
}
.lead--small { max-width: 30ch; font-size: 19px; color: var(--ink-soft); }
.names {
  margin: 4px 0 0; display: grid; justify-items: center;
  font-family: var(--font-names); font-weight: var(--names-weight); font-style: var(--names-style);
  font-size: calc(clamp(54px, 15vw, 74px) * var(--names-scale)); line-height: 1;
}
.names .amp { font-family: var(--font-amp); font-style: normal; font-weight: 400; font-size: .7em; line-height: .8; color: var(--rust); margin: .02em 0 .06em; }
.title { margin: 0; font-weight: 500; font-size: clamp(38px, 10vw, 48px); line-height: 1.05; }
.title-script { margin: 0; font-family: var(--font-script); font-weight: 400; font-size: calc(clamp(44px, 12vw, 60px) * var(--script-scale)); line-height: 1.05; color: var(--bordo); }
.ph { color: var(--rust); text-decoration: underline dotted 1px; text-underline-offset: 4px; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* datum, kao u vašem prvom dizajnu */
.date { display: grid; justify-items: center; gap: 10px; width: 100%; }
.date__month, .date__year {
  font-family: var(--font-sans); font-size: 12px; letter-spacing: .36em; text-transform: uppercase; color: var(--bordo);
}
.date__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; width: 100%; max-width: 400px; }
.date__side {
  padding: 9px 0;
  border-top: 3px double var(--frame); border-bottom: 3px double var(--frame);
  font-family: var(--font-sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap;
}
.date__day { font-weight: 500; font-size: clamp(80px, 21vw, 100px); line-height: .82; }

.countdown { display: grid; justify-items: center; gap: 6px; }
.countdown__rose { width: 96px; height: auto; overflow: visible; }
.countdown__text { margin: 0; font-style: italic; font-size: 21px; }
.countdown__note { margin: 0; font-family: var(--font-sans); font-size: 12px; letter-spacing: .05em; color: var(--ink-soft); }

/* dugmad */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--green); background: transparent; color: var(--green);
  font-family: var(--font-sans); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), transform .4s var(--ease-out);
}
.btn:hover { background: var(--green); color: var(--cream); }
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--green); color: var(--cream); }
.btn--solid:hover { background: #22322A; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.hint { margin: 0; max-width: 34ch; font-family: var(--font-sans); font-size: 13px; line-height: 1.5; color: var(--ink-soft); }

/* plan dana */
.timeline-wrap { position: relative; width: 100%; max-width: 380px; text-align: left; }
.tl-thread { position: absolute; left: 12px; top: 10px; bottom: 10px; width: 1px; background: var(--green); transform-origin: top; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 46px; display: grid; gap: 26px; }
.tl-item { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: baseline; }
.tl-knot {
  position: absolute; left: -39px; top: .42em;
  width: 11px; height: 11px; transform: rotate(45deg);
  border: 1px solid var(--green); background: var(--paper);
}
.tl-item:first-child .tl-knot, .tl-item:last-child .tl-knot { background: var(--bordo); border-color: var(--bordo); }
.tl-item time { font-family: var(--font-sans); font-size: 13px; letter-spacing: .06em; color: var(--bordo); font-variant-numeric: tabular-nums; }
.tl-item strong { display: block; font-weight: 600; font-size: 23px; line-height: 1.15; }
.tl-item .note { display: block; margin-top: 3px; font-family: var(--font-sans); font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.tl-item time.tl-then { font-style: italic; font-family: var(--font-serif); font-size: 17px; letter-spacing: 0; color: var(--ink-soft); }

/* crkva: linijski crtež kupole */
.church { width: min(240px, 72%); height: auto; margin: 2px 0 4px; overflow: visible; }
.church path { fill: none; stroke: var(--green); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Madera */
.address { margin: -8px 0 0; font-style: italic; font-size: 20px; }
.venue { position: relative; width: 100%; margin: 4px 0; aspect-ratio: 980 / 868; padding: 7px; background: #FFFDF8; border: 1px solid var(--frame); }
.venue img { width: 100%; height: 100%; object-fit: cover; }
.venue__lines { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); }
.venue__lines g { fill: none; stroke: #F3EBDD; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.facts { margin: 0; display: grid; gap: 14px; width: 100%; max-width: 380px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-family: var(--font-sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--bordo); }
.facts dd { margin: 0; font-size: 19px; }

/* potvrda: reljefni papir, kao vaš drugi dizajn */
.sheet--letter { background-color: var(--letter); }
.sheet--letter::before {
  inset: 14px; border-color: rgba(255, 255, 255, .95);
  box-shadow: inset 1px 1px 1px rgba(70, 50, 40, .1), 1px 1px 1px rgba(70, 50, 40, .08);
}
.sheet--letter::after { inset: 22px; opacity: 1; border-color: rgba(255, 255, 255, .85); box-shadow: inset 1px 1px 1px rgba(70, 50, 40, .07); }
.sheet--letter .title-script { text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
.curl { position: absolute; z-index: 1; width: 60px; height: 60px; filter: drop-shadow(1px 1.5px 1px rgba(70, 50, 40, .25)); }
.curl path { fill: none; stroke: #FFFDF8; stroke-width: 3.2; stroke-linecap: round; }
.curl--tl { top: 22px; left: 22px; }
.curl--tr { top: 22px; right: 22px; transform: scaleX(-1); }
.curl--bl { bottom: 22px; left: 22px; transform: scaleY(-1); }
.curl--br { bottom: 22px; right: 22px; transform: scale(-1, -1); }
.deadline { margin: -6px 0 0; font-style: italic; font-size: 19px; color: var(--ink-soft); }

.rsvp { width: 100%; display: grid; gap: 18px; text-align: left; }
.rsvp__intro { display: grid; gap: 4px; text-align: center; }
.rsvp__greet { font-family: var(--font-script); font-size: calc(40px * var(--script-scale)); line-height: 1.1; color: var(--bordo); }
.rsvp__seats { font-style: italic; font-size: 18.5px; color: var(--ink-soft); }
.people { position: relative; display: grid; gap: 10px; padding-left: 26px; }
.people svg.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.person {
  position: relative; display: grid; gap: 10px;
  padding: 14px 14px 14px 16px;
  background: rgba(255, 253, 248, .88); border: 1px solid rgba(167, 176, 162, .6);
}
.person__dot { position: absolute; left: -22px; top: 22px; width: 9px; height: 9px; border-radius: 50%; background: var(--bordo); }
.person--plus { margin-left: 16px; border-style: dashed; }
.person--plus .person__dot { left: -38px; background: var(--letter); border: 1.5px solid var(--bordo); }
.person__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.person__name strong { font-size: 22px; font-weight: 600; }
.person__name small { font-family: var(--font-sans); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.person__rm {
  margin-left: auto; padding: 2px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 12px; color: var(--bordo); text-decoration: underline; text-underline-offset: 3px;
}
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { display: inline-flex; overflow: hidden; border: 1px solid var(--frame); border-radius: 999px; background: #FFFDF8; }
.seg button {
  min-height: 40px; padding: 0 14px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-sans); font-size: 13px; letter-spacing: .03em; color: var(--ink);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.seg button + button { border-left: 1px solid var(--frame); }
.seg button[aria-pressed="true"] { background: var(--green); color: var(--cream); }
.seg button:disabled { color: #ADA899; cursor: not-allowed; }
.seg button[aria-pressed="true"]:disabled { background: var(--paper-2); color: #ADA899; }
.fast-note { margin: 0; text-align: center; font-family: var(--font-sans); font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
.field { display: grid; gap: 5px; min-width: 0; }
.field label { font-family: var(--font-sans); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; padding: 9px 12px;
  border: 1px solid var(--frame); border-radius: 2px; background: #FFFDF8; color: var(--ink);
  font-family: var(--font-serif); font-size: 20px; font-weight: 500;
}
.field textarea { min-height: 74px; resize: vertical; line-height: 1.4; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--rust); outline-offset: 1px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.addbox { display: grid; gap: 12px; padding: 16px; border: 1px dashed var(--frame); background: rgba(255, 253, 248, .6); }
.err { margin: 0; font-family: var(--font-sans); font-size: 13px; color: var(--bordo); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts:empty { display: none; }
.rsvp__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rsvp__note { margin: 0; text-align: center; font-family: var(--font-sans); font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
.found { display: grid; gap: 10px; justify-items: center; padding: 16px; border: 1px solid var(--frame); background: rgba(255, 253, 248, .8); text-align: center; }

/* lična kartica posle potvrde */
.ticket {
  position: relative; justify-self: center;
  width: 100%; max-width: 360px; padding: 36px 26px 30px;
  display: grid; justify-items: center; gap: 10px; text-align: center;
  background-color: var(--green); background-image: var(--grain); color: var(--cream);
  box-shadow: 0 34px 60px -30px rgba(18, 27, 22, .85);
}
.ticket::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(243, 235, 221, .35); pointer-events: none; }
.ticket__mono { width: 52px; height: auto; }
.ticket__eyebrow { font-family: var(--font-sans); font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; opacity: .82; }
.ticket__line { width: 64%; height: 1px; background: rgba(243, 235, 221, .35); }
.ticket__names { display: grid; gap: 18px; margin: 6px 0; }
/* krasopis ima duge repove (j, g, đ), pa natpis ispod imena mora da ima vazduha */
.ticket__name { font-family: var(--font-script); font-size: calc(34px * var(--script-scale)); line-height: 1.3; }
.ticket__name small {
  display: block; margin-top: 10px;
  font-family: var(--font-sans); font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; opacity: .72;
}
.ticket__meta { font-family: var(--font-sans); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; opacity: .85; }
.ticket__table { display: grid; gap: 4px; margin: 2px 0 6px; font-family: var(--font-serif); font-style: italic; font-size: 30px; line-height: 1.1; }
.ticket__table small { font-family: var(--font-sans); font-style: normal; font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; opacity: .72; }

/* „Vaš sto": par dana pred venčanje */
.sheet--seat { background-color: #FBF6EC; }
.seat__name { margin: 0; font-weight: 500; font-style: italic; font-size: clamp(46px, 13vw, 64px); line-height: 1; color: var(--bordo); }
.seat__table { width: min(200px, 60%); height: auto; overflow: visible; }
.seat__top { fill: #FFFDF8; stroke: var(--green); stroke-width: 1.4; }
.seat__dot { fill: none; stroke: var(--frame); stroke-width: 1.4; }
.seat__dot.is-ours { fill: var(--bordo); stroke: var(--bordo); }
.seat__no { font-family: var(--font-serif); font-size: 34px; font-weight: 500; fill: var(--green); }
.seat__people { margin: 0; max-width: 30ch; font-size: 21px; font-weight: 600; text-wrap: balance; }
.seat__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; max-width: 360px; }
.seat__list li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(167, 176, 162, .5); text-align: left; }
.seat__list span { font-size: 20px; font-weight: 600; }
.seat__list b { font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--bordo); white-space: nowrap; }
.ticket__sign { font-family: var(--font-script); font-size: calc(28px * var(--script-scale)); color: var(--blush); }

/* kontakt */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 380px; }
.contact { display: grid; gap: 6px; justify-items: center; padding: 16px 8px 4px; border-top: 3px double var(--frame); }
.contact__name { font-family: var(--font-script); font-size: calc(36px * var(--script-scale)); line-height: 1.1; color: var(--bordo); }
.contact a, .contact .tel { font-family: var(--font-sans); font-size: 14px; letter-spacing: .06em; color: var(--ink); text-decoration: none; }

/* podnožje */
.foot {
  position: relative; isolation: isolate;
  display: grid; justify-items: center; gap: 12px; text-align: center; color: var(--cream);
  padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}
/* podnožje ima svoju noć: naslovna (imena, osvetljen hotel) se ne vidi kroz tekst */
.foot::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 0; bottom: 0;
  left: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  background: linear-gradient(rgba(10, 16, 13, .6), #0A100D 40px);
}
.foot__mono { width: 96px; height: auto; }
.foot__script { margin: 0; font-family: var(--font-script); font-size: calc(46px * var(--script-scale)); line-height: 1.1; }
.foot__date { margin: 0; font-family: var(--font-sans); font-size: 12px; letter-spacing: .36em; opacity: .75; }
.foot__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 12px; }
.link-btn {
  padding: 8px 2px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-dim);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-color: rgba(243, 235, 221, .35);
}

/* izbor jezika u podnožju */
.lang-switch { display: inline-flex; gap: 4px; margin-top: 6px; padding: 3px; border: 1px solid rgba(243, 235, 221, .3); border-radius: 999px; }
.lang-switch button {
  min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-family: var(--font-sans); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-dim);
}
.lang-switch button[aria-pressed="true"] { background: rgba(243, 235, 221, .14); color: var(--cream); }

/* plutajuće kontrole */
.totop {
  position: fixed; z-index: 30;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--green); border: 1px solid rgba(243, 235, 221, .35);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), visibility .5s;
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop svg { width: 26px; height: auto; }
.totop path { fill: none; stroke: var(--cream); stroke-width: 7; stroke-linecap: round; }

/* traka za prototip */
.proto {
  position: fixed; z-index: 40;
  left: calc(14px + env(safe-area-inset-left, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  font-family: var(--font-sans);
}
.proto__toggle {
  min-height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px dashed rgba(228, 169, 139, .9); background: rgba(18, 27, 22, .84); color: #F0C6AE;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
}
.proto__panel {
  position: absolute; left: 0; bottom: calc(100% + 8px);
  width: min(300px, calc(100vw - 28px)); padding: 14px;
  display: grid; gap: 10px;
  background: #FBF7F0; color: var(--ink); border: 1px solid var(--frame);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .55);
  font-size: 13px; line-height: 1.45;
}
.proto__panel p { margin: 0; }
.proto__list { display: grid; gap: 6px; }
.proto__list button {
  min-height: 40px; padding: 6px 10px; text-align: left; cursor: pointer;
  border: 1px solid var(--frame); background: #fff; font-family: var(--font-sans); font-size: 13px;
}
.proto__list button[aria-current="true"] { background: var(--green); border-color: var(--green); color: var(--cream); }
.proto__note { font-size: 12px; color: var(--ink-soft); }
.proto__reset {
  min-height: 42px; padding: 6px 10px; cursor: pointer;
  border: 1px dashed var(--bordo); background: transparent; color: var(--bordo);
  font-family: var(--font-sans); font-size: 13px;
}

.proto__reset[aria-pressed="true"] { background: rgba(122, 34, 50, .08); }
.proto__link { justify-self: start; padding: 4px 0; font-size: 13px; color: var(--green); text-underline-offset: 3px; }

@media (min-width: 900px) {
  .gap { height: 160px; }
  .sheet { max-width: 600px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__cue i { animation: none; }
  .btn, .seg button, .totop { transition: none; }
}
