:root {
  font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color:#332c27;
  background:#eae5dd;
  -webkit-font-smoothing:antialiased;
  font-synthesis:none
}

* {
  box-sizing:border-box
}

body {
  margin:0
}

a,button {
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation
}

svg {
  display:block
}

a {
  color:inherit
}

.page {
  position:relative;
  isolation:isolate;
  width:100%;
  max-width:480px;
  min-height:100vh;
  min-height:100svh;
  margin:auto;
  overflow:hidden;
  background:#f7f3ec;
  padding-bottom:max(12px,env(safe-area-inset-bottom))
}

.hero {
  position:relative;
  height:clamp(268px,36svh,322px);
  padding:calc(23px + env(safe-area-inset-top)) 25px 0;
  isolation:isolate
}

.hero-image {
  position:absolute;
  z-index:-2;
  inset:0 0 -48px;
  background:url("./race-editorial.3cb766424299.webp") 85% center/cover no-repeat;
  background-color:#eadacc
}

.hero:after {
  content:"";
  position:absolute;
  z-index:-1;
  inset:0 0 -49px;
  background:linear-gradient(0deg,#f7f3ec 0%,#f7f3ecdd 9%,#f7f3ec00 40%),linear-gradient(90deg,#f7f3ecf5 0%,#f7f3ecc9 28%,#f7f3ec40 58%,#f7f3ec00 82%)
}

.hero-content {
  padding-top:38px
}

.eyebrow {
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 0 13px;
  font-size:8px;
  font-weight:650;
  letter-spacing:1.8px;
  color:#8d4b35
}

.eyebrow>span {
  width:16px;
  height:2px;
  background:#b65339
}

h1 {
  font-size:clamp(36px,10.5vw,46px);
  line-height:1.18;
  font-weight:850;
  letter-spacing:-1.5px;
  margin:0
}

h1>span {
  display:block;
  color:#ab432c;
  margin-top:3px
}

.title-dot {
  color:#bd6c4f
}

.hero-copy {
  margin:16px 0 0;
  font-size:11px;
  line-height:1.8;
  color:#6b5547;
  letter-spacing:.4px
}

.hero-caption {
  position:absolute;
  bottom:16px;
  left:25px;
  right:25px;
  display:flex;
  align-items:center;
  gap:14px;
  font-size:9px;
  letter-spacing:2px;
  color:#775e4e
}

.hero-line {
  height:1px;
  flex:1;
  background:linear-gradient(90deg,#aa7f6155,transparent)
}

.services {
  position:relative;
  padding:0 22px
}

.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:3px 2px 16px;
  gap:8px
}

.section-heading h2 {
  margin:0;
  font-size:17px;
  font-weight:750;
  letter-spacing:1px
}

.section-heading>span {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:10px;
  color:#887568;
  letter-spacing:.3px
}

.entries {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px
}

.entry {
  --accent:#a74d37;
  --tint:#f3dfd4;
  --pale:#fcf5ef;
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:164px;
  padding:19px 17px 18px;
  justify-content:space-between;
  gap:19px;
  border:1px solid #ffffff;
  border-radius:20px;
  background:#fffdfa;
  text-decoration:none;
  box-shadow:0 4px 16px #5d432307;
  cursor:pointer;
  transition:transform .22s,box-shadow .22s,border-color .22s;

}

.entry-photo {
  --accent:#546d58;
  --tint:#dbe5d5;
  --pale:#eff3e9;

}

.entry-results {
  --accent:#9e7633;
  --tint:#ecdfb9;
  --pale:#f9f2df;

}

.entry-replay {
  --accent:#766351;
  --tint:#e5dace;
  --pale:#f2ece5;

}

.entry-icon {
  display:grid;
  place-items:center;
  flex:none;
  width:46px;
  height:46px;
  border-radius:13px;
  color:var(--accent);
  background:var(--pale);
}

.entry-icon svg {
  width:27px;
  height:27px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.entry-content {
  display:block;
  padding-top:3px
}

.entry-title {
  display:block;
  font-size:18px;
  font-weight:750;
  letter-spacing:.5px;
  line-height:1.45
}

.entry-description {
  display:block;
  margin-top:5px;
  font-size:11px;
  line-height:1.6;
  color:#796659;
  white-space:nowrap;
  letter-spacing:.1px
}

.badge {
  display:block;
  width:fit-content;
  margin-top:4px;
  padding:2px 6px;
  border-radius:5px;
  font-size:10px;
  letter-spacing:0;
  font-weight:500;
  background:var(--tint);
  color:var(--accent)
}

.entry[href] .badge {
  display:none
}

.entry[aria-disabled=true] {
  min-height:180px
}

.entry:focus-visible,button:focus-visible {
  outline:3px solid #a74431;
  outline-offset:4px
}

.entry:active {
  transform:scale(.97);
  box-shadow:0 2px 4px #60432915
}

.page-footer {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:23px 22px 6px
}

.page-footer p {
  font-size:10px;
  letter-spacing:3px;
  color:#a28d7d;
  margin:0
}

.page-footer>span {
  width:23px;
  height:1px;
  background:#cbbbab
}

.error-note {
  font-size:12px;
  color:#a43d32
}

dialog {
  width:calc(100% - 48px);
  max-width:340px;
  padding:28px;
  border:0;
  border-radius:22px;
  text-align:center;
  color:#302b27;
  box-shadow:0 20px 80px #39271c30
}

dialog::backdrop {
  background:#29211c66;
  backdrop-filter:blur(4px)
}

dialog h2 {
  font-size:19px;
  margin:0 0 10px
}

dialog p {
  font-size:13px;
  color:#71655c;
  line-height:1.8;
  margin:0 0 24px
}

dialog button {
  width:100%;
  border:0;
  border-radius:11px;
  padding:13px;
  background:#a74431;
  color:white;
  font:inherit;
  font-size:14px;
  cursor:pointer
}

@media(hover:hover) and (pointer:fine) {
  .entry:hover {
    transform:translateY(-2px);
    border-color:var(--tint);
    box-shadow:0 14px 26px -14px #6d493e55
  }
  .entry:active {
    transform:scale(.97)
  }
}

@media(min-width:600px) {
  body {
    padding:20px
  }
  .page {
    min-height:calc(100svh - 40px);
    border-radius:25px;
    box-shadow:0 24px 70px #5744321a
  }
  .hero {
    height:280px
  }
  .hero-content {
    padding-top:30px
  }
  .entry {
    min-height:158px
  }
}

@media(max-height:760px) {
  .hero {
    height:237px;
    padding-top:max(18px,env(safe-area-inset-top))
  }
  .hero-content {
    padding-top:23px
  }
  .eyebrow {
    margin-bottom:8px
  }
  h1 {
    font-size:37px
  }
  .hero-copy {
    margin-top:10px
  }
  .hero-caption {
    bottom:10px
  }
  .entry {
    min-height:148px;
    gap:14px;
    padding-top:16px;
    padding-bottom:13px
  }
  .entry-title {
    font-size:17px
  }
  .section-heading {
    margin-bottom:12px
  }
  .page-footer {
    padding-top:18px
  }
}

@media(max-width:359px) {
  .hero {
    padding-left:19px;
    padding-right:19px
  }
  .hero-caption {
    left:19px;
    right:19px
  }
  .services {
    padding:0 16px
  }
  .entries {
    gap:11px
  }
  .entry {
    padding-left:12px;
    padding-right:12px;
    border-radius:17px
  }
  .entry-description {
    font-size:10px;
    letter-spacing:0
  }
  .entry-title {
    font-size:16px
  }
  .section-heading>span {
    font-size:9px
  }
  .hero-copy {
    font-size:10px
  }
  h1 {
    font-size:35px
  }
}

@media(max-height:620px) {
  .hero {
    height:201px
  }
  .hero-content {
    padding-top:18px
  }
  .eyebrow {
    font-size:7px;
    letter-spacing:1.4px;
    margin-bottom:7px
  }
  h1 {
    font-size:31px
  }
  .hero-copy {
    margin-top:8px;
    font-size:10px
  }
  .hero-caption {
    display:none
  }
  .entry {
    min-height:132px;
    gap:12px;
    padding-top:13px;
    padding-bottom:10px
  }
  .entry-description {
    margin-top:3px
  }
  .entry-title {
    font-size:16px
  }
  .section-heading h2 {
    font-size:16px
  }
  .page-footer {
    padding-top:14px
  }
  .page-footer p {
    font-size:9px
  }
  .section-heading {
    margin-bottom:10px
  }
}

@media(orientation:landscape) and (max-height:560px) {
  body {
    padding:12px
  }
  .page {
    max-width:850px;
    min-height:calc(100svh - 24px);
    display:grid;
    grid-template-columns:.9fr 1.1fr;
    align-items:center;
    border-radius:20px;
    padding:16px 16px 16px 0;
    overflow:hidden
  }
  .hero {
    height:100%;
    min-height:275px;
    padding-top:15px
  }
  .hero-image {
    inset:-16px 0 -16px 0;
    background-position:85% center
  }
  .hero:after {
    inset:-16px 0;
    background:linear-gradient(90deg,#f7f3ecdd,#f7f3ec33 45%,#f7f3ec00 70%,#f7f3ec 100%),linear-gradient(0deg,#f7f3ec 0%,transparent 60%)
  }
  .hero-content {
    padding-top:45px
  }
  .services {
    padding:0 0 0 10px
  }
  .entry {
    min-height:133px
  }
  .section-heading {
    margin-top:0
  }
  .section-heading>span {
    display:none
  }
  .page-footer {
    display:none
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {

    transition:none!important;
    scroll-behavior:auto!important
  }
}

@media(orientation:portrait) and (max-height:520px) {
  .hero {
    height:156px;
    padding-top:15px
  }
  .hero-content {
    padding-top:14px
  }
  .eyebrow {
    display:none
  }
  h1 {
    font-size:29px;
    line-height:1.13
  }
  .hero-copy {
    margin-top:7px;
    font-size:9px
  }
  .entry {
    min-height:116px;
    gap:10px;
    padding-top:12px;
    padding-bottom:9px
  }
  .entry-description {
    font-size:9px;
    margin-top:2px
  }
  .entry-title {
    font-size:15px
  }
  .section-heading {
    margin-bottom:9px
  }
  .section-heading h2 {
    font-size:15px
  }
  .page-footer {
    padding-top:11px;
    padding-bottom:0
  }
  .page-footer p {
    font-size:8px
  }
}

@media(max-height:620px) {
  .entry-icon { width:39px; height:39px; border-radius:11px; }
  .entry-icon svg { width:24px; height:24px; }
}
@media(orientation:portrait) and (max-height:520px) {
  .entry-icon { width:33px; height:33px; border-radius:9px; }
  .entry-icon svg { width:22px; height:22px; }
}
