/* jcc-website — shared styles. Mobile-first; desktop rules live in min-width media queries.

   Visual language matches the live johncampbellcrighton.com site: DM Sans, a black-and-white
   palette (pure black sections below a photo hero, pure white in this project's own
   light-theme equivalent — the live site has no light mode, so light mode here is this project's
   own inverted design using the same type/spacing/card language, not something copied from the
   live site), white/black pill buttons, and dark rounded cards on the black sections. Values for
   type size, letter-spacing, line-height, and card/button colors were read directly out of the
   live site's own Elementor-generated stylesheet (uicore-global.css and the per-page post-*.css
   files) rather than eyeballed from a screenshot — notably the card background is literally
   `#FFFFFF12` (white at ~7% alpha) over pure black, not a distinct gray hex, and the heading
   letter-spacing is -0.027em (which is where the "-1.728px at 64px" figure comes from: -1.728/64
   = -0.027). See the Theme + accent color section in README.md for how this composes with the
   light/dark/accent mechanism this file must keep working. */

:root {
  --bg: #ffffff;
  --surface: rgba(0, 0, 0, 0.045);
  --surface-border: rgba(0, 0, 0, 0.1);
  --surface-raised: #ffffff;
  --text: #121316;
  --text-muted: rgba(18, 19, 22, 0.66);
  --border: rgba(0, 0, 0, 0.12);
  --accent: #2f6fed;
  --accent-contrast: #ffffff;
  --btn-primary-bg: #121316;
  --btn-primary-text: #ffffff;
  --nav-solid-bg: rgba(255, 255, 255, 0.92);
  --icon-badge-bg: rgba(0, 0, 0, 0.07);
  --icon-badge-fg: #121316;
  --shadow: 0 1px 2px rgba(20, 22, 28, 0.05), 0 12px 28px rgba(20, 22, 28, 0.08);
  --radius-btn: 8px;
  --radius-card: 16px;
  --max-width: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --surface: rgba(255, 255, 255, 0.07);
    --surface-border: rgba(255, 255, 255, 0.12);
    --surface-raised: #0d0d0d;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.69);
    --border: rgba(255, 255, 255, 0.14);
    --accent-contrast: #05070a;
    --btn-primary-bg: #ffffff;
    --btn-primary-text: #000000;
    --nav-solid-bg: rgba(0, 0, 0, 0.92);
    --icon-badge-bg: rgba(255, 255, 255, 0.12);
    --icon-badge-fg: #ffffff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 28px rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  --bg: #000000;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-border: rgba(255, 255, 255, 0.12);
  --surface-raised: #0d0d0d;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.69);
  --border: rgba(255, 255, 255, 0.14);
  --accent-contrast: #05070a;
  --btn-primary-bg: #ffffff;
  --btn-primary-text: #000000;
  --nav-solid-bg: rgba(0, 0, 0, 0.92);
  --icon-badge-bg: rgba(255, 255, 255, 0.12);
  --icon-badge-fg: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 28px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 900px) {
  .container {
    padding: 0 48px;
  }
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.027em;
  margin: 0;
}

p {
  margin: 0;
}

/* ---------- header / nav ---------- */
/* Fixed, transparent over the hero photo (white text/logo, always, regardless of theme —
   matching the live site's own always-white nav-over-photo treatment); once the page scrolls
   past the hero, .is-scrolled (toggled by script.js) gives it a solid, theme-aware background so
   it stays legible over ordinary page content in both light and dark mode. */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: var(--nav-solid-bg);
  border-bottom-color: var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (min-width: 900px) {
  .site-header__bar {
    padding: 20px 48px;
  }
}

.site-logo {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.site-logo__img {
  height: 22px;
  width: auto;
  display: block;
}

.site-logo__img--dark {
  display: none;
}

/* Theme-based logo swap — only applies once the header has a solid, theme-colored background. */
.site-header.is-scrolled .site-logo__img--dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header.is-scrolled .site-logo__img--light {
    display: none;
  }

  :root:not([data-theme="light"]) .site-header.is-scrolled .site-logo__img--dark {
    display: block;
  }
}

