@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');

:root {
  --paper: #fbf8f4;
  --panel: #f0e7df;
  --ink: #281e1c;
  --muted: #6f5e58;
  --accent: #8e2539;
  --accent-hover: #6d172a;
  --line: #e5d9d0;
  font-family: "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; letter-spacing: -.025em; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
img { width: 100%; display: block; object-fit: cover; }
button, input, select { font: inherit; }
a, button { transition: color .2s, background-color .2s, border-color .2s; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
main:focus, h1:focus { outline: none; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: -100px; left: 18px; background: white; padding: 12px; z-index: 9; }
.skip:focus { top: 12px; }
body > header { position: sticky; top: 0; z-index: 3; background: #fbf8f4f4; border-bottom: 1px solid var(--line); backdrop-filter: blur(15px); }
.header { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; gap: 12px; align-items: center; font-weight: 900; white-space: nowrap; font-size: 1.02rem; letter-spacing: -.055em; }
.brand small { display: block; font: 700 .72rem "Barlow Condensed", sans-serif; letter-spacing: .115em; color: var(--muted); margin-top: 2px; }
.mark { flex: 0 0 38px; width: 38px; height: 38px; display: grid; grid-auto-flow: column; justify-content: center; align-items: center; gap: 3px; background: var(--accent); border-radius: 50%; }
.mark i { width: 3px; height: 14px; background: white; transform: skew(-18deg); }
.mark i:nth-child(2) { height: 22px; }
.mark i:nth-child(3) { height: 11px; }
.header nav { display: flex; gap: clamp(18px, 3.4vw, 45px); align-items: center; white-space: nowrap; font-size: .94rem; font-weight: 700; }
.header nav a { padding-block: 25px; }
.header nav a:hover, .header nav a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: 7px; }
.header-cta { border: 1px solid #c8aaa7; color: var(--accent); border-radius: 7px; padding: 9px 15px; font-size: .89rem; font-weight: 800; white-space: nowrap; }
.header-cta:hover, .secondary:hover { background: #f3e6df; }
#menu, .header nav .mobile-only { display: none; }
.hero { display: grid; grid-template-columns: minmax(365px, .87fr) minmax(0, 1.13fr); align-items: stretch; min-height: 480px; margin-top: 24px; background: var(--panel); border-radius: 17px; overflow: hidden; }
.hero-copy { container-type: inline-size; align-self: center; padding: clamp(36px, 5vw, 74px); padding-right: 28px; }
.kicker { color: var(--accent); font: 700 1.1rem "Barlow Condensed", sans-serif; letter-spacing: .165em; margin: 0 0 20px; }
.hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 5.15rem); font-size: clamp(2rem, 16.7cqw, 5.15rem); line-height: 1.04; letter-spacing: -.105em; font-weight: 900; }
.hero-copy > p:not(.kicker) { font-size: 1.05rem; line-height: 1.7; color: var(--muted); margin: 22px 0 28px; max-width: 270px; }
.hero-photo { margin: 0; min-width: 0; position: relative; overflow: hidden; }
.hero-photo img { height: 100%; position: absolute; object-position: center 43%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 11px 17px; min-height: 45px; border-radius: 7px; font-weight: 750; font-size: .94rem; }
.primary { background: var(--accent); border: 1px solid var(--accent); color: #fff; }
.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.secondary { background: transparent; color: var(--accent); border: 1px solid #c8aaa7; }
.section { padding-block: 50px; }
.news { padding-bottom: 43px; }
.explore { border-top: 1px solid var(--line); padding-top: 41px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 13px; margin-bottom: 20px; }
.section-title h2 { font-size: clamp(1.7rem, 3.1vw, 2.55rem); margin: 0; letter-spacing: -.072em; line-height: 1.2; }
.text-link { color: var(--accent); font-size: .94rem; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--accent-hover); }
.news-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 20px; align-items: start; }
.story { min-width: 0; background: #fffdfb; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.story-copy { padding: 19px 22px 22px; }
.story-photo { display: block; overflow: hidden; height: clamp(180px, 24vw, 260px); }
.story-photo img { height: 100%; object-position: center 54%; }
.story-list { display: grid; gap: 10px; }
.story h3, .feature-card h3 { margin: 8px 0; font-size: clamp(1.13rem, 2vw, 1.45rem); line-height: 1.43; letter-spacing: -.052em; }
.story-title:hover { color: var(--accent); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 11px; align-items: center; margin: 0; }
.meta time, .excerpt { font-size: .9rem; color: var(--muted); }
.tag { display: inline-block; color: #7d2436; background: #f5e6e8; border-radius: 4px; padding: 3px 7px; font-size: .81rem; line-height: 1.4; font-weight: 750; }
.excerpt { line-height: 1.7; margin: 8px 0 9px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.athlete-spotlight {
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr);
  gap: clamp(26px,5.8vw,80px);
  padding-block: clamp(45px,6vw,80px);
  border-top: 1px solid var(--line);
}
.spotlight-photo { display: grid; grid-template-rows: minmax(0,1fr) auto; margin: 0; min-width: 0; }
.spotlight-photo-frame { position: relative; min-height: 320px; overflow: hidden; border-radius: 14px; background: var(--panel); }
.spotlight-photo-frame img { position: absolute; inset: 0; height: 100%; object-position: center; }
.spotlight-photo figcaption { margin-top: 9px; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.spotlight-copy { min-width: 0; }
.spotlight-copy .kicker { margin: 0 0 9px; }
.spotlight-copy h2 { margin: 0; font-size: clamp(2rem,4.25vw,3.55rem); font-weight: 900; line-height: 1.15; letter-spacing: -.08em; }
.spotlight-athletes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 21px; }
.spotlight-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  padding: clamp(13px,1.7vw,21px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 11px;
  background: #fffdfb;
}
.spotlight-card:hover { background: #f6eee8; border-color: var(--accent); }
.spotlight-event { color: var(--muted); font-size: .81rem; font-weight: 650; line-height: 1.45; }
.spotlight-card h3 { margin: 0; font-size: clamp(1.2rem,2.2vw,1.5rem); line-height: 1.3; letter-spacing: -.045em; }
.spotlight-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.spotlight-result { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 7px; margin-top: 2px; color: var(--muted); font-size: .82rem; }
.spotlight-card small { margin-top: auto; padding-top: 4px; color: var(--accent); font-size: .83rem; font-weight: 650; line-height: 1.5; }
.spotlight-all { min-width: 164px; min-height: 52px; margin-top: 15px; font-size: 1rem; }
.spotlight-story { display: grid; gap: 4px; margin-top: 14px; padding: 13px 16px; border: 1px solid var(--line); background: #fffdfb; }
.spotlight-story:hover { background: #f6eee8; border-color: #c7a090; }
.spotlight-story span { color: var(--accent); font-size: .82rem; font-weight: 750; }
.spotlight-story strong { font-size: 1.02rem; line-height: 1.5; }
.spotlight-note { margin: 14px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.feature-grid, .cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.feature-card { background: #fffdfb; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.feature-card:hover { border-color: #c7a090; }
.feature-photo { height: clamp(136px, 15vw, 200px); margin: 0; overflow: hidden; }
.feature-photo img { height: 100%; object-position: center 44%; }
.feature-card > div:not(.feature-photo) { padding: 13px 18px 20px; }
.feature-card p, .card p, .context, .empty p { color: var(--muted); line-height: 1.65; }
.feature-card p { margin: 0; font-size: .94rem; }
.page-hero { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 225px; margin-top: 24px; background: var(--panel); overflow: hidden; border-radius: 17px; }
.page-hero > div:not(.page-photo) { padding: clamp(28px,5vw,60px); align-self: center; }
.page-photo { position: relative; min-width: 0; margin: 0; overflow: hidden; }
.page-photo img { position: absolute; inset: 0; height: 100%; }
.page-hero h1, .article-shell h1 { font-size: clamp(2.2rem,5vw,4rem); line-height: 1.18; margin: 0; letter-spacing: -.085em; }
.page-hero p { color: var(--muted); margin: 12px 0 0; line-height: 1.7; }
.page { min-height: 320px; padding: 27px 0 55px; }
.context { margin: 0 0 17px; }
.filters, .links { display: flex; flex-wrap: wrap; gap: 10px; }
.filters { margin-bottom: 17px; }
.filters input, .filters select { background: #fffdfb; color: var(--ink); border: 1px solid #ccbcb3; min-height: 47px; padding: 8px 13px; border-radius: 7px; }
.filters input { width: min(100%,340px); }
.card, .empty { border: 1px solid var(--line); background: #fffdfb; border-radius: 12px; padding: 20px; }
.card h2, .empty h2 { font-size: 1.25rem; margin: 8px 0; }
.card p, .empty p { margin: 8px 0 13px; }
.related { margin-top: 22px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: #fffdfb; }
table { width: 100%; text-align: left; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 13px 16px; }
th { background: #f0e7df; }
tr:last-child td { border: 0; }
.result-label { display: none; }
.article-shell { width: min(820px,calc(100% - 96px)); min-height: 510px; padding-block: 35px 65px; }
.article-photo { height: clamp(170px,36vw,320px); margin: 20px 0 24px; overflow: hidden; border-radius: 12px; }
.article-photo img { height: 100%; }
.article-heading { margin: 23px 0; }
.article-heading .meta { margin-bottom: 12px; }
.article-shell h1 { font-size: clamp(2rem,4vw,3.4rem); }
.event-facts { display: flex; flex-wrap: wrap; gap: 14px 28px; background: var(--panel); border-radius: 9px; padding: 14px 17px; }
.event-facts dt { font-size: .84rem; color: var(--muted); font-weight: 750; margin-bottom: 3px; }
.event-facts dd { margin: 0; }
.article-summary { padding: 0 0 10px; }
.article-summary h2 { font-size: 1.35rem; margin-bottom: 9px; }
.article-summary p { line-height: 1.9; margin: 0 0 15px; white-space: pre-line; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); background: #f2ebe4; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-block: 25px; }
.foot > a:last-child { color: var(--muted); font-size: .9rem; }
@media (max-width: 950px) {
  .wrap { width: calc(100% - 50px); }
  .header { gap: 15px; }
  .header nav { gap: 18px; }
  .hero { min-height: 405px; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .header { min-height: 62px; }
  .header-cta { display: none; }
  #menu { display: block; color: var(--accent); background: transparent; border: 1px solid #c8aaa7; border-radius: 6px; padding: 7px 11px; min-height: 44px; font-size: .92rem; font-weight: 750; }
  .header nav { display: none; position: absolute; inset: 100% 0 auto; padding: 8px 16px; max-height: calc(100dvh - 62px); overflow-y: auto; background: var(--paper); border-bottom: 1px solid var(--line); }
  .header nav.open { display: grid; gap: 0; }
  .header nav a, .header nav .mobile-only { display: flex; align-items: center; min-height: 44px; padding: 9px 7px; }
}
@media (max-width: 730px) {
  .wrap, .article-shell { width: calc(100% - 32px); }
  .brand { gap: 8px; }
  .mark { width: 33px; height: 33px; flex-basis: 33px; }
  .hero { grid-template-columns: 1fr; margin-top: 13px; min-height: 0; }
  .hero-copy { padding: 28px 22px 25px; }
  .kicker { margin-bottom: 13px; }
  .hero-copy > p:not(.kicker) { margin: 16px 0 19px; }
  .hero-photo { min-height: clamp(205px,54vw,330px); }
  .section { padding-block: 33px; }
  .athlete-spotlight { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .spotlight-photo-frame { height: clamp(185px,53vw,320px); min-height: 0; }
  .spotlight-copy h2 { font-size: clamp(2rem,7.5vw,3.05rem); }
  .spotlight-all { width: 100%; }
  .news-grid, .feature-grid, .cards { grid-template-columns: 1fr; }
  .story-copy { padding: 15px 16px 17px; }
  .page-hero { margin-top: 12px; grid-template-columns: 1.42fr .9fr; min-height: 165px; }
  .page-hero > div:not(.page-photo) { padding: 20px 13px 20px 17px; }
  .page-hero h1 { font-size: clamp(1.6rem,6.5vw,2.8rem); }
  .page-hero p { font-size: .91rem; margin-top: 8px; }
  .article-shell { padding-block: 23px 44px; min-height: 365px; }
  .foot { flex-wrap: wrap; }
  .table-scroll { border: 0; background: transparent; overflow: visible; }
  .results-table, .results-table tbody, .results-table tr { display: block; }
  .results-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  .results-table tbody tr { background: #fffdfb; border: 1px solid var(--line); border-radius: 10px; padding: 3px 15px; }
  .results-table tbody tr + tr { margin-top: 10px; }
  .results-table tr td { display: grid; grid-template-columns: 3.25rem minmax(0,1fr); gap: 8px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .results-table tbody tr td:last-child { border-bottom: 0; }
  .results-table .result-label { display: block; color: var(--muted); font-size: .88rem; font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) {
  a, button { transition: none; }
}
.filters select {
  appearance: none;
  padding-right: 37px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

/* Keep the main story and the neighboring notices in the same grid row. */
@media (min-width: 731px) {
  .news-grid { align-items: stretch; }
  .news-grid > .story { display: flex; flex-direction: column; }
  .news-grid > .story .story-photo { flex: 1; position: relative; height: auto; min-height: 200px; }
  .news-grid > .story .story-photo img { position: absolute; inset: 0; }
  .news-grid > .story-list { grid-auto-rows: 1fr; }
}

.page-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 14px; }
.page-controls + .page-hero { margin-top: 0; }
.article-shell .page-controls { margin-top: 0; }
.article-list-link { margin-top: 21px; }
.page-control {
  min-height: 51px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 16px; border: 1px solid #c8aaa7; border-radius: 8px; cursor: pointer;
  background: #fffdfb; color: var(--accent); font-size: 1rem; font-weight: 800;
}
.page-control:hover { background: #f3e6df; }
.page-control svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.detail-lines { margin: 18px 0 14px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.detail-lines li { position: relative; padding: 10px 10px 10px 24px; border-bottom: 1px solid var(--line); line-height: 1.7; }
.detail-lines li::before { content: ''; position: absolute; width: 6px; height: 6px; top: 1.35em; left: 8px; border-radius: 50%; background: var(--accent); }

.scroll-progress, .route-swipe { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .news, .explore, .feature-card, .page .story, .article-summary,
  .home-motion .news-grid .story, .home-motion .section-title {
    transition: transform .55s cubic-bezier(.2,.75,.25,1), opacity .5s ease, border-color .2s;
  }
  .awaiting-reveal:not(:focus-within) { opacity: .18; transform: translateY(22px); }
  .scroll-photo { transform: scale(calc(1 + .1 * var(--photo-scroll, 0))); }
  .home-motion {
    --hero-copy-shift: -18px;
    --home-reveal-distance: 32px;
  }
  .home-motion .awaiting-reveal:not(:focus-within) { opacity: .32; transform: translateY(var(--home-reveal-distance)); }
  .home-motion .feature-card:nth-child(2), .home-motion .story-list .story:nth-child(2) { transition-delay: 40ms; }
  .home-motion .feature-card:nth-child(3), .home-motion .story-list .story:nth-child(3) { transition-delay: 80ms; }
  .route-swipe.is-playing {
    display: block; position: fixed; inset: 0; z-index: 6; overflow: hidden; pointer-events: none;
  }
  .route-swipe.is-playing::before {
    content: ''; position: absolute; inset: 0;
    background:
      repeating-linear-gradient(132deg, transparent 0 10px, #8e253927 10px 12px),
      linear-gradient(118deg, transparent 9%, #ead7d4c9 35%, #f8ebe6eb 51%, #e2c9c9b8 65%, transparent 91%);
    animation: diagonal-passage .33s cubic-bezier(.23,.65,.31,1) both;
  }
  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      display: block; position: fixed; top: 0; left: 0; z-index: 5; width: 100%; height: 3px; pointer-events: none;
      background: var(--accent); transform-origin: left; animation: reading-progress linear both; animation-timeline: scroll(root block);
    }
    .home-motion .hero-copy { animation: hero-copy-rise linear both; animation-timeline: scroll(root block); animation-range: 0px 75vh; }
  }
  @supports not (animation-timeline: scroll()) {
    .home-motion .hero-copy { transform: translateY(calc(var(--hero-copy-shift) * var(--hero-scroll, 0))); }
  }
  @media (max-width: 730px) {
    .home-motion {
      --hero-copy-shift: -6px;
      --home-reveal-distance: 16px;
    }
    .home-motion .news, .home-motion .explore, .home-motion .news-grid .story,
    .home-motion .section-title, .home-motion .feature-card {
      transition-duration: .37s, .34s, .2s;
    }
  }
}
@keyframes reading-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hero-copy-rise { from { transform: translateY(0); } to { transform: translateY(var(--hero-copy-shift)); } }
@keyframes diagonal-passage {
  0% { transform: translateX(-92%); opacity: 0; }
  34% { opacity: .9; }
  67% { opacity: .62; }
  100% { transform: translateX(92%); opacity: 0; }
}
@media (max-width: 730px) {
  .page-controls { margin-top: 13px; }
  .page-control { flex: 1 1 124px; }
  .article-list-link { margin-top: 18px; }
}

.floating-page-controls {
  position: fixed;
  inset-inline-end: calc(clamp(12px, 2vw, 26px) + env(safe-area-inset-right, 0px));
  bottom: calc(clamp(12px, 2vw, 26px) + env(safe-area-inset-bottom, 0px));
  z-index: 2;
  gap: 5px;
  margin: 0;
  padding: 5px;
  background: #fffdfb;
  border: 1px solid #d6c3b9;
  border-radius: 13px;
  box-shadow: 0 6px 24px #4320212e;
}
.floating-page-controls .page-control {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 8px 11px;
  gap: 6px;
  border-color: transparent;
  font-size: .91rem;
}
.floating-page-controls a.page-control {
  color: white;
  background: var(--accent);
}
.floating-page-controls a.page-control:hover { background: var(--accent-hover); }
.floating-page-controls .page-control svg { width: 19px; height: 19px; }
main:has(.floating-page-controls) + footer .foot {
  padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
}

html:has(.floating-page-controls) { scroll-padding-block-end: calc(76px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 420px) {
  .section-title { align-items: flex-start; flex-wrap: wrap; }
  .spotlight-athletes { gap: 9px; }
  .spotlight-card { padding: 11px; }
  .filters > :is(input,select) { width: 100%; }
  .event-facts { flex-direction: column; }
  .page-hero { grid-template-columns: minmax(0,1fr); }
  .page-photo { height: clamp(104px,32vw,140px); }
}
@media (max-width: 340px) {
  .header { gap: 10px; }
  .header .brand { min-width: 0; white-space: normal; }
  .header #menu { flex-shrink: 0; }
  .spotlight-athletes { grid-template-columns: minmax(0,1fr); }
}
