/* =========================================================
   《秋的艺境》站点样式
   枫叶红 #A34E3D · 银杏金 #C8A052 · 秋叶褐 #805C40
   宣纸白 #F5EFE3 · 淡墨黑 #363632
   ========================================================= */

:root {
  --paper: #F5EFE3;
  --paper-2: #EFE6D4;
  --paper-3: #E6DAC3;
  --white: #FCF9F2;
  --ink: #363632;
  --ink-2: #524F48;
  --ink-3: #857E70;
  --maple: #A34E3D;
  --maple-dark: #8A3F30;
  --ginkgo: #C8A052;
  --brown: #805C40;
  --line: rgba(54, 54, 50, .14);
  --line-soft: rgba(54, 54, 50, .08);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Source Han Serif SC", Georgia, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow: 0 20px 46px -30px rgba(54, 54, 50, .45);
  --radius: 3px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.88;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(ellipse at 15% -5%, rgba(200, 160, 82, .10), transparent 55%),
    radial-gradient(ellipse at 90% 5%, rgba(163, 78, 61, .06), transparent 45%);
  letter-spacing: .02em;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .28;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.20'/></svg>");
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: rgba(163, 78, 61, .18); }

:focus-visible {
  outline: 2px solid var(--maple);
  outline-offset: 3px;
}

.shell { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; position: relative; z-index: 1; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 239, 227, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar {
  background: var(--ink);
  color: rgba(245, 239, 227, .78);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .22em;
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 34px;
}
.topbar-note { opacity: .8; }
.topbar-links { display: flex; gap: 22px; }
.topbar-links a { transition: color .3s; }
.topbar-links a:hover { color: var(--ginkgo); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--maple);
  color: #FBF3E4;
  font-size: 22px;
  line-height: 1;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  flex: none;
}
.brand-logo { height: 54px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 21px; letter-spacing: .26em; font-weight: 600; }
.brand-text em {
  font-style: normal;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .26em;
  color: var(--ink-3);
  margin-top: 5px;
}
.main-nav { display: flex; align-items: center; gap: 4px; font-size: 15.5px; letter-spacing: .08em; }
.main-nav a {
  position: relative;
  padding: 8px 11px;
  white-space: nowrap;
  color: var(--ink-2);
  transition: color .25s;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 11px; right: 11px; bottom: 2px;
  height: 1px; background: var(--maple);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.main-nav a:hover { color: var(--maple); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--ink); }

