/* ==========================================================================
   Ever Now Editorial — main stylesheet
   Black & white editorial system. Edit the tokens below to retune the theme.
   ========================================================================== */

:root {
  --black: #000;
  --white: #fff;
  --ink: #000;
  --muted: #6e6e6e;
  --line: #dedede;
  --line-dark: #262626;
  --tint: #f3f3f3;
  --placeholder: #e7e7e7;

  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --gap: 28px;
  --section: clamp(48px, 6vw, 72px);
  --admin: var(--wp-admin--admin-bar--height, 0px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, h5, h6, p, figure, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
  clip: auto; clip-path: none; width: auto; height: auto; z-index: 1000;
  top: 8px; left: 8px; padding: 10px 16px; background: var(--white); color: var(--black);
}

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Shared type ---------- */
.meta {
  font-family: var(--serif);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.meta a:hover { text-decoration: underline; text-underline-offset: 2px; }
.meta__sep { display: inline-block; margin: 0 .55em; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 9px 20px;
  background: var(--black); color: var(--white);
  border: 1px solid var(--black);
  font-family: var(--serif); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  line-height: 1; white-space: nowrap;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--white); color: var(--black); }
.btn--light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--light:hover { background: var(--black); color: var(--white); }

/* Images & placeholders inside aspect boxes */
.card__media, .lead__media, .side-card__media, .edit-card__media, .cover__media,
.spotlight__media, .issue__cover { display: block; position: relative; overflow: hidden; background: var(--placeholder); }
.card__media img, .lead__media img, .side-card__media img, .edit-card__media img,
.cover__media img, .spotlight__media img, .issue__cover img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.img-placeholder { position: absolute; inset: 0; background: var(--placeholder); }

/* ==========================================================================
   Masthead
   ========================================================================== */
.masthead { background: var(--black); color: var(--white); }
.masthead__top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 96px;
}
.masthead__logo { grid-column: 2; display: block; }
.masthead__logo .site-logo__img { height: 58px; width: auto; }
.masthead__utility { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 22px; }
.utility-menu { display: flex; gap: 18px; }
.utility-menu a {
  font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #cfcfcf;
}
.utility-menu a:hover { color: var(--white); }

.socials { display: flex; align-items: center; gap: 12px; }
.socials a { color: currentColor; opacity: .85; }
.socials a:hover { opacity: 1; }

.masthead__burger { display: none; width: 28px; height: 20px; position: relative; grid-column: 1; justify-self: start; }
.masthead__burger span { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--white); }
.masthead__burger span:nth-child(1) { top: 2px; }
.masthead__burger span:nth-child(2) { top: 9px; }
.masthead__burger span:nth-child(3) { top: 16px; }

