@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #100c14;
  --surface: #1c1620;
  --text: #f3e9ee;
  --text-muted: rgba(243, 233, 238, .6);
  --divider: rgba(243, 233, 238, .1);
  --gold: #d8b06b;
  --gold-soft: rgba(216, 176, 107, .16);
  --pink: #e592b8;
  --pink-soft: rgba(229, 146, 184, .16);
  --card-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 30px rgba(0,0,0,.45);
}

:root[data-theme="day"] {
  color-scheme: light;
  --bg: #fdf1ee;
  --surface: #fffaf8;
  --text: #33222a;
  --text-muted: rgba(51, 34, 42, .62);
  --divider: rgba(51, 34, 42, .1);
  --gold: #a97b2d;
  --gold-soft: rgba(169, 123, 45, .14);
  --pink: #c94f83;
  --pink-soft: rgba(201, 79, 131, .12);
  --card-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 26px rgba(51,34,42,.08);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 Inter, system-ui, sans-serif; transition: background-color .2s ease, color .2s ease; }
a { color: inherit; text-underline-offset: .18em; }
button { font: inherit; }

.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(100% - 40px, 1040px); margin: 0 auto; padding: 22px 0; background: color-mix(in srgb, var(--bg) 91%, transparent); backdrop-filter: blur(12px); }
.masthead { color: var(--text); font-size: 17px; font-weight: 700; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.masthead-mark { color: var(--pink); margin-right: 6px; }
.site-header nav { display: flex; align-items: center; gap: 6px; }
.site-header nav a, .theme-toggle { border: 1px solid transparent; border-radius: 999px; padding: 8px 11px; color: var(--text-muted); font-size: 12px; font-weight: 600; text-decoration: none; }
.site-header nav a:hover, .site-header nav a.active { color: var(--text); background: var(--surface); border-color: var(--divider); }
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; margin-left: 5px; background: var(--surface); border-color: var(--divider); color: var(--text); cursor: pointer; }
.theme-toggle:hover { border-color: var(--gold); }
.theme-icon { font-size: 15px; line-height: 1; }

main { width: min(100% - 40px, 1040px); margin: 0 auto; }
.home { padding: 30px 0 58px; }
.hero { display: flex; align-items: center; gap: 28px; padding: 31px; border: 1px solid var(--divider); border-radius: 22px; background: var(--surface); box-shadow: var(--card-shadow); }
.hero-photo { flex: 0 0 128px; width: 128px; height: 128px; border: 2px solid var(--gold); border-radius: 50%; object-fit: cover; object-position: center top; }
.location-pill, .tag { display: inline-flex; align-items: center; border-radius: 999px; font-size: 11px; font-weight: 600; }
.location-pill { padding: 4px 9px; background: var(--pink-soft); color: var(--pink); }
.hero h1 { margin: 10px 0 8px; font-size: clamp(2.1rem, 5vw, 2.45rem); line-height: 1.08; letter-spacing: -.05em; }
.hero p { max-width: 680px; margin: 0; color: var(--text-muted); font-size: 14px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; margin-top: 32px; }
.section-label { margin: 0 0 11px; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.post-stack { display: grid; gap: 14px; }
.post-card { display: block; padding: 24px 28px; border: 1px solid var(--divider); border-radius: 18px; background: var(--surface); box-shadow: var(--card-shadow); color: var(--text); text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.post-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.post-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; color: var(--text-muted); font-size: 12px; }
.tag { padding: 3px 9px; background: var(--gold-soft); color: var(--gold); }
.tag.pink { background: var(--pink-soft); color: var(--pink); }
.post-card h2 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.035em; }
.post-card p { margin: 9px 0 0; color: var(--text-muted); font-size: 14px; }
.sidebar { align-self: start; position: sticky; top: 82px; }
.side-nav { display: grid; gap: 3px; }
.side-nav a, .side-nav span { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; color: var(--text-muted); font-size: 13px; text-decoration: none; }
.side-nav a.active, .side-nav a:hover { border-color: var(--divider); background: var(--surface); color: var(--text); }
.side-nav span { opacity: .65; }
.nav-symbol { width: 16px; color: var(--gold); text-align: center; }
.follow-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; padding: 22px 25px; border: 1px solid var(--divider); border-radius: 18px; background: var(--surface); box-shadow: var(--card-shadow); }
.follow-strip h2 { margin: 0; font-size: 18px; letter-spacing: -.03em; }
.follow-strip p { margin: 3px 0 0; color: var(--text-muted); font-size: 13px; }
.follow-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.follow-actions a { padding: 7px 10px; border: 1px solid var(--divider); border-radius: 999px; color: var(--text); font-size: 12px; font-weight: 600; text-decoration: none; }
.follow-actions a:hover { border-color: var(--pink); color: var(--pink); }

