/*
Theme Name: Beau Fotografie
Theme URI: https://beaufotografie.nl
Author: OpenAI
Description: Donker fotografiethema voor beeldverhalen, met een groot uitgelicht verhaal en een responsieve masonry-grid.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: beau-fotografie
*/

:root {
  --bg: #111111;
  --bg-soft: #191919;
  --text: #f2efe9;
  --muted: #aaa49a;
  --accent: #c9aa75;
  --line: rgba(255,255,255,.12);
  --content: 1360px;
  --reading: 820px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.site-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 28px 0 22px;
}
.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.site-title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-title a:hover { color: var(--text); }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}
.site-nav a { color: var(--muted); }

.home-intro {
  padding: 56px 0 34px;
}
.home-intro h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 1.05;
  margin: 0 0 18px;
}
.home-intro p {
  color: var(--muted);
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}


.opening-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 30px;
}

.hero-story,
.story-card {
  min-width: 0;
}
.hero-story__link,
.story-card__link { display: block; }
.hero-story__image-wrap,
.story-card__image-wrap {
  overflow: hidden;
  background: var(--bg-soft);
}
.hero-story__image-wrap,
.story-card--opening .story-card__image-wrap {
  aspect-ratio: 16 / 11;
}

.story-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: clamp(22px, 4vw, 54px);
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(201,170,117,.20), transparent 48%),
    radial-gradient(circle at 78% 22%, rgba(255,255,255,.10), transparent 30%),
    linear-gradient(160deg, #2a2927 0%, #171717 58%, #0c0c0c 100%);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .5s ease, filter .3s ease;
}
.story-card__link:hover .story-card__placeholder,
.hero-story__link:hover .story-card__placeholder {
  transform: scale(1.018);
  filter: brightness(1.08);
}
.story-card__placeholder-kicker {
  color: var(--accent);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.story-card__placeholder-title {
  max-width: 18ch;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.35rem, 2.4vw, 2.5rem);
  line-height: 1.08;
}
.story-card__placeholder--hero .story-card__placeholder-title {
  font-size: clamp(2rem, 4.2vw, 4.8rem);
}

.hero-story__image,
.story-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, opacity .3s ease;
}
.hero-story__link:hover .hero-story__image,
.story-card a:hover img {
  transform: scale(1.018);
  opacity: .94;
}
.hero-story__meta,
.story-card__body {
  border-bottom: 1px solid var(--line);
  padding: 14px 0 17px;
}
.hero-story__meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
}
.hero-story__title,
.story-card__title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.2;
}
.hero-story__title { font-size: clamp(1.65rem, 2.7vw, 3rem); }
.story-card__title { font-size: clamp(1.15rem, 1.7vw, 1.55rem); }
.hero-story__date,
.story-card__date {
  color: var(--muted);
  font-size: .9rem;
}
.hero-story__date { white-space: nowrap; }
.story-card__date { display: block; margin-top: 5px; }

.story-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px 24px;
  align-items: start;
}
.story-card--wide { grid-column: span 7; }
.story-card--narrow { grid-column: span 5; }
.story-card--third { grid-column: span 4; }
.story-card--quarter { grid-column: span 3; }
.story-card--half { grid-column: span 6; }

.story-card--wide .story-card__image-wrap { aspect-ratio: 16 / 10; }
.story-card--narrow .story-card__image-wrap { aspect-ratio: 4 / 5; }
.story-card--third .story-card__image-wrap { aspect-ratio: 1 / 1; }
.story-card--quarter .story-card__image-wrap { aspect-ratio: 3 / 4; }
.story-card--half .story-card__image-wrap { aspect-ratio: 3 / 2; }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 48px 0 70px;
}
.pagination .page-numbers {
  border: 1px solid var(--line);
  padding: 9px 14px;
  color: var(--muted);
}
.pagination .current,
.pagination .page-numbers:hover {
  color: var(--text);
  border-color: var(--accent);
}

.single-article {
  width: min(calc(100% - 40px), 1120px);
  margin: 0 auto;
  padding: 60px 0 80px;
}
.single-header {
  width: min(100%, var(--reading));
  margin: 0 auto 28px;
}
.single-date { color: var(--muted); margin-bottom: 8px; }
.single-title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  line-height: 1.05;
}
.single-featured {
  margin: 0 auto 44px;
  width: 100%;
}
.single-featured img {
  display: block;
  width: 100%;
  height: auto;
}
.entry-content {
  width: min(100%, var(--reading));
  margin: 0 auto;
  font-size: 1.08rem;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.4em; }
.entry-content h2,
.entry-content h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 1.8em;
}
.entry-content figure { margin: 2.2em 0; }
.entry-content img { display: block; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.post-navigation {
  width: min(100%, var(--reading));
  margin: 58px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.post-navigation .nav-next { text-align: right; }
.post-navigation a { color: var(--muted); }
.post-navigation a:hover { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 28px 0 38px;
  font-size: .92rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .opening-grid { grid-template-columns: minmax(0, 3fr) minmax(220px, 2fr); }
  .story-card--quarter { grid-column: span 6; }
  .story-card--wide,
  .story-card--narrow { grid-column: span 6; }
}

@media (max-width: 680px) {
  .site-shell { width: min(calc(100% - 24px), var(--content)); }
  .site-header__inner { align-items: flex-start; flex-direction: column; }
  .site-nav ul { flex-wrap: wrap; }
  .home-intro { padding-top: 38px; }
  .opening-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-story__meta { display: block; }
  .hero-story__date { display: block; margin-top: 6px; }
  .story-grid { grid-template-columns: 1fr; gap: 30px; }
  .story-grid .story-card { grid-column: 1 / -1; }
  .story-card__image-wrap { aspect-ratio: auto !important; }
  .story-card img { height: auto; object-fit: contain; }
  .single-article { width: min(calc(100% - 24px), 1120px); padding-top: 42px; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-navigation .nav-next { text-align: left; }
}