.nav-tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
  transition: all .3s;
}
.icon-btn:hover { border-color: var(--maple); color: var(--maple); }
.menu-btn {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { width: 16px; height: 1px; background: var(--ink-2); transition: .3s; }

/* ---------------- Buttons / tags ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 28px;
  font-size: 14.5px; letter-spacing: .16em;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  border-radius: 2px;
  transition: all .35s ease;
  cursor: pointer;
}
.btn:hover { background: var(--maple); border-color: var(--maple); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--maple); color: var(--maple); background: transparent; }
.btn.small { padding: 8px 18px; font-size: 13px; }

.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--maple);
  background: rgba(163, 78, 61, .07);
  border: 1px solid rgba(163, 78, 61, .18);
  border-radius: 999px;
  padding: 3px 12px;
  transition: all .25s;
}
a.tag:hover { background: var(--maple); color: #fff; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #F7F1E5 0%, #F1E8D7 60%, #EDE2CD 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    rgba(247,241,229,.97) 0%,
    rgba(247,241,229,.92) 32%,
    rgba(247,241,229,.55) 54%,
    rgba(247,241,229,.08) 74%,
    rgba(247,241,229,0) 86%);
  pointer-events: none;
}
.hero-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: .95;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
  min-height: 620px;
  padding: 86px 0 96px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans);
  font-size: 11.5px; letter-spacing: .42em;
  color: var(--brown);
  margin-bottom: 26px;
}
.hero-kicker::before { content: ""; width: 36px; height: 1px; background: var(--maple); opacity: .7; }
.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(48px, 6.6vw, 84px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--ink);
}
.hero h1 .accent { color: var(--maple); }
.hero-title-img {
  display: block;
  width: min(100%, 640px);
  height: auto;
  margin: 8px 0 2px;
}
.hero-tagline {
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: .3em;
  color: var(--brown);
  margin: 18px 0 26px;
}
.hero-lede {
  max-width: 33em;
  font-size: 15.5px;
  line-height: 2.05;
  color: var(--ink-2);
  margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-side {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 420px;
}
.hero-poem {
  writing-mode: vertical-rl;
  font-size: 19px;
  letter-spacing: .34em;
  color: var(--ink-2);
  line-height: 2.4;
  padding-right: 10px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.hero-seal {
  position: absolute;
  right: 118px; bottom: 26px;
  width: 74px; height: 74px;
  background: var(--maple);
  color: #FBF3E4;
  display: grid; place-items: center;
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.15;
  text-align: center;
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3), 0 10px 24px -14px rgba(0,0,0,.4);
  transform: rotate(-2deg);
}
.hero-seal span { display: block; }

/* ---------------- Section furniture ---------------- */
.section { padding: 92px 0; position: relative; }
.section.tint { background: linear-gradient(180deg, rgba(239, 230, 212, .55), rgba(245, 239, 227, 0)); }
.section.dark {
  background: var(--ink);
  color: var(--paper);
}
.section.dark .section-desc, .section.dark .sec-label { color: rgba(245,239,227,.6); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px;
  margin-bottom: 44px;
}
.sec-label {
  display: block;
  font-family: var(--sans);
  font-size: 11px; letter-spacing: .4em;
  color: var(--maple);
  margin-bottom: 12px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.4;
}
.section-desc {
  margin: 10px 0 0;
  font-size: 14.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
  max-width: 46em;
}
.more-link {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .2em;
  color: var(--ink-3);
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: all .3s;
}
.more-link:hover { color: var(--maple); border-color: var(--maple); }

/* ---------------- Creed ---------------- */
.creed-wrap {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 40px;
  padding: 54px 56px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  position: relative;
}
.creed-wrap::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--maple), var(--ginkgo));
}
.creed-side {
  writing-mode: vertical-rl;
  font-size: 15px;
  letter-spacing: .5em;
  color: var(--ink-3);
  border-right: 1px solid var(--line-soft);
  padding-right: 22px;
  height: 260px;
  justify-self: start;
}
.creed-body p {
  margin: 0 0 1.1em;
  font-size: 17px;
  line-height: 2.15;
  letter-spacing: .06em;
  color: var(--ink-2);
  text-indent: 2em;
}
.creed-body p:first-child { text-indent: 0; font-size: 18px; color: var(--ink); }
.creed-body p:last-child { margin-bottom: 0; color: var(--ink); }

/* ---------------- Four spaces ---------------- */
.spaces-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.space-card {
  position: relative;
  padding: 32px 24px 26px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .45s ease, box-shadow .45s ease, border-color .45s;
}
.space-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(163,78,61,.25); }
.space-card .glyph {
  position: absolute;
  right: 12px; top: -18px;
  font-size: 132px;
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
  opacity: .045;
  pointer-events: none;
  transition: opacity .5s, transform .7s;
}
.space-card:hover .glyph { opacity: .08; transform: translateY(4px); }
.space-num {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: .3em;
  color: var(--ginkgo);
  margin-bottom: 22px;
}
.space-card h3 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .16em;
}
.space-card h3 small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .22em;
  color: var(--maple);
  margin-left: 8px;
  vertical-align: middle;
}
.space-card .space-tagline {
  font-size: 13.5px;
  color: var(--brown);
  letter-spacing: .08em;
  margin: 0 0 14px;
}
.space-card .space-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-3);
  max-width: 32em;
}
.space-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--ink-3);
}
.space-card:hover .space-foot { color: var(--maple); }

