:root {
  --ink: #232321;
  --paper: #f2efe7;
  --card: #faf8f2;
  --brick: #be4b35;
  --brick-dark: #963725;
  --clay: #e7c5b4;
  --straw: #ddd29b;
  --sand: #dfd8c9;
  --muted: #706f69;
  --line: rgba(35, 35, 33, .32);
  --serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { background: var(--brick); color: white; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; left: 18px; top: 12px; z-index: 100; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 4px; }
section[id], footer[id] { scroll-margin-top: 96px; }
.page-shell { width: min(100% - 64px, 1240px); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px solid var(--ink); backdrop-filter: blur(12px); }
.header-inner { height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.wordmark { justify-self: start; display: flex; align-items: baseline; gap: 14px; }
.wordmark strong { font: 600 21px var(--serif); letter-spacing: .1em; }
.wordmark span { color: var(--muted); font: 400 9px var(--mono); letter-spacing: .12em; }
.main-nav { display: flex; align-items: center; gap: 34px; font-size: 12px; }
.main-nav a { position: relative; padding: 9px 0; }
.main-nav a::before { content: ""; position: absolute; left: 0; bottom: 3px; width: 0; height: 4px; background: var(--clay); transition: width .25s; z-index: -1; }
.main-nav a:hover::before { width: 100%; }
.tip-link { justify-self: end; min-height: 44px; display: inline-flex; align-items: center; padding: 10px 14px; background: var(--brick); color: white; font-size: 11px; letter-spacing: .05em; transition: background .2s; }
.tip-link:hover { background: var(--brick-dark); }
.menu-button { display: none; border: 0; background: none; padding: 10px 0; }

.archive { padding-top: 92px; padding-bottom: 135px; }
.section-head { display: grid; grid-template-columns: 1fr minmax(250px, 360px); align-items: end; gap: 50px; padding-top: 22px; border-top: 2px solid var(--ink); }
.section-head > div { display: grid; grid-template-columns: 115px 1fr; align-items: end; }
.section-kicker { margin: 0 0 12px; color: var(--brick); font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.section-head h1, .section-head h2 { grid-column: 2; margin: 0; font: 600 clamp(50px, 6.5vw, 88px)/1.05 var(--serif); letter-spacing: -.055em; }
.section-note { margin: 0 0 7px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.filter-bar { min-height: 108px; display: grid; grid-template-columns: auto minmax(260px, 1fr) auto; gap: 24px; align-items: center; margin-top: 38px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-meta { display: flex; flex-direction: column; gap: 5px; }
.filter-meta span { color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.filter-meta strong { font: 500 13px var(--serif); }
.archive-tools { justify-self: center; display: flex; align-items: center; gap: 8px; }
.story-search input, .year-filter select { height: 44px; border: 1px solid var(--line); background: rgba(255,255,255,.34); color: var(--ink); font: 400 11px var(--sans); }
.story-search input { width: min(25vw, 270px); padding: 0 14px; }
.story-search input::placeholder { color: var(--muted); }
.year-filter select { min-width: 112px; padding: 0 30px 0 12px; cursor: pointer; }
.filters { display: flex; gap: 8px; }
.filter { min-width: 64px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 50px; background: transparent; cursor: pointer; font-size: 11px; transition: .2s; }
.filter:hover { border-color: var(--brick); color: var(--brick); }
.filter.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.story-list { display: grid; grid-template-columns: 1fr 1fr; margin-top: 34px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.story { min-height: 475px; display: flex; flex-direction: column; padding: 28px 30px 30px; background: transparent; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transition: background .25s; }
.story:hover { background: var(--card); }
.story.hidden { display: none; }
.story-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 55px; }
.story-category { color: var(--brick); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.story-number { font: 400 10px var(--mono); color: var(--muted); }
.story-content { flex: 1; }
.story h3 { margin: 0 0 22px; font: 600 clamp(26px, 2.4vw, 36px)/1.5 var(--serif); letter-spacing: -.03em; }
.story h3 a:hover { color: var(--brick-dark); }
.story p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 5; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.95; }
.story-footer { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: 45px; padding-top: 17px; border-top: 1px solid var(--line); }
.story-footer > div { display: flex; gap: 18px; color: var(--muted); font: 400 9px var(--mono); }
.story-footer a { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; font-size: 11px; }
.story-footer b { margin-left: 6px; color: var(--brick); font-size: 17px; font-weight: 400; }

.story-feature { grid-column: 1 / -1; min-height: 560px; display: grid; grid-template-columns: 90px minmax(0, 1fr) 230px; gap: 35px; align-items: stretch; padding: 0; background: var(--clay); }
.story-feature:hover { background: #e1bba7; }
.story-feature .story-topline { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; margin: 0; padding: 32px 22px; border-right: 1px solid var(--ink); }
.story-feature .story-content { display: flex; flex-direction: column; justify-content: center; padding: 50px 20px; }
.story-feature h3 { max-width: 840px; margin-bottom: 30px; font-size: clamp(41px, 4.7vw, 65px); line-height: 1.35; }
.story-feature p { max-width: 760px; color: #4f4b47; font-size: 13px; -webkit-line-clamp: 5; }
.story-feature .story-footer { flex-direction: column; align-items: stretch; justify-content: space-between; margin: 0; padding: 32px 25px; border-top: 0; border-left: 1px solid var(--ink); }
.story-feature .story-footer > div { flex-direction: column; gap: 8px; }
.story-feature .story-footer a { align-self: flex-start; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }

.story:last-child { grid-column: 1 / -1; min-height: 360px; display: grid; grid-template-columns: 90px minmax(0, 1fr) 230px; gap: 35px; padding: 0; background: var(--straw); }
.story:last-child .story-topline { flex-direction: column; align-items: flex-start; justify-content: space-between; margin: 0; padding: 28px 22px; border-right: 1px solid var(--ink); }
.story:last-child .story-content { padding: 40px 20px; }
.story:last-child h3 { max-width: 780px; }
.story:last-child .story-footer { flex-direction: column; align-items: stretch; justify-content: space-between; margin: 0; padding: 28px 25px; border-top: 0; border-left: 1px solid var(--ink); }

.story-list.filtered-view .story { grid-column: auto; min-height: 470px; display: flex; padding: 28px 30px 30px; background: transparent; }
.story-list.filtered-view .story .story-topline { flex-direction: row; align-items: center; justify-content: space-between; margin-bottom: 55px; padding: 0; border: 0; }
.story-list.filtered-view .story .story-content { padding: 0; }
.story-list.filtered-view .story .story-footer { flex-direction: row; align-items: end; margin-top: 45px; padding: 17px 0 0; border-top: 1px solid var(--line); border-left: 0; }
.story-list.filtered-view .story-single { grid-column: 1 / -1; min-height: 380px; display: grid; grid-template-columns: 90px minmax(0, 1fr) 230px; gap: 35px; padding: 0; background: var(--sand); }
.story-list.filtered-view .story-single .story-topline { flex-direction: column; align-items: flex-start; justify-content: space-between; margin: 0; padding: 28px 22px; border-right: 1px solid var(--ink); }
.story-list.filtered-view .story-single .story-content { padding: 42px 20px; }
.story-list.filtered-view .story-single .story-footer { flex-direction: column; align-items: stretch; justify-content: space-between; margin: 0; padding: 28px 25px; border-top: 0; border-left: 1px solid var(--ink); }
.story-list.filtered-view .story.hidden { display: none; }
.no-results { margin: 34px 0 0; padding: 36px; border: 1px dashed var(--line); text-align: center; color: var(--muted); font-size: 13px; }

.about { padding: 110px 0 115px; background: var(--sand); border-top: 1px solid var(--ink); }
.section-head-light { border-color: var(--ink); }
.notice-list { margin: 65px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.notice-list li { display: grid; grid-template-columns: 110px minmax(0, 780px) 1fr; align-items: center; min-height: 130px; border-bottom: 1px solid var(--line); }
.notice-list li > span { align-self: stretch; display: flex; align-items: center; color: var(--brick); font: 400 11px var(--mono); border-right: 1px solid var(--line); }
.notice-list p { margin: 0; padding: 25px 45px; font: 500 clamp(17px, 1.55vw, 21px)/1.85 var(--serif); }
.notice-contact { display: grid; grid-template-columns: 110px 1fr 50px; align-items: center; margin-top: 50px; padding: 25px 28px 25px 0; background: var(--brick); color: white; }
.notice-contact > span { padding-left: 20px; font-size: 10px; letter-spacing: .1em; }
.notice-contact strong { justify-self: center; font: 500 clamp(18px, 2.2vw, 28px) var(--serif); }
.notice-contact b { justify-self: end; font-size: 25px; font-weight: 400; }

.experience { padding-top: 96px; padding-bottom: 105px; }
.experience-first { padding-top: 76px; padding-bottom: 58px; }
.experience-first .section-head h2 { font-size: clamp(46px, 5.5vw, 74px); }
.timeline { margin-top: 40px; border-top: 1px solid var(--ink); }
.timeline-row { display: grid; grid-template-columns: 110px 190px 1fr; align-items: center; min-height: 90px; border-bottom: 1px solid var(--line); }
.timeline-row > span { color: var(--brick); font: 400 10px var(--mono); }
.timeline-row time { color: var(--muted); font: 400 10px var(--mono); }
.timeline-row h2, .timeline-row h3 { margin: 0; font: 600 27px var(--serif); }

.site-footer { padding: 50px 0; background: var(--ink); color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: center; gap: 45px; }
.footer-name { display: flex; align-items: baseline; gap: 14px; }
.footer-name strong { font: 600 21px var(--serif); letter-spacing: .08em; }
.footer-name span { color: rgba(255,255,255,.45); font-size: 9px; letter-spacing: .1em; }
.footer-grid > div:not(.footer-name) { display: flex; flex-direction: column; gap: 8px; }
.footer-label { color: var(--clay); font-size: 9px; letter-spacing: .12em; }
.footer-grid a { font-size: 12px; }
.footer-grid p { justify-self: end; margin: 0; color: rgba(255,255,255,.42); text-align: right; font-size: 10px; line-height: 1.8; }

.reveal { opacity: 1; transform: none; }
.reveal.will-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.will-reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .page-shell { width: min(100% - 40px, 1240px); }
  .header-inner { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .tip-link { display: none; }
  .menu-button { display: flex; width: 44px; height: 44px; flex-direction: column; align-items: flex-end; justify-content: center; gap: 5px; justify-self: end; }
  .menu-button span { width: 21px; height: 1px; background: var(--ink); transition: .25s; }
  .menu-button.active span:first-child { transform: translateY(6px) rotate(45deg); }
  .menu-button.active span:nth-child(2) { opacity: 0; }
  .menu-button.active span:last-child { transform: translateY(-6px) rotate(-45deg); }
  .main-nav.open { position: absolute; left: 0; right: 0; top: 76px; height: calc(100vh - 76px); display: flex; flex-direction: column; justify-content: center; gap: 32px; background: var(--paper); font-size: 20px; }
  .story-feature, .story:last-child, .story-list.filtered-view .story-single { grid-template-columns: 70px minmax(0, 1fr) 180px; gap: 20px; }
  .story-feature h3 { font-size: 43px; }
  .filter-bar { grid-template-columns: auto 1fr; padding: 18px 0; }
  .archive-tools { justify-self: end; }
  .filters { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 620px) {
  .page-shell { width: calc(100% - 30px); }
  .header-inner { height: 68px; }
  .wordmark span { display: none; }
  .main-nav.open { top: 68px; height: calc(100vh - 68px); }
  .archive { padding-top: 65px; padding-bottom: 90px; }
  .section-head { display: block; }
  .section-head > div { display: block; }
  .section-head h1, .section-head h2 { font-size: 48px; }
  .section-note { margin-top: 22px; }
  .filter-bar { min-height: 0; grid-template-columns: 1fr; gap: 12px; padding: 18px 0; align-items: stretch; }
  .filter-meta { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .archive-tools { width: 100%; justify-self: stretch; }
  .story-search { flex: 1; }
  .story-search input { width: 100%; }
  .year-filter select { min-width: 108px; }
  .filters { grid-column: auto; width: 100%; gap: 5px; align-items: center; justify-content: stretch; }
  .filter { flex: 1; min-width: 0; min-height: 44px; padding: 8px 4px; }
  .story-list { display: block; border-left: 1px solid var(--ink); }
  .story, .story-feature, .story:last-child, .story-list.filtered-view .story, .story-list.filtered-view .story-single { min-height: 0; display: flex; margin: 0; padding: 22px 18px 24px; background: transparent; }
  .story-feature { background: var(--clay); }
  .story:last-child { background: var(--straw); }
  .story-topline, .story-feature .story-topline, .story:last-child .story-topline, .story-list.filtered-view .story .story-topline, .story-list.filtered-view .story-single .story-topline { flex-direction: row; align-items: center; justify-content: space-between; margin: 0 0 35px; padding: 0; border: 0; }
  .story-content, .story-feature .story-content, .story:last-child .story-content, .story-list.filtered-view .story-single .story-content { padding: 0; }
  .story h3, .story-feature h3 { font-size: 25px; line-height: 1.52; }
  .story p, .story-feature p { color: var(--muted); font-size: 12px; -webkit-line-clamp: 5; }
  .story-footer, .story-feature .story-footer, .story:last-child .story-footer, .story-list.filtered-view .story .story-footer, .story-list.filtered-view .story-single .story-footer { flex-direction: row; align-items: end; margin-top: 35px; padding: 16px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .story-feature .story-footer > div { flex-direction: row; }
  .about { padding: 80px 0; }
  .notice-list { margin-top: 45px; }
  .notice-list li { grid-template-columns: 40px 1fr; min-height: 0; }
  .notice-list li > span { align-items: flex-start; padding-top: 25px; }
  .notice-list p { padding: 22px 0 22px 22px; font-size: 16px; }
  .notice-contact { grid-template-columns: 1fr auto; padding: 22px; }
  .notice-contact > span { padding: 0; }
  .notice-contact strong { grid-column: 1 / -1; grid-row: 2; justify-self: start; margin-top: 12px; font-size: 16px; }
  .notice-contact b { grid-column: 2; grid-row: 1; }
  .experience { padding: 68px 0; }
  .experience-first { padding-bottom: 48px; }
  .timeline-row { grid-template-columns: 45px 105px 1fr; }
  .timeline-row h2, .timeline-row h3 { font-size: 19px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid p { justify-self: start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal.will-reveal { opacity: 1; transform: none; }
}
