/*
Theme Name: ZolCat Oceanic Academic
Theme URI: https://zolcat.com/
Author: ZolCat Academic House
Author URI: https://zolcat.com/
Description: A refined blue-green editorial WordPress theme for technology intelligence, scholarly journals, books and monographs.
Version: 1.5.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: zolcat-oceanic-academic
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --zc-ink: #101820;
  --zc-ink-soft: #24313f;
  --zc-text: #344251;
  --zc-muted: #687582;
  --zc-paper: #f8faf7;
  --zc-surface: #ffffff;
  --zc-ultramarine: #1a2b94;
  --zc-cobalt: #3255b8;
  --zc-sky: #70b9e3;
  --zc-seafoam: #afdfc5;
  --zc-jade: #167c73;
  --zc-signal: #ded644;
  --zc-blue-wash: #edf3fc;
  --zc-green-wash: #e8f6f2;
  --zc-border: #d8e1e5;
  --zc-border-dark: #aebbc4;
  --zc-shadow: 0 22px 55px rgba(16, 24, 32, 0.10);
  --zc-content: 1180px;
  --zc-reading: 800px;
  --zc-radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--zc-text);
  background: var(--zc-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header { top: 32px; }

a {
  color: var(--zc-ultramarine);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--zc-jade); }

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

button,
input,
textarea,
select { font: inherit; }

::selection {
  color: #fff;
  background: var(--zc-ultramarine);
}

.container {
  width: min(calc(100% - 40px), var(--zc-content));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 99999;
  top: 10px;
  left: 10px;
  padding: 0.72rem 1rem;
  color: #fff;
  background: var(--zc-ink);
  border-radius: 6px;
  transform: translateY(-170%);
}

.skip-link:focus { transform: translateY(0); }

/* Header: quiet, precise, recognisable. */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  border-top: 4px solid var(--zc-ultramarine);
  border-bottom: 1px solid var(--zc-border);
  backdrop-filter: blur(16px);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--zc-ultramarine) 0 60%,
    var(--zc-jade) 60% 88%,
    var(--zc-signal) 88% 100%
  );
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
}

.site-branding {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.custom-logo-link,
.historical-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  width: auto;
  max-height: 48px;
}

.historical-logo {
  width: auto;
  max-width: 176px;
  max-height: 54px;
  object-fit: contain;
}

.brand-copy { min-width: 0; }

.site-title {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  font-weight: 700;
  line-height: 1.08;
}

.site-title a {
  color: var(--zc-ink);
  text-decoration: none;
}

.site-description {
  margin: 0.18rem 0 0;
  color: var(--zc-muted);
  font-size: 0.68rem;
  letter-spacing: 0.10em;
  line-height: 1.25;
  text-transform: uppercase;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation li { position: relative; }

.primary-navigation a {
  display: block;
  padding: 0.62rem 0.72rem;
  color: var(--zc-ink-soft);
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 680;
  text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
  color: #fff;
  background: var(--zc-ultramarine);
}

.primary-navigation .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  display: none;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--zc-border);
  border-radius: 10px;
  box-shadow: var(--zc-shadow);
}

.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu { display: block; }

.primary-navigation .sub-menu a { white-space: nowrap; }

.menu-toggle {
  display: none;
  padding: 0.58rem 0.75rem;
  color: var(--zc-ink);
  background: #fff;
  border: 1px solid var(--zc-border-dark);
  border-radius: 7px;
  cursor: pointer;
}

/* Hero: large editorial image, restrained colour field. */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 15%, rgba(175, 223, 197, 0.32), transparent 27rem),
    linear-gradient(135deg, #ffffff 0%, #edf3fc 100%);
  border-bottom: 1px solid var(--zc-border);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 1px;
  background: rgba(26, 43, 148, 0.10);
}

