/* ======================================================================
   DVD Donji Desinec — Heritage civic editorial
   Display: Fraunces · Body: Newsreader · via Bunny Fonts (GDPR friendly)
   ====================================================================== */

:root {
  /* Palette */
  --paper:        #f1e7cf;
  --paper-warm:   #ede0bf;
  --paper-deep:   #e3d3a6;
  --ink:          #1b1410;
  --ink-soft:     #3b322a;
  --ink-mute:     #6b5e50;
  --rule:         #2a2018;
  --red:          #a82b1f;
  --red-deep:     #7a1f17;
  --ember:        #d0532a;
  --brass:        #a37a3a;
  --brass-light:  #c39d57;
  --cream-rule:   rgba(27, 20, 16, .14);

  /* Type */
  --f-display: 'Fraunces', 'Times New Roman', Times, serif;
  --f-body:    'Newsreader', Georgia, serif;

  /* Spacing */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Easing */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote {
  margin: 0; padding: 0;
}
ol, ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

/* ---------- Base ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: clamp(16px, 1.05vw + .85rem, 18.5px);
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "onum", "pnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Body texture: faint warm gradient + paper grain (handled by .grain) */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(195, 157, 87, .18), transparent 60%),
    radial-gradient(1000px 700px at -10% 110%, rgba(168, 43, 31, .07), transparent 55%);
  z-index: 0;
}

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch' seed='7'/><feColorMatrix values='0 0 0 0 0.10 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

main, header, footer { position: relative; z-index: 2; }

::selection { background: var(--red); color: var(--paper); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: .65em 1em; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  letter-spacing: -0.01em;
  line-height: .98;
  color: var(--ink);
}
.display em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  color: var(--red);
  font-weight: 500;
}
.num {
  font-family: var(--f-display);
  font-feature-settings: "lnum", "tnum";
  letter-spacing: -0.02em;
}
.placeholder { color: var(--ink-mute); }

.eyebrow {
  font-family: var(--f-body);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .85em;
}
.eyebrow-rule {
  display: inline-block;
  width: 2.4em; height: 1px;
  background: currentColor;
  opacity: .65;
}

.lede {
  font-size: clamp(1.05rem, .55vw + .95rem, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38em;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ======================================================================
   HEADER
   ====================================================================== */
.site-header {
  position: sticky; top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border-bottom: 1px solid var(--cream-rule);
}
.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: .85rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .85rem;
  text-decoration: none; color: var(--ink);
}
.brand-mark {
  width: 40px; height: 40px;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.05));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-line-1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.005em;
}
.brand-line-2 {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
  font-feature-settings: "smcp";
}

.nav-list {
  display: flex; align-items: center; gap: 1.6rem;
}
.nav-list a {
  text-decoration: none;
  font-size: .95rem;
  color: var(--ink-soft);
  position: relative;
  padding: .25rem 0;
  transition: color .25s var(--ease-out);
}
.nav-list a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-list a:hover, .nav-list a:focus-visible { color: var(--ink); }
.nav-list a:hover::after, .nav-list a:focus-visible::after { transform: scaleX(1); }

