/*
Theme Name: IMXCY
Author: AI
Version: 1.1.1
*/
:root {
  --bg: #f6f3ed;
  --paper: #fffdf8;
  --paper-soft: #fbf7ef;
  --ink: #1f1d1a;
  --text: #48423b;
  --muted: #898176;
  --line: rgba(39, 34, 28, .12);
  --line-strong: rgba(39, 34, 28, .22);
  --accent: #8b5e3c;
  --olive: #667461;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 18px 48px rgba(47, 39, 31, .08);
  --font-serif: Georgia, 'Times New Roman', 'Noto Serif SC', serif;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #faf7f1 0%, var(--bg) 58%, #f1ece3 100%);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
.site-frame { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0 26px;
  padding: 12px 14px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, .86);
  backdrop-filter: blur(16px) saturate(135%);
  box-shadow: 0 10px 34px rgba(47, 39, 31, .055);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 21px;
  font-style: italic;
}
.brand-text {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.site-nav a:hover { background: rgba(139, 94, 60, .09); color: var(--accent); }
.home-layout, .archive-layout, .article-layout, .error-layout { padding-bottom: 44px; }
.journal-board {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.journal-profile {
  position: sticky;
  top: 96px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.eyebrow,
.section-row-head span,
.life-strip span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.journal-profile h1 {
  margin: 14px 0 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(38px, 5vw, 64px);
  line-height: .95;
  letter-spacing: -.065em;
}
.journal-profile p {
  margin: 22px 0 0;
  color: var(--text);
  line-height: 1.95;
}
.profile-stats {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.profile-stats span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.profile-stats span:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive);
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.profile-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.profile-links a:hover { border-color: rgba(139, 94, 60, .34); color: var(--accent); }
.journal-latest {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, .72);
  box-shadow: var(--shadow);
}
.section-row-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 4px 4px 20px;
  border-bottom: 1px solid var(--line);
}
.section-row-head h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.section-row-head > a {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 750;
}
.journal-list { display: grid; gap: 0; }
.journal-item {
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color .2s ease, padding-left .2s ease, padding-right .2s ease;
}
.journal-item:last-child { border-bottom: 0; }
.journal-item:hover {
  padding-left: 14px;
  padding-right: 14px;
  border-radius: var(--radius-md);
  background: rgba(139, 94, 60, .045);
}
.journal-link {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
}
.journal-link time,
.article-header time,
.post-card time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
}
.journal-link h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -.045em;
}
.journal-link p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--text);
  line-height: 1.9;
}
.journal-item footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-left: 118px;
  color: var(--muted);
  font-size: 13px;
}
.journal-item.is-featured {
  margin: 20px 0 4px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(47, 39, 31, .06);
}
.journal-item.is-featured:hover { padding: 26px; background: var(--paper); }
.journal-item.is-featured .journal-link {
  grid-template-columns: 110px minmax(0, 1fr);
}
.journal-item.is-featured h3 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
}
.journal-item.is-featured footer { padding-left: 132px; }
.life-strip {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 22px;
  margin-top: 22px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(251,247,239,.92), rgba(244,238,229,.82));
}
.life-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -.045em;
}
.life-strip p {
  align-self: end;
  margin: 0;
  color: var(--text);
  line-height: 1.9;
}
.archive-header, .article-shell, .comments-area, .error-card {
  width: min(860px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.archive-header { padding: clamp(28px, 5vw, 54px); margin-bottom: 22px; }
.archive-header h1, .error-card h1 {
  margin: 12px 0 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 78px);
  line-height: .98;
  letter-spacing: -.065em;
}
.archive-list { width: min(860px, 100%); margin: 0 auto; }
.post-list { display: grid; gap: 18px; }
.post-card, .empty-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.post-card-main { display: block; padding: 26px; }
.post-card h3 {
  margin: 10px 0 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.post-card p { margin: 14px 0 0; line-height: 1.9; }
.article-shell { padding: clamp(28px, 5vw, 64px); }
.article-header { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.back-link { display: inline-block; margin-bottom: 26px; color: var(--muted); font-weight: 750; }
.article-header h1 {
  margin: 14px 0 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1;
  letter-spacing: -.065em;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; color: var(--muted); font-size: 14px; }
.article-content { padding-top: 34px; color: var(--text); font-size: 17px; line-height: 2.05; }
.article-content > * + * { margin-top: 1.05em; }
.article-content h2, .article-content h3, .article-content h4 { color: var(--ink); font-family: var(--font-serif); line-height: 1.25; letter-spacing: -.035em; }
.article-content p { margin: 0 0 1.18em; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.article-content blockquote { margin: 1.6em 0; padding: 16px 20px; border-left: 4px solid var(--accent); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: rgba(139,94,60,.08); color: var(--muted); }
.article-content pre { overflow: auto; padding: 18px; border-radius: var(--radius-md); background: var(--ink); color: var(--paper); }
.article-content img { border-radius: var(--radius-md); box-shadow: var(--shadow); }
.comments-area { margin-top: 22px; padding: clamp(22px, 4vw, 40px); }
.comments-area h2 { margin: 0 0 18px; color: var(--ink); font-family: var(--font-serif); font-size: 32px; letter-spacing: -.04em; }
.comment-list { padding-left: 22px; }
.comment-form-wrap input, .comment-form-wrap textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper);
  padding: 12px 14px;
}
.comment-form-wrap button, .comment-form-wrap input[type='submit'] {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-weight: 800;
}
.page-nav { margin-top: 22px; text-align: center; }
.page-navigator { display: inline-flex; gap: 8px; padding: 0; list-style: none; }
.page-navigator a, .page-navigator span {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.page-navigator .current a, .page-navigator .current span { background: var(--ink); color: var(--paper); }
.error-layout { display: grid; min-height: 60vh; place-items: center; }
.error-card { padding: clamp(30px, 5vw, 64px); text-align: center; }
.error-card p:not(.eyebrow) { max-width: 520px; margin: 18px auto 0; }
.error-card a { display: inline-flex; margin-top: 28px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 800; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 38px 0 18px;
  padding: 22px 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer div { display: flex; flex-direction: column; gap: 4px; }
.site-footer strong { color: var(--ink); }
@media (max-width: 980px) {
  .journal-board, .life-strip { grid-template-columns: 1fr; }
  .journal-profile { position: static; }
}
@media (max-width: 680px) {
  .site-frame { width: min(100% - 20px, 1120px); }
  .site-header { align-items: flex-start; border-radius: 22px; flex-direction: column; }
  .site-nav { justify-content: flex-start; }
  .journal-profile, .journal-latest, .life-strip, .post-card, .archive-header, .article-shell, .comments-area, .error-card { border-radius: 22px; }
  .journal-latest, .journal-profile, .life-strip { padding: 20px; }
  .journal-link, .journal-item.is-featured .journal-link { grid-template-columns: 1fr; gap: 8px; }
  .journal-item footer, .journal-item.is-featured footer { padding-left: 0; flex-direction: column; }
  .section-row-head { align-items: flex-start; flex-direction: column; }
  .profile-stats { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}

/* Polish pass: calmer type scale, sidebar, footer, comments - 2026-07-11 */
body { font-size: 15px; line-height: 1.74; }
.brand-text { font-size: 18px; }
.brand-mark { width: 32px; height: 32px; font-size: 19px; border-radius: 11px; }
.site-nav a { font-size: 13px; padding: 7px 11px; }
.journal-board { grid-template-columns: 292px minmax(0, 1fr); gap: 20px; }
.journal-profile { padding: 24px; border-radius: 24px; }
.eyebrow, .section-row-head span, .life-strip span { font-size: 11px; letter-spacing: .14em; }
.journal-profile h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1; }
.journal-profile p { margin-top: 18px; font-size: 14px; line-height: 1.86; }
.profile-stats { margin-top: 20px; padding: 14px 0; gap: 7px; }
.profile-stats span { font-size: 12px; }
.profile-stats span:before { width: 5px; height: 5px; }
.profile-links { margin-top: 20px; gap: 8px; }
.profile-links a { min-height: 34px; padding: 0 12px; font-size: 13px; }
.journal-profile:after {
  content: "写作 / 日常 / 归档";
  display: block;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
}
.journal-latest { padding: 22px; border-radius: 24px; }
.section-row-head { padding-bottom: 18px; }
.section-row-head h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.045em; }
.section-row-head > a { font-size: 13px; }
.journal-item { padding: 18px 4px; }
.journal-link { grid-template-columns: 82px minmax(0, 1fr); gap: 18px; }
.journal-link time, .article-header time, .post-card time { font-size: 11px; }
.journal-link h3 { font-size: clamp(21px, 2.5vw, 30px); letter-spacing: -.035em; }
.journal-link p { margin-top: 8px; font-size: 14px; line-height: 1.78; }
.journal-item footer { padding-left: 100px; margin-top: 10px; font-size: 12px; }
.journal-item.is-featured { padding: 22px; border-radius: 20px; }
.journal-item.is-featured:hover { padding: 22px; }
.journal-item.is-featured .journal-link { grid-template-columns: 92px minmax(0, 1fr); }
.journal-item.is-featured h3 { font-size: clamp(26px, 3.8vw, 42px); line-height: 1.08; }
.journal-item.is-featured footer { padding-left: 110px; }
.life-strip { padding: 22px 24px; border-radius: 24px; }
.life-strip strong { font-size: clamp(22px, 2.4vw, 30px); }
.life-strip p { font-size: 14px; line-height: 1.78; }
.article-shell, .comments-area, .archive-header, .error-card { border-radius: 24px; }
.article-header h1 { font-size: clamp(32px, 5.5vw, 58px); letter-spacing: -.052em; }
.article-content { font-size: 16px; line-height: 1.95; }
.article-content h2 { font-size: 1.55em; }
.article-content h3 { font-size: 1.28em; }
.comments-area { padding: clamp(20px, 3vw, 32px); }
.comments-area h2 { font-size: 26px; }
.comment-list { margin: 0 0 22px; padding-left: 18px; color: var(--text); }
.comment-list li { margin: 12px 0; }
.comment-form-wrap {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.comment-form-wrap input, .comment-form-wrap textarea {
  min-height: 40px;
  font-size: 14px;
  border-color: var(--line);
  background: rgba(255,253,248,.75);
}
.comment-form-wrap textarea { min-height: 132px; resize: vertical; }
.comment-form-wrap button, .comment-form-wrap input[type='submit'] {
  padding: 10px 16px;
  font-size: 14px;
}
.site-footer {
  align-items: center;
  margin-top: 32px;
  padding: 20px 4px 24px;
  font-size: 13px;
}
.site-footer div { gap: 2px; }
.site-footer strong { font-family: var(--font-serif); font-size: 17px; letter-spacing: -.03em; }
.site-footer a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,253,248,.58);
}
@media (max-width: 680px) {
  body { font-size: 14px; }
  .journal-profile h1 { font-size: 34px; }
  .journal-latest, .journal-profile, .life-strip { padding: 18px; }
  .journal-item.is-featured, .journal-item.is-featured:hover { padding: 18px; }
  .journal-item footer, .journal-item.is-featured footer { padding-left: 0; }
  .article-content { font-size: 15px; }
}