/* ---------------- Works ---------------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.work-card { display: block; }
.work-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
}
.work-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22,.61,.36,1);
}
.work-card:hover .work-thumb img { transform: scale(1.035); }
.work-badge {
  position: absolute;
  left: 12px; top: 12px;
  background: rgba(54,54,50,.78);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .16em;
  padding: 3px 9px;
  border-radius: 2px;
}
.work-info { padding: 14px 2px 0; }
.work-info h3 { margin: 0 0 5px; font-size: 16px; font-weight: 500; letter-spacing: .06em; line-height: 1.6; }
.work-info span { font-family: var(--sans); font-size: 11.5px; color: var(--ink-3); letter-spacing: .14em; }

/* ---------------- Latest / list ---------------- */
.latest-grid { display: grid; grid-template-columns: 1.6fr .9fr; gap: 54px; align-items: start; }
.post-list { border-top: 1px solid var(--line); }
.post-row {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: padding .35s ease;
}
.post-row:hover { padding-left: 8px; }
.post-date {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-3);
  line-height: 1.6;
}
.post-date b { display: block; font-family: var(--serif); font-size: 25px; font-weight: 400; color: var(--brown); letter-spacing: .02em; }
.post-row h3 { margin: 0 0 5px; font-size: 17.5px; font-weight: 500; letter-spacing: .05em; line-height: 1.65; transition: color .3s; }
.post-row:hover h3 { color: var(--maple); }
.post-meta { font-family: var(--sans); font-size: 11.5px; color: var(--ink-3); letter-spacing: .12em; }
.post-row .arrow { color: var(--ink-3); font-size: 14px; transition: transform .35s, color .35s; }
.post-row:hover .arrow { transform: translateX(4px); color: var(--maple); }

/* sidebar */
.side-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  padding: 30px 30px 26px;
  border-radius: var(--radius);
}
.side-card + .side-card { margin-top: 22px; }
.side-card h4 {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .3em;
  color: var(--ink-3);
  font-weight: 400;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.side-list a {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 14px;
  color: var(--ink-2);
  transition: color .3s;
}
.side-list a:last-child { border-bottom: none; }
.side-list a:hover { color: var(--maple); }
.side-list em { font-style: normal; font-family: var(--sans); font-size: 11px; color: var(--ink-3); white-space: nowrap; flex: none; }

/* ---------------- Media ---------------- */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.media-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.media-cover { position: relative; aspect-ratio: 16/9; background: var(--paper-2); overflow: hidden; }
.media-cover img { width: 100%; height: 100%; object-fit: cover; }
.media-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(54,54,50,.18);
}
.media-play span {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(252,249,242,.92);
  display: grid; place-items: center;
  color: var(--maple);
  font-size: 16px;
  box-shadow: 0 6px 20px -8px rgba(0,0,0,.5);
}
.media-body { padding: 20px 22px 22px; }
.media-body h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 500; letter-spacing: .05em; }
.media-body p { margin: 0; font-size: 13px; color: var(--ink-3); }
.media-kind { font-family: var(--sans); font-size: 10.5px; letter-spacing: .24em; color: var(--ginkgo); }

/* ---------------- Resources ---------------- */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.res-card {
  display: flex; gap: 18px;
  padding: 24px 24px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color .3s, transform .3s;
}
.res-card:hover { border-color: rgba(163,78,61,.28); transform: translateY(-3px); }
.res-icon {
  width: 46px; height: 56px;
  flex: none;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  display: grid; place-items: center;
  font-size: 13px;
  color: var(--brown);
  font-family: var(--sans);
  letter-spacing: .04em;
}
.res-card h3 { margin: 0 0 5px; font-size: 15.5px; font-weight: 500; line-height: 1.6; }
.res-card p { margin: 0; font-size: 12.5px; color: var(--ink-3); }

.course-banner {
  margin-top: 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 38px 42px;
  background: linear-gradient(120deg, #F7F0E1, #EFE3CC);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.course-banner::after {
  content: "楷";
  position: absolute; right: 26px; bottom: -30px;
  font-size: 150px; line-height: 1;
  color: var(--ink); opacity: .04;
}
.course-banner .cb-label { font-family: var(--sans); font-size: 11px; letter-spacing: .34em; color: var(--maple); margin-bottom: 10px; }
.course-banner h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: .1em; font-weight: 600; }
.course-banner p { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 46em; }

