* { box-sizing: border-box; }

:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #172520;
  --muted: #4f5e58;
  --rule: #dbe0dc;
  --green: #195b49;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

a { color: var(--green); text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #7353a8; outline-offset: 4px; }

header, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-inline: clamp(1.15rem, 3.6vw, 4rem);
}

header {
  position: relative;
  z-index: 2;
  min-height: 5.2rem;
  padding-block: .9rem;
  border-bottom: 1px solid var(--rule);
  background: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand img { width: 2.7rem; height: auto; }
.wordmark { display: grid; line-height: .95; }
.wordmark b { font-size: 1.55rem; letter-spacing: -.072em; }
.wordmark small { margin-top: .22rem; font-size: .82rem; font-weight: 550; letter-spacing: .105em; }

nav { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.6rem; }
header nav > a, footer a { color: inherit; text-decoration: none; }
header nav > a:hover, footer a:hover { text-decoration: underline; }

.langs { position: relative; }
.langs summary {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 2.75rem;
  padding: .45rem .9rem;
  border: 1px solid #ced6d0;
  border-radius: .45rem;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after {
  content: "";
  display: block;
  width: .42rem;
  height: .42rem;
  border: solid var(--ink);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.1rem) rotate(45deg);
}
.langs[open] summary::after { transform: translateY(.12rem) rotate(225deg); }
.langs summary:hover, .langs[open] summary { background: #f1f5f2; }
.langs > div {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(21rem, calc(100vw - 2.3rem));
  max-height: min(65svh, 30rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding: .5rem;
  border: 1px solid var(--rule);
  border-radius: .55rem;
  background: #fff;
  box-shadow: 0 .6rem 2rem #16251f20;
}
.langs a { display: flex; align-items: center; min-height: 2.75rem; margin: 2px; padding: .3rem .6rem; border-radius: .3rem; color: var(--ink); text-decoration: none; }
.langs a:hover, .langs [aria-current="true"] { background: #eaf5ef; }

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19.5rem, 31%) minmax(0, 1fr);
  min-height: 33rem;
}
.race { position: relative; overflow: hidden; background: #9c9d8d; }
.race img { display: block; position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 57% center; }
.rink { background: #987356; }

@media (min-width: 721px) {
  .rink { background-image: url("/assets/rink-skating.jpg"); background-size: cover; background-position: 51% center; }
}

.status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem clamp(1.6rem, 3vw, 3rem);
  background: #fafbf7;
  text-align: center;
}
.status > img { width: clamp(3.5rem, 5.2vw, 5rem); height: auto; }
.status h1 {
  max-width: 14em;
  margin: 1.55rem 0 1.85rem;
  font-size: clamp(2rem, 3.15vw, 3.65rem);
  font-weight: 710;
  line-height: 1.08;
  letter-spacing: -.052em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
:lang(ja) .status h1, :lang(zh) .status h1, :lang(th) .status h1 { line-height: 1.24; letter-spacing: normal; }

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .95rem;
  max-width: 100%;
  min-height: 2.85rem;
  padding: .65rem 1.2rem;
  border-radius: .4rem;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 650;
}
.action:hover { background: #103d30; }
.action i { font: 1.2rem/1 system-ui, sans-serif; }

.article {
  flex: 1;
  width: min(42rem, calc(100% - 2.5rem));
  margin: clamp(2.5rem, 6vw, 5.4rem) auto;
  overflow-wrap: anywhere;
}
.article h1 { margin: 0 0 1.5rem; font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 720; line-height: 1.08; letter-spacing: -.048em; }
.article h2 { margin: 2rem 0 .5rem; font-size: 1.22rem; }
.article time { display: block; color: var(--muted); margin: -.6rem 0 2rem; }
.article p, .article li { margin: .95rem 0; line-height: 1.65; }

footer {
  flex-wrap: wrap;
  padding-block: 1.4rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .87rem;
}
footer > span { font-weight: 600; }
footer a { display: inline-flex; align-items: center; min-height: 2rem; }

@media (max-width: 720px) {
  header { min-height: 4.3rem; }
  .brand { gap: .48rem; }
  .brand img { width: 2.15rem; }
  .wordmark b { font-size: 1.28rem; }
  .wordmark small { font-size: .7rem; margin-top: .2rem; }
  header nav { justify-content: flex-end; gap: .35rem .8rem; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .race { height: clamp(10rem, 55vw, 16rem); flex: none; }
  .race img { object-position: 52% 51%; }
  .rink { display: none; }
  .status { flex: 1; padding: 3rem 1.4rem; }
  .status > img { width: 3.5rem; }
  .status h1 { max-width: 15em; margin: 1.15rem 0 1.45rem; font-size: clamp(1.9rem, 7.7vw, 2.5rem); }
  footer { display: grid; gap: .65rem; padding-block: 1.25rem; }
  footer nav { gap: .15rem 1rem; }
}