.nav-cta a {
  background: var(--ink);
  color: var(--paper);
  padding: .55rem 1.1rem;
  border-radius: 999px;
  letter-spacing: .04em;
  transition: background .25s var(--ease-out), color .25s var(--ease-out);
}
.nav-cta a::after { display: none; }
.nav-cta a:hover { background: var(--red); color: var(--paper); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle-bar {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform .25s var(--ease-out), opacity .25s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ======================================================================
   HERO
   ====================================================================== */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 7rem) var(--gutter) clamp(3.5rem, 8vw, 6rem);
  max-width: var(--container);
  margin: 0 auto;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-text { max-width: 38rem; }

.display.reveal,
h1.display {
  font-size: clamp(2.6rem, 6.2vw + .5rem, 5.6rem);
  margin-top: 1.2rem;
}

.hero-text .lede {
  margin-top: 1.6rem;
}

.hero-actions {
  display: flex; gap: .9rem; flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: .98rem;
  letter-spacing: .02em;
  transition: transform .25s var(--ease-out), background .25s var(--ease-out), color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(0,0,0,.1), 0 8px 20px -10px rgba(0,0,0,.3);
}
.btn-primary:hover {
  background: var(--red);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.hero-meta {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2rem;
  border-top: 1px solid var(--cream-rule);
  padding-top: 1.4rem;
  max-width: 32rem;
}
.hero-meta div { display: flex; flex-direction: column; gap: .15rem; }
.hero-meta dt {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-meta dd {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
}

/* Hero crest */
.hero-crest {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 480px;
}
.crest-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  padding: 8%;
}
.crest-frame::before,
.crest-frame::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.crest-frame::before {
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.55), rgba(195,157,87,.05) 55%, transparent 75%);
}
.crest-frame::after {
  border: 1px solid rgba(163, 122, 58, .35);
  inset: 4%;
  box-shadow:
    inset 0 0 0 1px rgba(163, 122, 58, .18),
    0 30px 80px -40px rgba(0,0,0,.45);
}
.crest-frame img {
  width: 100%; height: auto;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,.18));
  animation: crestIn 1.2s var(--ease-out) both;
}
.hero-crest figcaption {
  margin-top: 1rem;
  text-align: center;
  font-style: italic;
  font-size: .85rem;
  color: var(--ink-mute);
}

@keyframes crestIn {
  from { opacity: 0; transform: scale(.94) rotate(-2deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}

/* Hero watermark "1929" */
.hero-watermark {
  position: absolute;
  left: 50%;
  bottom: -2.5rem;
  transform: translateX(-50%);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(11rem, 32vw, 28rem);
  line-height: .8;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: .035;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

/* ======================================================================
   FLEURON DIVIDER
   ====================================================================== */
.fleuron {
  display: flex; justify-content: center;
  color: var(--brass);
  padding: 1rem var(--gutter);
  opacity: .85;
}
.fleuron svg { width: clamp(180px, 30vw, 280px); height: auto; }

/* ======================================================================
   SECTION HEAD
   ====================================================================== */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.4rem;
  row-gap: .35rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  align-items: end;
}
.section-numeral {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2rem, 3vw + .5rem, 3rem);
  color: var(--red);
  line-height: 1;
  grid-row: 1 / span 2;
  align-self: start;
  padding-top: .15em;
}
.section-head h2 {
  font-size: clamp(2.1rem, 4vw + .5rem, 3.6rem);
  grid-column: 2;
}
.section-sub {
  grid-column: 2;
  font-style: italic;
  color: var(--ink-mute);
  font-size: 1.1rem;
}
.section-head--dark .section-numeral { color: var(--brass-light); }
.section-head--dark h2 { color: var(--paper); }
.section-head--dark .section-sub { color: rgba(241, 231, 207, .65); }

/* ======================================================================
   ABOUT
   ====================================================================== */
.about {
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.about-body {
  max-width: 36rem;
  margin-left: clamp(0px, 6vw, 4.5rem);
}
.about-body p {
  margin-top: 1.25em;
  font-size: 1.1rem;
}
.about-body p:first-child { margin-top: 0; }

.dropcap {
  float: left;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 4.6em;
  line-height: .82;
  padding-right: .12em;
  padding-top: .04em;
  color: var(--red);
  font-variation-settings: "SOFT" 30;
}

/* ======================================================================
   MISSION
   ====================================================================== */
.mission {
  background: var(--paper-warm);
  border-top: 1px solid var(--cream-rule);
  border-bottom: 1px solid var(--cream-rule);
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  position: relative;
}
.mission::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(195,157,87,.06), transparent 35%, transparent 70%, rgba(168,43,31,.04));
  pointer-events: none;
}
.mission-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--cream-rule);
  border-left: 1px solid var(--cream-rule);
}
.mission-item {
  padding: 2rem 1.75rem 2.25rem;
  border-right: 1px solid var(--cream-rule);
  border-bottom: 1px solid var(--cream-rule);
  background: transparent;
  position: relative;
  transition: background .35s var(--ease-out);
}
.mission-item:hover { background: rgba(255, 250, 230, .35); }
.mission-num {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: .95rem;
  letter-spacing: .14em;
  color: var(--brass);
}
.mission-item h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.1;
  margin-top: .9rem;
  letter-spacing: -0.005em;
}
.mission-item p {
  margin-top: .75rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

/* ======================================================================
   LEDGER (U brojkama)
   ====================================================================== */
.ledger {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}
.ledger::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 600px at 80% 20%, rgba(195,157,87,.13), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(168,43,31,.12), transparent 55%);
  pointer-events: none;
}
.ledger .container { position: relative; z-index: 1; }

