/* nikaikarlo.com, smjer D (etiketa pjenušca): krem papir, tinta, tanki zlatni okvir, rukopis samo za imena. */
:root {
  --paper: #F6F1E7; --field: #FBF8F2; --mat: #FBF8F1; --mat-in: #ECE4D5; --ink: #1F1D1A; --mute: #5E584E;
  --gold: #B0904F; --gold-text: #7E6330; --line: #A08E6A; --sep: #E2D8C6; --wax: #6B1E2B;
  --script: 'Herr Von Muellerhoff', 'Snell Roundhand', cursive; --serif: 'Cormorant Garamond', Garamond, Georgia, serif;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 96px }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 19px/1.5 var(--serif); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased }
img { max-width: 100% }
a { color: var(--ink) }
h1, h2, h3, p { margin: 0 }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px }
.hidden { display: none !important }

/* okvir etikete i zrno papira */
.frame { position: fixed; inset: 12px; border: .9px solid var(--gold); pointer-events: none; z-index: 60 }
.grain { position: fixed; inset: 0; width: 100%; height: 100%; opacity: .06; mix-blend-mode: multiply; pointer-events: none; z-index: 59 }

/* tipografija */
.caps, .eyebrow, .label, .btn, .ghost, .nav, .chip, .status { font-weight: 600; letter-spacing: .28em; font-variant-numeric: lining-nums; text-transform: uppercase }
.eyebrow { font-size: 12.5px; color: var(--gold-text) }
.label { font-size: 11.5px; color: var(--gold-text) }
.h1 { font-weight: 500; font-size: 25px; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; font-variant-numeric: lining-nums }
.h2 { font-weight: 500; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: lining-nums }
.salute { font-style: italic; font-size: 34px; line-height: 1.15 }
.lead { max-width: 620px; font-size: 21px; color: var(--mute); text-wrap: pretty }
.note { font-size: 16px; font-style: italic; color: var(--mute); text-align: center; text-wrap: pretty }
.date { font-weight: 500; letter-spacing: .24em; font-variant-numeric: lining-nums }
.names { font-family: var(--script); font-weight: 400; line-height: 1 }
.muted { color: var(--mute) }
.center { text-align: center }

/* raspored */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px }
.narrow { max-width: 560px; margin: 0 auto; padding: 0 28px }
.stack { display: flex; flex-direction: column; gap: 22px }
.stack-sm { display: flex; flex-direction: column; gap: 10px }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 32px }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 24px; align-items: start }

/* zaglavlje i podnožje */
.top { position: sticky; top: 0; z-index: 50; background: rgba(246, 241, 231, .95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--sep) }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding-top: 12px }
.brand { font-family: var(--script); font-size: 40px; line-height: 1.35; text-decoration: none; padding: 8px 0 4px; white-space: nowrap }
.nav { display: flex; gap: 26px; font-size: 11.5px }
.nav a { text-decoration: none; padding: 10px 0; white-space: nowrap }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 7px }
.foot { padding: 72px 24px 64px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; border-top: 1px solid var(--sep) }
.foot .names { margin-top: 6px; font-size: 56px }
.foot .links { display: flex; gap: 24px; margin-top: 14px; font-size: 10.5px }
.foot .links a { color: var(--mute); text-decoration: none }

/* odjeljci */
.sec { padding: 104px 0 }
.sec + .sec { border-top: 1px solid var(--sep) }
.sec.soft { background: rgba(255, 255, 255, .35) }
.head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-bottom: 52px }
.page-title { padding: 56px 0 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; letter-spacing: .28em; font-size: 11px; text-decoration: none }