.hero-inner {
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: var(--zc-jade);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-kicker::before,
.section-kicker::before {
  content: "";
  width: 38px;
  height: 3px;
  background: var(--zc-signal);
}

.hero-title {
  max-width: 760px;
  margin: 0;
  color: var(--zc-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(2.75rem, 5.2vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.042em;
  line-height: 1.01;
}

.hero-copy {
  max-width: 680px;
  margin: 1.45rem 0 0;
  color: var(--zc-muted);
  font-size: clamp(1.04rem, 1.8vw, 1.18rem);
}

.hero-actions,
.card-actions,
.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-top: 1.8rem;
}

.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.05rem;
  color: #fff;
  background: var(--zc-ultramarine);
  border: 1px solid var(--zc-ultramarine);
  border-radius: 6px;
  font-weight: 730;
  line-height: 1.1;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  color: #fff;
  background: var(--zc-jade);
  border-color: var(--zc-jade);
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--zc-ultramarine);
  background: transparent;
  border-color: var(--zc-ultramarine);
}

.button-secondary:hover {
  color: #fff;
  background: var(--zc-ultramarine);
}

.hero-visual,
.feature-visual,
.books-visual,
.profile-cover {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--zc-border-dark);
  border-radius: var(--zc-radius);
  box-shadow: var(--zc-shadow);
}

.hero-visual {
  position: relative;
}

.hero-visual::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 120px;
  height: 12px;
  background: var(--zc-signal);
}

.hero-caption,
.visual-caption,
.profile-cover figcaption {
  margin: 0;
  padding: 0.82rem 1rem;
  color: var(--zc-muted);
  background: #fff;
  border-top: 1px solid var(--zc-border);
  font-size: 0.8rem;
}

/* Shared sections. */
.section {
  padding-block: clamp(4rem, 7vw, 6.8rem);
}

.section-surface { background: #fff; }

.section-blue {
  background: var(--zc-blue-wash);
  border-block: 1px solid #d3def1;
}

.section-green {
  background: var(--zc-green-wash);
  border-block: 1px solid #cfe4dc;
}

.section-paper {
  background: var(--zc-paper);
  border-block: 1px solid var(--zc-border);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 1.22fr);
  gap: 2.4rem;
  align-items: end;
  margin-bottom: 2.2rem;
}

.section-title {
  margin: 0;
  color: var(--zc-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(2.15rem, 4.2vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.034em;
  line-height: 1.04;
}

.section-intro {
  max-width: 700px;
  margin: 0;
  color: var(--zc-muted);
  font-size: 1.03rem;
}

/* Direction rail: no exaggerated cards, just editorial divisions. */
.direction-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--zc-border);
  border-radius: var(--zc-radius);
  overflow: hidden;
}

.direction-item {
  min-height: 230px;
  padding: 1.7rem 1.6rem;
  border-right: 1px solid var(--zc-border);
}

.direction-item:last-child { border-right: 0; }

.direction-number {
  display: block;
  margin-bottom: 2.7rem;
  color: var(--zc-jade);
  font-family: Georgia, serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.direction-item h3 {
  margin: 0;
  color: var(--zc-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.15;
}

.direction-item p {
  margin: 0.75rem 0 0;
  color: var(--zc-muted);
  font-size: 0.94rem;
}

/* Science and Nature feature. */
.feature-layout,
.books-layout,
.journal-direction,
.profile-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}

.feature-visual,
.profile-cover {
  max-width: 405px;
  justify-self: center;
}

.feature-visual img,
.profile-cover img {
  width: 100%;
  aspect-ratio: 595 / 842;
  object-fit: cover;
}

.feature-copy h2,
.books-copy h2,
.journal-copy h2,
.profile-copy h1 {
  margin: 0;
  color: var(--zc-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 600;
  line-height: 1.05;
}

.feature-copy h2,
.books-copy h2,
.journal-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.55rem);
}

.profile-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.35rem);
}

.feature-copy p,
.books-copy p,
.journal-copy p,
.profile-copy p { color: var(--zc-muted); }

.status-note {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  color: var(--zc-text);
  background: rgba(255, 255, 255, 0.78);
  border-left: 4px solid var(--zc-signal);
}

.intelligence-points,
.resource-list,
.simple-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.45rem 0 0;
  padding: 0;
  list-style: none;
}

