:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --paper: #ffffff;
  --wash: #f4f7fb;
  --line: #dce3ed;
  --brand: #125f93;
  --brand-dark: #0a3d63;
  --brand-light: #d9efff;
  --accent: #f39a2d;
  --success: #2b7a4b;
  --danger: #a03232;
  --content: 78rem;
  --reading: 48rem;
  --radius: 0.7rem;
  --shadow: 0 1rem 2.5rem rgb(23 32 51 / 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.2rem;
  content: "";
  background: linear-gradient(90deg, var(--brand), #2e91bd, var(--accent));
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-dark);
}

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

iframe {
  max-width: 100%;
  border: 0;
}

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

button,
.button,
.btn,
input[type="submit"] {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 0.4rem;
  color: #fff;
  background: var(--brand);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

button:hover,
.button:hover,
.btn:hover,
input[type="submit"]:hover {
  color: #fff;
  background: var(--brand-dark);
}

:focus-visible {
  outline: 0.2rem solid var(--accent);
  outline-offset: 0.2rem;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.7rem 1rem;
  transform: translateY(-150%);
  border-radius: 0.35rem;
  color: #fff;
  background: var(--ink);
}

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

.site-header {
  color: #fff;
  background: #0b0908;
}

.hero {
  position: relative;
  min-height: 17rem;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgb(0 0 0 / 0.32), rgb(0 0 0 / 0.08));
}

.hero-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left 66%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: var(--content);
  min-height: 17rem;
  grid-template-columns: minmax(9rem, 16rem) 1fr;
  align-items: end;
  gap: clamp(1rem, 5vw, 4rem);
  margin: 0 auto;
  padding: 2.4rem clamp(1rem, 4vw, 3rem) 0;
}

.hero-photo {
  width: min(100%, 13.5rem);
  aspect-ratio: 1;
  margin-bottom: 1.5rem;
  border: 0.25rem solid #fff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 0.8rem 2rem rgb(0 0 0 / 0.35);
}

.hero-copy {
  padding-bottom: 2.7rem;
}

.hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-shadow: 0 0.12rem 0.5rem rgb(0 0 0 / 0.55);
}

.hero-subtitle {
  margin: 0.8rem 0 0;
  color: #dff5ff;
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-shadow: 0 0.1rem 0.35rem rgb(0 0 0 / 0.65);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.4rem;
}

.social-links a {
  display: inline-grid;
  min-width: 2.4rem;
  min-height: 2.4rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 999px;
  color: #fff;
  background: rgb(255 255 255 / 0.09);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.social-links a:hover {
  background: rgb(255 255 255 / 0.2);
}

.navigation-wrap {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 0.96);
  box-shadow: 0 0.2rem 1rem rgb(23 32 51 / 0.06);
  backdrop-filter: blur(0.7rem);
}

.navigation {
  display: flex;
  max-width: var(--content);
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin: 0 auto;
  padding: 0.5rem clamp(1rem, 4vw, 3rem);
}

.brand-link {
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-menu,
.footer-menu,
.pagination,
.post-taxonomies,
.comments-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.6rem);
}

