/* ============================================
   给时间的信 · 主题样式
   ============================================ */

:root {
  --ink: #202124;
  --ink-light: #56514c;
  --ink-faint: #90887d;
  --paper: #fbfaf7;
  --paper-warm: #f3efe7;
  --paper-cool: #eef3f1;
  --accent: #73583a;
  --accent-2: #315c63;
  --accent-light: #b2865f;
  --rule: #ded8cc;
  --red: #a64035;
  --header-h: 68px;
  --max-w: 960px;
  --article-w: 680px;
  --pad-x: max(32px, 6vw);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { border: none; cursor: pointer; background: none; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Songti SC', 'Noto Serif SC', STSong, serif;
  font-weight: 300;
  line-height: 1.9;
  overflow-x: hidden;
}

/* ===== PAGE FADE ===== */
main { animation: fadeUp 0.4s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--header-h);
  background: rgba(251,250,247,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  font-family: 'Noto Serif SC', serif;
  font-weight: 500; font-size: 1.05rem;
  letter-spacing: 0.05em; color: var(--ink);
}
.logo span { color: var(--accent); }

.site-nav { display: flex; gap: 36px; align-items: center; }
.site-nav a {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-weight: 300; font-size: 0.82rem;
  color: var(--ink-light); letter-spacing: 0.08em;
  transition: color 0.2s; position: relative;
}
.site-nav a::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transition: transform 0.25s;
}
.site-nav a:hover, .site-nav a.active { color: var(--accent); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none; flex-direction: column;
  gap: 5px; padding: 4px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); transition: all 0.25s;
}

/* ===== MAIN OFFSET ===== */
main { padding-top: var(--header-h); min-height: 100vh; }

/* ===== HERO ===== */
.hero {
  max-width: var(--max-w); margin: 0 auto;
  padding: max(72px, 8vw) var(--pad-x) 56px;
  display: grid; grid-template-columns: 1fr 180px;
  gap: 48px; align-items: end;
}
.hero-kicker {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.78rem;
  color: var(--accent-2);
  letter-spacing: 0.16em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.hero-text h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 300; line-height: 1.25;
  margin-bottom: 20px;
}
.hero-text h1 em { font-style: normal; color: var(--accent-2); }
.hero-text p {
  font-size: 0.88rem; color: var(--ink-faint);
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  letter-spacing: 0.04em; line-height: 2; max-width: 400px;
}
.hero-meta {
  text-align: right;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic; color: var(--ink-faint);
  font-size: 0.82rem; line-height: 2.2;
}
.hero-date { font-size: 2.4rem; color: #d9e3df; display: block; }

/* ===== DIVIDER ===== */
.divider-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.divider { height: 1px; background: var(--rule); }

/* ===== SECTION LABEL ===== */
.section-label {
  display: flex; align-items: center; gap: 16px;
  padding: max(28px, 3.5vw) var(--pad-x) 20px;
  max-width: var(--max-w); margin: 0 auto;
}
.section-label span {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.2em;
  color: var(--ink-faint); text-transform: uppercase; white-space: nowrap;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--rule); }

/* ===== FEATURED CARD (家书) ===== */
.featured-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.featured-card {
  display: block;
  background: linear-gradient(90deg, var(--paper-warm), var(--paper-cool));
  border: 1px solid var(--rule);
  padding: 44px 52px;
  transition: box-shadow 0.3s; position: relative;
}
.featured-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.07); }
.featured-card::before {
  content: '信';
  position: absolute; top: 28px; right: 44px;
  font-size: 5rem; color: rgba(49,92,99,0.08);
  font-family: 'Noto Serif SC', serif; font-weight: 600;
  line-height: 1; user-select: none;
}
.featured-card .letter-to {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.15em;
  color: var(--accent); margin-bottom: 14px;
}
.featured-card h2 { font-size: 1.2rem; font-weight: 500; line-height: 1.5; margin-bottom: 14px; }
.featured-card .excerpt {
  font-size: 0.85rem; color: var(--ink-light);
  line-height: 1.9; font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-weight: 300; max-width: 500px;
}
.featured-card .letter-meta {
  margin-top: 24px; display: flex; gap: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-size: 0.7rem; color: var(--ink-faint);
}