.ledger-rows {
  display: flex; flex-direction: column;
  gap: 0;
}
.ledger-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 1.4rem 0;
  position: relative;
  gap: 1.5rem;
}
.ledger-row + .ledger-row {
  border-top: 1px dashed rgba(241, 231, 207, .18);
}
.ledger-row dt {
  font-family: var(--f-body);
  font-style: italic;
  color: rgba(241, 231, 207, .7);
  font-size: 1.05rem;
}
.ledger-label {
  font-style: italic;
  letter-spacing: .01em;
}
.ledger-row dd {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  color: var(--paper);
  font-feature-settings: "lnum", "tnum";
  font-variation-settings: "SOFT" 30, "opsz" 144;
}
.ledger-row dd.placeholder { color: var(--brass); opacity: .7; }

/* ======================================================================
   NEWS
   ====================================================================== */
.news {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}
.news-list {
  border-top: 1px solid var(--cream-rule);
  margin-top: 1rem;
}
.news-item {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 2.2rem 0 2.4rem;
  border-bottom: 1px solid var(--cream-rule);
  position: relative;
  transition: background .3s var(--ease-out);
}
.news-item:hover {
  background: linear-gradient(90deg, transparent, rgba(195,157,87,.08), transparent);
}
.news-date {
  display: flex; flex-direction: column;
  font-family: var(--f-display);
  line-height: 1;
}
.news-day {
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  font-weight: 600;
  color: var(--red);
  letter-spacing: -0.02em;
}
.news-month {
  margin-top: .4rem;
  font-size: .95rem;
  font-style: italic;
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.news-year {
  font-size: .82rem;
  color: var(--ink-mute);
  margin-top: .15rem;
  letter-spacing: .04em;
}
.news-kicker {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
}
.news-body h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 1.5vw + .7rem, 1.9rem);
  margin-top: .35rem;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.news-body p {
  margin-top: .7rem;
  color: var(--ink-soft);
}
.news-more {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  color: var(--red);
  font-style: italic;
  font-size: .98rem;
}
.news-more:hover { color: var(--red-deep); }
.news-more span {
  display: inline-block;
  transition: transform .25s var(--ease-out);
}
.news-more:hover span { transform: translateX(4px); }

/* ======================================================================
   JOIN
   ====================================================================== */
.join {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  border-top: 1px solid var(--cream-rule);
  border-bottom: 1px solid var(--cream-rule);
  position: relative;
}
.join-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.join-text .section-numeral {
  display: block;
  margin-bottom: .5rem;
}
.join-text h2 {
  font-size: clamp(2.4rem, 4vw + .5rem, 4rem);
  max-width: 14ch;
}
.join-text > p {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 38em;
}
.join-tracks {
  margin-top: 1.5rem;
  border-left: 2px solid var(--red);
  padding-left: 1.25rem;
}
.join-tracks li {
  padding: .55rem 0;
  font-size: 1rem;
}
.join-tracks strong {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--ink);
}

