/*
Theme Name: Hop Marjanneke Media
Theme URI: https://www.hopmarjanneke.nl/
Author: Codex
Description: Premium editorial WordPress theme for Hop Marjanneke.
Version: 1.0.0
Text Domain: hopmarjanneke-media
*/

:root {
  --ink: #17201b;
  --muted: #66736c;
  --line: #d9e0dc;
  --paper: #fbfbf8;
  --soft: #eef4ef;
  --accent: #217d68;
  --accent-dark: #135444;
  --gold: #b88935;
  --footer: #111916;
  --radius: 6px;
  --shadow: 0 18px 50px rgba(23, 32, 27, 0.08);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.64;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

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

.site-shell {
  min-height: 100vh;
}

.wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.topline {
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: var(--muted);
}

.topline .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 18px;
}

.date-stamp {
  white-space: nowrap;
}

.top-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.masthead {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 26px 0 22px;
}

.brand-mark {
  text-align: center;
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(31px, 4.6vw, 52px);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-kicker {
  display: block;
  margin-top: 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.header-search {
  justify-self: end;
  width: min(260px, 100%);
}

.search-form,
.wp-block-search {
  display: flex;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 40px;
}

.search-form label,
.wp-block-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.search-field,
.wp-block-search__input {
  width: 100%;
  border: 0;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  background: transparent;
}

.search-submit,
.wp-block-search__button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0 13px;
  font-weight: 800;
  cursor: pointer;
}

.primary-nav {
  border-top: 1px solid var(--line);
}

.primary-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  overflow-x: auto;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.topic-strip {
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.topic-strip .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  overflow-x: auto;
}

.topic-label {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.topic-pill {
  border-left: 1px solid var(--line);
  padding-left: 14px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.main {
  padding: 34px 0 56px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  border-bottom: 2px solid var(--ink);
}

.section-head h1,
.section-head h2 {
  margin: 0;
  padding-bottom: 9px;
  font-family: var(--sans);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.12;
  font-weight: 900;
}

.section-head a {
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 300px;
  gap: 20px;
  align-items: stretch;
}

.lead-primary {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  align-content: stretch;
}

.story-card {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.story-card.has-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.story-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e5eee8, #cddcd2);
}

.story-image::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 10;
}

.story-image img,
.story-image .fallback-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fallback-art {
  background:
    radial-gradient(circle at 24% 28%, rgba(184, 137, 53, 0.34), transparent 24%),
    linear-gradient(135deg, rgba(33, 125, 104, 0.36), rgba(255, 255, 255, 0.2)),
    var(--soft);
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cat-chip {
  color: var(--accent-dark);
}

.story-title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 900;
  line-height: 1.16;
}

.story-title.big {
  font-size: clamp(25px, 2.5vw, 34px);
}

.story-title.medium {
  font-size: clamp(19px, 2vw, 24px);
}

.story-title.small {
  font-size: 17px;
}

.story-excerpt {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.48;
}

.lead-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.lead-briefs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: #fff;
  height: 100%;
}

.brief-item {
  padding: 11px 14px 13px;
}

.brief-item + .brief-item {
  border-left: 1px solid var(--line);
}

.brief-item .story-meta {
  margin: 0 0 6px;
}

.brief-item h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.22;
  font-weight: 900;
}

.lead-grid .latest-panel {
  align-self: stretch;
}

.latest-panel,
.most-read,
.newsletter-band,
.method-box,
.author-card,
.article-essential,
.opinion-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.latest-panel,
.most-read {
  padding: 18px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.panel-title::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
}

.latest-list,
.ranked-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.latest-list li,
.ranked-list li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.latest-list a {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.14;
}

.ranked-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
}

.rank-number {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.ranked-list a {
  display: block;
  font-weight: 800;
  line-height: 1.22;
}

.ranked-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}

.wide-band {
  margin-top: 46px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.wide-band .wrap {
  display: grid;
  grid-template-columns: 0.9fr 2.1fr;
  gap: 24px;
}

.home .wide-band .page-title {
  font-family: var(--sans);
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.12;
  font-weight: 900;
}

.home .wide-band .chapo {
  font-size: 17px;
  line-height: 1.5;
}

.newsletter-band {
  padding: 28px;
  background: var(--accent-dark);
  color: #fff;
}

.newsletter-band h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}