.desktop-menu a {
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.desktop-menu a[aria-current="page"],
.desktop-menu a:hover {
  color: var(--brand);
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu ul {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: min(18rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  list-style: none;
}

.mobile-menu a {
  display: block;
  padding: 0.6rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-shell {
  display: grid;
  max-width: var(--content);
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem);
  gap: clamp(2rem, 5vw, 5rem);
  margin: 0 auto;
  padding: clamp(2.2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
}

.site-main {
  min-width: 0;
}

.page-header {
  margin-bottom: 2.4rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

h2 {
  margin-top: 2.2em;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

h3 {
  margin-top: 1.9em;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.page-description,
.post-excerpt {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.posts-list {
  display: grid;
  gap: 1.4rem;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 0.45rem 1.5rem rgb(23 32 51 / 0.045);
}

.post-card--with-image {
  grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
}

.post-card-image {
  width: 100%;
  height: 100%;
  min-height: 10rem;
  border-radius: 0.45rem;
  object-fit: cover;
}

.post-card h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.post-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--brand);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.post-card p {
  margin: 0;
}

.read-more {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 800;
}

.article {
  max-width: var(--reading);
}

.article-header {
  margin-bottom: 2.8rem;
}

.article-content {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.4vw, 1.16rem);
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content pre,
.article-content table,
.article-content figure {
  margin-top: 1.35rem;
  margin-bottom: 1.35rem;
}

.article-content img,
.wp-caption,
.gallery,
.wp-block-image {
  margin-right: auto;
  margin-left: auto;
}

.article-content img {
  border-radius: 0.35rem;
}

.alignleft {
  float: left;
  margin: 0.4rem 1.4rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.4rem 0 1rem 1.4rem;
}

.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

blockquote {
  margin-left: 0;
  padding: 0.15rem 0 0.15rem 1.4rem;
  border-left: 0.25rem solid var(--accent);
  color: #344054;
  font-style: italic;
}

pre,
code,
kbd,
samp {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
  padding: 0.12em 0.3em;
  border-radius: 0.25rem;
  background: #eef3f8;
  font-size: 0.88em;
}

pre {
  overflow-x: auto;
  padding: 1.2rem;
  border-radius: 0.5rem;
  color: #e6edf3;
  background: #172033;
  font-size: 0.88rem;
  line-height: 1.6;
  tab-size: 4;
}

pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.7rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--wash);
}

.gallery,
.image-grid,
.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.8rem;
}

.gallery > *,
.image-grid > *,
.wp-block-gallery > * {
  margin: 0;
}

.post-taxonomies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.8rem;
}

.post-taxonomies a,
.tag-cloud a {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-light);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.site-sidebar {
  min-width: 0;
}

.sidebar-card {
  margin-bottom: 1.4rem;
  padding: 1.3rem;
  border-radius: var(--radius);
  background: var(--wash);
}

.sidebar-card h2 {
  margin: 0 0 0.8rem;
  font-size: 1.08rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
}

.search-form label {
  grid-column: 1 / -1;
  font-weight: 750;
}

input[type="search"],
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #b7c2d0;
  border-radius: 0.35rem;
  color: var(--ink);
  background: #fff;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.pagination a {
  font-weight: 800;
}

.comments {
  max-width: var(--reading);
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.comments h2 {
  margin-top: 0;
}

.comments-list {
  display: grid;
  gap: 1rem;
}

.comment {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.comment-meta {
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.static-notice {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-left: 0.25rem solid var(--brand);
  border-radius: 0.25rem;
  background: var(--brand-light);
}

.static-notice--warning {
  border-left-color: var(--accent);
  background: #fff5e8;
}

.video-facade {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at center, rgb(255 255 255 / 0.12), transparent 35%),
    linear-gradient(135deg, #14263b, #0b5277);
}

.video-facade button {
  min-width: 8rem;
  box-shadow: 0 0.6rem 1.4rem rgb(0 0 0 / 0.25);
}

.video-facade button[hidden] {
  display: none;
}

.video-actions {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  text-align: center;
}

.video-actions a {
  color: #fff;
  text-decoration: underline;
}

.video-facade :focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.video-facade iframe {
  width: 100%;
  height: 100%;
}

.book,
.card,
.panel {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.book {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  align-items: start;
  gap: 1.4rem;
  margin: 1.5rem 0;
}

.book img {
  width: 100%;
  max-width: 10rem;
  margin: 0 auto;
  border: 1px solid var(--line);
  box-shadow: 0 0.55rem 1.2rem rgb(23 32 51 / 0.12);
}

.book > div:last-child > p:first-child {
  margin-top: 0;
  font-size: 1.08rem;
  line-height: 1.45;
}

.yellow-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid #9c6b12;
  border-radius: 999px;
  color: #382500;
  background: #f2c85b;
  font-weight: 750;
  text-decoration: none;
}

.yellow-button:hover {
  color: #2c1b00;
  background: #ffd979;
}

.invisible {
  display: none !important;
}

.search-results {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.search-result {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.search-result h2 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
}

.site-footer {
  position: relative;
  overflow: hidden;
  color: #d9e6ef;
  background: #102235;
}

.footer-inner {
  display: grid;
  max-width: var(--content);
  grid-template-columns: 1fr auto;
  gap: 2rem;
  margin: 0 auto;
  padding: 3rem clamp(1rem, 4vw, 3rem);
}

.footer-brand {
  margin: 0;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 850;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem 1.4rem;
}

.footer-menu a {
  color: #fff;
}

.copyright {
  margin: 1rem 0 0;
  color: #a9bac7;
  font-size: 0.84rem;
}

.footer-wizard {
  align-self: end;
  width: 5.4rem;
  opacity: 0.85;
}

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

.clearfix::after,
.article-content::after {
  display: table;
  clear: both;
  content: "";
}

@media (max-width: 58rem) {
  .desktop-menu {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .site-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
  }

  .sidebar-card {
    margin: 0;
  }
}

@media (max-width: 42rem) {
  .hero-background {
    object-position: center 66%;
  }

  .hero {
    min-height: 12rem;
  }

  .hero-inner {
    min-height: 12rem;
    grid-template-columns: 7rem 1fr;
    gap: 1rem;
    padding-top: 2rem;
  }

  .hero-photo {
    margin-bottom: 1.2rem;
  }

  .hero-copy {
    padding-bottom: 1.4rem;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .social-links {
    display: none;
  }

  .post-card--with-image {
    grid-template-columns: 1fr;
  }

  .post-card-image {
    max-height: 15rem;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-menu {
    justify-content: flex-start;
  }

  .alignleft,
  .alignright {
    float: none;
    margin-right: auto;
    margin-left: auto;
  }
}

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

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

@media print {
  .site-header,
  .navigation-wrap,
  .site-sidebar,
  .site-footer,
  .pagination,
  .search-form,
  .video-facade button {
    display: none !important;
  }

  body {
    color: #000;
    font-size: 11pt;
  }

  .site-shell,
  .article {
    display: block;
    max-width: none;
    padding: 0;
  }

  a {
    color: inherit;
  }
}
