/*
Theme Name: Raila Odinga Memorial
Theme URI: https://example.com/raila-memorial
Author: Actuate Digital Solutions
Author URI: https://example.com
Description: A dignified, mobile-first memorial theme built for the first anniversary of the Rt. Hon. Raila Amolo Odinga. Video-led, fully editable from the WordPress dashboard: videos, events and tributes are custom post types, and the countdown, livestream, credits and social links are all Customizer settings. Palette locked to amber (#FFA500), black and white.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: raila-memorial
Tags: memorial, video, one-column, custom-menu, custom-logo, editor-style, accessibility-ready, translation-ready
*/

/* ==========================================================================
   1. Tokens — only three colours are permitted site-wide.
      Everything else is an alpha blend of black or white.
   ========================================================================== */

:root {
  --amber: #FFA500;
  --black: #000000;
  --white: #FFFFFF;

  /* Alpha blends — still black and white, just softened */
  --ink-90: rgba(0, 0, 0, .9);
  --ink-70: rgba(0, 0, 0, .7);
  --ink-55: rgba(0, 0, 0, .55);
  --ink-35: rgba(0, 0, 0, .35);
  --ink-14: rgba(0, 0, 0, .14);
  --ink-07: rgba(0, 0, 0, .07);

  --paper-85: rgba(255, 255, 255, .85);
  --paper-65: rgba(255, 255, 255, .65);
  --paper-45: rgba(255, 255, 255, .45);
  --paper-20: rgba(255, 255, 255, .2);
  --paper-10: rgba(255, 255, 255, .1);

  --font-display: "Libre Baskerville", "Times New Roman", Georgia, serif;
  --font-sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 76rem;
  --gutter: 1.25rem;
  --header-h: 4.5rem;
}

/* ==========================================================================
   2. Reset and base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
iframe,
video { max-width: 100%; display: block; }

img { height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -.01em;
}

p { margin: 0 0 1rem; }

button { font: inherit; }

::selection { background: var(--amber); color: var(--black); }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  background: var(--amber);
  color: var(--black);
  padding: .75rem 1.25rem;
  font-weight: 700;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */

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

.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--rule { border-top: 1px solid var(--ink-14); }

.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 .9rem;
}

.section--dark .eyebrow { color: var(--amber); }

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-70);
  max-width: 48ch;
}
.section--dark .lede,
.page-intro .lede { color: var(--paper-65); }

.amber-rule {
  height: 4px;
  background: var(--amber);
  border: 0;
  margin: 0;
}

/* Titles */
.t-xl  { font-size: clamp(2.75rem, 9vw, 6rem); }
.t-lg  { font-size: clamp(2rem, 5.5vw, 3.5rem); }
.t-md  { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
.t-sm  { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  border: 2px solid var(--amber);
  background: var(--amber);
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover,
.btn:focus-visible { background: var(--black); color: var(--amber); border-color: var(--black); }

.btn--ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn--ghost:hover,
.btn--ghost:focus-visible { background: var(--black); color: var(--white); }

.section--dark .btn--ghost,
.hero .btn--ghost { color: var(--white); border-color: var(--paper-45); }
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.btn--sm { padding: .6rem 1rem; font-size: .85rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* ==========================================================================
   5. Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--ink-14);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--black); }
.brand__mark {
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  border: 2px solid var(--amber);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  flex: none;
}
.brand__logo img { max-height: 2.8rem; width: auto; }
.brand__name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; display: block; line-height: 1.1; }
.brand__dates { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-55); display: block; margin-top: .15rem; }

.nav-primary ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-primary a {
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-70);
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  display: block;
}
.nav-primary a:hover { color: var(--black); }
.nav-primary .current-menu-item > a,
.nav-primary .current_page_item > a,
.nav-primary .current-menu-parent > a { color: var(--black); font-weight: 700; border-bottom-color: var(--amber); }

.header-actions { display: flex; align-items: center; gap: .35rem; }

.icon-btn {
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--black);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--ink-14); }
.icon-btn svg { width: 1.15rem; height: 1.15rem; }

.lang-toggle {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .45rem .6rem;
  border: 1px solid var(--ink-14);
  background: transparent;
  text-decoration: none;
  color: var(--black);
  cursor: pointer;
}
.lang-toggle span { color: var(--ink-35); font-weight: 500; }