/* Primary nav (sticky) */
.primary-nav {
  position: sticky; top: var(--admin); z-index: 50;
  background: var(--black); color: var(--white);
  border-top: 1px solid var(--line-dark);
}
.primary-nav__inner { display: flex; align-items: center; min-height: 50px; gap: 24px; }
.primary-nav__mini { display: none; flex: none; }
.primary-nav__mini img { height: 26px; width: auto; }
.primary-nav.is-stuck .primary-nav__mini { display: block; }
.primary-nav .menu { display: flex; flex-wrap: wrap; gap: 4px 26px; flex: 1; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a {
  display: block; padding: 16px 0;
  font-size: 11.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase;
  border-bottom: 1px solid transparent;
}
.primary-nav .menu > li > a:hover,
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a,
.primary-nav .menu > .current-category-ancestor > a { border-bottom-color: var(--white); }
.primary-nav .sub-menu {
  position: absolute; top: 100%; left: -18px; min-width: 200px; padding: 10px 0;
  background: var(--black); border: 1px solid var(--line-dark); list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .18s, transform .18s, visibility .18s;
}
.primary-nav .menu > li:hover > .sub-menu,
.primary-nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { padding: 8px 18px; border: 0; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 400; color: #cfcfcf; }
.primary-nav .sub-menu a:hover { color: var(--white); }
.primary-nav__search { margin-left: auto; padding: 8px; color: var(--white); }

.search-panel { border-top: 1px solid var(--line-dark); padding: 22px 0; }
.search-panel .search-form { max-width: 720px; margin: 0 auto; }
.search-panel .search-form__input { background: transparent; color: var(--white); border-color: #555; }
.search-panel .search-form__input::placeholder { color: #8a8a8a; }
.search-panel .search-form__submit { background: var(--white); color: var(--black); border-color: var(--white); }

/* Search form */
.search-form { display: flex; gap: 0; }
.search-form__input {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px;
  background: var(--white); border: 1px solid var(--black); border-right: 0; border-radius: 0;
  font-size: 16px;
}
.search-form__submit {
  height: 46px; padding: 0 22px; background: var(--black); color: var(--white); border: 1px solid var(--black);
  font-family: var(--serif); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: var(--admin) 0 0 0; z-index: 200; overflow-y: auto;
  background: var(--black); color: var(--white);
  padding: 0 var(--gutter) 40px;
}
.drawer[hidden] { display: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: 72px; border-bottom: 1px solid var(--line-dark); }
.drawer__logo .site-logo__img { height: 38px; width: auto; }
.drawer__search { padding: 22px 0; }
.drawer__search .search-form__input { background: transparent; color: var(--white); border-color: #555; }
.drawer__search .search-form__submit { background: var(--white); color: var(--black); border-color: var(--white); }
.drawer .drawer__menu, .drawer > .menu { margin-bottom: 28px; }
.drawer__menu a, .drawer > .menu a { display: block; padding: 12px 0; font-size: 22px; border-bottom: 1px solid var(--line-dark); }
.drawer__menu .sub-menu { list-style: none; padding: 0 0 8px 16px; }
.drawer__menu .sub-menu a { font-size: 16px; color: #bdbdbd; border: 0; padding: 8px 0; }
.drawer__utility { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 24px; }
.drawer__utility a { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #cfcfcf; }
body.drawer-open { overflow: hidden; }

/* ==========================================================================
   Section heads & grids
   ========================================================================== */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head__title { font-size: clamp(26px, 2.6vw, 32px); font-weight: 400; letter-spacing: -.01em; line-height: 1.1; }

.grid { display: grid; gap: 34px var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.card__media { aspect-ratio: 3 / 2; margin-bottom: 12px; }
.card__title { font-size: 15px; font-weight: 500; line-height: 1.35; letter-spacing: -.003em; }
.card__title a:hover, .lead__title a:hover, .side-card__title a:hover, .cover__title a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card__excerpt { margin-top: 8px; font-family: var(--serif); font-size: 16px; line-height: 1.55; color: #333; }
.card--large .card__title { font-size: clamp(20px, 2vw, 26px); font-weight: 400; line-height: 1.2; }

/* ==========================================================================
   Homepage
   ========================================================================== */
.frontpage > section + section { margin-top: var(--section); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 23fr 50fr 27fr; gap: 32px; align-items: start;
  padding-top: 44px;
}
.cover__media { aspect-ratio: 3 / 4; margin-bottom: 12px; }
.cover__title { font-size: 15px; font-weight: 500; line-height: 1.35; }
.lead__media { aspect-ratio: 4 / 3; margin-bottom: 14px; }
.lead__title { font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; }
.hero__side { display: flex; flex-direction: column; gap: 22px; }

.side-card { display: grid; grid-template-columns: 1fr 72px; gap: 14px; align-items: start; }
.side-card__media { aspect-ratio: 1; }
.side-card__title { font-size: 14px; font-weight: 500; line-height: 1.35; }
.side-card .meta { font-size: 10px; }

/* Edit carousel */
.edit {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: center;
}
.edit::before { content: ""; grid-column: 1 / -1; border-top: 1px solid var(--line); margin-bottom: 4px; }
.edit__title { font-size: 22px; font-weight: 500; line-height: 1.2; margin-bottom: 12px; }
.edit__text { font-family: var(--serif); font-size: 15px; line-height: 1.55; color: #444; margin-bottom: 18px; }
.edit__all { font-family: var(--serif); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.edit__all:hover { text-decoration-thickness: 2px; }
.edit__rail { min-width: 0; }
.edit__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.edit__track::-webkit-scrollbar { display: none; }
.edit-card { flex: 0 0 calc((100% - 16px * 3) / 4); scroll-snap-align: start; }
.edit-card__media { aspect-ratio: 3 / 4; }
.edit-card__title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
  color: var(--white); font-size: 13.5px; font-weight: 500; line-height: 1.3;
}
.edit__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.edit__arrow { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--black); }
.edit__arrow:hover { background: var(--black); color: var(--white); }
.edit__arrow:disabled { opacity: .25; pointer-events: none; }
.edit__dots { display: flex; gap: 7px; }
.edit__dots span { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--black); }
.edit__dots span.is-active { background: var(--black); }

/* The Latest */
.latest::before { content: ""; display: block; border-top: 1px solid var(--line); margin-bottom: var(--section); }
.frontpage > .latest { margin-top: var(--section); }
.latest__layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; align-items: start; }
.latest__aside { position: sticky; top: calc(var(--admin) + 74px); }

/* Subscribe panel */
.subscribe { background: var(--black); color: var(--white); padding: 40px 28px 34px; text-align: center; }
.subscribe__kicker { font-family: var(--serif); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; color: #cfcfcf; }
.subscribe__heading { font-size: 21px; font-weight: 400; line-height: 1.3; margin-bottom: 26px; }
.subscribe__form { display: grid; gap: 12px; }
.subscribe__form input {
  width: 100%; height: 42px; padding: 0 12px; text-align: center;
  background: transparent; color: var(--white); border: 1px solid #8f8f8f; border-radius: 0;
  font-size: 14px;
}
.subscribe__form input::placeholder { color: #bdbdbd; }
.subscribe__form input:focus { border-color: var(--white); outline: none; }
.subscribe__form .btn { justify-self: center; margin-top: 10px; min-width: 120px; }
.subscribe__msg { font-family: var(--serif); font-size: 15px; line-height: 1.4; min-height: 1em; }
.subscribe__msg.is-error { color: #ffb4b4; }
.subscribe.is-done .subscribe__form > :not(.subscribe__msg) { display: none; }

/* Spotlight */
.spotlight__inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  max-width: 980px; margin-inline: auto;
  padding-block: var(--section);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.spotlight__media { aspect-ratio: 4 / 5; }
.spotlight__heading { font-size: clamp(40px, 5vw, 64px); font-weight: 400; line-height: 1; letter-spacing: -.02em; margin-bottom: 18px; }
.spotlight__text { font-family: var(--serif); font-size: 19px; line-height: 1.45; max-width: 32ch; margin-bottom: 26px; }
.spotlight__text a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Issue band */
.issue { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: calc(980px + var(--gutter) * 2); }
.issue__cover { aspect-ratio: 3 / 4; }
.issue__body { background: var(--tint); display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 64px); }
.issue__heading { font-size: clamp(26px, 3vw, 36px); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; margin-bottom: 14px; }
.issue__text { font-family: var(--serif); font-size: 17px; line-height: 1.55; color: #444; max-width: 34ch; margin-bottom: 24px; }
.issue__body .btn { align-self: flex-start; }

/* Best of strip */
.best__strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.best__strip .edit-card { flex: none; }

/* ==========================================================================
   Archives, pages, search
   ========================================================================== */
.archive-page, .page-main { padding-top: 48px; }
.page-head { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.page-head--center { text-align: center; }
.page-head__title { font-size: clamp(34px, 5vw, 56px); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; }
.page-head__desc { margin-top: 12px; max-width: 60ch; font-family: var(--serif); font-size: 18px; line-height: 1.5; color: #444; }
.page-head__search { margin-top: 22px; max-width: 560px; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.subcats a { display: inline-block; padding: 7px 14px; border: 1px solid var(--black); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.subcats a:hover { background: var(--black); color: var(--white); }
.archive-lead { margin-bottom: 52px; padding-bottom: 52px; border-bottom: 1px solid var(--line); }
.archive-lead .card__media { aspect-ratio: 3 / 2; }
.empty { padding: 20px 0 60px; max-width: 560px; }
.empty p { font-family: var(--serif); font-size: 19px; margin-bottom: 20px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 56px; }
.pagination .page-numbers {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); font-size: 14px;
}
.pagination .page-numbers:hover { border-color: var(--black); }
.pagination .page-numbers.current { background: var(--black); color: var(--white); border-color: var(--black); }
.pagination .dots { border: 0; }

.notfound { text-align: center; padding: 96px var(--gutter); max-width: 640px; }
.notfound__logo { display: inline-block; margin-bottom: 36px; }
.notfound__logo .site-logo__img { height: 70px; width: auto; }
.notfound__title { font-size: clamp(30px, 4vw, 44px); font-weight: 400; letter-spacing: -.01em; margin-bottom: 12px; }
.notfound__text { font-family: var(--serif); font-size: 18px; color: #444; margin-bottom: 28px; }
.notfound .search-form { margin-bottom: 20px; }

/* ==========================================================================
   Single article
   ========================================================================== */
.article { padding-top: 52px; }
.article__head { text-align: center; max-width: calc(880px + var(--gutter) * 2); }
.article__head .meta { margin-bottom: 18px; }
.article__title { font-size: clamp(32px, 4.6vw, 54px); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; }
.article__standfirst { margin: 20px auto 0; max-width: 46ch; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: #333; }
.article__byline { margin-top: 22px; font-family: var(--serif); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.article__hero { margin-top: 40px; }
.article__hero img { width: 100%; max-height: 760px; object-fit: cover; }
.article__hero figcaption { margin-top: 10px; font-family: var(--serif); font-size: 13px; color: var(--muted); }
.article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 88px); margin-top: 48px; }
.article__main { min-width: 0; max-width: 700px; justify-self: end; width: 100%; }
.article__aside { min-width: 0; }
.article__aside-inner { position: sticky; top: calc(var(--admin) + 74px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.widget-title { font-size: 18px; font-weight: 500; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--black); }
.aside-latest { display: grid; gap: 20px; }
.aside-latest .widget-title { margin-bottom: 0; }
.widget { font-size: 15px; min-width: 0; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 9px 0; border-bottom: 1px solid var(--line); line-height: 1.4; }
.widget li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.widget h2, .widget .wp-block-heading { font-size: 18px; font-weight: 500; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--black); }
.widget .wp-block-search__label { display: block; font-size: 18px; font-weight: 500; margin-bottom: 10px; }
.widget .wp-block-search__inside-wrapper { display: flex; }
.widget .wp-block-search__input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--black); border-right: 0; border-radius: 0; }
.widget .wp-block-search__button { margin: 0; height: 42px; padding: 0 16px; background: var(--black); color: var(--white); border: 1px solid var(--black); border-radius: 0; font-family: var(--serif); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* Prose */
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: #111; }
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--sans); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; margin-top: 1.9em; }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 22px; }
.prose h4 { font-size: 18px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote, .prose .wp-block-quote, .prose .wp-block-pullquote {
  margin: 1.8em 0; padding: 0 0 0 26px; border-left: 2px solid var(--black);
  font-style: italic; font-size: 24px; line-height: 1.45;
}
.prose blockquote cite { display: block; margin-top: 12px; font-style: normal; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.prose img { height: auto; }
.prose figcaption, .prose .wp-caption-text { font-size: 13px; color: var(--muted); margin-top: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .alignwide { margin-inline: calc(-1 * min(80px, 6vw)); }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose > p:first-child::first-letter {
  float: left; font-size: 4.4em; line-height: .82; padding: .06em .08em 0 0; font-weight: 400;
}
.page-main .prose { max-width: 720px; margin-inline: auto; }
.page-main .prose > p:first-child::first-letter { all: unset; }
.page-main .article__hero { margin: 0 0 40px; }

.article__foot { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.tags a:hover { border-color: var(--black); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 14px; }
.share__label { font-family: var(--serif); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.share a, .share button { text-decoration: underline; text-underline-offset: 3px; }
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; padding: 24px; background: var(--tint); }
.author-box img { border-radius: 50%; }
.author-box__name { font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.author-box__bio { font-family: var(--serif); font-size: 16px; line-height: 1.55; color: #333; }
.article > .cat-section { margin-top: var(--section); padding-top: var(--section); border-top: 1px solid var(--line); }

/* Comments */
.comments { margin-top: 56px; }
.comments__title { font-size: 22px; font-weight: 500; margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.comment-author img { border-radius: 50%; }
.comment-meta { margin-bottom: 8px; }
.comment-metadata { font-size: 12px; color: var(--muted); }
.comment-content { font-family: var(--serif); font-size: 17px; line-height: 1.6; }
.reply a { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; }
.comment-form { display: grid; gap: 14px; }
.comment-form label, .form label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea,
.form input, .form select, .form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #bdbdbd; border-radius: 0; background: var(--white); font-size: 16px;
}
.comment-form input:focus, .comment-form textarea:focus, .form input:focus, .form select:focus, .form textarea:focus { border-color: var(--black); outline: none; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }
.comment-form .comment-form-cookies-consent label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 14px; }
.comment-form .form-submit { margin-top: 6px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); padding-top: 56px; }
.contact__intro .prose { margin-top: 20px; font-size: 18px; }
.contact__intro .prose > p:first-child::first-letter { all: unset; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; margin-bottom: 22px; font-size: 15px; border: 1px solid var(--black); }
.notice--ok { background: var(--black); color: var(--white); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-content { min-height: 50vh; }
.site-footer { margin-top: calc(var(--section) * 1.3); background: var(--black); color: var(--white); padding: 64px 0 28px; }
.site-footer__brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.site-footer__logo .site-logo__img { height: 64px; width: auto; }
.site-footer__text { max-width: 46ch; font-family: var(--serif); font-size: 16px; line-height: 1.55; color: #b5b5b5; }
.site-footer__nav { margin-top: 40px; padding: 22px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.site-footer__nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; list-style: none; padding: 0; margin: 0; }
.site-footer__nav a { font-size: 11.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: #d6d6d6; }
.site-footer__nav a:hover { color: var(--white); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: 12.5px; color: #8f8f8f; }
.legal-menu { display: flex; gap: 20px; }
.legal-menu a:hover { color: var(--white); }

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--black); color: var(--white); border: 1px solid #555;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* WordPress core helpers */
.alignnone { margin: 0; }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption { }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero__lead { grid-column: 1 / -1; grid-row: 1; }
  .latest__layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .best__strip { grid-template-columns: repeat(3, 1fr); }
  .best__strip .edit-card:nth-child(n+4) { display: none; }
}

@media (max-width: 900px) {
  /* Masthead goes compact & sticky; nav lives in the drawer */
  .masthead { position: sticky; top: var(--admin); z-index: 60; }
  .masthead__top { min-height: 64px; }
  .masthead__logo .site-logo__img { height: 38px; }
  .masthead__burger { display: block; }
  .masthead__utility { display: none; }
  .primary-nav { display: none; }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .latest__layout { grid-template-columns: 1fr; }
  .latest__aside { position: static; }
  .edit { grid-template-columns: 1fr; gap: 20px; }
  .edit-card { flex-basis: calc((100% - 16px * 2) / 2.4); }
  .article__layout { grid-template-columns: 1fr; }
  .article__main { justify-self: center; }
  .article__aside-inner { position: static; }
  .contact { grid-template-columns: 1fr; }
  .issue { grid-template-columns: 2fr 3fr; }
}

@media (max-width: 640px) {
  :root { --gap: 16px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .hero__cover { order: 3; }
  .hero__cover .cover { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; }
  .hero__cover .cover__media { margin: 0; }
  .grid { row-gap: 26px; }
  .grid--2 { grid-template-columns: 1fr; }
  .card__title { font-size: 14px; }
  .section-head__title { font-size: 24px; }
  .edit-card { flex-basis: 62%; }
  .spotlight__inner, .issue { grid-template-columns: 1fr; }
  .spotlight__media { aspect-ratio: 4 / 3; }
  .issue__cover { aspect-ratio: 4 / 3; }
  .best__strip { grid-template-columns: repeat(2, 1fr); }
  .best__strip .edit-card:nth-child(n+3) { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .prose { font-size: 18px; }
  .site-footer__bottom { flex-direction: column; align-items: center; text-align: center; }
}
