:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d8;
  --ink: #2a2622;
  --ink-2: #5c564e;
  --ink-3: #8a8378;
  --line: rgba(42, 38, 34, 0.1);
  --accent: #3d6b4f;
  --accent-deep: #2c4e3a;
  --lane: #c45c3e;
  --header-h: 72px;
  --axis: 280px;
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --serif: Georgia, "Songti SC", "Noto Serif SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
}

.brand span {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 0;
  position: relative;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--lane);
  transform: skewX(-12deg);
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 32px 64px;
}

.lane-mark {
  display: inline-block;
  position: relative;
  padding-left: 16px;
}

.lane-mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 10px;
  height: 2px;
  background: var(--lane);
  transform: skewX(-12deg);
}

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

h1 {
  font-size: 32px;
  margin: 0 0 16px;
}

h2 {
  font-size: 22px;
  margin: 32px 0 12px;
}

h3 {
  font-size: 18px;
  margin: 24px 0 8px;
}

.lede {
  color: var(--ink-2);
  font-size: 16px;
  max-width: 42em;
}

.meta {
  color: var(--ink-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: 40px 32px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.8;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-name {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.footer-inner p {
  margin: 0;
}

/* Home: left schedule axis */
.home-layout {
  display: grid;
  grid-template-columns: var(--axis) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.axis {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 20px 16px 20px 0;
  border-right: 1px solid var(--line);
}

.axis h2 {
  font-size: 15px;
  margin: 0 0 16px;
}

.axis ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--lane);
}

.axis li {
  padding: 0 0 20px 16px;
  position: relative;
}

.axis li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--paper);
  border: 2px solid var(--lane);
  border-radius: 50%;
}

.axis time {
  display: block;
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink-3);
}

.axis a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}

.axis a:hover {
  color: var(--accent);
}

.home-main {
  display: flex;
  flex-direction: column;
  gap: 56px;
  min-width: 0;
}

.mast {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: end;
  min-height: calc(100dvh - var(--header-h) - 64px);
}

.mast-copy h1 {
  font-size: 36px;
  max-width: 12em;
}

.mast-copy p {
  margin: 0 0 20px;
}

.mast img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  background: var(--accent);
  color: #f7f4ee;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  min-height: 44px;
  line-height: 24px;
}

.btn:hover {
  background: var(--accent-deep);
  color: #f7f4ee;
}

.venue-strip {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.venue-strip img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
}

.entry-rail {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 32px;
}

.entry-rail ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.entry-rail li {
  counter-increment: step;
  padding: 16px 0 16px 48px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.entry-rail li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
  color: var(--lane);
  font-size: 15px;
}

.entry-rail img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}

.magazine {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
}

.magazine-lead img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.magazine-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.magazine-list a {
  display: block;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.magazine-list a:hover h3 {
  color: var(--accent);
}

.magazine-list h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.sideline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  background: var(--paper-2);
  padding: 28px;
  border-radius: 16px;
}

.sideline img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.handbook-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 16px;
}

.handbook-row article {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.handbook-row article:first-child {
  grid-row: span 1;
}

.handbook-row img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.handbook-row h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.hours-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.hours-board div {
  padding: 20px 24px;
}

.hours-board div + div {
  border-left: 1px solid var(--line);
}

.hours-board dt {
  font-size: 13px;
  color: var(--ink-3);
}

.hours-board dd {
  margin: 4px 0 12px;
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
}

.notes dl {
  margin: 0;
}

.notes dt {
  font-weight: 500;
  margin-top: 16px;
}

.notes dd {
  margin: 4px 0 0;
  color: var(--ink-2);
}

/* Category */
.cat-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  margin-bottom: 40px;
  align-items: end;
}

.cat-list {
  display: flex;
  flex-direction: column;
}

.cat-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 88px;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.cat-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.cat-item h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.cat-item p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}

/* Article layouts */
.crumb {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 20px;
}

.crumb a {
  color: var(--ink-2);
  text-decoration: none;
}

.article-body {
  max-width: 42em;
}

.article-body p {
  margin: 0 0 16px;
}

.article-figure {
  margin: 24px 0;
}

.article-figure img {
  width: 100%;
  border-radius: 10px;
}

.article-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-3);
}

.layout-split .split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 24px;
}

.layout-bleed .bleed img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 0;
  margin: 0 -32px 24px;
  max-width: none;
  width: calc(100% + 64px);
}

.layout-pair .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}

.layout-quote .pull {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--lane);
  padding: 4px 0 4px 16px;
  margin: 0 0 24px;
}

.related {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related h2 {
  margin-top: 0;
  font-size: 16px;
}

.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related a {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  min-height: 88px;
}

.related a:hover {
  border-color: var(--accent);
}

.back-cat {
  margin-top: 24px;
}

.author-line {
  margin: 0 0 24px;
  color: var(--ink-3);
  font-size: 13px;
}

@media (max-width: 1024px) {
  .home-layout {
    grid-template-columns: 1fr;
  }

  .axis {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
  }

  .axis ol {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    border-left: 0;
    padding-bottom: 8px;
  }

  .axis li {
    min-width: 160px;
    padding: 0 16px 0 0;
    border-left: 2px solid var(--lane);
    padding-left: 12px;
  }
}

@media (max-width: 768px) {
  .header-inner,
  .wrap,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .mast,
  .venue-strip,
  .entry-rail,
  .magazine,
  .sideline,
  .handbook-row,
  .hours-board,
  .cat-head,
  .cat-item,
  .layout-split .split,
  .layout-pair .pair,
  .related ul {
    grid-template-columns: 1fr;
  }

  .hours-board div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .mast {
    min-height: 0;
  }

  h1,
  .mast-copy h1 {
    font-size: 26px;
  }

  .layout-bleed .bleed img {
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
  }

  .venue-strip img {
    width: 100%;
    height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