.nav-toggle { display: none; }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--ink-14);
  padding: .5rem 0 1rem;
}
.nav-mobile.is-open { display: block; }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile a {
  display: block;
  padding: .9rem .25rem;
  border-bottom: 1px solid var(--ink-07);
  text-decoration: none;
  font-weight: 600;
}
.nav-mobile li:last-child a { border-bottom: 0; }
.nav-mobile .current-menu-item > a { color: var(--amber); }

@media (max-width: 1023px) {
  .nav-primary { display: none; }
  .nav-toggle { display: grid; }
}

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img,
.hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 68% 12%;
  filter: grayscale(1) contrast(1.05);
  opacity: .55;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--black) 8%, rgba(0, 0, 0, .82) 46%, rgba(0, 0, 0, .35) 100%);
}
.hero__inner {
  min-height: min(88vh, 46rem);
  display: flex;
  align-items: flex-end;
  padding: clamp(6rem, 14vw, 9rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero__title {
  font-size: clamp(3rem, 12vw, 6.5rem);
  line-height: .98;
  margin: .5rem 0 0;
}
.hero__statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  color: var(--amber);
  margin-top: 1.25rem;
}

.hero__sub {
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: var(--paper-85);
  max-width: 34ch;
  margin-top: .6rem;
}
.hero__date {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-top: 1.5rem;
  color: var(--amber);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__credit {
  position: absolute;
  right: var(--gutter); bottom: .5rem;
  font-size: .6rem;
  color: var(--paper-45);
  margin: 0;
}

@media (min-width: 1024px) {
  .hero__media img { left: auto; width: 62%; margin-left: 38%; opacity: .8; }
  .hero::after { background: linear-gradient(90deg, var(--black) 26%, rgba(0, 0, 0, .78) 52%, rgba(0, 0, 0, .1) 100%); }
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--paper-20);
  border-bottom: 1px solid var(--paper-20);
  max-width: 32rem;
  margin-top: 2rem;
}
.countdown__cell {
  text-align: center;
  padding: .9rem .25rem;
  border-right: 1px solid var(--paper-20);
}
.countdown__cell:last-child { border-right: 0; }
.countdown__num {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 2.25rem);
  font-weight: 700;
  display: block;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  display: block;
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper-45);
  margin-top: .3rem;
}
.countdown--passed .countdown__num { color: var(--amber); }

/* ==========================================================================
   7. Page intro (interior page hero)
   ========================================================================== */

.page-intro {
  background: var(--black);
  color: var(--white);
  padding: clamp(3.5rem, 10vw, 6.5rem) 0 clamp(3rem, 7vw, 4.5rem);
  border-bottom: 4px solid var(--amber);
}
.page-intro h1 { font-size: clamp(2.25rem, 7vw, 4.25rem); max-width: 18ch; }
.page-intro .lede { margin-top: 1.25rem; }

/* ==========================================================================
   8. Video
   ========================================================================== */

.video-frame {
  position: relative;
  width: 100%;
  background: var(--black);
  overflow: hidden;
  border: 1px solid var(--ink-14);
}
.section--dark .video-frame,
.page-intro .video-frame { border-color: var(--paper-20); }

.video-frame--landscape { aspect-ratio: 16 / 9; }
.video-frame--vertical { aspect-ratio: 9 / 16; max-width: 20rem; margin-inline: auto; }

.video-frame iframe,
.video-frame__facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame__facade {
  padding: 0;
  background: var(--black);
  cursor: pointer;
  display: block;
}
.video-frame__facade img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: .72;
  transition: opacity .35s ease, transform .35s ease, filter .35s ease;
}
.video-frame__facade:hover img,
.video-frame__facade:focus-visible img { opacity: .95; filter: grayscale(.25); transform: scale(1.03); }

.video-frame__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: var(--amber);
  color: var(--black);
  display: grid;
  place-items: center;
  transition: transform .25s ease;
  pointer-events: none;
}
.video-frame__facade:hover .video-frame__play { transform: translate(-50%, -50%) scale(1.1); }
.video-frame__play svg { width: 1.5rem; height: 1.5rem; margin-left: .15rem; }

.video-frame__badge {
  position: absolute;
  top: .75rem; left: .75rem;
  background: var(--amber);
  color: var(--black);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .55rem;
  pointer-events: none;
}