/* gumbi i polja */
.btn, .ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 30px; font-family: var(--serif); font-size: 12.5px; text-decoration: none; cursor: pointer; border-radius: 0 }
.btn { background: var(--ink); color: var(--paper); border: 0 }
.btn:hover { background: #3A3630 }
.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink) }
.ghost:hover { background: #EFE8DB }
.btn[disabled] { opacity: .4; cursor: not-allowed }
.full { width: 100% }
.field { display: flex; flex-direction: column; gap: 8px }
.input, select.input, textarea.input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0; background: var(--field); color: var(--ink); font: 500 18px var(--serif) }
textarea.input { padding: 12px 14px; line-height: 1.4; resize: vertical }
textarea.lined { padding: 4px 14px; line-height: 34px; font-style: italic; font-size: 20px; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 33px, var(--sep) 33px, var(--sep) 34px); background-position: 0 4px }
.input::placeholder { color: #7D7568 }
.digits { font-weight: 500; letter-spacing: .06em; font-variant-numeric: lining-nums }
.opt { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 18px; border: 1px solid var(--line); cursor: pointer; font-size: 19px }
.opt:has(input:checked) { border-color: var(--ink); background: var(--field); box-shadow: inset 0 0 0 1px var(--ink) }
.opt input, .check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex-shrink: 0 }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; font-size: 17px; line-height: 1.4; cursor: pointer }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; border: 1px solid var(--line); cursor: pointer; font-size: 18px }
.tile:has(input:checked) { border-color: var(--ink); background: var(--field); box-shadow: inset 0 0 0 1px var(--ink) }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px }
input.sw { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 52px; height: 30px; margin: 0; border-radius: 999px; background: #CFC3A8; position: relative; cursor: pointer; transition: background .2s }
input.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(31, 29, 26, .3); transition: transform .2s }
input.sw:checked { background: var(--ink) }
input.sw:checked::after { transform: translateX(22px) }
.line-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--sep) }
.line-row .sub { display: block; font-size: 16px; font-style: italic; color: var(--mute) }
.stepper { display: flex; align-items: center; gap: 4px }
.stepper button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 22px; color: var(--ink) }
.stepper output { min-width: 44px; text-align: center; font-size: 24px; font-variant-numeric: lining-nums }
.code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px }
.code input { width: 100%; height: 58px; padding: 0; border: 1px solid var(--line); border-radius: 0; background: var(--field); text-align: center; font: 500 26px var(--serif); font-variant-numeric: lining-nums; color: var(--ink) }
.code input:focus { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); outline: 0 }
.flash { padding: 12px 16px; border: .9px solid var(--gold); background: var(--field); font-size: 17px; text-align: center }
.flash.error { border-color: var(--wax); color: var(--wax) }

/* kartice, okviri, fotografije */
.card { border: .9px solid var(--gold); background: var(--field); padding: 28px 30px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink) }
a.card:hover { background: #FFFDF8 }
.card .k { font-weight: 600; letter-spacing: .28em; font-size: 12px; color: var(--gold-text); text-transform: uppercase; font-variant-numeric: lining-nums }
.card .t { font-weight: 500; font-size: 24px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25 }
.card .d { font-size: 18px; font-style: italic; color: var(--mute) }
.card.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 0; padding: 0; overflow: hidden }
.card.feature .pic { position: relative; min-height: 320px; border-right: .9px solid var(--gold) }
.card.feature .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.card.feature .body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; gap: 12px }
.photo { position: relative; display: block; background: var(--mat); box-shadow: 0 0 0 .8px rgba(176, 144, 79, .45), 0 10px 22px -14px rgba(74, 58, 36, .45) }
.photo > span { position: absolute; inset: 8px; overflow: hidden; outline: .8px solid var(--gold) }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block }
.slot { position: relative; aspect-ratio: 1; background: var(--mat); box-shadow: 0 0 0 .8px rgba(176, 144, 79, .45) }
.slot::after { content: ""; position: absolute; inset: 6px; border: .8px solid var(--gold); background: var(--mat-in) }
.panel { border: .9px solid var(--gold); background: var(--field) }