/* ===== CARD GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px; background: var(--rule);
  max-width: var(--max-w); margin: 0 auto;
  border: 1px solid var(--rule);
}
.card {
  display: block; background: var(--paper);
  padding: 32px 28px; transition: background 0.2s;
}
.card:hover { background: var(--paper-warm); }
.card.card-private {
  background: #f6f2eb;
  box-shadow: inset 3px 0 0 rgba(49,92,99,0.22);
}
.card.card-private:hover { background: var(--paper-cool); }
.card-tag {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.15em;
  color: var(--accent-light); margin-bottom: 12px;
}
.card h3 { font-size: 1rem; font-weight: 500; line-height: 1.5; margin-bottom: 10px; }
.card p {
  font-size: 0.8rem; color: var(--ink-light);
  line-height: 1.8; font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif; font-weight: 300;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-date {
  margin-top: 18px;
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-size: 0.68rem; color: var(--ink-faint);
}

/* ===== ARTICLE ===== */
.article-wrap {
  max-width: var(--article-w); margin: 0 auto;
  padding: 52px max(20px, 4vw) 120px;
}

.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-size: 0.76rem; color: var(--ink-faint);
  margin-bottom: 44px; transition: color 0.2s;
  letter-spacing: 0.05em;
}
.article-back:hover { color: var(--accent); }

.article-header { margin-bottom: 44px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.article-kicker {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.2em;
  color: var(--accent); margin-bottom: 18px;
}
.article-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 400; line-height: 1.4; margin-bottom: 18px;
}
.article-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-size: 0.73rem; color: var(--ink-faint);
}

/* ===== ARTICLE BODY ===== */
.article-body { font-size: 1rem; line-height: 2.1; }
.article-body p { margin-bottom: 1.6em; }
.article-body h2 {
  font-size: 1.08rem; font-weight: 500;
  margin: 2.6em 0 1em;
  padding-bottom: 8px; border-bottom: 1px solid var(--rule);
}
.article-body h3 { font-size: 0.98rem; font-weight: 500; margin: 2em 0 0.8em; }
.article-body strong { font-weight: 500; }
.article-body em { font-style: italic; }
.article-body blockquote {
  border-left: 2px solid var(--accent-light);
  padding: 4px 20px; margin: 1.5em 0;
  color: var(--ink-light); font-style: italic;
}
.article-body img {
  width: 100%;
  height: auto;
  margin: 2em 0;
  border: 1px solid var(--rule);
  background: var(--paper-warm);
}
.article-body ul, .article-body ol {
  padding-left: 1.6em; margin-bottom: 1.5em;
}
.article-body li { margin-bottom: 0.4em; }

.article-body table {
  width: 100%; border-collapse: collapse;
  margin: 2em 0; font-size: 0.85rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
}
.article-body th {
  text-align: left; padding: 10px 14px;
  border-bottom: 2px solid var(--ink);
  font-weight: 500; font-size: 0.78rem; letter-spacing: 0.05em;
}
.article-body td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top; line-height: 1.7;
}
.article-body tr:hover td { background: var(--paper-warm); }

.article-body hr {
  border: none; height: 1px;
  background: var(--rule); margin: 3em 0;
}

.article-body code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85em; background: var(--paper-warm);
  padding: 2px 6px; border-radius: 3px;
}
.article-body pre {
  background: var(--paper-warm); padding: 20px;
  overflow-x: auto; margin: 1.5em 0;
  border: 1px solid var(--rule);
}
.article-body pre code { background: none; padding: 0; }

.article-attachment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 2.8em 0 0;
  border: 1px solid rgba(123, 98, 70, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.78), rgba(238, 231, 218, 0.58)),
    var(--paper-warm);
  padding: 18px 20px;
  box-shadow: 0 18px 48px rgba(82, 69, 51, 0.08);
}

.article-attachment span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans SC", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.article-attachment strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.55;
}

.article-attachment p {
  margin: 4px 0 0;
  color: var(--ink-faint);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans SC", sans-serif;
  font-size: 0.78rem;
  line-height: 1.6;
}

