:root {
  --color-primary: #16615c;
  --color-secondary: #d9863d;
  --color-ink: #17201f;
  --color-muted: #66706d;
  --color-border: #dbe2df;
  --color-surface: #f5f7f6;
  --color-white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(16, 32, 31, 0.08);
  --radius: 8px;
  --container: 1160px;
  --space-section: 88px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-white);
  font-family: var(--font-base);
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-primary);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-secondary) 72%, white);
  outline-offset: 3px;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  z-index: 1000;
  top: 16px;
  left: 16px;
  margin: 0;
  padding: 10px 14px;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
}

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

.content-narrow {
  max-width: 760px;
}

.section-heading h2,
.split h2,
.hero h1 {
  overflow-wrap: anywhere;
}

.hero p:not(.eyebrow) {
  overflow-wrap: break-word;
}

.demo-notice {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  padding: 7px 16px;
  white-space: normal;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(219, 226, 223, 0.85);
  backdrop-filter: blur(14px);
}

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

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--color-ink);
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 800;
  font-size: 16px;
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 18px;
}

.brand-text small {
  color: var(--color-muted);
  font-size: 13px;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  border-radius: 999px;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  background: var(--color-surface);
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: var(--radius);
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 21px;
  height: 2px;
  background: var(--color-ink);
  margin-inline: auto;
  content: "";
}

.nav-toggle__bar::before {
  transform: translateY(-7px);
}

.nav-toggle__bar::after {
  transform: translateY(5px);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 96px));
  display: grid;
  align-items: end;
  isolation: isolate;
  background-image: linear-gradient(90deg, rgba(12, 26, 25, 0.74), rgba(12, 26, 25, 0.38) 44%, rgba(12, 26, 25, 0.08)), var(--hero-image);
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.hero__content {
  padding-block: 112px 90px;
}

.hero h1,
.page-hero h1,
.single-hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  color: var(--color-white);
}

.hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 24px 0 0;
  font-size: 21px;
  color: rgba(255, 255, 255, 0.92);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--color-secondary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.button,
.it4r-form button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 750;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button--primary,
.it4r-form button {
  background: var(--color-primary);
  color: var(--color-white);
}

.button--primary:hover,
.it4r-form button:hover {
  background: #0f4e4a;
  color: var(--color-white);
}

.button--secondary {
  background: var(--color-secondary);
  color: #1f1307;
}

.button--secondary:hover {
  background: #c8752f;
  color: #1f1307;
}

.button--ghost {
  color: var(--color-primary);
  border-color: var(--color-border);
  background: transparent;
}

.wp-block-button__link {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 750;
  text-decoration: none;
}

.section {
  padding-block: var(--space-section);
}

.section--surface {
  background: var(--color-surface);
}

.split,
.section-heading,
.cta-band__inner,
.contact-panel,
.event-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.section-heading {
  align-items: end;
  margin-bottom: 34px;
}

h1,
h2,
h3 {
  color: var(--color-ink);
  line-height: 1.1;
}

h2 {
  margin: 0;
  font-size: 40px;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
}

