:root {
  --fflab-ink: #142026;
  --fflab-muted: #5f6c72;
  --fflab-paper: #f8f7f3;
  --fflab-soft: #f0f3ef;
  --fflab-line: #d8ddd8;
  --fflab-accent: #2f6f5e;
  --fflab-accent-dark: #245848;
  --fflab-blue: #245c8f;
  --fflab-shadow: 0 22px 70px rgba(20, 32, 38, .10);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(47, 111, 94, .08), transparent 32rem),
    linear-gradient(180deg, #fbfaf7 0%, var(--fflab-paper) 34rem);
  color: var(--fflab-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-feature-settings: "palt" 1;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(47, 111, 94, .18);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  border: 1px solid var(--fflab-accent);
  border-radius: 6px;
  background: #fff;
  color: var(--fflab-accent-dark);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--fflab-shadow);
  transition: transform .18s ease;
}

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

a,
button,
input,
select,
textarea {
  transition:
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47, 111, 94, .34);
  outline-offset: 3px;
}

.site-header {
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(251, 250, 247, .9);
  box-shadow: 0 10px 34px rgba(20, 32, 38, .05);
}

.brand strong,
.primary-nav a,
.button,
.badge,
.member-status__link,
.member-status__toggle {
  letter-spacing: .01em;
}

.primary-nav a {
  position: relative;
  padding: 8px 0;
}

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav a[aria-current="page"] {
  color: var(--fflab-accent-dark);
}

.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after,
.primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--fflab-accent);
}

.hero {
  min-height: min(760px, calc(100dvh - 72px));
  padding-top: clamp(46px, 6vw, 78px);
  padding-bottom: clamp(54px, 7vw, 92px);
}

.hero-copy {
  max-width: 760px;
}

.hero h1,
.page-hero h1,
.section-heading h2,
.spotlight-copy h2,
.newsletter-band h2,
.video-band h2 {
  text-wrap: balance;
}

.hero h1,
.page-hero h1 {
  line-height: 1.04;
}

.hero p,
.spotlight-copy p,
.section-heading p,
.newsletter-band p,
.video-placeholder p,
.archive-description {
  max-width: 64ch;
  color: var(--fflab-muted);
}

.hero p {
  font-size: clamp(16px, 1.6vw, 18px);
}

.home .content-band .eyebrow,
.home .video-band .eyebrow,
.home .newsletter-band .eyebrow {
  display: none;
}

.eyebrow {
  color: var(--fflab-accent);
  font-size: 12px;
  letter-spacing: .06em;
}

.button {
  border-radius: 6px;
  box-shadow: none;
}

.button.primary,
.entry-content .wp-block-button__link {
  background: var(--fflab-accent);
  border-color: var(--fflab-accent);
}

.button.primary:hover,
.entry-content .wp-block-button__link:hover {
  background: var(--fflab-accent-dark);
  border-color: var(--fflab-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.button.secondary:hover,
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--fflab-accent);
  color: var(--fflab-accent-dark);
  transform: translateY(-1px);
}

.button:active,
.entry-content .wp-block-button__link:active,
.share-actions__button:active {
  transform: translateY(1px) scale(.99);
}

.hero-logo-card,
.spotlight-media,
.video-placeholder,
.content-card,
.theme-grid article,
.participation-grid article,
.single-event-meta div,
.event-facts div,
.empty-notice,
.fflab-ticket-reply__thread {
  border-color: var(--fflab-line);
  border-radius: 8px;
  box-shadow: none;
}

.hero-logo-card,
.spotlight-media {
  box-shadow: var(--fflab-shadow);
}

.content-card {
  min-height: auto;
}

.content-card a {
  display: flex;
  flex-direction: column;
}

.content-card img {
  width: calc(100% + 48px);
  max-width: none;
  margin: -24px -24px 20px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--fflab-line);
  background: #fff;
}

.content-card h3 {
  text-wrap: balance;
}

.content-card p {
  color: var(--fflab-muted);
}

.content-card:hover {
  border-color: #c9d2cc;
  transform: translateY(-2px);
  box-shadow: 0 16px 46px rgba(20, 32, 38, .08);
}

.badge,
.status-inline {
  border-radius: 6px;
  background: #e8f0ec;
  color: var(--fflab-accent-dark);
  letter-spacing: .04em;
}

.content-band,
.video-band,
.newsletter-band,
.spotlight-band {
  position: relative;
}

.content-band::before,
.video-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 32, 38, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 38, .035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 72%, transparent);
}

.content-band > *,
.video-band > * {
  position: relative;
}

.newsletter-band {
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, .16), transparent 18rem),
    var(--fflab-accent-dark);
}

.newsletter-band .eyebrow,
.newsletter-band p {
  color: rgba(255, 255, 255, .78);
}

.newsletter-band .button.primary {
  background: #fff;
  border-color: #fff;
  color: var(--fflab-accent-dark);
}

.newsletter-band .button.primary:hover {
  background: #edf3ef;
  border-color: #edf3ef;
  color: var(--fflab-accent-dark);
}

.page-hero {
  background:
    radial-gradient(circle at 92% 16%, rgba(47, 111, 94, .08), transparent 22rem),
    #fff;
}

.entry-content {
  font-size: 16px;
}

.entry-content p,
.entry-content li {
  line-height: 1.9;
}

.entry-content h2,
.entry-content h3 {
  text-wrap: balance;
}

.entry-content img {
  border-radius: 8px;
}

.entry-content figcaption {
  margin-top: 8px;
  color: var(--fflab-muted);
  font-size: 13px;
  line-height: 1.6;
}

.entry-content input:not([type="checkbox"]):not([type="radio"]),
.entry-content select,
.entry-content textarea,
.fflab-ticket-reply textarea,
.fluentform input:not([type="checkbox"]):not([type="radio"]),
.fluentform select,
.fluentform textarea {
  width: 100%;
  border: 1px solid #cfd8d2;
  border-radius: 6px;
  background: #fff;
  color: var(--fflab-ink);
  font: inherit;
  line-height: 1.6;
}

.entry-content input:not([type="checkbox"]):not([type="radio"]):focus,
.entry-content select:focus,
.entry-content textarea:focus,
.fflab-ticket-reply textarea:focus,
.fluentform input:not([type="checkbox"]):not([type="radio"]):focus,
.fluentform select:focus,
.fluentform textarea:focus {
  border-color: var(--fflab-accent);
  box-shadow: 0 0 0 4px rgba(47, 111, 94, .12);
  outline: 0;
}

.entry-content label,
.fflab-ticket-reply label,
.fluentform label {
  color: var(--fflab-ink);
  font-weight: 800;
}

.fflab-ticket-reply button,
.fluentform button,
.fluentform input[type="submit"] {
  border-radius: 6px;
  background: var(--fflab-accent);
}

.fflab-ticket-reply button:hover,
.fluentform button:hover,
.fluentform input[type="submit"]:hover {
  background: var(--fflab-accent-dark);
}

.share-actions__button {
  border-radius: 8px;
}

.site-footer {
  background: #10191e;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

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

@media (max-width: 860px) {
  .site-header {
    min-height: 70px;
  }

  .primary-nav a {
    padding: 12px;
  }

  .primary-nav .current-menu-item > a::after,
  .primary-nav .current_page_item > a::after,
  .primary-nav a[aria-current="page"]::after {
    display: none;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: clamp(38px, 11vw, 46px);
  }

  .content-card img {
    width: calc(100% + 40px);
    margin: -20px -20px 18px;
  }

  .newsletter-band .button {
    width: 100%;
  }
}