:root[data-theme="dark"] .site-header.is-scrolled .site-logo__img--light {
  display: none;
}

:root[data-theme="dark"] .site-header.is-scrolled .site-logo__img--dark {
  display: block;
}

/* Transparent (over-hero) state: always the white wordmark, regardless of theme. Same
   specificity as the rules above (two classes + a class), placed after them, so it wins while
   the header has no .is-scrolled class. */
.site-header:not(.is-scrolled) .site-logo__img--light {
  display: none;
}

.site-header:not(.is-scrolled) .site-logo__img--dark {
  display: block;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
}

.site-header.is-scrolled .nav-toggle {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 12px 0 16px;
}

.site-nav.is-open {
  display: flex;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 0 14px 14px;
  padding: 12px 20px 20px;
  margin: 0 -20px;
  width: calc(100% + 40px);
  /* Sort after .header-controls (order: 1, below) in the wrapped flex row, so the open dropdown
     appears below the logo+controls row rather than being sandwiched between them — the DOM order
     (nav before header-controls, for the desktop layout's benefit) would otherwise wrap it there. */
  order: 2;
}

.site-nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-header.is-scrolled .site-nav a {
  color: var(--text);
}

/* The open mobile dropdown always has a fixed dark backdrop (regardless of scroll state or
   theme), so its links stay the constant white used for the transparent/over-hero state. Matches
   the specificity of the .is-scrolled rule above (three classes) and is placed after it, so it
   wins when both apply. */
.site-header .site-nav.is-open a {
  color: #ffffff;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Mobile: stay on the logo's row, ahead of the nav dropdown below (see .site-nav.is-open).
     Overridden to order: 3 at the desktop breakpoint, after the nav sits inline. */
  order: 1;
}

.nav-cta {
  white-space: nowrap;
}

/* Under 480px the logo, palette, "Contact John" and hamburger no longer fit one row (they need about
   450px), so the header wrapped into two rows. The CTA moves into the dropdown instead. */
.site-nav .nav-contact {
  display: none;
}

@media (max-width: 479px) {
  .header-controls .nav-cta {
    display: none;
  }

  .site-nav .nav-contact {
    display: block;
  }
}

@media (min-width: 900px) {
  .site-nav .nav-contact {
    display: none;
  }
}

@media (min-width: 900px) {
  .site-header__bar {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    padding: 0;
    gap: 28px;
    margin: 0 auto 0 40px;
  }

  /* Reset the mobile-only .is-open box styling (dark backdrop, blur, rounded corners, the
     wider-than-100% width, and its mobile order) in case .is-open is still applied when the
     viewport crosses this breakpoint (e.g. resizing a window, rotating a foldable) — .nav-toggle
     is hidden above, so there would otherwise be no way to remove the class, and .site-nav.is-open
     (0,2,0 specificity) outranks the plain .site-nav rule just above regardless of source order. */
  .site-nav.is-open {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    margin: 0 auto 0 40px;
    width: auto;
    order: 0;
  }

  .header-controls {
    order: 3;
  }
}

/* Just past the 900px breakpoint the inline nav, logo and controls barely fit, so "Press & Media"
   wrapped onto two lines over the photo. Keep each link on one line and tighten the spacing there. */
.site-nav a {
  white-space: nowrap;
}

@media (min-width: 900px) and (max-width: 1099px) {
  .site-header__bar {
    padding-left: 28px;
    padding-right: 28px;
  }

  .site-nav,
  .site-nav.is-open {
    gap: 18px;
    margin-left: 24px;
  }
}

/* ---------- display settings (theme + accent) ---------- */

.display-settings {
  position: relative;
}

