/* Shared structure for every look. Looks set the tokens in assets/css/looks/. */

:root {
  --paper: #fff;
  --paper-2: #f5f2ea;
  --ink: #222;
  --ink-2: #555;
  --rule: #ddd;
  --font-heading: Georgia, serif;
  --font-body: system-ui, sans-serif;
  --heading-weight: 500;
  --radius: 3px;
  --text-size: 1.125rem;
  --wrap: min(72rem, calc(100% - 2.5rem));
  --content: min(46rem, calc(100% - 2.5rem));

  /* The scheduled color arrives inline. These are only fallbacks. */
  --hl: #2f5d43;
  --hl-ink: #2f5d43;
  --hl-on: #fff;
  --hl-light: #9bc4ab;

  --hl-tint: color-mix(in oklab, var(--hl) 11%, var(--paper));
  --g1: var(--hl);
  --g2: color-mix(in oklab, var(--hl) 70%, white);
  --g3: color-mix(in oklab, var(--hl) 68%, black);
  --g4: color-mix(in oklab, var(--hl) 40%, white);
  --g5: #d9b65c;
  --rubric: #a32a1f;
}

/* Richer glass where the browser can adjust a color's lightness directly. */
@supports (color: oklch(from red l c h)) {
  :root {
    --g1: oklch(from var(--hl) calc(l + 0.05) calc(c * 1.3) h);
    --g2: oklch(from var(--hl) calc(l + 0.17) calc(c * 1.3) h);
    --g3: oklch(from var(--hl) calc(l - 0.07) calc(c * 1.1) h);
    --g4: oklch(from var(--hl) calc(l + 0.31) calc(c * 1.05) h);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-size);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--heading-weight); line-height: 1.15; margin: 0; }
p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; }
a { color: var(--hl-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--hl-ink); outline-offset: 2px; }
.site-main:focus { outline: none; }

.wrap { width: var(--wrap); margin-inline: auto; }
.wrap--content { width: var(--content); }

.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 60; padding: 0.7rem 1.1rem; color: #fff; background: #111; }
.skip-link:focus { top: 0.5rem; }

.button, .wp-block-button__link, .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.55rem 1.5rem;
  color: var(--hl-on);
  background: var(--hl);
  border: 2px solid var(--hl);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.button:hover, .wp-block-button__link:hover { color: var(--hl-on); background: color-mix(in oklab, var(--hl) 82%, black); border-color: color-mix(in oklab, var(--hl) 82%, black); }
.button--ghost { color: var(--ink); background: transparent; border-color: var(--ink); }
.button--ghost:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }

/* Demo bar */
.demo-bar { color: #f4eedf; background: #1a1714; font-size: 0.98rem; }
.demo-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.5rem; padding: 0.45rem 0; }
.demo-bar__note { margin: 0 auto 0 0; }
.demo-bar label { display: inline-flex; align-items: center; gap: 0.45rem; }
.demo-bar select { min-height: 38px; padding: 0.1rem 0.45rem; font: inherit; color: #1a1714; background: #f4eedf; border: 0; border-radius: 3px; }
.demo-bar a { color: #f4eedf; }
.demo-bar :focus-visible { outline-color: #fff; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding: 0.9rem 0; }
.brand { display: flex; align-items: center; gap: 0.85rem; min-width: 0; color: inherit; text-decoration: none; }
.brand__mark { flex: none; width: 56px; height: 56px; }
.brand__mark svg { display: block; width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-heading); font-size: 1.45rem; font-weight: var(--heading-weight); }
.brand__place { margin-top: 0.15rem; color: var(--ink-2); font-size: 0.98rem; }
.custom-logo-link { display: block; }
.custom-logo { display: block; width: auto; max-height: 72px; }

.nav-toggle { display: none; min-height: 48px; padding: 0.3rem 1.15rem; color: inherit; background: transparent; border: 2px solid currentColor; border-radius: var(--radius); font: 600 1.05rem var(--font-body); cursor: pointer; }

.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav .menu, .site-nav .menu-fallback > ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.35rem; }
.site-nav li { position: relative; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-ancestor > a, .site-nav .current-page-ancestor > a { border-bottom-color: var(--hl); }
.site-nav .menu-cta > a { padding: 0.35rem 1.15rem; color: var(--hl-on); background: var(--hl); border: 0; border-radius: var(--radius); }
.submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 44px; padding: 0; color: inherit; background: none; border: 0; cursor: pointer; vertical-align: top; }
.submenu-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.menu-item-has-children > a { margin-right: -0.5rem; }
.site-nav .sub-menu { position: absolute; left: 0; top: 100%; z-index: 40; display: none; min-width: 16rem; padding: 0.4rem 0; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14); }
.site-nav .is-open > .sub-menu { display: block; }
.site-nav .sub-menu a { display: flex; padding: 0.45rem 1rem; border: 0; font-weight: 400; }
.site-nav .sub-menu a:hover { color: var(--hl-ink); background: var(--hl-tint); }

