/* ============================================
   Personal Site — style.css
   Philosophy: Kenya Hara × Academic restraint
   ============================================ */

/* Noto Serif SC - 自托管子集 */
@font-face { font-family: 'Noto Serif SC'; font-weight: 300; font-display: swap; src: url('fonts/noto-serif-sc-109-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 300; font-display: swap; src: url('fonts/noto-serif-sc-110-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 300; font-display: swap; src: url('fonts/noto-serif-sc-111-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 300; font-display: swap; src: url('fonts/noto-serif-sc-112-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 300; font-display: swap; src: url('fonts/noto-serif-sc-113-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 300; font-display: swap; src: url('fonts/noto-serif-sc-114-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 300; font-display: swap; src: url('fonts/noto-serif-sc-115-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 300; font-display: swap; src: url('fonts/noto-serif-sc-116-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 300; font-display: swap; src: url('fonts/noto-serif-sc-117-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 300; font-display: swap; src: url('fonts/noto-serif-sc-118-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 300; font-display: swap; src: url('fonts/noto-serif-sc-119-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 400; font-display: swap; src: url('fonts/noto-serif-sc-109-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 400; font-display: swap; src: url('fonts/noto-serif-sc-110-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 400; font-display: swap; src: url('fonts/noto-serif-sc-111-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 400; font-display: swap; src: url('fonts/noto-serif-sc-112-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 400; font-display: swap; src: url('fonts/noto-serif-sc-113-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 400; font-display: swap; src: url('fonts/noto-serif-sc-114-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 400; font-display: swap; src: url('fonts/noto-serif-sc-115-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 400; font-display: swap; src: url('fonts/noto-serif-sc-116-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 400; font-display: swap; src: url('fonts/noto-serif-sc-117-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 400; font-display: swap; src: url('fonts/noto-serif-sc-118-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif SC'; font-weight: 400; font-display: swap; src: url('fonts/noto-serif-sc-119-400-normal.woff2') format('woff2'); }

/* EB Garamond & DM Sans - 异步加载 */

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Tokens ── */
:root {
  --bg:        #FFFFFF;
  --ink:       #111111;
  --muted:     #666666;
  --link:      #000000;
  --hover:     #888888;
  --serif:     'EB Garamond', 'Noto Serif SC', Georgia, serif;
  --sans:      'DM Sans', system-ui, sans-serif;
  --serif-zh:  'Noto Serif SC', "PingFang SC", "Microsoft YaHei", serif;
  --measure:   680px;
  --top:       120px;
}

/* ── Base ── */
html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.8;
}

/* ── Layout ── */
.container {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

nav .site-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

nav .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav .nav-links a {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ── Page Scaffold ── */
main {
  padding-top: 100px;
  padding-bottom: 160px;
}

/* ── Photography Page ── */
.photography-page {
  padding-top: 80px;
}

.photography-page .photo-grid {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.photography-page .photo-item {
  margin: 0;
}

.photography-page .photo-item img {
  display: block;
  width: 100%;
  height: auto;
}

.photography-page .photo-caption {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.8rem;
  letter-spacing: 0.03em;
}

/* ── About / Index ── */
.about-section {
  padding-top: 20px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.about-name {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.about-tagline {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 3rem;
}

.about-bio {
  font-size: 1.0rem;
  line-height: 1.85;
  color: #222;
  margin-bottom: 1.4em;
}

.about-bio p + p {
  margin-top: 1.2em;
}

/* ── Section Navigation (index) ── */
.section-links {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #e8e8e8;
}

.section-links a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid #e8e8e8;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.section-links a:hover {
  color: var(--hover);
}

.section-links a .arrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: color 0.15s ease;
}

.section-links a:hover .arrow {
  color: var(--hover);
}

/* ── Social Links ── */
.social-links {
  margin-top: 0.8rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--ink);
}

.social-links svg {
  width: 100%;
  height: 100%;
}

/* ── Publications Section (Homepage) ── */
.section-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.publications-section {
  margin-top: 4rem;
}

.publication-item {
  margin-bottom: 1rem;
}

.publication-item a {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: #2563eb;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.15s ease;
}

.publication-item a:hover {
  color: #1d4ed8;
}

.publication-meta {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── Articles Section (Homepage) ── */
.articles-section {
  margin-top: 4rem;
  padding-top: 2rem;
}

.article-item {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding: 0.5rem 0;
}

.article-item .article-date {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  min-width: 100px;
}

.article-item a {
  font-family: var(--serif);
  font-size: 1rem;
  color: #2563eb;
  text-decoration: none;
  transition: color 0.15s ease;
}

.article-item a:hover {
  color: #1d4ed8;
}

/* ── Contact ── */
.contact {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #e8e8e8;
}

.contact-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.contact a {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}

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

/* ── Section Index Page ── */
.section-header {
  padding-top: 60px;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.section-desc {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── Entry List ── */
.entry-list {
  list-style: none;
  border-top: 1px solid #e8e8e8;
}

.entry-list li {
  border-bottom: 1px solid #e8e8e8;
}

.entry-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.15s;
}

.entry-list a:hover {
  color: var(--hover);
}

.entry-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
}

.entry-date {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin-left: 2rem;
}

/* ── Single Content Page ── */
.back-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 60px;
  margin-top: 40px;
  transition: color 0.15s;
}

.back-link:hover { color: var(--ink); }

.article-header {
  margin-bottom: 60px;
}

.article-title {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.article-date {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── Article Body ── */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1a1a1a;
}

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

.article-body h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2.5em;
  margin-bottom: 0.7em;
}

.article-body h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.article-body blockquote {
  border-left: 2px solid #ddd;
  padding-left: 1.4rem;
  margin: 1.5em 0;
  color: var(--muted);
  font-style: italic;
}

.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #ccc;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}

.article-body a:hover {
  text-decoration-color: var(--ink);
}

.article-body img {
  display: block;
  max-width: 100%;
  margin: 2.5em auto;
}

/* ── Photography ── */
.photo-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding-top: 20px;
}

.photo-item img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-caption {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.7rem;
  letter-spacing: 0.03em;
}

/* ── Footer ── */
footer {
  border-top: 1px solid #e8e8e8;
  padding: 32px 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  :root { --top: 56px; }

  /* Nav */
  nav .container { height: 56px; }
  nav .nav-links { gap: 1rem; }
  nav .nav-links a { font-size: 0.72rem; letter-spacing: 0.02em; }
  nav .site-name { font-size: 0.9rem; }

  /* Page */
  main { padding-bottom: 80px; }
  .about-section { padding-top: 48px; }
  .about-name { font-size: 1.5rem; }
  .article-title { font-size: 1.4rem; }

  /* Section links — keep row layout, just tighten padding */
  .section-links { margin-top: 56px; }
  .section-links a {
    flex-direction: row;
    align-items: center;
    padding: 1rem 0;
  }

  /* Entry list — same, keep row */
  .entry-list a {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.3rem 0;
  }
  .entry-date { margin-left: auto; }
}

/* ── Chinese version (.zh on <html>) ── */
.zh body {
  font-family: var(--serif-zh);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  word-break: break-all;
}
.zh nav .site-name { font-family: var(--serif-zh); font-weight: 600; letter-spacing: 0.06em; }
.zh nav .nav-links a { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: none; font-weight: 500; }
.zh .about-name { font-family: var(--serif-zh); font-weight: 700; letter-spacing: 0.08em; }
.zh .about-tagline { font-family: var(--serif-zh); letter-spacing: 0.06em; }
.zh .about-bio { font-family: var(--serif-zh); font-weight: 300; line-height: 2; }
.zh .section-links a { font-family: var(--serif-zh); letter-spacing: 0.06em; }
.zh .section-title { font-family: var(--serif-zh); font-weight: 600; letter-spacing: 0.06em; }
.zh .section-desc { font-family: var(--serif-zh); letter-spacing: 0.04em; }
.zh .entry-title { font-family: var(--serif-zh); font-weight: 300; letter-spacing: 0.04em; }
.zh .article-title { font-family: var(--serif-zh); font-weight: 600; letter-spacing: 0.05em; line-height: 1.5; }
.zh .article-body { font-family: var(--serif-zh); font-weight: 300; line-height: 2; letter-spacing: 0.04em; }
.zh .article-body h2, .zh .article-body h3 { font-family: var(--serif-zh); font-weight: 500; letter-spacing: 0.06em; }
.zh .back-link, .zh .article-date, .zh .entry-date, .zh .contact-label, .zh footer p { font-family: var(--serif-zh); letter-spacing: 0.06em; }
.zh .contact a { font-family: var(--serif-zh); }
.zh .article-item a { font-family: var(--serif-zh); }
.zh .publication-item a { font-family: var(--serif); }
