/*
Theme Name: Zhang's Admission Lab
Description: A quiet editorial theme for Zhang's writing and admissions research lab.
Version: 1.0.0
Author: OpenAI
*/

:root {
  --paper: #f4f0e8;
  --paper-deep: #ebe4d8;
  --ink: #171a17;
  --muted: #6c6d67;
  --line: rgba(23, 26, 23, .14);
  --green: #344e31;
  --green-dark: #243923;
  --brick: #9a5843;
  --max: 1260px;
  --serif: Georgia, "Songti SC", "Noto Serif CJK SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-shell { min-height: 100vh; overflow: hidden; }
.container { width: min(calc(100% - 96px), var(--max)); margin: 0 auto; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 232, .94);
  position: relative;
  z-index: 10;
}
.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.brand { display: inline-flex; flex-direction: column; gap: 1px; }
.brand-name { font-family: var(--serif); font-size: 25px; line-height: 1.2; letter-spacing: -.03em; }
.brand-subtitle { color: var(--muted); font-size: 14px; letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: 34px; font-size: 16px; }
.main-nav a { position: relative; padding: 31px 0 26px; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.search-toggle { width: 34px; height: 34px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; position: relative; cursor: pointer; color: inherit; }
.search-toggle::before { content: ""; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; display: block; }
.search-toggle::after { content: ""; width: 7px; height: 1.5px; background: currentColor; transform: rotate(45deg); transform-origin: left center; position: absolute; left: 20px; top: 21px; }
.search-toggle:focus-visible, .hero-dots button:focus-visible, .hero-pause:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }
.search-panel { border-top: 1px solid var(--line); background: var(--paper-deep); }
.search-panel[hidden] { display: none; }
.search-form { padding-top: 24px; padding-bottom: 26px; }
.search-form label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.search-form div { display: flex; max-width: 680px; }
.search-form input { min-width: 0; flex: 1; border: 1px solid var(--line); background: rgba(255,255,255,.58); padding: 13px 15px; font: inherit; }
.search-form button { border: 0; background: var(--green); color: white; padding: 0 24px; font: inherit; cursor: pointer; }