/* naslovnica */
.hero { padding: 28px 0 64px }
.hero .photo { height: min(62vh, 560px) }
.hero .photo > span { inset: 10px }
.hero .photo img { object-position: 50% 32% }
.hero .names { margin-top: 28px; font-size: clamp(64px, 10vw, 116px) }
.countdown { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 80px }
.countdown .n { margin-top: 8px; font-weight: 500; letter-spacing: .06em; font-variant-numeric: lining-nums; font-size: clamp(96px, 14vw, 168px); line-height: 1 }
.chapter { display: flex; flex-wrap: wrap; align-items: center; gap: 56px }
.chapter.flip { flex-direction: row-reverse }
.chapter .pic { flex: 1 1 340px; max-width: 470px }
.chapter .pic .photo > span { inset: 14px }
.chapter .text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px }
.chapter h3 { font-weight: 500; font-size: 34px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2 }
.chapter .year { font-size: 16px; color: var(--gold-text) }
.timeline { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-direction: column; gap: 28px; max-width: 800px }
.timeline li { display: grid; grid-template-columns: 170px 28px minmax(0, 1fr); gap: 0 22px; align-items: start }
.timeline .time { font-size: 20px; text-align: right; padding-top: 6px }
.music-day { max-width: 800px; margin: 56px auto 0; padding-top: 32px; border-top: 1px solid var(--sep) }
.music-day dl { margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px 32px }
.music-day dt { font-weight: 600; letter-spacing: .28em; font-size: 11.5px; color: var(--gold-text) }
.music-day dd { margin: 4px 0 0; font-size: 20px; font-style: italic }
.timeline .mark { display: flex; justify-content: center; padding-top: 12px }
.timeline .what { font-weight: 500; font-size: 25px; letter-spacing: .1em; text-transform: uppercase }
.timeline .where { font-size: 21px; font-style: italic; color: var(--mute) }
.place { padding: 0; gap: 0 }
.place > img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--field) }
.place .credit { margin-top: 12px; font-size: 14px; font-style: italic; color: var(--mute); text-decoration: none }
.place .body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--sep) }
.map-card { display: grid; margin-top: 32px }
.map-svg { display: block; width: 100%; height: auto }
.map-svg .lbl { font: 600 22px var(--serif); fill: var(--ink); paint-order: stroke; stroke: var(--field); stroke-width: 6px; stroke-linejoin: round }
.map-svg .lbl-it { font: italic 500 20px var(--serif); fill: var(--mute) }
.map-svg .compass text { font: 600 16px var(--serif); fill: var(--gold-text) }
.map-legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 18px }
.map-legend li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start }
.map-legend a { font-size: 20px; font-weight: 600; text-decoration-color: var(--line); text-underline-offset: 3px }
.map-legend p { margin: 2px 0 0; font-size: 17px; font-style: italic; color: var(--mute) }
@media (max-width: 600px) {   /* karta je na mobitelu uska: veći natpisi da ostanu čitljivi */
  .map-svg .lbl { font-size: 34px; stroke-width: 8px }
  .map-svg .lbl-it { font-size: 30px }
}
@media (min-width: 900px) {
  .map-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) }
  .map-card .body { border-top: 0; border-left: 1px solid var(--sep); justify-content: center }
}
.dinner-menu { padding: 30px 24px 32px; display: flex; flex-direction: column; align-items: center; text-align: center }
.dinner-menu .k { margin-top: 20px; font-weight: 600; letter-spacing: .28em; font-size: 12px; color: var(--gold-text) }
.dinner-menu .dish { margin-top: 4px; font-size: 21px; font-style: italic }
.info { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid var(--sep) }
.info h3 { font-weight: 600; letter-spacing: .28em; font-size: 13px }
.info p { font-size: 20px; font-style: italic; color: var(--mute) }