.article-attachment a {
  display: inline-flex;
  flex: none;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 36, 32, 0.76);
  padding: 0 15px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans SC", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.article-attachment a:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

/* ===== 家书落款 ===== */
.letter-sign {
  margin-top: 3em; padding-top: 2em;
  border-top: 1px solid var(--rule);
  text-align: right; font-size: 0.9rem;
  color: var(--ink-light); font-style: italic;
}
.letter-sign em { display: block; font-style: normal; font-weight: 500; margin-bottom: 4px; }

/* ===== POST NAV ===== */
.post-nav {
  margin-top: 60px; padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-size: 0.8rem; color: var(--ink-faint);
}
.post-nav a {
  max-width: 48%;
  transition: color 0.2s;
}
.post-nav-next { text-align: right; margin-left: auto; }
.post-nav a:hover { color: var(--accent); }

/* ===== LIST PAGE ===== */
.list-wrap {
  max-width: var(--article-w); margin: 0 auto;
  padding: 52px max(20px, 4vw) 120px;
}
.list-title {
  font-size: 1.8rem; font-weight: 300; margin-bottom: 8px;
}
.list-desc {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-size: 0.85rem; color: var(--ink-faint);
  margin-bottom: 40px;
}
.list-items { margin-top: 32px; }
.list-item {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
  transition: color 0.2s;
}
.list-item:hover { color: var(--accent); }
.list-item-private { opacity: 0.65; }
.list-item-private {
  opacity: 1;
  color: var(--ink-light);
}
.list-item-private .list-item-title { color: var(--accent-2); }
.list-item-title { font-size: 0.95rem; margin-bottom: 4px; }
.list-item-summary {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-size: 0.78rem; color: var(--ink-faint);
}
.list-item-date {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-size: 0.72rem; color: var(--ink-faint);
  white-space: nowrap; flex-shrink: 0;
}
.empty-hint {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-size: 0.85rem; color: var(--ink-faint);
  padding: 40px 0;
}

/* ===== ABOUT PAGE ===== */
.about-wrap {
  max-width: var(--article-w); margin: 0 auto;
  padding: 52px max(20px, 4vw) 120px;
}
.about-header { margin-bottom: 40px; }
.about-header h1 { font-size: 2rem; font-weight: 300; margin-bottom: 8px; }
.about-header .subtitle {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-size: 0.82rem; color: var(--ink-faint); letter-spacing: 0.05em;
}

