:root {
  --bg: #f6f1e9;
  --surface: #fffdf8;
  --text: #15221d;
  --muted: #65716a;
  --primary: #ef6a4c;
  --accent: #d5e85d;
  --border: rgba(21, 34, 29, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Georgia, "Times New Roman", serif; background: var(--bg); color: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.header { position: sticky; top: 0; z-index: 20; background: rgba(246, 241, 233, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { color: var(--text); text-decoration: none; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.04em; }
.brand span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 0.92rem; font-weight: 700; }
.theme-toggle { border: 0; background: transparent; color: var(--text); font-size: 1.2rem; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 46px; padding: 0.8rem 1.35rem; border: 0; border-radius: 3px; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; transition: transform 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: white; box-shadow: 5px 5px 0 var(--text); }
.text-link { color: var(--text); text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--text); padding-bottom: 0.2rem; }
.text-link span { color: var(--primary); margin-left: 0.35rem; }
.hero { padding: 7rem 0 0; background: var(--bg); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 3rem; }
.eyebrow { display: inline-block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); font-weight: 800; margin-bottom: 1rem; }
.hero-copy h1 { max-width: 720px; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: 0.98; letter-spacing: -0.055em; margin-bottom: 1.35rem; }
.hero-copy h1 em { color: var(--primary); font-style: italic; }
.hero-copy p { max-width: 580px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.hero-visual { position: relative; padding: 1.5rem 0 4rem 2rem; }
.hero-visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(0.8); border: 1px solid var(--text); box-shadow: 14px 14px 0 var(--accent); }
.visual-note { position: absolute; z-index: 1; top: 0; left: -1.5rem; background: var(--accent); padding: 0.75rem 1rem; font-size: 0.78rem; transform: rotate(-4deg); }
.visual-note strong { display: block; font-size: 1rem; }
.visual-caption { position: absolute; bottom: 1.5rem; left: -1rem; background: var(--surface); border: 1px solid var(--text); padding: 0.75rem 1rem; font-size: 0.9rem; line-height: 1.35; transform: rotate(3deg); }
.hero-marquee { display: flex; width: max-content; gap: 2rem; border-top: 1px solid var(--text); padding: 0.75rem 0; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.14em; animation: marquee 26s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.section { padding: 5.5rem 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 2rem; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.05em; line-height: 1; }
.post-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 1rem; }
.post-card { position: relative; min-height: 310px; background: var(--surface); border-top: 2px solid var(--text); padding: 1.35rem; display: flex; flex-direction: column; }
.post-card img { width: calc(100% + 2.7rem); height: 190px; object-fit: cover; margin: -1.35rem -1.35rem 1.3rem; filter: saturate(0.75); }
.post-content { display: flex; flex-direction: column; height: 100%; }
.post-card h3 { font-size: 1.55rem; line-height: 1.12; margin-bottom: 0.75rem; }
.post-card p { color: var(--muted); font-size: 0.94rem; }
.post-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.5rem; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.post-number { color: var(--primary); font-size: 0.9rem; margin-bottom: 2.5rem; }
.tag { display: inline-block; align-self: flex-start; background: var(--accent); color: var(--text); padding: 0.35rem 0.75rem; font-size: 0.74rem; font-weight: 700; margin-bottom: 0.9rem; }
.topics-section { background: var(--text); color: var(--bg); }
.topics-section .eyebrow { color: var(--accent); }
.topic-list { border-top: 1px solid rgba(246, 241, 233, 0.35); }
.topic-list a { display: grid; grid-template-columns: 1fr auto 2rem; align-items: center; gap: 1rem; padding: 1.1rem 0; color: var(--bg); text-decoration: none; border-bottom: 1px solid rgba(246, 241, 233, 0.35); font-size: clamp(1.5rem, 3vw, 2.5rem); }
.topic-list a span { font-size: 0.78rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.topic-list a b { color: var(--primary); text-align: right; }
.about-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 5rem; align-items: center; }
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); }
.about-copy h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1; margin-bottom: 1rem; }
.about-copy p, .newsletter-copy p { max-width: 560px; color: var(--muted); margin-bottom: 1.7rem; }
.footer { padding: 5rem 0 1.5rem; background: var(--accent); color: var(--text); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.newsletter-copy h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; margin-bottom: 1rem; }
.newsletter-form { display: flex; align-items: start; gap: 0.5rem; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 180px; min-height: 46px; border: 1px solid var(--text); background: transparent; padding: 0.8rem; font: inherit; }
.form-message { width: 100%; font-size: 0.85rem; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px solid var(--text); padding-top: 1rem; margin-top: 2rem; font-size: 0.8rem; }
.footer-bottom a { color: inherit; text-decoration: none; margin-left: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body.dark { --bg: #15221d; --surface: #1c2c25; --text: #f6f1e9; --muted: #b1bbb2; --border: rgba(246, 241, 233, 0.2); }
body.dark .header { background: rgba(21, 34, 29, 0.9); }
body.dark .hero-visual img { border-color: var(--text); }
@media (max-width: 820px) {
  .nav { flex-direction: column; justify-content: center; padding: 1rem 0; gap: 0.8rem; }
  .hero-inner, .about-layout, .post-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
  .hero-visual { max-width: 480px; padding-left: 1rem; margin: 1rem auto 0; }
  .section-heading { align-items: start; gap: 1rem; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .about-layout { gap: 2rem; }
}
@media (max-width: 560px) {
  .nav { align-items: flex-start; }
  .nav-links { justify-content: flex-end; gap: 0.75rem; width: 100%; }
  .nav-links a:not(.btn) { display: none; }
  .btn { padding-inline: 1rem; }
  .hero-copy h1 { font-size: 2.7rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; }
  .footer-bottom a { margin: 0 1rem 0 0; }
}