.join-quote {
  background: var(--ink);
  color: var(--paper);
  padding: 2.4rem 2rem 2rem;
  position: relative;
  box-shadow:
    0 1px 0 rgba(0,0,0,.1),
    0 30px 60px -30px rgba(0,0,0,.45);
}
.join-quote::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid rgba(195,157,87,.28);
  pointer-events: none;
}
.join-quote blockquote p {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 1.5vw + .8rem, 1.7rem);
  line-height: 1.3;
  color: var(--paper);
}
.join-quote-attrib {
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--brass-light);
  font-size: .95rem;
  letter-spacing: .02em;
}

/* ======================================================================
   CONTACT
   ====================================================================== */
.contact {
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(4rem, 9vw, 7rem);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.contact-card {
  background: var(--paper-warm);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--cream-rule);
  position: relative;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.18);
}
.contact-card h3 {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: .8rem;
}
.contact-card p, .contact-card address {
  font-family: var(--f-display);
  font-style: normal;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--ink);
}
.contact-card address { font-style: normal; }
.contact-card a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--red);
  transition: color .25s;
}
.contact-card a:hover { color: var(--red); }
.contact-note {
  font-family: var(--f-body) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: .9rem !important;
  color: var(--ink-mute) !important;
  margin-top: .5rem !important;
}
.contact-card--emergency {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red-deep);
}
.contact-card--emergency h3 { color: rgba(241, 231, 207, .8); }
.contact-card--emergency .emergency-number {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--paper);
  letter-spacing: -0.02em;
}
.contact-card--emergency .contact-note {
  color: rgba(241, 231, 207, .8) !important;
}

/* ======================================================================
   FOOTER
   ====================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(241, 231, 207, .82);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  opacity: .4;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.footer-brand img { filter: drop-shadow(0 2px 0 rgba(0,0,0,.4)); }
.footer-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--paper);
  line-height: 1.25;
}
.footer-est {
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
}
.footer-nav h2, .footer-meta h2 {
  font-family: var(--f-body);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  margin-bottom: 1rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a {
  text-decoration: none;
  color: rgba(241, 231, 207, .82);
  transition: color .25s;
}
.footer-nav a:hover { color: var(--paper); }
.footer-meta a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(195,157,87,.4);
}
.footer-meta a:hover { color: var(--brass-light); }
.footer-meta strong { color: var(--red); font-family: var(--f-display); font-weight: 700; font-size: 1.05em; }

.footer-colophon {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(241, 231, 207, .18);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem;
  color: rgba(241, 231, 207, .55);
  font-style: italic;
}

/* ======================================================================
   REVEAL ANIMATIONS
   ====================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero stagger on page load */
