/*
Theme Name: Duathlon Latvia Editable
Theme URI: https://example.com/duathlon-latvia-editable
Author: Duathlon Event Team
Author URI: https://example.com
Description: Полностью редактируемый Gutenberg-сайт мероприятия по дуатлону с отдельными страницами LV и RU.
Version: 2.1.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: duathlon-latvia-editable
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, block-patterns, wide-blocks, custom-colors, translation-ready
*/

:root {
  --duathlon-burgundy-950: #3b0d14;
  --duathlon-burgundy-900: #50131b;
  --duathlon-burgundy-800: #651a24;
  --duathlon-burgundy-700: #7e1f2a;
  --duathlon-red-600: #a42d39;
  --duathlon-red-500: #bb3a47;
  --duathlon-cream: #f4f1ef;
  --duathlon-paper: #fffdfb;
  --duathlon-ink: #1d191a;
  --duathlon-muted: #756c6e;
  --duathlon-line: #ded7d5;
  --duathlon-lime: #e8ff62;
  --duathlon-shadow: 0 24px 70px rgba(59, 13, 20, 0.16);
  --duathlon-radius-sm: 12px;
  --duathlon-radius: 22px;
  --duathlon-radius-lg: 34px;
  --duathlon-container: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--duathlon-cream);
  color: var(--duathlon-ink);
  font-family: Inter, Manrope, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--duathlon-lime);
  outline-offset: 4px;
}

.skip-link:not(:focus) {
  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 {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--duathlon-paper);
  color: var(--duathlon-ink);
  font-weight: 800;
}

.duathlon-editor-main,
.duathlon-landing {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.duathlon-landing > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.duathlon-landing .alignfull {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.duathlon-landing .alignwide,
.duathlon-header-inner,
.section-inner,
.footer-inner {
  width: min(calc(100% - 48px), var(--duathlon-container));
  max-width: var(--duathlon-container);
  margin-right: auto;
  margin-left: auto;
}

.duathlon-landing h1,
.duathlon-landing h2,
.duathlon-landing h3,
.duathlon-landing p,
.duathlon-landing figure,
.duathlon-landing .wp-block-buttons,
.duathlon-landing .wp-block-group,
.duathlon-landing .wp-block-columns {
  margin-block-start: 0;
  margin-block-end: 0;
}

.duathlon-landing .wp-block-button__link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--duathlon-red-600);
  color: var(--duathlon-paper);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.duathlon-landing .wp-block-button__link:hover {
  background: var(--duathlon-burgundy-950);
  box-shadow: 0 14px 30px rgba(59, 13, 20, 0.22);
  color: var(--duathlon-paper);
  transform: translateY(-2px);
}

.button-light .wp-block-button__link {
  background: var(--duathlon-paper);
  color: var(--duathlon-burgundy-900);
}

.button-light .wp-block-button__link:hover {
  background: var(--duathlon-lime);
  color: var(--duathlon-burgundy-950);
}

/* Editable page header. */
.duathlon-page-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  padding: 0 24px;
  border-bottom: 1px solid rgba(80, 19, 27, 0.1);
  background: rgba(255, 253, 251, 0.96);
  backdrop-filter: blur(18px);
}

body.admin-bar .duathlon-page-header {
  top: 32px;
}

.duathlon-header-inner {
  min-height: 76px;
  gap: 24px;
}

.duathlon-brand {
  flex: 0 0 auto;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--duathlon-burgundy-700);
  color: var(--duathlon-paper);
  font-size: 20px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 42px;
  text-align: center;
}

.brand-mark::after {
  position: absolute;
  width: 50px;
  height: 6px;
  border: 3px solid var(--duathlon-paper);
  border-right: 0;
  border-left: 0;
  content: "";
  transform: rotate(-35deg);
}

.brand-name {
  max-width: 180px;
  color: var(--duathlon-burgundy-900);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.1em;
  line-height: 1.08;
  text-transform: uppercase;
}

.duathlon-page-nav {
  margin-left: auto;
  gap: 26px;
}

.duathlon-nav-link {
  font-size: 14px;
  font-weight: 800;
}

.duathlon-nav-link a {
  position: relative;
  text-decoration: none;
}

.duathlon-nav-link a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--duathlon-red-600);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.duathlon-nav-link a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.duathlon-header-actions {
  gap: 5px;
}