/* ---------------- About teaser ---------------- */
.about-teaser {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about-portrait {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #EFE4CE, #E3D4B8);
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait .ph {
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: .18em;
  line-height: 2.2;
}
.about-portrait .ph b { display: block; font-size: 44px; font-weight: 400; color: rgba(54,54,50,.18); margin-bottom: 10px; letter-spacing: .2em; }
.about-text h2 { margin: 0 0 14px; font-size: 30px; font-weight: 600; letter-spacing: .14em; }
.about-text p { margin: 0 0 16px; color: var(--ink-2); font-size: 15.5px; line-height: 2.05; }
.contact-strip {
  margin-top: 40px;
  display: flex; gap: 14px; flex-wrap: wrap;
}

/* ---------------- Inner page hero ---------------- */
.page-hero {
  position: relative;
  padding: 74px 0 56px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(239,230,212,.7), rgba(245,239,227,0));
  overflow: hidden;
}
.page-hero .glyph-bg {
  position: absolute; right: 4vw; top: 6px;
  font-size: clamp(140px, 20vw, 280px);
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
  opacity: .035;
  pointer-events: none;
  user-select: none;
}
.crumb { font-family: var(--sans); font-size: 11.5px; letter-spacing: .2em; color: var(--ink-3); margin-bottom: 20px; }
.crumb a:hover { color: var(--maple); }
.page-hero h1 { margin: 0 0 12px; font-size: clamp(34px, 4.6vw, 52px); font-weight: 600; letter-spacing: .14em; line-height: 1.25; }
.page-hero h1 small { font-size: .45em; letter-spacing: .24em; color: var(--maple); margin-left: 12px; font-weight: 400; }
.page-hero .lede { max-width: 44em; font-size: 16px; color: var(--ink-2); line-height: 2; margin: 0; }

/* ---------------- Filters ---------------- */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 20px 0 26px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 34px;
}
.chip {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .1em;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: transparent;
  transition: all .25s;
}
.chip:hover { border-color: var(--maple); color: var(--maple); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip em { font-style: normal; opacity: .5; margin-left: 5px; font-size: 10.5px; }

/* ---------------- Post cards ---------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .4s, box-shadow .4s, border-color .4s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(163,78,61,.2); }
.post-card .pc-cover { aspect-ratio: 16/10; background: var(--paper-2); overflow: hidden; }
.post-card .pc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.post-card:hover .pc-cover img { transform: scale(1.04); }
.pc-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.pc-kind { font-family: var(--sans); font-size: 10.5px; letter-spacing: .26em; color: var(--maple); margin-bottom: 10px; }
.pc-body h3 { margin: 0 0 8px; font-size: 17px; font-weight: 500; line-height: 1.65; letter-spacing: .04em; }
.pc-body p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.9; color: var(--ink-3); }
.pc-foot {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between;
  font-family: var(--sans); font-size: 11px; color: var(--ink-3); letter-spacing: .1em;
}

/* ---------------- Article ---------------- */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; align-items: start; padding: 54px 0 90px; }
.article-head { margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.article-head .kind { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; color: var(--maple); }
.article-head h1 { margin: 12px 0 14px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.45; font-weight: 600; letter-spacing: .06em; }
.article-meta { font-family: var(--sans); font-size: 12px; color: var(--ink-3); letter-spacing: .12em; display: flex; gap: 18px; flex-wrap: wrap; }
.article-cover { margin: 0 0 34px; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; border: 1px solid var(--line-soft); }
.article-cover figcaption { font-family: var(--sans); font-size: 11.5px; color: var(--ink-3); margin-top: 10px; text-align: center; letter-spacing: .1em; }

.prose { font-size: 17px; line-height: 2.15; color: var(--ink); letter-spacing: .02em; }
.prose p { margin: 0 0 1.5em; text-align: justify; }
.prose h2 { font-size: 24px; margin: 2em 0 .8em; font-weight: 600; letter-spacing: .1em; padding-left: 14px; border-left: 3px solid var(--maple); }
.prose h3 { font-size: 19px; margin: 1.8em 0 .7em; font-weight: 600; letter-spacing: .08em; }
.prose h4 { font-size: 17px; margin: 1.6em 0 .6em; font-weight: 600; }
.prose blockquote {
  margin: 1.8em 0; padding: 20px 26px;
  background: var(--paper-2);
  border-left: 3px solid var(--ginkgo);
  color: var(--ink-2);
  font-size: 16px;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { margin: 1.6em auto; border: 1px solid var(--line-soft); height: auto; cursor: zoom-in; }
.prose ul, .prose ol { margin: 0 0 1.5em; padding-left: 1.6em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--maple); border-bottom: 1px solid rgba(163,78,61,.3); }
.prose a:hover { background: rgba(163,78,61,.06); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--paper-2); font-weight: 500; }

