:root {
  color-scheme: light;
  --red: #c9112e;
  --cream: #fff2da;
  --paper: #f7f1e6;
  --ink: #271d1b;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 96px, 1240px); margin-inline: auto; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--red); color: var(--cream); }
.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #bd0e29 2%, #ba0e27 18%, #bb0e2777 38%, transparent 59%),
    url("./chicken.webp") center 49% / cover no-repeat;
}
.hero-inner { min-height: min(100svh, 1000px); display: flex; flex-direction: column; }
.nav { display: flex; justify-content: space-between; align-items: center; padding-block: 26px; border-bottom: 1px solid #fff2da55; }
.brand { font: 950 italic 30px/1 Arial, sans-serif; letter-spacing: -.075em; white-space: nowrap; }
.brand span { font-style: normal; margin-left: .04em; }
.nav-link { font-size: 14px; font-weight: 700; border: 1px solid #fff2da80; border-radius: 999px; padding: 9px 14px; }
.nav-link span { margin-left: 6px; }
.nav-link:hover, .scroll-link:hover { background: var(--cream); color: var(--red); }
.hero-content { margin-block: auto; padding-block: clamp(36px, 8vh, 105px); width: fit-content; max-width: 100%; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: clamp(12px, 1.25vw, 16px); font-weight: 700; letter-spacing: .12em; }
.eyebrow span { background: currentColor; width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 4px #fff2da30; }
h1 { font-size: clamp(64px, 8vw, 128px); line-height: .99; letter-spacing: -.085em; margin: .19em 0 .30em -.06em; font-weight: 950; }
h1 span { display: block; }
.time-caption { font-size: 14px; font-weight: 700; letter-spacing: .13em; margin-bottom: 12px; }
.timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(6px, .8vw, 12px); }
.timer div { display: grid; justify-items: center; min-width: clamp(58px, 7vw, 98px); padding: 7px 4px 9px; border-radius: 6px; background: var(--cream); color: #ab1029; box-shadow: 0 4px 0 #76071855; }
.timer strong { font: 900 clamp(31px, 4.15vw, 65px)/1.04 Arial, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.07em; padding-right: .06em; }
.timer small { font-weight: 800; margin-top: 4px; font-size: 11px; }
.today { margin: 0; color: var(--red); background: var(--cream); border-radius: 6px; padding: 6px 15px 9px; display: inline-block; font-size: clamp(42px, 5.7vw, 78px); line-height: 1; font-weight: 950; }
.target { margin: 14px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.scroll-link { align-self: flex-start; border: 1px solid #fff2da80; border-radius: 999px; padding: 9px 14px; margin-bottom: 24px; font-size: 13px; font-weight: 700; }
.scroll-link span { margin-right: 6px; }
.library { padding: clamp(46px, 7vw, 100px) 0; }
.library-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 2px solid var(--ink); }
.library-kicker { margin: 0 0 8px; font-weight: 800; font-size: 12px; color: #a3132b; letter-spacing: .10em; }
.library h2 { font-size: clamp(38px, 6.8vw, 82px); line-height: 1.05; letter-spacing: -.07em; margin: 0; font-weight: 950; }
.library h2 span { color: var(--red); }
.shuffle, .copy { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-weight: 800; white-space: nowrap; }
.shuffle { padding: 10px 15px; border: 1px solid var(--ink); background: var(--ink); color: var(--cream); }
.shuffle:hover { background: var(--red); border-color: var(--red); }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.story { background: #fffaf2; border: 1px solid #d9ccba; border-radius: 11px; padding: clamp(20px, 3vw, 35px); display: flex; flex-direction: column; align-items: flex-start; scroll-margin: 16px; }
.story:focus { outline: 2px solid var(--red); outline-offset: -2px; }
.story-genre { color: #a3132b; font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.story h3 { font-size: clamp(23px, 3vw, 35px); line-height: 1.28; letter-spacing: -.035em; margin: 8px 0 14px; }
.story-body { font-size: 15.5px; line-height: 1.9; overflow-wrap: anywhere; }
.story-body p { margin: 0 0 11px; }
.story-body p:last-child { color: #97182d; font-weight: 750; }
.copy { background: transparent; color: #a3132b; border: 1px solid #b54d5d; padding: 8px 12px; font-size: 13px; margin-top: auto; }
.copy:hover { background: #fae6e6; }
.story-body { padding-bottom: 12px; }
.copy-status { position: fixed; z-index: 2; bottom: 20px; left: 50%; transform: translateX(-50%); margin: 0; padding: 10px 16px; background: var(--ink); color: var(--cream); border-radius: 100px; white-space: nowrap; pointer-events: none; }
.copy-status:empty { padding: 0; }
.footer { background: var(--ink); color: var(--cream); }
.footer .wrap { display: flex; gap: 15px 24px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding-block: 24px; }
.footer p, .footer a:last-child { font-size: 13px; margin: 0; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .hero-inner { min-height: max(640px, 100svh); }
  .hero-art {
    background:
      linear-gradient(0deg, #be102b 0%, #be102b 11%, #bf1029aa 34%, transparent 58%),
      linear-gradient(90deg, #be102b99, transparent 42%),
      url("./chicken.webp") 85% 34% / auto min(77svh, 670px) no-repeat;
  }
  .nav { padding-block: 17px; }
  .brand { font-size: 26px; }
  .hero-content { margin-top: auto; margin-bottom: 0; padding-block: 0 22px; }
  h1 { font-size: clamp(56px, 12vw, 83px); margin-block: .14em .22em; }
  h1 span { display: inline; }
  .timer { width: min(100%, 330px); }
  .story-grid { grid-template-columns: 1fr; gap: 12px; }
  .library-head { align-items: center; }
  .shuffle { font-size: 12px; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