/* galerija */
.wall { display: flex; flex-direction: column; gap: 64px }
.wall section { display: flex; flex-direction: column; gap: 26px }
.wall .photos { display: flex; flex-direction: column; gap: 20px }
.wall .line { display: flex; gap: 20px }
.wall .line > div { min-width: 0 }
.gallery a { cursor: zoom-in }
.pswp { --pswp-bg: #1F1D1A }

/* za mladence */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: .9px solid var(--gold); font-size: 10px; color: var(--gold-text); line-height: 1.5 }
.chip.kum { background: #F1E7CF }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; white-space: nowrap }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #D9CDB3); flex-shrink: 0 }
.status.yes { --dot: var(--ink) } .status.no { --dot: var(--wax) } .status.seen { --dot: var(--gold) }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 12px; border: .9px solid var(--gold); background: var(--field); text-align: center }
.stat .n { font-size: 46px; line-height: 1.1; font-variant-numeric: lining-nums }
.stat .k { font-weight: 600; letter-spacing: .28em; font-size: 11.5px; text-transform: uppercase }
.stat .d { font-size: 16px; font-style: italic; color: var(--mute) }
.table-box { overflow-x: auto; border: .9px solid var(--gold); background: var(--field); padding: 18px 16px 4px }
table.list { width: 100%; border-collapse: collapse; min-width: 980px }
table.list th { padding: 0 12px 12px; text-align: left; font-weight: 600; letter-spacing: .28em; font-size: 10.5px; color: var(--mute); text-transform: uppercase }
table.list td { padding: 14px 12px; border-top: 1px solid var(--sep); vertical-align: top }
tr.inv-row { cursor: pointer }
tr.inv-row:hover td { background: #FFFDF8 }
.icon-btn { width: 44px; height: 44px; padding: 0; border: .9px solid var(--line); background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink) }
dialog.inv { border: .9px solid var(--gold); background: var(--paper); color: var(--ink); padding: 0; width: min(720px, calc(100% - 28px)); max-height: calc(100vh - 40px);
  margin: max(20px, 7vh) auto auto }   /* vrh prozora stoji na mjestu pri promjeni kartice */
.pane-tabs { display: flex; gap: 24px; padding: 12px 26px 0; border-bottom: 1px solid var(--sep) }
.pane-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 0 10px; min-height: 44px; font: 600 11.5px var(--serif);
  letter-spacing: .28em; text-transform: uppercase; color: var(--mute); cursor: pointer }
.pane-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold) }
.dialog-body { padding: 18px 26px 22px; min-height: 360px; display: flex; flex-direction: column; gap: 14px }
.dialog-body > form { display: flex; flex-direction: column; gap: 14px; flex: 1 }
dialog.inv [data-pane] { display: none }
dialog.inv[data-pane="reply"] [data-pane="reply"], dialog.inv[data-pane="data"] [data-pane="data"], dialog.inv[data-pane="people"] [data-pane="people"] { display: flex }
.form-foot { display: flex; gap: 10px; align-items: center; margin-top: auto; padding-top: 6px }
dialog.inv[data-pane="reply"] .form-foot { display: none }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px }
.fields.wide { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)) }
.persons { display: flex; flex-direction: column; gap: 8px }
.person { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 84px 104px 66px 44px; gap: 8px; align-items: center }
@media (max-width: 600px) { .person { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px } .person select { grid-row: 2 } }
.seating:not(.by-age) .rep { visibility: hidden }   /* po pozivnicama naziv i odgovor samo u prvom retku */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px }
.ghost.danger { color: var(--wax); border-color: var(--wax) }
button.link { background: none; border: 0; padding: 0; min-height: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer }
dialog.inv::backdrop { background: rgba(31, 29, 26, .5) }
.dl > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--sep) }
.dl dt { font-weight: 600; letter-spacing: .28em; font-size: 10.5px; color: var(--mute); padding-top: 4px; text-transform: uppercase }
.dl dd { margin: 0; font-size: 18px }

.top .menu-btn { display: none }
@media (max-width: 1060px) {
  .nav { display: none }
  .top .menu-btn { display: inline-flex; min-height: 44px; padding: 0 16px; font-size: 11px }
  .nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 88px; background: var(--paper); border-bottom: 1px solid var(--sep); padding: 8px 28px 18px }
  .nav.open a { padding: 14px 0; border-top: 1px solid var(--sep) }
  .wrap { padding: 0 26px }
  .sec { padding: 72px 0 }
  .brand { font-size: 34px }
}
@media (max-width: 560px) {
  body { font-size: 18px }
  .frame { inset: 8px }
  .card { padding: 24px 22px }
  .hero .photo { height: min(58vh, 520px) }
  .timeline li { grid-template-columns: 64px 18px minmax(0, 1fr); gap: 0 10px }
  .timeline .time { font-size: 15px; letter-spacing: .06em; text-align: left }
  .timeline .what { font-size: 19px }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important } }