.intelligence-points li,
.resource-list li,
.simple-list li {
  padding: 0.65rem 0 0.65rem 1rem;
  border-left: 3px solid var(--zc-jade);
}

/* Books. */
.books-layout {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.95fr);
}

.books-visual { max-width: 620px; }

.publisher-principle {
  padding: clamp(1.7rem, 4vw, 2.7rem);
  background: #fff;
  border: 1px solid var(--zc-border-dark);
  border-left: 7px solid var(--zc-ultramarine);
}

.publisher-principle blockquote {
  margin: 0;
  color: var(--zc-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.2;
}

.publisher-principle p {
  margin: 1rem 0 0;
  color: var(--zc-muted);
}

/* FSS: independent, later, low-key. */
.journal-direction {
  grid-template-columns: 190px minmax(0, 1fr);
}

.journal-mark {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(145deg, var(--zc-ultramarine), var(--zc-jade));
  border-radius: 50%;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 2.2rem;
  letter-spacing: 0.06em;
}

/* Cards and indexes. */
.news-grid,
.archive-grid,
.book-grid,
.intelligence-grid,
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.post-card,
.book-card,
.intelligence-card,
.resource-card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  background: #fff;
  border: 1px solid var(--zc-border);
  border-radius: 12px;
}

.post-card h2,
.post-card h3,
.book-card h2,
.book-card h3,
.intelligence-card h2,
.intelligence-card h3,
.resource-card h2,
.resource-card h3 {
  margin: 0;
  color: var(--zc-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  line-height: 1.2;
}

.post-card h3,
.book-card h3,
.intelligence-card h3,
.resource-card h3 { font-size: 1.3rem; }

.post-card h2 a,
.post-card h3 a,
.book-card h2 a,
.book-card h3 a,
.intelligence-card h2 a,
.intelligence-card h3 a {
  color: inherit;
  text-decoration: none;
}

.post-card p,
.book-card p,
.intelligence-card p,
.resource-card p {
  color: var(--zc-muted);
  font-size: 0.94rem;
}

.post-card .read-more,
.book-card .read-more,
.intelligence-card .read-more {
  margin-top: auto;
  padding-top: 0.8rem;
  font-weight: 700;
}

.book-cover,
.intelligence-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--zc-blue-wash), var(--zc-green-wash));
  border: 1px solid var(--zc-border);
  border-radius: 6px;
}

.intelligence-cover { aspect-ratio: 16 / 9; }

.book-cover img,
.intelligence-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--zc-ultramarine);
  font-family: Georgia, serif;
  text-align: center;
}

/* Pages. */
.page-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(175, 223, 197, 0.25), transparent 20rem),
    linear-gradient(135deg, #fff 0%, var(--zc-blue-wash) 100%);
  border-bottom: 1px solid var(--zc-border);
}

.page-hero-inner {
  padding-block: clamp(3.3rem, 6vw, 5.2rem);
}

.page-title {
  max-width: 920px;
  margin: 0;
  color: var(--zc-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(2.45rem, 5vw, 4.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.content-wrap { padding-block: clamp(3rem, 6vw, 5.4rem); }

.entry-shell {
  width: min(calc(100% - 40px), var(--zc-reading));
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--zc-border);
  border-radius: 14px;
  box-shadow: 0 16px 45px rgba(16, 24, 32, 0.06);
}

.entry-content > * {
  margin-top: 0;
  margin-bottom: 1.32rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--zc-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  line-height: 1.2;
}

.entry-content h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.entry-content h3 {
  margin-top: 1.9rem;
  font-size: 1.4rem;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--zc-border);
}

.entry-content th,
.entry-content td {
  padding: 0.82rem 0.95rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--zc-border);
}

.entry-content th {
  color: #fff;
  background: var(--zc-ultramarine);
}

.entry-content blockquote {
  margin-inline: 0;
  padding: 1.1rem 1.3rem;
  color: var(--zc-ink);
  background: var(--zc-green-wash);
  border-left: 4px solid var(--zc-jade);
}

.entry-meta {
  color: var(--zc-muted);
  font-size: 0.84rem;
}