p {
  margin-top: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.stats div {
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.stats strong {
  display: block;
  color: var(--color-primary);
  font-size: 28px;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card,
.event-card,
.event-detail__facts,
.it4r-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card {
  overflow: hidden;
}

.card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.card:hover .card__media img {
  transform: scale(1.025);
}

.card__body {
  padding: 22px;
}

.card time,
.event-meta,
.content-narrow figcaption {
  color: var(--color-muted);
  font-size: 14px;
}

.card h3 a,
.event-card h3 a {
  text-decoration: none;
}

.card p {
  color: var(--color-muted);
  font-size: 16px;
  margin: 12px 0 0;
}

.text-link {
  justify-self: end;
  color: var(--color-primary);
  font-weight: 750;
  text-decoration: none;
}

.text-link::after {
  content: " ->";
}

.event-list {
  display: grid;
  gap: 16px;
}

.event-list--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
}

.event-card__date {
  display: grid;
  place-items: center;
  align-self: start;
  min-height: 86px;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: var(--radius);
  text-decoration: none;
}

.event-card__date span {
  font-size: 32px;
  font-weight: 850;
  line-height: 1;
}

.event-card__date small {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  text-transform: uppercase;
}

.event-card__body p {
  margin: 8px 0 10px;
  color: var(--color-muted);
  font-size: 16px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.event-meta span {
  display: inline-flex;
  padding: 4px 9px;
  background: var(--color-surface);
  border-radius: 999px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, 220px);
  gap: 16px;
}

.gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery-strip img:first-child {
  grid-row: span 2;
}

.cta-band {
  background: var(--color-primary);
  color: var(--color-white);
}

.cta-band h2,
.cta-band p,
.cta-band .eyebrow {
  color: var(--color-white);
}

.cta-band .button {
  align-self: center;
  justify-self: end;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sponsor-card {
  display: grid;
  place-items: center;
  min-height: 110px;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-weight: 800;
}

.info-card,
.process-list li {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.info-card {
  padding: 26px;
}

.info-card h2 {
  font-size: 23px;
}

.info-card p {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 16px;
}

.process-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  counter-increment: process;
}

.process-list li::before {
  content: counter(process);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 850;
  grid-row: 1 / span 2;
}

.process-list strong,
.process-list span {
  display: block;
  grid-column: 2;
}

.process-list span {
  color: var(--color-muted);
}

.contact-panel {
  align-items: stretch;
}

.page-hero,
.single-hero {
  padding-block: 76px 44px;
  background: var(--color-surface);
}

.page-hero p {
  max-width: 720px;
  color: var(--color-muted);
}

.page-content .content-narrow,
.single-content .content-narrow {
  padding-block: 54px 84px;
}

.content-narrow h2 {
  margin-top: 42px;
  font-size: 32px;
}

.content-narrow p,
.content-narrow li {
  color: #34413e;
}

.single-hero__image {
  margin-top: 34px;
}

.single-hero__image img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  border-radius: var(--radius);
}

.event-detail {
  padding-block: 58px 88px;
  grid-template-columns: 320px minmax(0, 1fr);
}

.event-detail__facts {
  padding: 24px;
  position: sticky;
  top: 122px;
}

.event-detail__facts p {
  margin: 0 0 18px;
}

.event-detail__facts strong,
.event-detail__facts span {
  display: block;
}

.event-detail__facts strong {
  font-size: 14px;
  color: var(--color-muted);
}

.site-footer {
  padding-block: 54px;
  background: #15201f;
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 42px;
}

.site-footer strong,
.site-footer h2,
.site-footer a {
  color: var(--color-white);
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

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

.site-footer li + li {
  margin-top: 7px;
}

.it4r-form {
  padding: 26px;
}

.it4r-form__row {
  margin-bottom: 16px;
}

.it4r-form label {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
  font-weight: 750;
}

.it4r-form input,
.it4r-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 11px 12px;
  font: inherit;
  font-size: 16px;
  background: #fff;
}

.it4r-form textarea {
  min-height: 132px;
  resize: vertical;
}

.it4r-form__hint,
.it4r-form__status {
  color: var(--color-muted);
  font-size: 14px;
}

.it4r-form__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.it4r-form__status {
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.pagination {
  margin-top: 38px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
}

.page-numbers.current {
  color: var(--color-white);
  background: var(--color-primary);
}

@media (max-width: 980px) {
  :root {
    --space-section: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    inset: 100% 20px auto 20px;
    display: none;
    padding: 12px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
  }

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

  .primary-nav ul {
    display: grid;
    gap: 2px;
  }

  .primary-nav a {
    border-radius: var(--radius);
  }

  .hero h1,
  .page-hero h1,
  .single-hero h1 {
    font-size: 48px;
  }

  .split,
  .section-heading,
  .cta-band__inner,
  .contact-panel,
  .event-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .text-link,
  .cta-band .button {
    justify-self: start;
  }

  .card-grid,
  .event-list--compact,
  .sponsor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-detail__facts {
    position: static;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 17px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 640px;
    background-image: linear-gradient(180deg, rgba(12, 26, 25, 0.33), rgba(12, 26, 25, 0.76)), var(--hero-image);
    background-position: center;
  }

  .hero__content {
    padding-block: 94px 54px;
  }

  .hero h1,
  .page-hero h1,
  .single-hero h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 31px;
  }

  .hero p:not(.eyebrow) {
    font-size: 18px;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .button,
  .it4r-form button {
    width: 100%;
  }

  .stats,
  .card-grid,
  .event-list--compact,
  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 16px;
  }

  .event-card__date {
    min-height: 72px;
  }

  .event-card__date span {
    font-size: 27px;
  }

  .gallery-strip {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .gallery-strip img {
    aspect-ratio: 4 / 3;
  }

  .gallery-strip img:first-child {
    grid-row: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .page-content .content-narrow,
  .single-content .content-narrow {
    padding-block: 38px 64px;
  }
}