.display-settings > summary {
  list-style: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.site-header.is-scrolled .display-settings > summary {
  border-color: var(--border);
  background: var(--surface);
}

.display-settings > summary::-webkit-details-marker {
  display: none;
}

.display-settings[open] > summary {
  border-color: var(--accent);
}

.display-panel {
  position: absolute;
  right: 0;
  top: 48px;
  width: 220px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 14px;
  z-index: 30;
}

.display-panel h3 {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.theme-choices {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.theme-choices button {
  flex: 1;
  padding: 6px 0;
  font-family: inherit;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.theme-choices button.is-active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.accent-choices {
  display: flex;
  gap: 8px;
}

.accent-choices button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--swatch);
  cursor: pointer;
  padding: 0;
}

.accent-choices button.is-active {
  border-color: var(--text);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.88;
}

.btn:active {
  transform: scale(0.98);
}

/* Theme-aware primary/secondary — used for buttons in ordinary page flow (not on the photo). */
.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

/* Fixed white/black — used only for buttons placed directly on the hero photo, and the nav CTA,
   matching the live site's own constant (not theme-dependent) white pill button. */
.btn--onphoto {
  background: #ffffff;
  color: #000000;
}

.btn--onphoto-secondary {
  background: rgba(0, 0, 0, 0.48);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.btn--sm {
  padding: 12px 24px;
  font-size: 0.88rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- hero ---------- */

/* Photo and text never overlap, so the face stays clear (the old full-bleed hero put a centred H1
   straight across the eyes and mouth). Mobile-first: the photo sits on top, fading to black into the
   text below it. From 900px the photo moves to the right and the text takes the left column. The
   hero is dark in both themes (the header over it is always white), and the photo's navy backdrop
   fades into the black, so no extended background is needed. */

.hero {
  position: relative;
  padding: 0;
}

.hero-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #000;
  padding-top: 72px;
  overflow: hidden;
}

.hero-photo__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0;
  object-fit: cover;
  object-position: 50% 12%;
  /* Short fade at the top (under the header, no hard seam) and a long one at the bottom into the text. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 62%, transparent 100%);
}

/* Full width, shorter crop on wider phones and tablets, so the photo never shows side edges. */
@media (min-width: 520px) {
  .hero-photo__img {
    aspect-ratio: 16 / 10;
  }
}

/* Kept in the markup, unused by this layout. */
.hero-photo__scrim {
  display: none;
}

.hero-photo__content {
  position: relative;
  width: 100%;
  padding-bottom: 56px;
  margin-top: -48px;
  text-align: center;
  color: #ffffff;
}

.hero-photo__content h1 {
  font-size: clamp(2.1rem, 5.6vw + 0.6rem, 4rem);
  line-height: 1.18;
  margin: 0 auto 18px;
  max-width: 18ch;
  color: #ffffff;
}

.hero-photo__content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 56ch;
  margin: 0 auto 28px;
}

.hero-photo__content .button-row {
  justify-content: center;
}

@media (min-width: 900px) {
  .hero-photo {
    flex-direction: row;
    align-items: center;
    min-height: 640px;
    padding-top: 0;
  }

  .hero-photo__img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 56%;
    max-width: none;
    height: 100%;
    aspect-ratio: auto;
    margin: 0;
    object-position: 50% 14%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%);
    mask-image: linear-gradient(to right, transparent 0%, #000 38%);
  }

  .hero-photo__content {
    padding-top: 120px;
    padding-bottom: 72px;
    margin-top: 0;
    text-align: left;
  }

  .hero-photo__content h1,
  .hero-photo__content p {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-photo__content h1 {
    max-width: 12ch;
  }

  .hero-photo__content p {
    max-width: 38ch;
  }

  .hero-photo__content .button-row {
    justify-content: flex-start;
  }
}

@media (min-width: 1100px) {
  .hero-photo {
    min-height: 720px;
    max-height: 780px;
  }
}

/* ---------- generic sections ---------- */

section {
  padding: 56px 0;
}

@media (min-width: 900px) {
  section {
    padding: 88px 0;
  }
}

.section-eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3.6vw + 0.6rem, 3rem);
  line-height: 1.2;
}

/* ---------- featured-in logo strip ---------- */
/* Fixed dark band, independent of site theme — the source logos are white-only assets and need a
   dark backdrop regardless of light/dark mode, same reasoning as press-item__logo below. */