/* Hero parts shared by looks */
.hero__title em { color: var(--hl-ink); }
.hero__text { font-family: var(--font-heading); font-size: clamp(1.35rem, 2.3vw, 1.65rem); line-height: 1.35; margin: 1.25rem 0 0; max-width: 34em; }
.hero__motto { margin: 0.9rem 0 0; color: var(--ink-2); font-style: italic; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero__art { margin: 0; }
.hero__art svg { display: block; width: 100%; height: auto; }
.panes path { stroke: #1b1712; stroke-width: 2; stroke-linejoin: round; }
.g1 { fill: var(--g1); }
.g2 { fill: var(--g2); }
.g3 { fill: var(--g3); }
.g4 { fill: var(--g4); }
.g5 { fill: var(--g5); }

.service-times { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.service-times li { display: flex; flex-direction: column; padding: 0.7rem 0; border-top: 1px solid var(--rule); }
.service-times li:last-child { border-bottom: 1px solid var(--rule); }
.service-times__when { font-family: var(--font-heading); font-size: 1.45rem; line-height: 1.25; }
.service-times__name { color: var(--ink-2); font-weight: 600; }
.service-times--plain { margin: 0; }
.service-times--plain li, .service-times--plain li:last-child { padding: 0 0 0.6rem; border: 0; }
.service-times--plain .service-times__when { font-family: inherit; font-size: inherit; }
.service-times--plain .service-times__name { color: inherit; font-weight: 400; }

/* Home sections */
.home-content { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--paper-2); }
.entry-content--home { max-width: 52rem; }
.latest-news { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.5rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.latest-news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.visit-band { color: var(--hl-on); background: var(--hl); }
.visit-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 3rem; padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.visit-band h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.visit-band__address { margin: 0.5rem 0 0; font-size: 1.2rem; }
.visit-band .button { color: var(--hl); background: var(--hl-on); border-color: var(--hl-on); }
.visit-band .button:hover { color: var(--hl); background: var(--hl-on); border-color: var(--hl-on); text-decoration: underline; }

/* Page head and content */
.page-head { padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.25rem); }
.breadcrumbs { font-size: 1rem; margin-bottom: 0.9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin: 0 0.5rem; color: var(--ink-2); }
.breadcrumbs [aria-current] { color: var(--ink-2); }
.entry-title { font-size: clamp(2.4rem, 5.5vw, 3.75rem); }
.entry-date { margin: 0.75rem 0 0; color: var(--ink-2); }

.site-main > article > .wrap, .site-main > .wrap--content { padding-bottom: clamp(3rem, 7vw, 5.5rem); }

.entry-content > * + * { margin-top: 1.1em; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin-bottom: 0; }
.entry-content h2 { font-size: 1.95rem; margin-top: 2em; }
.entry-content h3 { font-size: 1.5rem; margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content blockquote { margin-inline: 0; padding: 0.25rem 0 0.25rem 1.35rem; border-left: 4px solid var(--hl); font-family: var(--font-heading); font-size: 1.3rem; }
.entry-content .is-speaking, .entry-title.is-speaking { background: var(--hl-tint); box-shadow: 0 0 0 0.35rem var(--hl-tint); border-radius: 2px; }
.is-style-callout { padding: 1.25rem 1.5rem; background: var(--hl-tint); border-left: 4px solid var(--hl); }
.is-style-callout > :first-child { margin-top: 0; }
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; padding: 0 !important; list-style: none; }
.link-cards li { margin: 0 !important; padding: 1.1rem 1.25rem; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--hl); border-radius: var(--radius); }
.link-cards a { display: block; font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.2; margin-bottom: 0.3rem; }
.contact-block { font-style: normal; }
.contact-block p { margin: 0 0 0.6rem; }

/* Listen controls */
.listen { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 0 0 1.75rem; padding: 0.7rem 0.85rem; background: var(--paper-2); border-left: 4px solid var(--hl); }
.listen button { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; cursor: pointer; }
.listen__play { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 48px; padding: 0.35rem 1.1rem 0.35rem 0.8rem; color: var(--hl-on); background: var(--hl); border: 0; border-radius: var(--radius); }
.listen__icon { width: 24px; height: 24px; fill: currentColor; }
.listen__icon--pause { display: none; }
.listen[data-state="speaking"] .listen__icon--play { display: none; }
.listen[data-state="speaking"] .listen__icon--pause { display: block; }
.listen__stop { min-height: 48px; padding: 0.35rem 1.1rem; color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: var(--radius); }
.listen__speed { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; }
.listen__speed select { min-height: 44px; padding: 0.1rem 0.5rem; font: inherit; font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid var(--ink-2); border-radius: var(--radius); }
.listen__status { color: var(--ink-2); font-size: 1rem; }

/* Lists of posts and episodes */
.entry-list .entry-row { padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.entry-list .entry-row:first-child { border-top: 2px solid var(--ink); }
.entry-row__date { margin: 0 0 0.25rem; color: var(--ink-2); font-size: 1rem; }
.entry-row__title { font-size: 1.55rem; margin-bottom: 0.5rem; }
.entry-row__title a { color: var(--ink); }
.entry-row__title a:hover { color: var(--hl-ink); }
.entry-row__excerpt { margin: 0; }
.episode { padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.episode h2 { font-size: 1.55rem; }
.episode-meta { margin: 0.4rem 0 0.75rem; color: var(--ink-2); }
.episode-audio { display: block; width: 100%; max-width: 34rem; }
.podcast-about { font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.4; }
.podcast-subscribe { font-weight: 600; }
.navigation.post-navigation { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.nav-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.post-nav__label { display: block; color: var(--ink-2); font-size: 1rem; }
.pagination .nav-links { justify-content: flex-start; margin-top: 2rem; gap: 0.75rem; }
.page-numbers { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.6rem; }

/* Footer */
.site-footer { color: #efe9dc; background: var(--footer, #1f1b17); padding: clamp(2.75rem, 6vw, 4.25rem) 0; font-size: 1.02rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.site-footer__name { font-family: var(--font-heading); font-size: 1.55rem; line-height: 1.2; margin-bottom: 0.5rem; }
.site-footer h2 { margin-bottom: 0.65rem; font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: #fff; }
.site-footer a { color: inherit; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer :focus-visible { outline-color: #fff; }

/* Tablet and phone menu */
@media (max-width: 66rem) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; flex-basis: 100%; }
  .site-nav.is-open { display: block; }
  .site-nav .menu, .site-nav .menu-fallback > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border-top: 1px solid var(--rule); }
  .site-nav a { flex: 1; min-height: 52px; font-size: 1.15rem; border-bottom: 0; }
  .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--hl-ink); }
  .menu-item-has-children > a { margin-right: 0; }
  .submenu-toggle { width: 52px; height: 52px; }
  .site-nav .sub-menu { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 0.5rem 1rem; color: inherit; background: none; border: 0; box-shadow: none; }
  .site-nav .sub-menu li { border: 0; }
  .site-nav .sub-menu a { min-height: 46px; padding: 0; font-size: 1.08rem; }
  .site-nav .sub-menu a:hover { background: none; }
  .site-nav .menu-cta { border: 0; padding-top: 0.75rem; }
  .site-nav .menu-cta > a { justify-content: center; }
}

@media (max-width: 52rem) {
  .latest-news__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 36rem) {
  .brand__mark { width: 48px; height: 48px; }
  .brand__name { font-size: 1.22rem; }
  .brand { flex: 1 1 0; }
  .hero__actions .button { flex: 1 1 100%; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .demo-bar__note { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