.archive-shell,
.profile-shell { padding-block: clamp(3rem, 6vw, 5.2rem); }

.profile-cover {
  justify-self: center;
}

.profile-section {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--zc-border);
}

.profile-section h2 {
  margin: 0 0 1rem;
  color: var(--zc-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 600;
}

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

.historical-document {
  padding: 1.2rem;
  color: var(--zc-text);
  background: #fff;
  border: 1px solid var(--zc-border);
  border-left: 4px solid var(--zc-signal);
  text-decoration: none;
}

.historical-document strong {
  display: block;
  color: var(--zc-ink);
}

.historical-document span {
  display: block;
  margin-top: 0.35rem;
  color: var(--zc-muted);
  font-size: 0.85rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--zc-green-wash);
  border: 1px solid #c8dfd7;
  border-radius: 14px;
}

.contact-panel img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  background: #fff;
  border: 8px solid #fff;
}

.pagination,
.posts-navigation,
.post-navigation { margin-top: 2.2rem; }

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.nav-links a,
.page-numbers {
  display: inline-flex;
  padding: 0.62rem 0.8rem;
  background: #fff;
  border: 1px solid var(--zc-border);
  border-radius: 6px;
  text-decoration: none;
}

.search-form {
  display: flex;
  gap: 0.6rem;
}

.search-form label { flex: 1; }

.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  color: var(--zc-text);
  background: #fff;
  border: 1px solid var(--zc-border-dark);
  border-radius: 6px;
}

/* Footer: deep ocean rather than generic dark grey. */
.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(135deg, #101820 0%, #13245b 100%);
  border-top: 5px solid var(--zc-jade);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 0.75fr;
  gap: 2rem;
  padding-block: 3.4rem;
}

.footer-brand h2 {
  margin: 0;
  color: #fff;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.55rem;
}

.footer-brand p {
  max-width: 530px;
  color: rgba(255, 255, 255, 0.68);
}

.footer-title {
  margin: 0 0 0.75rem;
  color: var(--zc-seafoam);
  font-size: 0.73rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

.footer-links li { margin-bottom: 0.42rem; }

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover { color: var(--zc-signal); }

.footer-bottom {
  padding-block: 1rem;
  color: rgba(255, 255, 255, 0.60);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
}

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

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 0.8rem 1rem;
  color: #fff;
  background: var(--zc-ink);
  clip: auto !important;
}

:focus-visible {
  outline: 3px solid var(--zc-signal);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 46px; }

  .menu-toggle { display: inline-flex; }

  .primary-navigation {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    padding: 0.6rem;
    background: #fff;
    border: 1px solid var(--zc-border);
    border-radius: 10px;
    box-shadow: var(--zc-shadow);
  }

  .primary-navigation.is-open { display: block; }

  .primary-navigation ul { display: block; }

  .primary-navigation .sub-menu {
    position: static;
    display: block;
    padding-left: 1rem;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .hero::before { display: none; }

  .hero-inner,
  .section-header,
  .feature-layout,
  .books-layout,
  .journal-direction,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .direction-rail {
    grid-template-columns: 1fr;
  }

  .direction-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--zc-border);
  }

  .direction-item:last-child { border-bottom: 0; }

  .direction-number { margin-bottom: 1.2rem; }

  .hero-visual,
  .feature-visual,
  .profile-cover {
    width: min(100%, 540px);
    justify-self: start;
  }

  .journal-mark {
    width: 150px;
    height: 150px;
  }

  .news-grid,
  .archive-grid,
  .book-grid,
  .intelligence-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .history-grid { grid-template-columns: 1fr; }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }
}

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

  .container,
  .entry-shell {
    width: min(calc(100% - 24px), var(--zc-content));
  }

  .site-description { display: none; }

  .historical-logo { max-width: 140px; }

  .hero-title {
    font-size: clamp(2.3rem, 12vw, 3.55rem);
  }

  .hero-actions,
  .card-actions,
  .entry-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .wp-block-button__link { width: 100%; }

  .entry-content table {
    display: block;
    overflow-x: auto;
  }

  .contact-panel { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