.hero .reveal { transition-delay: calc(80ms * (var(--d, 0)) + 100ms); }
.hero .reveal[data-delay="0"] { --d: 0; }
.hero .reveal[data-delay="1"] { --d: 1; }
.hero .reveal[data-delay="2"] { --d: 2; }
.hero .reveal[data-delay="3"] { --d: 3; }
.hero .reveal[data-delay="4"] { --d: 4; }

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-crest {
    grid-row: 1;
    justify-self: center;
    max-width: 280px;
  }
  .hero-crest figcaption { display: none; }
  .hero-text { margin-top: 1rem; }

  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--cream-rule);
    padding: .5rem var(--gutter) 1rem;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.18);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease-out), opacity .2s var(--ease-out);
  }
  .nav-list.open {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .nav-list li { padding: .25rem 0; }
  .nav-list a { padding: .65rem 0; font-size: 1.05rem; display: block; }
  .nav-list a::after { display: none; }
  .nav-cta a { display: inline-block; margin-top: .5rem; }

  .join-grid {
    grid-template-columns: 1fr;
  }
  .section-head { grid-template-columns: 1fr; }
  .section-numeral { grid-row: auto; }
  .section-head h2, .section-sub { grid-column: 1; }

  .news-item { grid-template-columns: 1fr; gap: 1rem; }
  .news-date { flex-direction: row; align-items: baseline; gap: .75rem; }
  .news-day { font-size: 2.4rem; }
  .news-month { margin-top: 0; }
  .news-year { margin-top: 0; }

  .footer-grid { grid-template-columns: 1fr; }
  .about-body { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Print */
@media print {
  .site-header, .site-footer, .hero-watermark, .grain, .nav-toggle { display: none; }
  body { background: white; color: black; }
  body::before { display: none; }
}

/* ======================================================================
   FORM PAGE  (pristupnica.html, clanarina.html)
   ====================================================================== */
.page-form .site-header { border-bottom: 1px solid var(--cream-rule); }

.form-page {
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

/* Hero-lite header for form pages */
.form-hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}
.form-hero .display {
  font-size: clamp(2.4rem, 5vw + .5rem, 4.4rem);
  margin-top: 1.1rem;
  max-width: 18ch;
}
.form-hero .lede {
  margin-top: 1.6rem;
  max-width: 42em;
}
.form-meta {
  margin-top: 1.8rem;
  display: inline-flex; align-items: baseline; gap: .85rem;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-top: 1px solid var(--cream-rule);
  border-bottom: 1px solid var(--cream-rule);
  padding: .55rem 0;
}
.form-meta .num {
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--brass);
  text-transform: none;
  font-feature-settings: "lnum", "tnum";
}

/* Paper form sheet */
.form-section { padding: clamp(2rem, 5vw, 4rem) 0; }
.form-container { max-width: 780px; }

.paper-form {
  background: var(--paper-warm);
  border: 1px solid var(--cream-rule);
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1.4rem, 4vw, 3rem);
  position: relative;
  box-shadow:
    0 1px 0 rgba(0,0,0,.04),
    0 30px 80px -40px rgba(0,0,0,.25);
}
.paper-form::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(163, 122, 58, .22);
  pointer-events: none;
}
.paper-form > * { position: relative; }

.paper-form-h {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 1.5vw + .8rem, 1.9rem);
  letter-spacing: -0.005em;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cream-rule);
}

/* Fieldsets as form sections */
.paper-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 2.4rem;
}
.paper-fieldset + .paper-fieldset {
  padding-top: 1.8rem;
  border-top: 1px dashed var(--cream-rule);
}
.paper-fieldset legend {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 1.2rem;
  padding: 0;
  display: flex;
  align-items: baseline;
  gap: .65rem;
}
.paper-numeral {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
  font-size: 1.05rem;
}
.fieldset-note {
  margin-top: -.5rem;
  margin-bottom: 1rem;
  font-style: italic;
  font-size: .92rem;
  color: var(--ink-mute);
}

/* Field rows */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.4rem;
  margin-bottom: 1.1rem;
}
.field-row:last-child { margin-bottom: 0; }
.field { display: flex; flex-direction: column; }
.field-wide { grid-column: 1 / -1; }
.field-narrow { max-width: 220px; }

.field label {
  font-family: var(--f-body);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: .45rem;
}
.req { color: var(--red); font-weight: 600; }

/* Inputs */
.paper-form input[type="text"],
.paper-form input[type="email"],
.paper-form input[type="tel"],
.paper-form input[type="date"],
.paper-form input[type="number"],
.paper-form select,
.paper-form textarea {
  font: inherit;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: .55rem .15rem .5rem;
  width: 100%;
  border-radius: 0;
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.paper-form input::placeholder,
.paper-form textarea::placeholder {
  color: var(--ink-mute);
  font-style: italic;
}
.paper-form input:hover,
.paper-form select:hover,
.paper-form textarea:hover {
  border-bottom-color: var(--brass);
}
.paper-form input:focus-visible,
.paper-form select:focus-visible,
.paper-form textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--red);
  background: color-mix(in srgb, var(--paper) 60%, white 40%);
}
.paper-form input:invalid:not(:placeholder-shown),
.paper-form input[aria-invalid="true"] {
  border-bottom-color: var(--red-deep);
}
.paper-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 1.05em,
    calc(100% - 8px) 1.05em;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.field-help {
  font-size: .78rem;
  font-style: italic;
  color: var(--ink-mute);
  margin-top: .3rem;
}