.article-tags { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.article-tags .lbl { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--ink-3); margin-right: 6px; }

.article-nav { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.article-nav a {
  padding: 18px 22px;
  border: 1px solid var(--line-soft);
  background: var(--white);
  font-size: 14px;
  transition: border-color .3s, color .3s;
}
.article-nav a:hover { border-color: var(--maple); color: var(--maple); }
.article-nav .lbl { display: block; font-family: var(--sans); font-size: 10.5px; letter-spacing: .2em; color: var(--ink-3); margin-bottom: 6px; }
.article-nav a.next { text-align: right; }

/* player */
.player-box { margin: 30px 0; padding: 22px; background: var(--paper-2); border: 1px solid var(--line-soft); }
.player-box audio, .player-box video { width: 100%; display: block; }
.player-box .p-title { font-family: var(--sans); font-size: 11.5px; letter-spacing: .18em; color: var(--ink-3); margin-bottom: 12px; }
.player-hint { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }

/* ---------------- Pagination ---------------- */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 54px; }
.pager a, .pager span {
  min-width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  padding: 0 12px;
  transition: all .25s;
}
.pager a:hover { border-color: var(--maple); color: var(--maple); }
.pager .cur { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pager .disabled { opacity: .3; }

/* ---------------- Gallery / lightbox ---------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gal-item {
  position: relative;
  display: block;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  cursor: zoom-in;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gal-item:hover img { transform: scale(1.03); }
.gal-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(transparent, rgba(54,54,50,.75));
  color: #F7F1E5;
  font-size: 13px;
  letter-spacing: .06em;
}
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(28, 27, 24, .93);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.on { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; box-shadow: 0 30px 70px -30px #000; }
.lightbox .cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(245,239,227,.8); font-size: 13px; letter-spacing: .1em; }
.lightbox .close { position: absolute; top: 18px; right: 22px; background: none; border: 1px solid rgba(245,239,227,.4); color: var(--paper); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 18px; }

/* ---------------- Course ---------------- */
.course-layout { display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: start; padding: 50px 0 90px; }
.course-aside { position: sticky; top: 130px; }
.course-meta-card { background: var(--white); border: 1px solid var(--line-soft); padding: 28px; }
.course-meta-card h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; letter-spacing: .08em; }
.course-meta-card .sub { font-family: var(--sans); font-size: 11.5px; color: var(--ink-3); letter-spacing: .14em; margin-bottom: 20px; }
.meta-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13.5px; }
.meta-row span:first-child { color: var(--ink-3); }
.meta-row:last-child { border-bottom: none; }
.lesson-list { border-top: 1px solid var(--line); }
.lesson {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--line-soft);
}
.lesson .no { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; color: var(--ginkgo); padding-top: 4px; }
.lesson h4 { margin: 0 0 4px; font-size: 16px; font-weight: 500; letter-spacing: .04em; }
.lesson p { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.term-head {
  margin: 34px 0 6px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 15px; letter-spacing: .22em; color: var(--brown);
}

/* ---------------- Forms ---------------- */
.form-grid { display: grid; gap: 18px; max-width: 620px; }
.field label { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--serif);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color .25s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.9; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--maple); outline: none; }
.field .hint { font-family: var(--sans); font-size: 11.5px; color: var(--ink-3); margin-top: 6px; letter-spacing: .04em; }
.hp { position: absolute; left: -9999px; }