.featured-strip {
  background: #000000;
  padding: 32px 0 48px;
}

.featured-strip__label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  margin: 0 0 24px;
}

/* Fixed-width cells, centred rows: the 17 logos are a prime count, so a flowing flex row left one
   logo alone on the last line. 3 per row on phones, 5 from 640px, 6 from 900px: the last row always
   holds 2 or more (3x5+2, 5x3+2, 6x2+5). Each logo is contained in its cell so a wide one shrinks
   instead of overflowing. */
.featured-strip__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 0;
}

.featured-strip__grid img {
  flex: 0 0 33.333%;
  width: 33.333%;
  height: 24px;
  padding: 0 12px;
  box-sizing: border-box;
  object-fit: contain;
  opacity: 0.85;
}

@media (min-width: 640px) {
  .featured-strip__grid img {
    flex-basis: 20%;
    width: 20%;
  }
}

@media (min-width: 900px) {
  .featured-strip__grid img {
    flex-basis: 16.666%;
    width: 16.666%;
  }
}

/* ---------- icon badges ---------- */

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--icon-badge-bg);
  color: var(--icon-badge-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-badge svg {
  width: 24px;
  height: 24px;
}

/* ---------- card grid (icon-top cards) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 28px;
}

.card .icon-badge {
  margin-bottom: 20px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- expert rows (icon-left, stacked full-width cards) ---------- */

.expert-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.expert-row {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.expert-row h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.expert-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- quote ---------- */

.quote-block {
  text-align: center;
}

.quote-block blockquote {
  margin: 0 auto 28px;
  font-size: clamp(1.3rem, 2.6vw + 0.6rem, 1.9rem);
  font-weight: 700;
  line-height: 1.4;
  max-width: 46ch;
  letter-spacing: -0.01em;
}

.quote-block blockquote::before {
  content: open-quote;
  color: var(--accent);
}

.quote-block blockquote::after {
  content: close-quote;
  color: var(--accent);
}

.quote-attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.95rem;
}

.quote-attribution::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--border);
}

.quote-attribution img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* ---------- profile / closing CTA band ---------- */

.profile-band {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

@media (min-width: 640px) {
  .profile-band {
    flex-direction: row;
    text-align: left;
    padding: 36px 40px;
  }
}

.avatar-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.profile-band h2 {
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.profile-band p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.profile-band .btn {
  margin: 0 auto;
}

@media (min-width: 640px) {
  .profile-band .btn {
    margin: 0;
  }
}

/* ---------- timeline (employment history) ---------- */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.timeline-entry {
  border-left: 2px solid var(--border);
  padding-left: 20px;
  position: relative;
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-entry .role {
  font-weight: 700;
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.timeline-entry .meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 10px;
}

.timeline-entry p:last-child {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- press list ---------- */

.press-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.press-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 760px) {
  .press-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}

.press-item__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  border-radius: 8px;
  padding: 10px 16px;
  flex-shrink: 0;
}

.press-item__logo img {
  height: 20px;
  width: auto;
  max-width: 132px;
}

.press-item__title {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
  flex: 1;
}

@media (min-width: 760px) {
  .press-item__title {
    text-align: center;
  }
}

.press-item__title:hover {
  color: var(--accent);
}

.press-item__read {
  flex-shrink: 0;
  align-self: flex-start;
}

@media (min-width: 760px) {
  .press-item__read {
    align-self: center;
  }
}

/* ---------- education box ---------- */

.info-box {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 28px;
}

.info-box .role {
  font-weight: 700;
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.info-box .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 10px;
}

.info-box p:last-child {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- footer ---------- */

.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
}

.site-footer__brand h2 {
  font-size: 1.6rem;
  margin: 0 0 8px;
}

.site-footer__brand p {
  color: var(--text-muted);
  margin: 0 0 32px;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .site-footer__columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer__columns h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.footer-nav,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a,
.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:hover,
.footer-links a:hover {
  color: var(--accent);
}

.site-footer__legal {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}