/* Radio cards */
.radio-stack {
  display: grid;
  gap: .65rem;
}
.radio-card {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: .95rem 1rem;
  background: var(--paper);
  border: 1px solid var(--cream-rule);
  cursor: pointer;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out), transform .2s var(--ease-out);
}
.radio-card:hover { border-color: var(--brass); }
.radio-card input[type="radio"] {
  margin-top: .35rem;
  accent-color: var(--red);
  width: 1.05rem; height: 1.05rem;
  flex-shrink: 0;
}
.radio-card-body { display: flex; flex-direction: column; }
.radio-card-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.radio-card-sub {
  font-size: .92rem;
  color: var(--ink-soft);
  margin-top: .15rem;
  line-height: 1.4;
}
.radio-card:has(input:checked) {
  border-color: var(--red);
  background: color-mix(in srgb, var(--paper) 70%, white 30%);
  box-shadow: inset 3px 0 0 0 var(--red);
}

/* Checkbox lines (consents) */
.check-line {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: .55rem 0;
  font-size: .98rem;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}
.check-line + .check-line {
  border-top: 1px dashed var(--cream-rule);
}
.check-line input[type="checkbox"] {
  margin-top: .25rem;
  accent-color: var(--red);
  width: 1.05rem; height: 1.05rem;
  flex-shrink: 0;
}
.check-line em { color: var(--ink-mute); font-style: italic; }

/* Honeypot — hidden from humans */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Turnstile mount */
.turnstile-mount {
  margin: 1.4rem 0 .5rem;
  min-height: 0;
}
.turnstile-mount:empty { display: none; }

/* Submit area */
.form-actions {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--cream-rule);
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
}
.form-actions .btn { padding: 1rem 1.9rem; font-size: 1.02rem; }
.form-actions-note {
  font-size: .85rem;
  color: var(--ink-mute);
  font-style: italic;
}
.form-actions-note .req { font-style: normal; }

.form-fine {
  margin-top: 1.4rem;
  font-size: .85rem;
  color: var(--ink-mute);
  font-style: italic;
  line-height: 1.55;
}

/* Submitting / disabled */
.paper-form.is-submitting { opacity: .7; pointer-events: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Success / error blocks */
.form-success {
  background: var(--paper-warm);
  border: 1px solid var(--cream-rule);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.4rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.25);
}
.form-success::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid rgba(163, 122, 58, .22);
  pointer-events: none;
}
.form-success-numeral {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--red);
  margin-bottom: 1rem;
}
.form-success .display {
  font-size: clamp(2rem, 3vw + .6rem, 3rem);
  margin-bottom: 1rem;
}
.form-success p { margin-top: .85rem; color: var(--ink-soft); }
.form-success-next {
  font-style: italic;
  font-size: 1.05rem;
}
.form-success-next a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
}
.form-success-next a:hover { color: var(--red-deep); }
.form-success .btn { margin-top: 1.5rem; }

.form-error {
  margin-bottom: 1.4rem;
  padding: 1rem 1.2rem;
  background: color-mix(in srgb, var(--red) 8%, var(--paper-warm));
  border: 1px solid var(--red);
  border-left-width: 4px;
  color: var(--red-deep);
  font-family: var(--f-body);
  font-size: .98rem;
  line-height: 1.45;
}

/* Responsive */
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .field-narrow { max-width: none; }
  .paper-form { padding: 1.4rem 1.2rem; }
  .paper-form::before { inset: 6px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }
}
