/* DJ MOSTAR Blog. Fonts are self-hosted. Colours follow the main site. */

@font-face { font-family: "Oswald"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/oswald-700.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/playfair-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-style: italic; font-display: swap; src: url("/assets/fonts/playfair-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/roboto-400.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/roboto-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/roboto-500.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/roboto-700.woff2") format("woff2"); }

:root {
  --black: #0a0a0a;
  --pure-black: #000;
  --gold: #c9a55c;          /* on black only */
  --gold-on-cream: #7a5f22; /* text on cream, 5.16:1 */
  --cream: #f3ede1;
  --beige: #e8d7a8;
  --ink: #141414;
  --ink-soft: #333;
  --white: #fff;
  --muted-on-black: #bdb8ad;
  --rule-on-cream: #d5c9b1;
  --rule-on-black: #4a4436;
  --whatsapp: #25d366;

  --headline: "Oswald", "Arial Narrow", Impact, sans-serif;
  --accent: "Playfair Display", Georgia, serif;
  --body: "Roboto", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --page: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--black); color: var(--white); font: 400 1.0625rem/1.65 var(--body); overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.section--cream :focus-visible { outline-color: var(--gold-on-cream); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 30; padding: 10px 16px; background: var(--gold); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 8px; }

/* Buttons and pills */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 4px; font: 700 .95rem/1.25 var(--body); letter-spacing: .04em; text-align: center; text-decoration: none; text-transform: uppercase; }
.button--gold { background: var(--gold); color: var(--ink); }
.button--gold:hover { background: #d4b26a; }
.button--whatsapp { background: var(--whatsapp); color: var(--ink); }
.button--whatsapp:hover { background: #3ee07c; }
.button--small { min-height: 42px; padding: 8px 18px; font-size: .85rem; }

.pill { display: inline-block; padding: 4px 11px; border-radius: 3px; background: var(--beige); color: var(--ink); font: 500 .75rem/1.4 var(--body); letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
a.pill:hover { background: #dfc98e; }
.pill--active { background: var(--ink); color: var(--white); }
a.pill--active:hover { background: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--pure-black); }
.site-header__bar { display: flex; align-items: center; gap: 12px; max-width: var(--page); min-height: 68px; margin: 0 auto; padding: 8px var(--gutter); }
.site-header__logo { flex: none; margin-right: auto; }
.site-header__logo img { width: 112px; height: auto; }
.nav a { color: var(--white); text-decoration: none; }
.nav a:hover { color: var(--gold); }
.nav a.is-active { color: var(--gold); font-weight: 500; }
.nav--desktop a.is-active { box-shadow: 0 2px 0 var(--gold); }
.nav--desktop { display: none; gap: 26px; margin: 0 auto; font-size: .95rem; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--white); border-radius: 6px; color: var(--white); }
.social a:hover { border-color: var(--gold); color: var(--gold); }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.social--header { display: none; }
.social--header a { width: 36px; height: 36px; }

.nav-mobile summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; cursor: pointer; list-style: none; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile__icon { display: grid; gap: 5px; width: 24px; }
.nav-mobile__icon i { display: block; height: 2px; background: var(--white); }
.nav-mobile[open] .nav-mobile__icon i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile[open] .nav-mobile__icon i:nth-child(2) { opacity: 0; }
.nav-mobile[open] .nav-mobile__icon i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav--mobile { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 4px var(--gutter) 16px; background: var(--pure-black); border-top: 1px solid var(--rule-on-black); }
.nav--mobile a { padding: 13px 0; border-bottom: 1px solid #242424; }

@media (min-width: 900px) {
  .nav--desktop { display: flex; }
  .nav-mobile { display: none; }
  .site-header__logo { margin-right: 0; }
  .site-header__bar { gap: 24px; }
}
@media (min-width: 1140px) { .social--header { display: flex; } }

/* Hero */
.hero { position: relative; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; background: var(--black); }
.hero__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero:has(.hero__image)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .8) 65%, rgba(10, 10, 10, .94)); }
.hero__inner { width: 100%; max-width: var(--page); margin: 0 auto; padding: 72px var(--gutter) 64px; }
.hero--index { min-height: clamp(420px, 62vh, 620px); }
.hero--article { min-height: clamp(480px, 70vh, 700px); }
.hero--article .hero__inner { padding-bottom: 84px; }