.article-page { width: min(100% - 40px, 680px); padding: 34px 0 56px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px; color: var(--text-muted); font-size: 13px; text-decoration: none; }
.back-link:hover { color: var(--gold); }
.article-card { padding: 48px 52px; border: 1px solid var(--divider); border-radius: 24px; background: var(--surface); box-shadow: var(--card-shadow); animation: fade-up .4s ease both; }
.article-header { margin-bottom: 28px; padding-bottom: 27px; border-bottom: 1px solid var(--divider); }
.article-tags { display: flex; gap: 8px; margin-bottom: 16px; }
.article h1 { margin: 0 0 13px; font-size: clamp(2rem, 5vw, 2.65rem); line-height: 1.1; letter-spacing: -.05em; }
.dek { margin: 0 0 18px; color: var(--text-muted); font-size: 16px; line-height: 1.55; }
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0; color: var(--text-muted); font-size: 13px; }
.author-byline { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; }
.author-byline img { width: 27px; height: 27px; border: 1px solid var(--divider); border-radius: 50%; object-fit: cover; object-position: center top; }
.article-content { font-size: 17px; line-height: 1.7; }
.article-content p { margin: 0 0 20px; }
.article-content h2 { margin: 33px 0 12px; font-size: 20px; line-height: 1.3; letter-spacing: -.025em; }
.article-content blockquote { margin: 28px 0; padding: 3px 0 3px 20px; border-left: 3px solid var(--pink); color: var(--text-muted); font-size: 18px; }
.article-content a { color: var(--gold); }
.note { margin: 34px 0 0; padding: 16px; border: 1px solid var(--divider); border-radius: 12px; color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.note strong { color: var(--text); }
.love-button { display: inline-flex; align-items: center; gap: 7px; margin-top: 35px; padding: 8px 15px; border: 0; border-radius: 999px; background: var(--pink-soft); color: var(--pink); font-size: 13px; cursor: default; }
.comments-section { margin-top: 28px; padding: 34px 38px; border: 1px solid var(--divider); border-radius: 22px; background: var(--surface); box-shadow: var(--card-shadow); animation: fade-up .4s .08s ease both; }
.comments-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.comments-kicker { margin: 0 0 5px; color: var(--pink); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.comments-section h2 { margin: 0; font-size: 23px; line-height: 1.2; letter-spacing: -.035em; }
.comment-count { align-self: flex-start; flex: 0 0 auto; margin-top: 3px; padding: 4px 9px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 11px; font-weight: 700; }
.comments-intro { max-width: 540px; margin: 10px 0 24px; color: var(--text-muted); font-size: 13px; }
.comments-loading, .comments-empty, .comments-error { padding: 19px; border: 1px dashed var(--divider); border-radius: 12px; color: var(--text-muted); text-align: center; font-size: 13px; }
.comments-error { border-color: color-mix(in srgb, var(--pink) 45%, var(--divider)); }
.comment-form { display: grid; gap: 12px; margin-bottom: 28px; padding: 18px; border: 1px solid var(--divider); border-radius: 14px; background: color-mix(in srgb, var(--bg) 48%, transparent); }
.comment-form label { color: var(--text); font-size: 12px; font-weight: 700; }
.comment-form input, .comment-form textarea { width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--divider); border-radius: 9px; outline: none; background: var(--surface); color: var(--text); font: inherit; }
.comment-form textarea { min-height: 112px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.comment-form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px; }
.comment-form-meta { margin: 0; color: var(--text-muted); font-size: 11px; }
.comment-privacy { margin-top: 5px; color: var(--text-muted); font-size: 10px; }
.comment-privacy summary { width: max-content; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.comment-privacy p { max-width: 470px; margin: 5px 0 0; }
.comment-submit { min-width: 130px; padding: 10px 14px; border: 0; border-radius: 999px; background: var(--pink); color: #21131a; font-weight: 800; cursor: pointer; }
.comment-submit:hover { filter: brightness(1.07); }
.comment-submit:disabled { cursor: wait; filter: grayscale(.45); opacity: .65; }
.comment-form-status { min-height: 20px; margin: 0; color: var(--text-muted); font-size: 12px; }
.comment-form-status[data-state="error"] { color: var(--pink); }
.comment-form-status[data-state="success"] { color: var(--gold); }
.comment-reply-context { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-left: 3px solid var(--gold); background: var(--gold-soft); color: var(--text); font-size: 12px; }
.comment-reply-context button { border: 0; background: transparent; color: var(--text-muted); cursor: pointer; text-decoration: underline; }
.comment-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.comment-list, .comment-replies { margin: 0; padding: 0; list-style: none; }
.comment-list { display: grid; gap: 14px; }
.comment-item { padding: 16px 17px; border: 1px solid var(--divider); border-radius: 13px; background: color-mix(in srgb, var(--bg) 36%, transparent); }
.comment-item.is-author { border-color: color-mix(in srgb, var(--gold) 50%, var(--divider)); }
.comment-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.comment-author { color: var(--text); font-size: 13px; font-weight: 750; }
.comment-author-badge { padding: 2px 6px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.comment-date { color: var(--text-muted); font-size: 11px; }
.comment-body { margin: 0; color: var(--text); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.comment-actions { display: flex; gap: 13px; margin-top: 10px; }
.comment-actions button { padding: 0; border: 0; background: transparent; color: var(--text-muted); font-size: 11px; cursor: pointer; }
.comment-actions button:hover { color: var(--pink); }
.comment-replies { display: grid; gap: 10px; margin-top: 12px; padding-left: 18px; border-left: 1px solid var(--divider); }
.comment-replies .comment-item { background: transparent; }
.cf-turnstile { min-height: 65px; }
.author-portrait { width: min(100%, 260px); margin: 0 0 25px; }
.author-portrait img { display: block; width: 100%; border: 2px solid var(--gold); border-radius: 18px; }
.author-portrait figcaption { margin-top: 7px; color: var(--text-muted); font-size: 12px; }

footer { width: min(100% - 40px, 780px); margin: 0 auto; padding: 23px 0 38px; border-top: 1px solid var(--divider); color: var(--text-muted); text-align: center; font-size: 12px; }
.social-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; }
.social-links a { display: inline-flex; gap: 6px; color: var(--text-muted); text-decoration: none; }
.social-links a:hover { color: var(--pink); }
footer p { margin: 0; }

@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 720px) { .site-header { padding: 15px 0; } .site-header nav a { display: none; } .hero { align-items: flex-start; flex-direction: column; padding: 25px; } .hero-photo { width: 105px; height: 105px; flex-basis: 105px; } .home-grid { grid-template-columns: 1fr; } .sidebar { position: static; } .side-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } .follow-strip { align-items: flex-start; flex-direction: column; } .follow-actions { justify-content: flex-start; } .article-card { padding: 31px 25px; } .comments-section { padding: 27px 24px; } }
@media (max-width: 520px) { .comments-heading-row, .comment-form-row { align-items: stretch; grid-template-columns: 1fr; flex-direction: column; } .comment-submit { width: 100%; } }
@media (max-width: 420px) { .site-header, main, footer { width: min(100% - 28px, 1040px); } .masthead { font-size: 15px; } .hero { padding: 21px; } .post-card { padding: 21px; } .post-card-meta { align-items: flex-start; flex-direction: column; gap: 6px; } .comments-section { padding: 23px 18px; } }