/* Video grid + cards */
.video-grid {
  display: grid;
  gap: 2.5rem 1.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }

.video-card { display: flex; flex-direction: column; }
.video-card__body { padding-top: 1.1rem; display: flex; flex-direction: column; flex: 1; }
.video-card__title { font-size: 1.3rem; margin-top: .35rem; }
.video-card__title a { text-decoration: none; }
.video-card__title a:hover { color: var(--amber); }
.video-card__desc { color: var(--ink-70); margin-top: .6rem; font-size: .95rem; }
.video-card__actions { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; gap: .5rem; }

.video-featured { display: grid; gap: 1.75rem; }
@media (min-width: 1024px) {
  .video-featured { grid-template-columns: 1.55fr 1fr; align-items: center; }
}
.video-featured .video-card__title { font-size: clamp(1.75rem, 4vw, 2.75rem); }

/* Filters */
.filters {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .65rem;
  margin-bottom: 2.25rem;
  scrollbar-width: thin;
}
.filters a {
  flex: none;
  padding: .55rem 1rem;
  border: 2px solid var(--black);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.filters a:hover { background: var(--ink-07); }
.filters a.is-active { background: var(--amber); border-color: var(--amber); color: var(--black); }

/* Livestream block */
.livestream {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) { .livestream { grid-template-columns: 1fr 1.2fr; } }
.livestream__placeholder {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--paper-20);
  background: rgba(255, 255, 255, .04);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}
.livestream__dot {
  width: .65rem; height: .65rem;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
  margin-right: .5rem;
}
.is-live .livestream__dot { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ==========================================================================
   9. Timeline, events, quote
   ========================================================================== */

.timeline { margin-top: 2.5rem; }
.timeline__item {
  display: grid;
  gap: .5rem 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--ink-14);
}
@media (min-width: 768px) {
  .timeline__item { grid-template-columns: 7rem 1fr 2fr; }
}
.timeline__year { font-family: var(--font-display); font-size: 1.6rem; color: var(--amber); font-weight: 700; }
.timeline__title { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; }
.timeline__text { color: var(--ink-70); margin: 0; font-size: .95rem; }

.event {
  display: grid;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--ink-14);
}
@media (min-width: 768px) {
  .event { grid-template-columns: 6rem 1fr auto; align-items: center; }
}
.event__date { display: flex; align-items: baseline; gap: .5rem; }
@media (min-width: 768px) { .event__date { display: block; } }
.event__day { font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1; }
.event__month { font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--amber); text-transform: uppercase; }
.event__title { font-size: 1.65rem; }
.event__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 600; margin: .6rem 0 0; }
.event__meta svg { width: 1rem; height: 1rem; flex: none; color: var(--amber); }
.event__desc { color: var(--ink-70); margin: .6rem 0 0; max-width: 55ch; font-size: .95rem; }

.next-event {
  border-left: 5px solid var(--amber);
  background: var(--white);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--ink-14);
  border-right: 1px solid var(--ink-14);
  border-bottom: 1px solid var(--ink-14);
}
.next-event__flag { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 700; }
.next-event__flag svg { width: 1.1rem; height: 1.1rem; color: var(--amber); }

.quote-block { text-align: center; }
.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.75rem);
  line-height: 1.35;
  margin: 1.5rem auto 0;
  max-width: 24ch;
}
.quote-block cite { display: block; margin-top: 1.25rem; font-size: .85rem; font-style: normal; color: var(--ink-55); }

.split {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1.25fr; align-items: center; }
  .split--portrait { grid-template-columns: .8fr 1.2fr; align-items: start; }
}
.portrait-figure { margin: 0; }
.portrait-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; filter: grayscale(1); }
.portrait-figure figcaption { font-size: .72rem; color: var(--ink-55); margin-top: .6rem; }
@media (min-width: 1024px) { .portrait-figure { position: sticky; top: calc(var(--header-h) + 2rem); } }

.prose p { color: var(--ink-70); font-size: 1.05rem; line-height: 1.75; max-width: 66ch; }
.prose h2, .prose h3 { margin: 2rem 0 .75rem; color: var(--black); }
.prose a { color: var(--black); text-decoration-color: var(--amber); }
.prose ul, .prose ol { color: var(--ink-70); max-width: 66ch; padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote {
  border-left: 4px solid var(--amber);
  margin: 1.5rem 0;
  padding: .25rem 0 .25rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.prose img { margin: 1.5rem 0; }

/* Gallery */
.photo-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); transition: filter .4s ease; }
.photo-grid img:hover { filter: grayscale(0); }