.duathlon-language-button .wp-block-button__link {
  min-width: 42px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--duathlon-line);
  background: var(--duathlon-cream);
  color: var(--duathlon-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.duathlon-language-button.is-active .wp-block-button__link,
.duathlon-language-button .wp-block-button__link:hover {
  border-color: var(--duathlon-burgundy-700);
  background: var(--duathlon-burgundy-700);
  color: var(--duathlon-paper);
  box-shadow: none;
  transform: none;
}

.duathlon-header-register {
  margin-left: 7px;
}

.duathlon-header-register .wp-block-button__link {
  min-height: 42px;
  padding: 10px 17px;
  font-size: 12px;
}

/* Hero. */
.hero-grid.wp-block-columns {
  display: grid;
  min-height: 700px;
  align-items: stretch;
  gap: 0;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
}

.hero-grid > .wp-block-column {
  min-width: 0;
  margin: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding:
    88px
    clamp(44px, 4vw, 76px)
    96px
    max(40px, calc((100vw - var(--duathlon-container)) / 2));
  background:
    radial-gradient(circle at 5% 12%, rgba(164, 45, 57, 0.35), transparent 36%),
    linear-gradient(135deg, var(--duathlon-burgundy-950) 0%, var(--duathlon-burgundy-900) 72%, var(--duathlon-burgundy-800) 100%);
  color: var(--duathlon-paper);
}

.hero-copy-inner {
  width: min(100%, 650px);
  max-width: 650px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px !important;
  color: var(--duathlon-lime);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 38px;
  height: 3px;
  background: currentColor;
  content: "";
}

.hero-title {
  max-width: 650px;
  color: var(--duathlon-paper);
  font-size: clamp(52px, 4.7vw, 84px);
  font-weight: 950;
  hyphens: none;
  letter-spacing: -0.055em;
  line-height: 0.94;
  overflow-wrap: normal;
  text-wrap: balance;
  text-transform: uppercase;
  word-break: normal;
}

.hero-intro {
  max-width: 610px;
  margin-top: 30px !important;
  color: rgba(255, 253, 251, 0.78);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 36px !important;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px !important;
  color: rgba(255, 253, 251, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.hero-note::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--duathlon-lime);
  box-shadow: 0 0 0 5px rgba(232, 255, 98, 0.12);
  content: "";
}

.hero-visual,
.hero-grid > .wp-block-column:nth-child(2) {
  position: relative;
  min-height: 700px;
  align-self: stretch;
  overflow: hidden;
  background: var(--duathlon-burgundy-700);
}

.hero-visual::after {
  position: absolute;
  z-index: 1;
  right: -22%;
  bottom: -16%;
  width: 78%;
  border: 34px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  aspect-ratio: 1;
  content: "";
  pointer-events: none;
}

.hero-media,
.hero-grid > .wp-block-column:nth-child(2) > .wp-block-image:first-child {
  position: absolute !important;
  inset: 0 !important;
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
}

.hero-media img,
.hero-grid > .wp-block-column:nth-child(2) > .wp-block-image:first-child img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center;
}

.date-card,
.hero-grid > .wp-block-column:nth-child(2) > .wp-block-group:last-child {
  position: absolute;
  z-index: 3;
  right: 34px;
  bottom: 34px;
  width: 150px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--duathlon-radius);
  background: rgba(59, 13, 20, 0.86);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  color: var(--duathlon-paper);
  backdrop-filter: blur(12px);
  text-align: center;
}

