/* milkovic.eu — IvyPay consulting. Fraunces + IBM Plex Sans. */
:root {
  --paper: #f3efe6;
  --paper-2: #e8e2d4;
  --ink: #141210;
  --mute: #5c564e;
  --rule: #cfc6b8;
  --accent: #9b1b2e;
  --accent-hover: #6e1320;
  --hero: #12100e;
  --hero-ink: #f3efe6;
  --hero-mute: #b7aea0;
  --wrap: 66rem;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

@media (min-width: 800px) {
  .wrap { width: min(100% - 3.5rem, var(--wrap)); }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  min-height: 3.75rem;
  padding-block: 0.55rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.wordmark:hover { color: var(--ink); }
.wordmark-mark {
  width: 0.35rem;
  height: 1.2rem;
  background: var(--accent);
  flex-shrink: 0;
}
.wordmark-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
}
.nav a {
  color: var(--mute);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav a:hover { color: var(--accent); }

.lang {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.lang span { color: var(--rule); }
.lang .on {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.1rem;
}
.lang .off {
  color: var(--mute);
  text-decoration: none;
}
.lang .off:hover { color: var(--ink); }

/* Hero */
.hero {
  background: var(--hero);
  color: var(--hero-ink);
  padding: 4.5rem 0 5rem;
  border-bottom: 3px solid var(--accent);
}
.hero-inner { max-width: 40rem; }
.eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hero-mute);
}
.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero-lead {
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.5;
  color: #e2dbd0;
  max-width: 36rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 1.4rem;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.btn-solid {
  background: var(--accent);
  color: #faf4f0;
  border: 1px solid var(--accent);
}
.btn-solid:hover {
  background: #a82236;
  color: #fff;
  border-color: #a82236;
}
.btn-ghost {
  background: transparent;
  color: var(--hero-ink);
  border: 1px solid #5a5348;
}
.btn-ghost:hover {
  border-color: var(--hero-ink);
  color: var(--hero-ink);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.hero-cred {
  margin: 1.5rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid #3a3530;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-mute);
  line-height: 1.55;
  max-width: 36rem;
}

/* Sections */
.block { padding: 4.25rem 0; }
.block-tint {
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
}
.kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.block h2 {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.section-lead {
  margin: 0 0 2rem;
  color: var(--mute);
  max-width: 34rem;
  font-size: 0.98rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: minmax(12rem, 16rem) 1fr;
    gap: 3rem;
  }
}
.about-photo {
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(12%) contrast(1.02);
}
.about-photo figcaption {
  padding: 0.55rem 0.75rem;
  font-size: 0.72rem;
  color: var(--mute);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--rule);
}
.about-copy p {
  margin: 0 0 1rem;
  max-width: 40rem;
}
.about-copy p:last-of-type { margin-bottom: 0; }
.ledger {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  max-width: 40rem;
}
.ledger li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}
.ledger li:last-child { border-bottom: 1px solid var(--rule); }
.ledger .when {
  color: var(--mute);
  white-space: nowrap;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Services — 4 cards */
.cards {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.45rem 1.3rem 1.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 100%;
}
.card-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  font-size: 0.95rem;
}
.card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.card p {
  margin: 0;
  color: var(--mute);
  font-size: 0.94rem;
  flex: 1;
}

/* Proof / references — verified facts */
.refs {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .refs { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .refs { grid-template-columns: repeat(4, 1fr); }
}
.ref {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 1.35rem 1.2rem;
  min-height: 9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ref-meta {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.ref h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.ref p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--mute);
  flex: 1;
}
.ref a.ref-link {
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  width: fit-content;
  padding-bottom: 0.1rem;
}
.ref a.ref-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.ref.ref-muted {
  border-style: dashed;
  background: color-mix(in srgb, var(--paper) 70%, white);
}
.ph {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
}

/* Media & events */
.media-feature {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  align-items: start;
}
@media (min-width: 800px) {
  .media-feature {
    grid-template-columns: minmax(16rem, 1.15fr) 1fr;
    gap: 2.25rem;
  }
}
.media-copy h3 {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.media-copy p {
  margin: 0 0 0.85rem;
  color: var(--mute);
  font-size: 0.95rem;
  max-width: 34rem;
}
.media-copy p:last-child { margin-bottom: 0; }
.media-tag {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Click-to-load YouTube facade */
.yt-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--hero);
  border: 1px solid var(--rule);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
}
.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}
.yt-facade:hover img,
.yt-facade:focus-visible img { opacity: 1; }
.yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.yt-play span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: #faf4f0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.yt-play svg { width: 1.15rem; height: 1.15rem; margin-left: 0.12rem; }
.yt-facade.is-playing { cursor: default; }
.yt-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.press {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  max-width: 48rem;
}
.press li {
  border-bottom: 1px solid var(--rule);
  padding: 0.95rem 0;
}
.press a {
  display: grid;
  gap: 0.25rem 1rem;
  text-decoration: none;
  color: inherit;
}
@media (min-width: 640px) {
  .press a {
    grid-template-columns: 8.5rem 5.5rem 1fr;
    align-items: baseline;
  }
}
.press .outlet {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.press .when {
  font-size: 0.82rem;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}
.press .headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ink);
}
.press a:hover .headline { color: var(--accent); }

/* Activities — compact registry list */
.activities {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 1;
  column-gap: 2.5rem;
  max-width: 52rem;
}
@media (min-width: 720px) {
  .activities { columns: 2; }
}
.activities li {
  break-inside: avoid;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--mute);
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
}
.activities .n {
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  min-width: 1.4rem;
  flex-shrink: 0;
}
.activities .primary { color: var(--ink); }

/* Company letterhead */
.letterhead {
  border: 1px solid var(--ink);
  padding: 1.6rem 1.4rem;
  background: var(--paper);
  max-width: 42rem;
}
.letterhead h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.letterhead .addr {
  margin: 0 0 1.15rem;
  color: var(--mute);
}
.facts {
  margin: 0;
  display: grid;
  gap: 0;
}
.facts div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.facts dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.facts dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.facts dd a {
  color: var(--ink);
  text-decoration: none;
}
.facts dd a:hover { color: var(--accent); }
.contract-note {
  margin: 1.25rem 0 0;
  color: var(--mute);
  font-size: 0.95rem;
  max-width: 42rem;
}

/* Contact */
.contact {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.6vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.65rem;
  width: fit-content;
  max-width: 100%;
  word-break: break-word;
}
.contact a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 3px solid var(--accent);
  background: var(--hero);
  color: var(--hero-mute);
  padding: 1.25rem 0;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
}
.site-footer p { margin: 0; }
.site-footer a {
  color: #8d8578;
  text-decoration: none;
  font-size: 0.78rem;
}
.site-footer a:hover { color: var(--hero-ink); }

@media (max-width: 520px) {
  .hero-cta .btn { width: 100%; }
  .nav { width: 100%; }
  .facts div { grid-template-columns: 1fr; gap: 0.15rem; }
}