.notice {
  padding: 14px 18px;
  border: 1px solid rgba(163,78,61,.3);
  background: rgba(163,78,61,.06);
  color: var(--maple-dark);
  font-size: 14px;
  margin-bottom: 22px;
}
.notice.ok { border-color: rgba(200,160,82,.5); background: rgba(200,160,82,.1); color: #7a5c22; }

/* ---------------- Footer ---------------- */
.site-footer {
  position: relative; z-index: 1;
  background: var(--ink);
  color: rgba(245,239,227,.72);
  padding: 64px 0 26px;
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand { font-size: 26px; letter-spacing: .28em; color: var(--paper); margin-bottom: 8px; }
.footer-tagline { color: var(--ginkgo); letter-spacing: .18em; font-size: 13.5px; margin: 0 0 14px; }
.footer-note { font-size: 12.5px; line-height: 1.9; color: rgba(245,239,227,.5); max-width: 30em; margin: 0; }
.footer-col h4 { margin: 0 0 16px; font-family: var(--sans); font-size: 11px; letter-spacing: .28em; font-weight: 400; color: rgba(245,239,227,.45); }
.footer-col a { display: block; font-size: 13.5px; margin-bottom: 10px; color: rgba(245,239,227,.75); transition: color .25s; }
.footer-col a:hover { color: var(--ginkgo); }
.footer-col a.muted { color: rgba(245,239,227,.35); font-size: 12px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(245,239,227,.12);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: rgba(245,239,227,.42);
}

/* ---------------- 404 ---------------- */
.center-page { padding: 120px 0; text-align: center; }
.center-page .big { font-size: 96px; color: var(--paper-3); line-height: 1; font-weight: 600; }
.center-page h1 { font-size: 26px; letter-spacing: .16em; margin: 16px 0 10px; }
.center-page p { color: var(--ink-3); margin-bottom: 26px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .main-nav { gap: 0; font-size: 14.5px; }
  .main-nav a { padding: 8px 8px; }
  .spaces-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { min-height: 560px; }
  .hero-poem { font-size: 17px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: span 3; display: flex; gap: 18px; flex-wrap: wrap; }
  .footer-grid .footer-col:last-child h4 { width: 100%; margin-bottom: 4px; }
}

@media (max-width: 860px) {
  .shell { width: calc(100% - 36px); }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    background: #F5EFE3;
    border-bottom: 1px solid var(--line);
    padding: 10px 18px 20px;
    box-shadow: 0 20px 30px -24px rgba(0,0,0,.3);
    max-height: 70vh;
    overflow-y: auto;
  }
  .nav-inner { position: relative; }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 13px 4px; border-bottom: 1px solid var(--line-soft); font-size: 15.5px; }
  .main-nav a::after { display: none; }
  .menu-btn { display: flex; }
  .topbar-note { display: none; }
  .topbar-inner { justify-content: flex-end; }

  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 56px 0 62px; }
  .hero-side { display: none; }
  .hero h1 { letter-spacing: .1em; }

  .section { padding: 62px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 30px; }
  .spaces-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .space-card { min-height: 260px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .media-grid, .res-grid, .gallery { grid-template-columns: 1fr; }
  .latest-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-teaser { grid-template-columns: 1fr; gap: 30px; }
  .about-portrait { max-width: 320px; }
  .creed-wrap { grid-template-columns: 1fr; padding: 34px 26px; gap: 18px; }
  .creed-side { display: none; }
  .post-grid { grid-template-columns: 1fr; }
  .article-wrap { grid-template-columns: 1fr; gap: 34px; padding: 34px 0 60px; }
  .article-wrap aside { order: 2; }
  .course-layout { grid-template-columns: 1fr; gap: 30px; padding: 34px 0 60px; }
  .course-aside { position: static; }
  .course-banner { grid-template-columns: 1fr; gap: 18px; padding: 28px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 30px; }
  .footer-grid .footer-col:last-child { grid-column: span 1; display: block; }
  .article-nav { grid-template-columns: 1fr; }
  .page-hero { padding: 46px 0 38px; }
  .filter-bar { margin-bottom: 24px; }
  .post-row { grid-template-columns: 56px 1fr; gap: 14px; }
  .post-row .arrow { display: none; }
}

@media (max-width: 560px) {
  .spaces-grid { grid-template-columns: 1fr; }
  .space-card { min-height: 230px; }
  .space-card .glyph { font-size: 110px; }
}

@media print {
  .site-header, .site-footer, .article-wrap aside, .article-nav { display: none; }
  body { background: #fff; }
}