/* ===== DIARY LOCK ===== */
.diary-lock {
  max-width: 360px; margin: 100px auto;
  text-align: center; padding: 0 24px;
}
.lock-big { font-size: 2.8rem; margin-bottom: 20px; opacity: 0.25; }
.diary-lock h2 { font-size: 1.05rem; font-weight: 400; margin-bottom: 8px; }
.diary-lock p {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 28px;
}
.diary-lock input {
  display: block; width: 100%; padding: 13px 16px;
  border: 1px solid var(--rule); background: var(--paper-warm);
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-size: 1rem; color: var(--ink);
  text-align: center; letter-spacing: 0.3em;
  outline: none; transition: border-color 0.2s; margin-bottom: 10px;
}
.diary-lock input:focus { border-color: var(--accent); }
.diary-lock button {
  display: block; width: 100%; padding: 12px;
  background: var(--ink); color: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-size: 0.82rem; letter-spacing: 0.12em;
  transition: background 0.2s;
}
.diary-lock button:hover { background: var(--accent); }
.diary-lock .error {
  color: var(--red); font-size: 0.76rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  margin-top: 8px; min-height: 18px;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px var(--pad-x);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.site-footer p {
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', sans-serif;
  font-size: 0.7rem; color: var(--ink-faint); letter-spacing: 0.05em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  :root {
    --header-h: 64px;
    --pad-x: 20px;
  }

  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-meta { text-align: left; }
  .hero-date { font-size: 1.8rem; }

  .site-nav { display: none; flex-direction: column; gap: 0; position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 12px var(--pad-x); border-radius: 0;
    font-size: 0.9rem;
  }
  .site-nav a::after { display: none; }

  .nav-toggle { display: flex; }

  .featured-card { padding: 28px 22px; }
  .featured-card::before { display: none; }

  .cards-grid { grid-template-columns: 1fr; }

  .article-attachment {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-nav { flex-direction: column; gap: 12px; }
  .post-nav a { max-width: 100%; }
  .post-nav-next { text-align: left; margin-left: 0; }

  .site-footer { justify-content: center; text-align: center; }
}

/* ===== Taste Skill refresh · 2026-06 ===== */
:root {
  --ink: #252420;
  --ink-light: #5f5b53;
  --ink-faint: #918b80;
  --paper: #f8f5ee;
  --paper-warm: #eee7da;
  --paper-cool: #dfe7e1;
  --accent: #7b6246;
  --accent-2: #2f625d;
  --accent-light: #a3845e;
  --rule: #d8d0c1;
  --red: #9b3d35;
  --max-w: 1120px;
  --article-w: 720px;
  --pad-x: clamp(20px, 5vw, 64px);
}

html { background: #e7dfd1; }

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(47, 98, 93, 0.12), transparent 28rem),
    linear-gradient(180deg, #f8f5ee 0%, #f3eee4 58%, #eee7da 100%);
  font-family: "Songti SC", "Noto Serif SC", STSong, serif;
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(37, 36, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 36, 32, 0.025) 1px, transparent 1px);
  background-size: 38px 38px, 38px 38px;
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}

.site-header {
  height: 68px;
  background: rgba(248, 245, 238, 0.88);
  border-bottom-color: rgba(123, 98, 70, 0.22);
  box-shadow: none;
}

.logo {
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.site-nav { gap: clamp(20px, 3vw, 38px); }

.site-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

main { min-height: 100dvh; }

.hero {
  min-height: calc(100dvh - var(--header-h) - 118px);
  padding: clamp(38px, 5.5vw, 66px) var(--pad-x) clamp(24px, 4vw, 46px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(42px, 8vw, 112px);
  align-items: center;
}

.hero-kicker {
  margin-bottom: 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--accent-2);
  letter-spacing: 0.14em;
}

.hero-text h1 {
  max-width: 11em;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 6.2vw, 5.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-text h1 em {
  color: var(--accent);
  font-style: italic;
}

.hero-text p {
  max-width: 34em;
  color: var(--ink-light);
  font-size: 0.94rem;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans SC", sans-serif;
}

.hero-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 36, 32, 0.78);
  padding: 0 18px;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hero-actions a:first-child {
  background: var(--ink);
  color: var(--paper);
}

.hero-actions a:hover {
  transform: translateY(-2px);
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fffdf8;
}

.hero-panel {
  position: relative;
  display: grid;
  min-height: 410px;
  grid-template-rows: auto 1fr auto;
  padding: 28px;
  border: 1px solid rgba(123, 98, 70, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.74), rgba(230, 222, 207, 0.56)),
    var(--paper-warm);
  box-shadow: 0 28px 80px rgba(82, 69, 51, 0.13);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(123, 98, 70, 0.16);
  pointer-events: none;
}

.hero-year {
  position: relative;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: rgba(47, 98, 93, 0.45);
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.9;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 180px;
}

.hero-visual span {
  position: absolute;
  display: block;
  border: 1px solid rgba(37, 36, 32, 0.2);
  background: #fbf8f0;
  box-shadow: 0 18px 40px rgba(63, 52, 39, 0.1);
}

.hero-visual span:nth-child(1) {
  right: 8%;
  top: 16%;
  width: 52%;
  aspect-ratio: 1.42;
  transform: rotate(-7deg);
}

.hero-visual span:nth-child(1)::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 33%;
  height: 1px;
  background: var(--rule);
  box-shadow: 0 20px 0 var(--rule), 0 40px 0 var(--rule);
}

.hero-visual span:nth-child(2) {
  left: 5%;
  top: 36%;
  width: 62%;
  aspect-ratio: 1.55;
  background: #e4ece6;
  transform: rotate(5deg);
}

.hero-visual span:nth-child(2)::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
  border-top: 1px solid rgba(47, 98, 93, 0.34);
  background: linear-gradient(135deg, transparent 49%, rgba(47, 98, 93, 0.25) 50%, transparent 51%);
}

.hero-visual span:nth-child(3) {
  right: 18%;
  bottom: 6%;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(123, 98, 70, 0.18);
  box-shadow: none;
}