/* ==========================================================================
   10. Forms, tributes
   ========================================================================== */

.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: block; }
.field--full { grid-column: 1 / -1; }
.field > span { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .4rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%;
  padding: .75rem .85rem;
  border: 1px solid var(--ink-35);
  background: var(--white);
  color: var(--black);
  font: inherit;
  border-radius: 0;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--amber); outline: 2px solid var(--amber); outline-offset: 0; }
.field__hint { font-size: .78rem; color: var(--ink-55); margin-top: .35rem; font-weight: 400; }

.hp-field { position: absolute; left: -9999px; }

.notice {
  border-left: 5px solid var(--amber);
  background: var(--ink-07);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: .95rem;
}
.notice--error { border-left-color: var(--black); }
.notice p:last-child { margin-bottom: 0; }

.tribute-list { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 768px) { .tribute-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .tribute-list { grid-template-columns: repeat(3, 1fr); } }
.tribute {
  border: 1px solid var(--ink-14);
  border-top: 4px solid var(--amber);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.tribute__msg { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.7; margin: 0; }
.tribute__by { font-size: .82rem; color: var(--ink-55); margin: auto 0 0; }
.tribute__by strong { color: var(--black); display: block; font-size: .92rem; }
.tribute__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1); }

/* ==========================================================================
   11. Footer
   ========================================================================== */

.site-footer { background: var(--black); color: var(--white); border-top: 4px solid var(--amber); }
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
}
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 {
  font-family: var(--font-sans);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper-45);
  margin-bottom: .65rem;
  font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--paper-85); text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--amber); }
.footer-tagline { color: var(--paper-65); font-size: .95rem; font-style: italic; font-family: var(--font-display); margin-top: .3rem; }
.footer-brand__name { font-family: var(--font-display); font-size: 1.5rem; }
.footer-brand__line { color: var(--paper-65); font-size: .9rem; margin-top: .4rem; }
.footer-credit { color: var(--paper-45); font-size: .78rem; margin-top: 1.25rem; }

.socials { display: flex; gap: .6rem; margin-top: 1.25rem; }
.socials a {
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border: 1px solid var(--paper-20);
  color: var(--white);
}
.socials a:hover { background: var(--amber); border-color: var(--amber); color: var(--black); }
.socials svg { width: 1.05rem; height: 1.05rem; }

.site-footer__bottom { border-top: 1px solid var(--paper-10); padding: 1.15rem 0; }
.site-footer__bottom .wrap {
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--paper-45);
}

/* ==========================================================================
   12. Share row, misc
   ========================================================================== */

.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.share-row__label { font-size: .82rem; font-weight: 700; margin-right: .25rem; }
.share-row a, .share-row button {
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border: 1px solid var(--ink-35);
  background: transparent;
  color: var(--black);
  cursor: pointer;
  text-decoration: none;
}
.share-row a:hover, .share-row button:hover { background: var(--amber); border-color: var(--amber); }
.share-row svg { width: 1.05rem; height: 1.05rem; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.section-head__link { font-size: .9rem; font-weight: 700; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.section-head__link:hover { color: var(--amber); }

.pagination { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 3rem; }
.pagination .page-numbers {
  padding: .55rem .9rem;
  border: 1px solid var(--ink-35);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--amber); border-color: var(--amber); }

.error-404 { text-align: center; padding: clamp(5rem, 15vw, 9rem) 0; }
.error-404 .code { font-family: var(--font-display); font-size: clamp(5rem, 20vw, 10rem); line-height: 1; color: var(--amber); }

.footnote { font-size: .75rem; color: var(--ink-55); margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--ink-14); }

/* WordPress core alignment classes */
.alignleft { float: left; margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.alignwide { width: min(100%, 68rem); margin-inline: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); max-width: none; }
.wp-caption-text, .wp-element-caption { font-size: .78rem; color: var(--ink-55); }
.sticky, .gallery-caption, .bypostauthor { display: block; }

/* ==========================================================================
   13. Motion and print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .video-frame, .btn, .share-row { display: none !important; }
  body { color: #000; background: #fff; }
}