.newsletter-band p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
}

.newsletter-band form {
  display: flex;
  gap: 8px;
}

.newsletter-band input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  padding: 12px;
  font: inherit;
}

.newsletter-band button,
.button-link {
  border: 0;
  border-radius: 4px;
  background: var(--gold);
  color: #111;
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.page-header {
  padding: 18px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.page-kicker,
.breadcrumb {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.page-title {
  max-width: 860px;
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: clamp(37px, 6vw, 68px);
  line-height: 0.99;
}

.chapo {
  max-width: 820px;
  margin: 0;
  padding-left: 18px;
  border-left: 4px solid var(--accent);
  color: #46524c;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.45;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 310px;
  gap: 52px;
  align-items: start;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.author-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.author-mini img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.article-hero {
  margin: 28px 0;
}

.article-hero .story-image::before {
  aspect-ratio: 16 / 9;
}

.caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.article-body {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.78;
}

.article-body > p:first-of-type {
  font-weight: 700;
}

.article-body h2 {
  margin: 34px 0 10px;
  font-family: var(--sans);
  font-size: 28px;
  line-height: 1.14;
}

.article-body h3 {
  margin: 28px 0 8px;
  font-family: var(--sans);
  font-size: 21px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
}

.article-body a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-body > p:nth-of-type(2)::first-letter {
  float: left;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 68px;
  line-height: 0.82;
  padding: 10px 8px 0 0;
}

.article-essential {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: var(--soft);
  font-family: var(--sans);
}

.article-essential h2 {
  margin-top: 0;
  font-size: 18px;
}

.article-essential ul {
  margin: 0;
  padding-left: 20px;
}

.share-rail {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 8px;
  float: left;
  margin-left: -62px;
  width: 42px;
}

.share-rail a,
.mobile-share a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.mobile-share {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.tag-list a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.reaction-box {
  margin: 34px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.reaction-box strong {
  display: block;
  margin-bottom: 12px;
}

.reaction-box button {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 4px;
  padding: 9px 12px;
  margin-right: 8px;
  cursor: pointer;
}

.sidebar {
  display: grid;
  gap: 22px;
}

.method-box,
.opinion-panel {
  padding: 20px;
}

.method-box h2,
.opinion-panel h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.2;
}

.author-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.author-card {
  padding: 18px;
}

.author-card img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 13px;
}

.author-card h2,
.author-card h3 {
  margin: 0 0 3px;
  font-size: 20px;
}

.author-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.site-footer {
  background: var(--footer);
  color: #f4f4ee;
  padding: 44px 0 0;
}

.footer-brand {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-logo {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.68);
  margin: 12px 0 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  padding: 34px 0;
}

.footer-columns h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-columns li {
  margin: 8px 0;
}

.footer-columns a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pagination {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.pagination .page-numbers {
  border: 1px solid var(--line);
  padding: 8px 12px;
  background: #fff;
}

@media (max-width: 1040px) {
  .lead-grid,
  .content-layout,
  .wide-band .wrap,
  .footer-brand {
    grid-template-columns: 1fr;
  }

  .section-grid,
  .author-grid,
  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .share-rail {
    display: none;
  }

  .mobile-share {
    display: flex;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: min(100% - 24px, 1180px);
  }

  .topline .wrap,
  .brand-row {
    grid-template-columns: 1fr;
    display: grid;
    text-align: center;
  }

  .header-search {
    justify-self: stretch;
  }

  .primary-nav .wrap {
    justify-content: start;
  }

  .menu {
    justify-content: start;
    flex-wrap: nowrap;
  }

  .section-grid,
  .lead-briefs,
  .mini-grid,
  .author-grid,
  .footer-columns,
  .sidebar {
    grid-template-columns: 1fr;
  }

  .newsletter-band form {
    flex-direction: column;
  }

  .story-title.big {
    font-size: 28px;
  }

  .brief-item + .brief-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
