@font-face {
  font-family: Site Thai;
  src: url("assets/thai-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Site Thai;
  src: url("assets/thai-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --forest: #142d21;
  --night: #10251b;
  --leaf: #d7eb91;
  --ink: #182e23;
  --muted: #515f53;
  --paper: #fafbf5;
  --line: #dfe5d7;
  --shell: 1160px;
}
*,*::before,*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 "Site Thai",Tahoma,sans-serif;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
button,input {
  font: inherit;
}
a:focus-visible,button:focus-visible,input:focus-visible {
  outline: 3px solid #6ca844;
  outline-offset: 4px;
}
h1,h2,h3,p,figure {
  margin: 0;
}
h2 {
  font-size: clamp(1.9rem,4vw,3.2rem);
  line-height: 1.25;
  letter-spacing: -.032em;
}
h3 {
  font-size: 1.18rem;
  line-height: 1.45;
}
.shell {
  width: min(var(--shell),calc(100% - 104px));
  margin-inline: auto;
}
.skip {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  background: white;
  transform: translateY(-150%);
}
.skip:focus {
  transform: none;
}
.site-header {
  background: var(--night);
  color: white;
}
.header-inner,.header-inner nav,.brand,.footer-inner {
  display: flex;
  align-items: center;
}
.header-inner {
  min-height: 76px;
  gap: 28px;
}
.brand {
  gap: 13px;
  text-decoration: none;
  line-height: 1.35;
}
.brand img,.footer img {
  object-fit: contain;
}
.brand strong,.brand small {
  display: block;
}
.brand small {
  color: #c4d3c0;
  font-size: .86rem;
  margin-top: 3px;
}
.header-inner nav {
  margin-left: auto;
  gap: 30px;
}
.header-inner nav a {
  text-decoration: none;
  color: #ecf3e9;
}
.header-inner nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.button {
  border: 1px solid transparent;
  border-radius: 7px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 53px;
  max-width: 100%;
  padding: 10px 24px;
  background: var(--leaf);
  color: #162a13;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: background-color .18s;
}
.button:hover {
  background: #e6f5b0;
}
.button-small {
  min-height: 41px;
  padding: 7px 17px;
  font-size: .94rem;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #10291e;
  color: white;
}
.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: max(72%, 820px);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #10291e, #10291ef2 9%, #10291e80 24%, transparent 48%),
    linear-gradient(0deg, #10291e 0%, #10291e8c 12%, transparent 42%);
}
.hero-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-inner {
  display: flex;
  align-items: flex-end;
  min-height: clamp(520px, 36vw, 680px);
  padding-block: 70px 94px;
}
.hero-copy {
  max-width: 480px;
}
.event-label,.section-label {
  font-size: .95rem;
  font-weight: 700;
}
.event-label {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #dceba8;
}
.event-label::before {
  content: "";
  width: 25px;
  height: 2px;
  background: #dceba8;
}
.hero h1 {
  font-size: clamp(3rem, 5.3vw, 5.4rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 17px 0 15px;
}
.hero h1 span {
  display: block;
  color: var(--leaf);
}
.hero-summary {
  font-size: clamp(1.05rem,2.3vw,1.38rem);
  color: #edf4ea;
  margin-bottom: 24px;
}
.facts {
  position: relative;
  margin-top: -37px;
  display: grid;
  grid-template-columns: 1.25fr 1.18fr .72fr .7fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 25px #25381912;
  padding: 17px 0;
}
.fact {
  display: grid;
  gap: 3px;
  padding: 4px 25px;
}
.fact+.fact {
  border-left: 1px solid var(--line);
}
.fact span {
  color: var(--muted);
  font-size: .95rem;
}
.fact strong {
  font-size: clamp(1.1rem,2vw,1.32rem);
  line-height: 1.45;
}
.details {
  display: grid;
  grid-template-columns: 1fr minmax(260px, .74fr);
  gap: clamp(44px,9vw,125px);
  padding-block: 83px;
  align-items: center;
}
.section-label {
  color: #38644a;
  margin-bottom: 12px;
}
.introduction {
  color: var(--muted);
  max-width: 500px;
  margin-block: 18px 30px;
}
.activities {
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.activities li {
  display: flex;
  align-items: baseline;
  gap: 11px;
}
.activities li::before {
  content: "";
  flex: 0 0 8px;
  height: 8px;
  border-radius: 70% 0 70% 70%;
  background: #52834d;
}
.details figure {
  justify-self: center;
  width: min(100%,330px);
}
.poster-link {
  display: block;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px #23301613;
}
.poster-link img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}
figcaption {
  text-align: center;
  margin-top: 11px;
  font-size: .94rem;
  color: #365c43;
  text-underline-offset: 3px;
}
.race-info {
  background: #eaf1e4;
  padding-block: 53px 57px;
}
.race-info h2,.register-section h2 {
  font-size: clamp(1.65rem,3vw,2.23rem);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 17px;
  margin-top: 20px;
}
.info-grid article {
  background: #f8fbf5;
  border: 1px solid #d8e4d2;
  border-radius: 10px;
  padding: 19px 22px;
}
.info-grid p,.register-section p {
  color: var(--muted);
  margin-top: 6px;
}
.register-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding-block: 55px;
}
.footer {
  background: var(--night);
  color: white;
  padding-block: 26px;
}
.footer-inner {
  gap: 15px;
}
.footer p {
  color: #ccdbca;
  font-size: .95rem;
}
dialog {
  width: min(92vw,520px);
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 16px 60px #10251b55;
}
dialog::backdrop {
  background: #0a1c14b8;
}
.dialog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 18px;
  background: var(--forest);
  color: #fff;
}
.close {
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  width: 44px;
  height: 44px;
  font-size: 1.9rem;
  cursor: pointer;
  line-height: 1;
}
.dialog-content {
  padding: 24px;
}
.dialog-content h2 {
  font-size: clamp(1.55rem,6vw,2.1rem);
}
.form-note {
  margin: 15px 0;
  background: #edf3e5;
  border-radius: 5px;
  padding: 10px 12px;
  color: #344d36;
}
#sample-form {
  display: grid;
  gap: 14px;
}
#sample-form label {
  display: grid;
  gap: 6px;
}
#sample-form input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #a6b3a3;
  border-radius: 5px;
  background: white;
  color: var(--ink);
}
#sample-form .button {
  justify-self: start;
}
#preview-status:empty {
  display: none;
}
@media(max-width:900px) {
  .shell {
    width: calc(100% - 64px);
  }
  .fact {
    padding-inline: 16px;
  }
}
@media (max-width: 760px) {
  .hero-art {
    position: relative;
    inset: auto;
    width: 100%;
  }
  .hero-art::after {
    background: linear-gradient(0deg, #10291e, #10291e42 22%, transparent 51%);
  }
  .hero-cover {
    height: auto;
  }
  .hero-inner {
    position: relative;
    min-height: 0;
    margin-top: -30px;
    padding-block: 0 59px;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 10vw, 4.25rem);
  }
}
@media(max-width:680px) {
  .shell {
    width: calc(100% - 36px);
  }
  .header-inner {
    min-height: 68px;
    justify-content: space-between;
    gap: 8px;
  }
  .header-inner nav {
    display: none;
  }
  .brand {
    gap: 7px;
    font-size: .86rem;
  }
  .brand img {
    width: 35px;
    height: 38px;
  }
  .brand small {
    font-size: .75rem;
  }
  .button-small {
    padding: 6px 8px;
    font-size: .82rem;
  }
  .facts {
    grid-template-columns: repeat(2,minmax(0,1fr));
    padding-block: 3px;
    margin-top: -28px;
  }
  .fact {
    padding: 12px;
  }
  .fact:nth-child(3) {
    border-left: 0;
  }
  .fact:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }
  .fact strong {
    font-size: 1rem;
  }
  .details {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 47px;
  }
  .race-info {
    padding-block: 35px;
  }
  .info-grid {
    gap: 9px;
  }
  .info-grid article {
    padding: 12px;
  }
  .info-grid p {
    font-size: .91rem;
  }
  .register-section {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 38px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  .button {
    transition: none;
  }
}