.hero-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(123, 98, 70, 0.24);
  text-align: left;
  font-style: normal;
  line-height: 1;
}

.hero-meta div {
  background: rgba(248, 245, 238, 0.82);
  padding: 14px 12px;
}

.hero-meta dt {
  margin-bottom: 10px;
  color: var(--ink-faint);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans SC", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.hero-meta dd {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
}

.home-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 84px) var(--pad-x) 0;
}

.home-section-featured { padding-top: 12px; }
.home-section-diary { padding-bottom: clamp(72px, 10vw, 120px); }

.section-heading {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: baseline;
  margin-bottom: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(123, 98, 70, 0.24);
}

.section-heading span {
  color: var(--accent-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.35;
}

.featured-wrap { padding: 0; }

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 36px;
  min-height: 246px;
  padding: clamp(28px, 5vw, 58px);
  border-color: rgba(123, 98, 70, 0.28);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.75), rgba(223, 231, 225, 0.58)),
    var(--paper);
  box-shadow: none;
}

.featured-card:hover {
  box-shadow: 0 24px 70px rgba(82, 69, 51, 0.13);
}

.featured-card::before {
  top: auto;
  right: 42px;
  bottom: 18px;
  color: rgba(47, 98, 93, 0.09);
  font-size: 8rem;
}

.featured-card .letter-to,
.card-tag,
.article-kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-card h3 {
  max-width: 22em;
  margin-bottom: 16px;
  font-size: clamp(1.28rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.38;
}

.featured-card .excerpt {
  max-width: 50em;
  color: var(--ink-light);
}

.featured-card .letter-meta {
  align-self: end;
  display: grid;
  gap: 10px;
  margin: 0;
  color: var(--ink-faint);
  text-align: right;
}

.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: rgba(123, 98, 70, 0.24);
  border-color: rgba(123, 98, 70, 0.24);
}

.card {
  min-height: 210px;
  padding: 30px;
  background: rgba(248, 245, 238, 0.8);
}

.card:hover {
  background: rgba(223, 231, 225, 0.62);
}

.card.card-private {
  background: rgba(238, 231, 218, 0.9);
  box-shadow: inset 0 3px 0 rgba(47, 98, 93, 0.34);
}

.card.card-private:hover {
  background: rgba(223, 231, 225, 0.8);
}

.card h3 {
  font-size: 1.08rem;
}

.lock-mark {
  display: inline-block;
  width: 0.78em;
  height: 0.64em;
  margin-right: 0.42em;
  border: 1.6px solid currentColor;
  border-radius: 1px;
  vertical-align: -0.04em;
  position: relative;
}

.lock-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 88%;
  width: 0.48em;
  height: 0.42em;
  border: 1.6px solid currentColor;
  border-bottom: 0;
  border-radius: 0.5em 0.5em 0 0;
  transform: translateX(-50%);
}

.article-wrap,
.list-wrap,
.about-wrap {
  padding-top: clamp(42px, 7vw, 76px);
}

.article-back {
  letter-spacing: 0.08em;
}

.article-header {
  margin-bottom: 48px;
  padding-bottom: 30px;
  border-bottom-color: rgba(123, 98, 70, 0.24);
}

.article-header h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
  line-height: 1.28;
  letter-spacing: 0;
}

.article-body {
  color: #302e29;
  font-size: 1.03rem;
  line-height: 2.18;
}

.article-body p { margin-bottom: 1.72em; }

.article-body img {
  border-color: rgba(123, 98, 70, 0.22);
  box-shadow: 0 20px 60px rgba(82, 69, 51, 0.12);
}

.list-title {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.15;
}

.list-item {
  padding: 22px 0;
  border-bottom-color: rgba(123, 98, 70, 0.24);
}

.list-item-title {
  font-size: 1.02rem;
}

.diary-lock {
  max-width: 420px;
  margin: clamp(58px, 11vw, 118px) auto;
  padding: 42px 34px;
  border: 1px solid rgba(123, 98, 70, 0.28);
  background: rgba(248, 245, 238, 0.72);
  box-shadow: 0 22px 70px rgba(82, 69, 51, 0.12);
}