.hero { display: grid; grid-template-columns: minmax(360px, 1fr) 1fr; min-height: 460px; border-bottom: 1px solid var(--line); }
.hero-copy { padding: 68px clamp(34px, 5vw, 78px) 62px max(48px, calc((100vw - var(--max)) / 2)); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { color: var(--brick); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 30px; }
.hero h1 { margin: 0; max-width: 610px; font-family: var(--serif); font-size: clamp(39px, 3vw, 54px); line-height: 1.22; font-weight: 500; letter-spacing: -.055em; }
.hero-line { display: block; white-space: nowrap; }
.hero-rule { width: 38px; height: 1px; background: var(--ink); margin: 28px 0 25px; }
.hero-intro { max-width: 510px; color: #51534e; font-size: 16px; line-height: 1.9; margin: 0; }
.hero-signature { margin-top: 21px; font-family: var(--serif); font-size: 29px; letter-spacing: .08em; }
.hero-note { color: var(--muted); margin: 6px 0 22px; font-size: 12px; letter-spacing: .04em; }
.button { display: inline-flex; align-items: center; gap: 16px; align-self: flex-start; padding: 12px 21px; background: var(--green); color: #f6f2e8; font-size: 14px; border-radius: 2px; transition: background .2s ease, transform .2s ease; }
.button:hover { background: var(--green-dark); transform: translateY(-2px); }
.button span { font-size: 18px; line-height: 1; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.text-button { color: var(--green); font-size: 13px; padding: 11px 0 8px; border-bottom: 1px solid rgba(52,78,49,.35); }
.text-button:hover { border-color: var(--green); }
.hero-media { position: relative; min-height: 460px; background: #27352a; overflow: hidden; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26, 34, 25, .28), transparent 25%, transparent 72%, rgba(13, 17, 14, .18)); pointer-events: none; }
.hero-track { position: absolute; inset: 0; display: flex; transform: translateX(0); transition: transform .75s cubic-bezier(.22, .61, .36, 1); }
.hero-slide { flex: 0 0 100%; min-width: 100%; height: 100%; margin: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 52% center; filter: saturate(.9) contrast(.98); }
.hero-controls { position: absolute; z-index: 3; left: 17px; bottom: 10px; display: flex; align-items: center; gap: 10px; }
.hero-dots { display: flex; gap: 2px; }
.hero-dots button { width: 30px; height: 30px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.hero-dots button::after { content: ""; position: absolute; left: 4px; right: 4px; top: 14px; height: 2px; background: rgba(255,255,255,.42); transition: background .2s ease; }
.hero-dots button.is-active::after { background: rgba(255,255,255,.95); }
.hero-pause { width: 30px; height: 30px; padding: 0; border: 0; background: rgba(20,25,20,.35); color: white; font-size: 10px; cursor: pointer; }
.media-caption { position: absolute; z-index: 3; bottom: 18px; right: 23px; color: rgba(255,255,255,.8); font-size: 11px; letter-spacing: .08em; }

.trust-strip { border-bottom: 1px solid var(--line); background: rgba(235,228,216,.42); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-grid > div { padding: 22px 28px; border-right: 1px solid var(--line); }
.trust-grid > div:first-child { padding-left: 0; }
.trust-grid > div:last-child { border-right: 0; }
.trust-grid span { display: block; color: var(--brick); font-size: 11px; letter-spacing: .08em; margin-bottom: 3px; }
.trust-grid strong { font-family: var(--serif); font-size: 17px; font-weight: 500; }

.section { padding: 70px 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-title { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: -.03em; }
.section-title::before { content: ""; display: inline-block; width: 3px; height: 20px; margin: 0 12px 0 0; background: var(--green); vertical-align: -1px; }
.section-link { color: var(--muted); font-size: 13px; }
.section-link:hover { color: var(--green); }
.section-kicker { color: var(--muted); font-size: 13px; }
.featured-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.feature-card { min-height: 248px; padding: 25px; background: rgba(255,255,255,.28); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; transition: background .2s ease, transform .2s ease; }
.feature-card:first-child { background: #e7dfd1; }
.feature-card:hover { background: #e2d9cb; transform: translateY(-3px); }
.card-tag { color: var(--brick); font-size: 12px; letter-spacing: .08em; }
.feature-card h3 { margin: 16px 0 7px; font-family: var(--serif); font-size: 23px; line-height: 1.35; font-weight: 500; }
.feature-card p { color: #5b5d57; font-size: 14px; line-height: 1.75; margin: 0; }
.card-meta { display: flex; gap: 12px; color: var(--muted); font-size: 11px; margin-top: 22px; }
.card-figure { margin: 12px 0 17px; height: 82px; position: relative; }
.pyramid { width: 110px; height: 74px; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); border-top: 1px solid var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); margin-left: auto; margin-right: 10px; position: relative; }
.pyramid::before, .pyramid::after { content: ""; position: absolute; left: 0; right: 0; border-top: 1px solid var(--ink); }
.pyramid::before { top: 26px; } .pyramid::after { top: 50px; }
.rings { width: 115px; height: 70px; margin: 6px 20px 0 auto; position: relative; }
.ring { width: 52px; height: 52px; border: 1px solid var(--ink); border-radius: 50%; position: absolute; display: grid; place-items: center; font-size: 11px; }
.ring.one { left: 31px; top: 0; } .ring.two { left: 0; top: 22px; } .ring.three { right: 0; top: 22px; }
.city-shape { height: 82px; width: 73px; margin: 0 0 0 auto; background: linear-gradient(110deg, #b0a99e, #3b3b36); clip-path: polygon(23% 0, 39% 12%, 43% 3%, 55% 14%, 63% 0, 78% 20%, 100% 17%, 100% 100%, 0 100%, 0 23%); opacity: .82; }

.method-section { padding: 66px 0 72px; color: #f2eee5; background: var(--green-dark); }
.method-section .section-title::before { background: var(--brick); }
.method-section .section-kicker { color: rgba(255,255,255,.58); }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.method-grid > div { padding: 28px 25px 8px; border-right: 1px solid rgba(255,255,255,.14); }
.method-grid > div:first-child { padding-left: 0; }
.method-grid > div:last-child { border-right: 0; }
.method-grid span { color: #bd8a76; font-size: 11px; letter-spacing: .12em; }
.method-grid h3 { margin: 15px 0 8px; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.method-grid p { margin: 0; color: rgba(255,255,255,.66); font-size: 13px; line-height: 1.8; }

.content-layout { display: grid; grid-template-columns: 1.5fr .82fr; gap: 56px; align-items: start; }
.content-layout-single { grid-template-columns: 1fr; }
.latest-list { border-top: 1px solid var(--line); }
.latest-item { display: grid; grid-template-columns: 1fr auto auto; gap: 22px; align-items: center; padding: 19px 0; border-bottom: 1px solid var(--line); }
.latest-item h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 20px; line-height: 1.35; font-weight: 500; }
.latest-item p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.latest-kind, .latest-date { color: var(--muted); white-space: nowrap; font-size: 12px; }
.load-more { display: block; text-align: center; color: var(--green); padding: 20px; font-size: 13px; }
.sidebar-card { border: 1px solid var(--line); background: rgba(255,255,255,.25); padding: 26px; }
.sidebar-card + .sidebar-card { border-top: 0; }
.sidebar-title { margin: 0 0 19px; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.sidebar-inner { display: grid; grid-template-columns: 82px 1fr; gap: 18px; align-items: start; }
.sidebar-avatar { width: 82px; height: 100px; object-fit: cover; object-position: 54% center; filter: grayscale(1) contrast(1.05); }
.sidebar-card p { margin: 0; color: #555750; font-size: 13px; line-height: 1.8; }
.sidebar-more { display: inline-flex; margin-top: 20px; color: var(--green); font-size: 13px; }
.start-card a { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); color: #4f514b; font-size: 13px; }
.start-card a:last-child { border-bottom: 0; }
.start-card a span { color: var(--brick); font-size: 11px; }
.empty-state { padding: 35px 0; color: var(--muted); font-size: 14px; }
.archive-empty a { color: var(--green); margin-left: 4px; text-decoration: underline; }

.archive-head { padding: 74px 0 45px; border-bottom: 1px solid var(--line); }
.archive-head h1 { margin: 0; font-family: var(--serif); font-size: clamp(36px, 5vw, 62px); font-weight: 500; letter-spacing: -.05em; }
.archive-head p { max-width: 560px; color: var(--muted); margin: 15px 0 0; }
.archive-list { padding: 20px 0 80px; }
.archive-entry { display: grid; grid-template-columns: 150px 1fr auto; gap: 28px; align-items: start; padding: 27px 0; border-bottom: 1px solid var(--line); }
.archive-entry time, .archive-entry .entry-type { color: var(--muted); font-size: 12px; }
.archive-entry h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.35; }
.archive-entry p { color: var(--muted); margin: 0; font-size: 14px; }
.archive-entry .entry-read { color: var(--green); font-size: 13px; letter-spacing: .02em; }
.article-wrap { max-width: 820px; margin: 0 auto; padding: 82px 0 100px; }
.article-header { border-bottom: 1px solid var(--line); padding-bottom: 36px; margin-bottom: 40px; }
.article-header .eyebrow { margin-bottom: 16px; }
.article-header h1 { margin: 0; font-family: var(--serif); font-size: clamp(36px, 5vw, 62px); line-height: 1.2; font-weight: 500; letter-spacing: -.05em; }
.article-meta { color: var(--muted); font-size: 13px; margin-top: 22px; }
.article-content { font-family: var(--serif); font-size: 18px; line-height: 2; }
.article-content h2, .article-content h3 { font-weight: 500; line-height: 1.4; margin-top: 2.1em; }
.article-content a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.article-content blockquote { border-left: 3px solid var(--green); margin: 28px 0; padding: 7px 0 7px 25px; color: #50524c; }
.article-content img { margin: 30px auto; }
.article-content p { margin: 0 0 1.35em; }
.article-content ul, .article-content ol { padding-left: 1.3em; }
.article-end { margin-top: 58px; padding: 28px 0 0; border-top: 1px solid var(--line); }
.article-end p { color: var(--muted); font-family: var(--serif); font-size: 16px; }
.article-end div { display: flex; gap: 24px; margin-top: 18px; }
.article-end a { color: var(--green); font-size: 13px; border-bottom: 1px solid rgba(52,78,49,.35); }
.page-content { min-height: 460px; }

.site-footer { border-top: 1px solid var(--line); padding: 25px 0 30px; color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; gap: 21px; }
.footer-note { margin-top: 3px; color: #8a8b85; }

@media (max-width: 920px) {
  .container { width: min(calc(100% - 42px), var(--max)); }
  .header-inner { min-height: 78px; gap: 18px; }
  .main-nav { gap: 16px; font-size: 14px; }
  .main-nav a { padding: 24px 0 20px; }
  .main-nav a::after { bottom: 14px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 58px 21px 55px; }
  .hero-media { min-height: 390px; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:first-child { grid-column: span 2; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .method-grid > div:nth-child(2) { border-right: 0; }
  .method-grid > div:nth-child(3), .method-grid > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.14); }
  .method-grid > div:nth-child(3) { padding-left: 0; }
  .content-layout { grid-template-columns: 1fr; gap: 35px; }
}
@media (max-width: 620px) {
  body { font-size: 15px; }
  .container { width: min(calc(100% - 32px), var(--max)); }
  .brand-name { font-size: 19px; }
  .brand-subtitle { display: none; }
  .header-inner { min-height: 70px; gap: 12px; }
  .main-nav { gap: 12px; }
  .main-nav a { padding: 22px 0 18px; font-size: 13px; }
  .main-nav a:nth-child(3) { display: none; }
  .search-toggle { width: 28px; height: 28px; }
  .search-form { padding-top: 18px; padding-bottom: 20px; }
  .hero-copy { padding: 50px 16px 46px; }
  .hero-media { min-height: 300px; }
  .hero h1 { font-size: 39px; }
  .hero-line { white-space: normal; }
  .hero-intro { line-height: 1.85; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div, .trust-grid > div:first-child { padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-grid > div:last-child { border-bottom: 0; }
  .section { padding: 48px 0; }
  .section-heading { align-items: flex-start; }
  .section-title { font-size: 22px; }
  .featured-grid { grid-template-columns: 1fr; }
  .feature-card:first-child { grid-column: auto; }
  .method-section { padding: 48px 0 52px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid > div, .method-grid > div:first-child, .method-grid > div:nth-child(3) { padding: 20px 0; border-right: 0; border-top: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .method-grid > div:last-child { border-bottom: 0; }
  .latest-item { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .latest-kind { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .latest-date { grid-column: 1; }
  .archive-entry { grid-template-columns: 1fr; gap: 5px; }
  .archive-entry .entry-type { order: -1; }
  .article-wrap { padding: 55px 0 70px; }
  .article-content { font-size: 17px; }
  .article-wrap { width: min(calc(100% - 32px), 820px); }
  .article-end div { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-inner { flex-direction: column; gap: 10px; }
}