.breadcrumb { margin-bottom: 14px; color: #e9e4d8; font-size: .875rem; }
.breadcrumb a { text-underline-offset: 3px; }

.hero__title { margin: 0; color: var(--white); font: 700 clamp(2.25rem, 7vw, 4rem)/1.12 var(--headline); letter-spacing: .01em; text-transform: uppercase; }
.hero__title--article { max-width: 24ch; margin-top: 16px; font-size: clamp(2rem, 5.6vw, 3.5rem); }
.hero__subline { margin: 12px 0 0; color: var(--white); font: 700 clamp(1rem, 2.2vw, 1.375rem)/1.4 var(--headline); }
.hero__subline--article { max-width: 44rem; font-size: clamp(1.0625rem, 2vw, 1.25rem); }
.hero__rule { margin: 26px 0 22px; border: 0; border-top: 2px solid var(--white); }
.hero__lead { max-width: 34rem; margin: 0; color: var(--white); font-size: 1.0625rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 18px 0 0; color: #e9e4d8; font-size: .9rem; }
.hero__credit { position: absolute; right: var(--gutter); bottom: 14px; left: var(--gutter); margin: 0; color: #e9e4d8; font-size: .75rem; text-align: right; }

/* Sections */
.section { padding: clamp(48px, 8vw, 88px) var(--gutter); }
.section--cream { background: var(--cream); color: var(--ink-soft); }
.section--black { background: var(--black); color: var(--white); }
.section--faq { padding-top: 0; }
.section--note { padding-top: 0; }

/* Accent words in headlines */
h2 em { color: var(--gold-on-cream); font-family: var(--accent); font-style: italic; font-weight: 700; letter-spacing: 0; text-transform: none; }
.section--black h2 em { color: var(--gold); }

/* Blog index */
.listing { max-width: var(--page); margin: 0 auto; }
.listing__title { margin: 0; color: var(--ink); font: 700 clamp(2rem, 5vw, 3rem)/1.15 var(--headline); }
.listing__empty { margin: 32px 0 0; font-size: 1.125rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 40px; }

.cards { display: grid; gap: 44px 32px; }
.card { min-width: 0; }
.card__media { margin: 0; }
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #d8cfbd; }
.card__media figcaption { margin-top: 6px; color: var(--ink-soft); font-size: .72rem; }
.card__body { margin-top: 14px; }
.card__title { margin: 12px 0 8px; color: var(--ink); font: 700 clamp(1.375rem, 3vw, 1.625rem)/1.25 var(--headline); }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--gold-on-cream); }
.card__excerpt { margin: 0 0 12px; }
.card__more { color: var(--gold-on-cream); font-weight: 700; text-decoration: none; }
.card__more:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card--lead { grid-column: 1 / -1; } }
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card--lead { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 36px; align-items: center; }
  .card--lead .card__body { margin-top: 0; }
  .card--lead .card__title { font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.12; }
}

.pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule-on-cream); font-size: .95rem; }
.pagination a { color: var(--gold-on-cream); font-weight: 700; }
.pagination a[rel="next"] { text-align: right; }

/* Article */
.prose { max-width: 720px; margin: 0 auto; color: var(--ink-soft); font-size: 1.125rem; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25em; }
.prose h2 { position: relative; margin: 2.2em 0 .7em; padding-top: 18px; color: var(--ink); font: 700 clamp(1.75rem, 4.4vw, 2.375rem)/1.2 var(--headline); }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 64px; height: 4px; background: var(--gold); }
.prose h3 { margin: 1.8em 0 .5em; color: var(--ink); font: 700 clamp(1.25rem, 3vw, 1.5rem)/1.3 var(--headline); }
.prose a { color: var(--gold-on-cream); font-weight: 500; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold-on-cream); }
.prose strong { color: var(--ink); }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; background: #d8cfbd; }
.prose figcaption { margin-top: 8px; color: var(--ink-soft); font-size: .8rem; }

/* FAQ, in the style of the /hochzeit page */
.faq { display: grid; gap: 24px; max-width: var(--page); margin: 0 auto; padding-top: clamp(32px, 6vw, 64px); border-top: 1px solid var(--rule-on-cream); }
.faq__title { margin: 0; color: var(--ink); font: 700 clamp(2rem, 5vw, 3rem)/1.2 var(--headline); }
.faq__title em { color: var(--ink); background: linear-gradient(transparent 58%, var(--beige) 58%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.faq__item { padding: 22px 0; border-top: 1px solid var(--rule-on-cream); }
.faq__item h3 { margin: 0 0 8px; color: var(--ink); font: 700 1.25rem/1.3 var(--headline); }
.faq__item p { margin: 0; }
@media (min-width: 900px) { .faq { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 48px; } }

.ai-note { max-width: 720px; margin: 0 auto; color: var(--ink-soft); font-size: .875rem; font-style: italic; }

/* Call to action */
.cta__inner { max-width: var(--page); margin: 0 auto; }
.cta__title { margin: 0; color: var(--white); font: 700 clamp(2rem, 5.5vw, 3.5rem)/1.2 var(--headline); }
.cta__rule { margin: 24px 0 0; border: 0; border-top: 1px solid var(--gold); }
.cta__text { max-width: 36rem; margin: 18px 0 0; color: var(--muted-on-black); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 480px) { .cta__actions .button { width: 100%; } }

/* Footer */
.site-footer { padding: 56px var(--gutter) 24px; background: var(--pure-black); color: var(--muted-on-black); font-size: .95rem; }
.site-footer__inner { display: grid; gap: 36px; max-width: var(--page); margin: 0 auto; }
.site-footer__brand img { width: 170px; height: auto; margin-bottom: 14px; }
.site-footer__brand p { max-width: 24rem; margin: 0 0 10px; }
.site-footer__main-link { color: var(--gold); text-underline-offset: 3px; }
.site-footer h2 { margin: 0 0 12px; color: var(--gold); font: 700 1rem/1.3 var(--headline); }
.site-footer__line { display: flex; align-items: center; gap: 12px; width: fit-content; padding: 6px 0; color: var(--white); text-decoration: none; }
.site-footer__line:hover { color: var(--gold); }
.site-footer__line svg { flex: none; width: 15px; height: 15px; fill: currentColor; }
.site-footer .social { margin-top: 12px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: var(--page); margin: 44px auto 0; color: var(--white); font-size: .85rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { text-underline-offset: 3px; }
@media (min-width: 700px) { .site-footer__inner { grid-template-columns: 1fr auto; } }