.lock-big {
  width: 50px;
  height: 40px;
  margin: 0 auto 24px;
  border: 2px solid var(--accent-2);
  border-radius: 2px;
  opacity: 0.64;
  position: relative;
}

.lock-big::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 90%;
  width: 28px;
  height: 24px;
  border: 2px solid var(--accent-2);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  transform: translateX(-50%);
}

.diary-lock input {
  background: #fffaf1;
  border-color: rgba(123, 98, 70, 0.34);
}

.diary-lock button {
  min-height: 44px;
  background: var(--ink);
}

.diary-lock button:hover {
  background: var(--accent-2);
}

.site-footer {
  border-top-color: rgba(123, 98, 70, 0.24);
  background: rgba(238, 231, 218, 0.56);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 36px;
  }

  .hero-text h1 {
    max-width: 8.2em;
  }

  .hero-panel {
    min-height: 260px;
  }

  .hero-visual {
    min-height: 116px;
  }

  .featured-card,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .featured-card .letter-meta {
    text-align: left;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  :root { --pad-x: 20px; }

  .site-header { height: 64px; }

  .hero {
    gap: 34px;
    padding-top: 30px;
  }

  .hero-text h1 {
    font-size: clamp(2.25rem, 12vw, 3.65rem);
  }

  .hero-panel {
    min-height: 238px;
    padding: 22px;
  }

  .hero-year {
    font-size: 2.9rem;
  }

  .hero-meta {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-section {
    padding-top: 54px;
  }

  .featured-card {
    min-height: 0;
    padding: 28px 22px;
  }

  .featured-card::before {
    display: block;
    right: 18px;
    bottom: 10px;
    font-size: 5rem;
  }

  .card {
    min-height: 0;
  }

  .diary-lock {
    padding: 34px 22px;
  }
}

/* ===== Report Article Components ===== */
.article-wrap-report {
  --report-accent: #ef9b3d;
  --report-accent-strong: #d97718;
  --report-surface: rgba(255, 253, 248, 0.82);
  --report-card: rgba(255, 255, 255, 0.72);
  --report-border: rgba(37, 36, 32, 0.12);
  --report-muted: rgba(37, 36, 32, 0.58);
  --report-green: #2f8f46;
  --report-red: #c44d45;
  max-width: 920px;
}

.article-wrap-report .article-header {
  display: none;
}

.article-wrap-report .article-back {
  margin-bottom: 26px;
}

.article-wrap-report .article-body {
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

.report-shell {
  display: block;
  color: var(--ink);
}

.report-hero {
  margin-bottom: 24px;
}

.report-overline {
  margin: 0 0 10px;
  color: var(--report-accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.report-hero h2 {
  margin: 0 0 8px;
  border: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.85rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.18;
}

.report-hero p,
.report-section-note {
  max-width: 68ch;
  margin: 0;
  color: var(--report-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.report-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0 0 30px;
  border: 1px solid color-mix(in srgb, var(--report-accent) 38%, transparent);
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--report-accent) 16%, transparent), rgba(255, 255, 255, 0.54)),
    var(--report-surface);
  padding: 17px 20px;
  box-shadow: 0 20px 60px rgba(92, 67, 38, 0.08);
}

.report-callout span {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--report-accent) 18%, transparent);
  padding: 0 13px;
  color: var(--report-accent-strong);
  font-size: 0.76rem;
  font-weight: 760;
  white-space: nowrap;
}

.report-callout p {
  margin: 0;
  color: rgba(37, 36, 32, 0.78);
  font-size: 0.94rem;
  line-height: 1.75;
}

.report-section {
  margin: 0 0 34px;
}

.report-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  border: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 1.15rem;
  font-weight: 760;
  line-height: 1.35;
}

.report-section h3::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: var(--report-accent);
}

.report-kpi-grid,
.report-scenario-grid,
.report-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.report-kpi {
  min-width: 0;
  border: 1px solid rgba(37, 36, 32, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.46);
  padding: 16px 17px;
}