.date-card h3,
.hero-grid > .wp-block-column:nth-child(2) > .wp-block-group:last-child h3 {
  font-size: 62px;
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.date-card p,
.hero-grid > .wp-block-column:nth-child(2) > .wp-block-group:last-child p {
  margin-top: 10px !important;
  color: var(--duathlon-lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-transform: uppercase;
}

/* Facts and shared section styles. */
.quick-facts {
  position: relative;
  z-index: 4;
  border-bottom: 1px solid var(--duathlon-line);
  background: var(--duathlon-paper);
  box-shadow: 0 14px 50px rgba(59, 13, 20, 0.06);
}

.quick-facts-grid.wp-block-columns {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, 1fr);
}

.quick-fact {
  display: grid;
  min-height: 150px;
  align-content: center;
  padding: 28px 40px;
  border-right: 1px solid var(--duathlon-line);
}

.quick-fact:last-child {
  border-right: 0;
}

.fact-label {
  margin-bottom: 6px !important;
  color: var(--duathlon-red-600);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.fact-value {
  color: var(--duathlon-burgundy-950);
  font-size: clamp(23px, 2vw, 31px);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.fact-subvalue {
  margin-top: 8px !important;
  color: var(--duathlon-muted);
  font-size: 13px;
  font-weight: 650;
}

.section {
  padding: 112px 0;
}

.section[id] {
  scroll-margin-top: 88px;
}

.section-paper {
  background: var(--duathlon-paper);
}

.section-dark {
  background: var(--duathlon-burgundy-950);
  color: var(--duathlon-paper);
}

.section-heading.wp-block-columns {
  display: grid;
  margin-bottom: 54px;
  gap: 18px;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px !important;
  color: var(--duathlon-red-600);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 28px;
  height: 2px;
  flex: 0 0 28px;
  background: currentColor;
  content: "";
}

.section-kicker.light {
  color: var(--duathlon-lime);
}

.section-title {
  max-width: 720px;
  color: var(--duathlon-burgundy-950);
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.96;
  text-wrap: balance;
  text-transform: uppercase;
}

.section-lead {
  max-width: 660px;
  margin-top: 22px !important;
  color: var(--duathlon-muted);
  font-size: 19px;
}

.section-dark .section-title,
.section-dark .wp-block-heading {
  color: var(--duathlon-paper);
}

.section-dark .section-lead {
  color: rgba(255, 253, 251, 0.67);
}

/* Distance. */
.distance-grid.wp-block-columns {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.distance-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(80, 19, 27, 0.1);
  border-radius: var(--duathlon-radius-lg);
  background: var(--duathlon-paper);
  box-shadow: 0 18px 45px rgba(59, 13, 20, 0.07);
}

.distance-grid > .distance-card:nth-child(2) {
  background: var(--duathlon-burgundy-700);
  color: var(--duathlon-paper);
  transform: translateY(-18px);
}

.distance-card::after {
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 190px;
  height: 190px;
  border: 28px solid rgba(164, 45, 57, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.distance-grid > .distance-card:nth-child(2)::after {
  border-color: rgba(255, 255, 255, 0.09);
}

.distance-number {
  color: var(--duathlon-red-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.distance-grid > .distance-card:nth-child(2) .distance-number {
  color: var(--duathlon-lime);
}

.distance-icon {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 34px 0 38px !important;
  place-items: center;
  border-radius: 24px;
  background: var(--duathlon-cream);
  color: var(--duathlon-burgundy-700);
  font-size: 34px;
  line-height: 1;
}

.distance-grid > .distance-card:nth-child(2) .distance-icon {
  background: rgba(255, 255, 255, 0.12);
}

.distance-name {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.distance-value {
  position: relative;
  z-index: 1;
  margin-top: 8px !important;
  color: var(--duathlon-burgundy-950);
  font-size: clamp(44px, 4.2vw, 64px);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 1;
}

.distance-grid > .distance-card:nth-child(2) .distance-value {
  color: var(--duathlon-paper);
}

.distance-summary {
  gap: 24px;
  padding: 28px 34px;
  margin-top: 20px !important;
  border-radius: var(--duathlon-radius);
  background: var(--duathlon-burgundy-950);
  color: var(--duathlon-paper);
}

.distance-summary h3 {
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.distance-summary p {
  color: rgba(255, 253, 251, 0.65);
  font-size: 14px;
  font-weight: 700;
}

/* Schedule. */
.schedule-layout.wp-block-columns {
  display: grid;
  align-items: start;
  gap: 76px;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
}

.schedule-intro {
  position: sticky;
  top: 120px;
}

.schedule-intro .section-title {
  font-size: clamp(42px, 5vw, 68px);
}

.schedule-list {
  border-top: 1px solid var(--duathlon-line);
}

.schedule-item {
  display: grid;
  align-items: center;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--duathlon-line);
  grid-template-columns: 150px 1fr;
}

.schedule-time {
  color: var(--duathlon-burgundy-700);
  font-size: clamp(29px, 3vw, 43px);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1;
}

.schedule-item h3:not(.schedule-time) {
  color: var(--duathlon-burgundy-950);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.25;
}

.schedule-item p {
  margin-top: 7px !important;
  color: var(--duathlon-muted);
  font-size: 14px;
}

/* Registration. */
.registration-wrap.wp-block-columns {
  display: grid;
  overflow: hidden;
  border-radius: var(--duathlon-radius-lg);
  background: var(--duathlon-burgundy-700);
  box-shadow: var(--duathlon-shadow);
  gap: 0;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 0.58fr);
}

.registration-copy {
  position: relative;
  display: flex;
  min-height: 620px;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px;
  overflow: hidden;
  color: var(--duathlon-paper);
}

.registration-copy::before {
  position: absolute;
  top: -120px;
  right: -160px;
  width: 410px;
  height: 410px;
  border: 62px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.registration-copy > * {
  position: relative;
  z-index: 1;
}

.registration-copy .section-title {
  color: var(--duathlon-paper);
  font-size: clamp(46px, 5vw, 72px);
}

.registration-copy > .wp-block-group:first-child > p:last-child {
  max-width: 460px;
  margin-top: 24px !important;
  color: rgba(255, 253, 251, 0.72);
}

.registration-price {
  align-items: flex-end;
  gap: 20px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.registration-price p {
  color: rgba(255, 253, 251, 0.65);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.registration-price h3 {
  color: var(--duathlon-lime);
  font-size: 48px;
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 1;
}

.form-panel {
  min-width: 0;
  padding: 22px;
  background: var(--duathlon-paper);
}

.form-panel iframe {
  display: block;
  width: 100%;
  min-height: 920px;
  border: 0;
  border-radius: 18px;
  background: #fff;
}

.duathlon-embed-placeholder {
  display: grid;
  min-height: 576px;
  place-content: center;
  padding: 42px;
  border: 2px dashed #ccbfc1;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(164, 45, 57, 0.04), transparent 70%), var(--duathlon-cream);
  color: var(--duathlon-muted);
  text-align: center;
}

.duathlon-embed-placeholder strong {
  display: block;
  margin-bottom: 12px;
  color: var(--duathlon-burgundy-950);
  font-size: 22px;
  letter-spacing: 0.08em;
}

.duathlon-embed-placeholder p {
  max-width: 430px;
  margin: 0 auto;
  font-size: 14px;
}

.duathlon-embed-placeholder code {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: 16px;
  background: rgba(80, 19, 27, 0.08);
  color: var(--duathlon-burgundy-900);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

/* Video, CTA and footer. */
.video-layout.wp-block-columns {
  display: grid;
  align-items: center;
  gap: 64px;
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 0.68fr);
}

.video-copy .section-title {
  font-size: clamp(40px, 5vw, 68px);
}

.video-frame {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--duathlon-radius-lg);
  background: #23070b;
  box-shadow: var(--duathlon-shadow);
  aspect-ratio: 16 / 9;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 40px;
  background:
    radial-gradient(circle at 75% 25%, rgba(164, 45, 57, 0.35), transparent 38%),
    linear-gradient(135deg, #3b0d14, #651a24);
  color: rgba(255, 253, 251, 0.68);
  text-align: center;
}

.video-placeholder h3 {
  color: var(--duathlon-paper);
  font-size: 22px;
  letter-spacing: 0.08em;
}

.video-placeholder p:not(.video-play) {
  max-width: 460px;
  margin-top: 10px !important;
  font-size: 14px;
}

.video-play {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 2px solid rgba(232, 255, 98, 0.5);
  border-radius: 50%;
  margin: 0 auto 22px !important;
  color: var(--duathlon-lime);
  font-size: 28px;
  line-height: 1;
}

.video-frame .wp-block-embed,
.video-frame .wp-block-video {
  width: 100%;
  height: 100%;
  margin: 0;
}

.video-frame .wp-block-embed__wrapper,
.video-frame iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  aspect-ratio: 16 / 9;
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 90px 24px;
  background: var(--duathlon-red-600);
  color: var(--duathlon-paper);
}

.final-cta::before {
  position: absolute;
  inset: -80% -10%;
  background: repeating-linear-gradient(110deg, transparent 0 100px, rgba(255, 255, 255, 0.05) 100px 103px);
  content: "";
  transform: rotate(-4deg);
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  gap: 40px;
}

.final-cta h2 {
  max-width: 850px;
  color: var(--duathlon-paper);
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.93;
  text-transform: uppercase;
}

.site-footer {
  padding: 62px 24px 28px;
  background: var(--duathlon-burgundy-950);
  color: rgba(255, 253, 251, 0.7);
}

.footer-top {
  align-items: flex-start;
  gap: 50px;
  padding-bottom: 54px;
}

.footer-brand {
  color: var(--duathlon-paper);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.footer-copy {
  max-width: 450px;
  margin-top: 18px !important;
  font-size: 14px;
}

.footer-links {
  justify-content: flex-end;
  gap: 12px 28px;
}

.footer-links p {
  font-size: 14px;
  font-weight: 800;
}

.footer-links a {
  color: var(--duathlon-paper);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--duathlon-lime);
}

.footer-bottom {
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
  font-size: 12px;
}

/* Ordinary pages and posts. */
.content-inner {
  width: min(calc(100% - 48px), 900px);
  margin-inline: auto;
}

.entry-shell {
  min-height: 100vh;
  padding: 90px 0 110px;
}

.entry-card {
  padding: clamp(28px, 5vw, 68px);
  border-radius: var(--duathlon-radius-lg);
  background: var(--duathlon-paper);
  box-shadow: var(--duathlon-shadow);
}

.entry-title {
  margin: 0 0 32px;
  color: var(--duathlon-burgundy-950);
  font-size: clamp(38px, 6vw, 70px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.entry-title a {
  text-decoration: none;
}

.posts-list {
  display: grid;
  gap: 24px;
}

@media (max-width: 1080px) {
  .duathlon-page-nav {
    gap: 16px;
  }

  .duathlon-header-register {
    display: none;
  }

  .hero-grid.wp-block-columns {
    min-height: 620px;
    grid-template-columns: minmax(0, 1.04fr) minmax(370px, 0.96fr);
  }

  .hero-copy {
    padding: 72px 44px 78px;
  }

  .hero-visual,
  .hero-grid > .wp-block-column:nth-child(2) {
    min-height: 620px;
  }

  .registration-copy {
    padding: 42px;
  }
}

@media (max-width: 850px) {
  body.admin-bar .duathlon-page-header {
    top: 46px;
  }

  .duathlon-page-header {
    padding: 10px 18px;
  }

  .duathlon-header-inner {
    width: 100%;
    min-height: 54px;
    gap: 12px 18px;
  }

  .duathlon-brand {
    flex: 1 1 auto;
  }

  .brand-name {
    max-width: 210px;
    font-size: 12px;
  }

  .duathlon-page-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid var(--duathlon-line);
  }

  .duathlon-nav-link {
    font-size: 12px;
  }

  .hero-grid.wp-block-columns {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 590px;
    padding: 72px 28px 78px;
  }

  .hero-visual,
  .hero-grid > .wp-block-column:nth-child(2) {
    min-height: 430px;
  }

  .quick-facts-grid.wp-block-columns {
    grid-template-columns: 1fr;
  }

  .quick-fact {
    min-height: 126px;
    border-right: 0;
    border-bottom: 1px solid var(--duathlon-line);
  }

  .quick-fact:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 84px 0;
  }

  .section-heading.wp-block-columns,
  .schedule-layout.wp-block-columns,
  .video-layout.wp-block-columns {
    grid-template-columns: 1fr;
  }

  .section-heading.wp-block-columns {
    gap: 30px;
  }

  .distance-grid.wp-block-columns {
    grid-template-columns: 1fr;
  }

  .distance-grid > .distance-card:nth-child(2) {
    transform: none;
  }

  .schedule-layout.wp-block-columns,
  .video-layout.wp-block-columns {
    gap: 48px;
  }

  .schedule-intro {
    position: static;
  }

  .registration-wrap.wp-block-columns {
    grid-template-columns: 1fr;
  }

  .registration-copy {
    min-height: 520px;
  }

  .video-copy {
    max-width: 680px;
  }

  .final-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .duathlon-landing .alignwide,
  .duathlon-header-inner,
  .section-inner,
  .footer-inner {
    width: min(calc(100% - 32px), var(--duathlon-container));
  }

  .duathlon-page-header {
    position: relative;
    top: auto;
  }

  body.admin-bar .duathlon-page-header {
    top: auto;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    line-height: 38px;
  }

  .duathlon-page-nav {
    justify-content: flex-start;
    gap: 12px 18px;
  }

  .hero-copy {
    min-height: 560px;
    padding: 64px 20px 68px;
  }

  .hero-title {
    font-size: clamp(42px, 14vw, 62px);
  }

  .hero-visual,
  .hero-grid > .wp-block-column:nth-child(2) {
    min-height: 360px;
  }

  .date-card {
    right: 18px;
    bottom: 18px;
    width: 124px;
    padding: 16px;
  }

  .date-card h3 {
    font-size: 50px;
  }

  .quick-fact {
    padding: 24px;
  }

  .section {
    padding: 68px 0;
  }

  .section-title {
    font-size: clamp(36px, 12vw, 54px);
  }

  .distance-card {
    min-height: 320px;
    padding: 28px;
  }

  .distance-summary {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .schedule-item {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .registration-copy {
    min-height: 480px;
    padding: 32px 26px;
  }

  .registration-copy .section-title {
    font-size: 45px;
  }

  .registration-price {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-panel {
    padding: 12px;
  }

  .duathlon-embed-placeholder {
    min-height: 440px;
    padding: 28px 20px;
  }

  .video-frame {
    min-height: 330px;
    aspect-ratio: auto;
  }

  .video-placeholder {
    padding: 28px 20px;
  }

  .final-cta {
    padding: 70px 16px;
  }

  .site-footer {
    padding: 54px 16px 24px;
  }

  .footer-top,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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