.report-kpi span {
  display: block;
  margin-bottom: 8px;
  color: var(--report-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.report-kpi strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  line-height: 1;
}

.report-kpi small {
  margin-left: 3px;
  font-size: 0.78rem;
  font-weight: 650;
}

.report-kpi em {
  display: block;
  margin-top: 8px;
  font-size: 0.74rem;
  font-style: normal;
  line-height: 1.35;
}

.report-kpi .is-up,
.is-up {
  color: var(--report-green);
}

.report-kpi .is-down,
.is-down {
  color: var(--report-red);
}

.report-chart-card,
.report-score-card {
  margin: 16px 0 0;
  border: 1px solid var(--report-border);
  border-radius: 20px;
  background: var(--report-card);
  box-shadow: 0 22px 70px rgba(82, 69, 51, 0.08);
}

.report-chart-card {
  overflow: hidden;
  padding: 18px 18px 12px;
}

.report-chart-card figcaption {
  margin-bottom: 8px;
}

.report-chart-card figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 760;
}

.report-chart-card figcaption span {
  display: block;
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 0.76rem;
}

.report-chart-card svg {
  display: block;
  width: 100%;
  height: auto;
}

.report-chart-area {
  fill: url(#ny-pop-area);
}

.report-chart-line {
  fill: none;
  stroke: #e85b54;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.report-chart-point circle {
  fill: #e85b54;
}

.report-chart-point text {
  fill: rgba(37, 36, 32, 0.74);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans SC", sans-serif;
  font-size: 18px;
  font-weight: 760;
}

.report-chart-point text:nth-of-type(even) {
  fill: rgba(37, 36, 32, 0.48);
  font-size: 15px;
  font-weight: 520;
}

.report-scenario {
  border: 1px solid var(--report-border);
  border-radius: 18px;
  background: var(--report-card);
  padding: 18px 19px;
}

.report-scenario strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 800;
}

.report-scenario p {
  margin: 0;
  color: var(--report-muted);
  font-size: 0.86rem;
  line-height: 1.72;
}

.report-scenario.is-good strong {
  color: var(--report-green);
}

.report-scenario.is-watch strong {
  color: var(--report-accent-strong);
}

.report-scenario.is-risk strong {
  color: var(--report-red);
}

.report-control-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.report-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.report-field span {
  color: var(--report-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.report-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(37, 36, 32, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  padding: 0 12px;
  font: 0.9rem/1.2 -apple-system, BlinkMacSystemFont, "Noto Sans SC", sans-serif;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.report-field select:focus {
  border-color: color-mix(in srgb, var(--report-accent) 70%, transparent);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--report-accent) 14%, transparent);
}

.report-score-card {
  padding: 20px;
}

.report-score-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.report-score-head div {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.report-score-head strong {
  font-size: 2.35rem;
  font-weight: 820;
  line-height: 1;
}

.report-score-head span {
  color: var(--report-muted);
  font-size: 0.88rem;
}

.report-score-head em {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0 13px;
  color: var(--report-accent-strong);
  background: color-mix(in srgb, var(--report-accent) 16%, transparent);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 760;
  white-space: nowrap;
}

.report-score-card > p {
  margin: 0 0 17px;
  color: var(--report-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.report-bars {
  display: grid;
  gap: 11px;
}

.report-bar-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: center;
}

.report-bar-row span,
.report-bar-row em {
  color: var(--report-muted);
  font-size: 0.8rem;
  font-style: normal;
}

.report-bar-row em {
  color: var(--ink);
  text-align: right;
  font-weight: 650;
}

.report-bar-row i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(37, 36, 32, 0.09);
}

.report-bar-row b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--report-accent), #efb163);
  transition: width 0.24s ease;
}

.report-source {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--report-border);
  padding-top: 18px;
  color: var(--ink-faint);
  font-size: 0.76rem;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .report-kpi-grid,
  .report-scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .article-wrap-report {
    padding-top: 34px;
  }

  .report-callout {
    display: block;
  }

  .report-callout span {
    margin-bottom: 12px;
  }

  .report-kpi-grid,
  .report-scenario-grid,
  .report-control-grid {
    grid-template-columns: 1fr;
  }

  .report-score-head,
  .report-source {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-score-head div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .report-bar-row {
    grid-template-columns: 78px minmax(0, 1fr) 28px;
    gap: 9px;
  }
}
