:root {
  color-scheme: light;
  --paper: #faf9f3;
  --ink: #223b2f;
  --green: #245d46;
  --muted: #516459;
  --line: #cbd5c7;
  --serif: "AppleMyungjo", "Batang", "Nanum Myeongjo", Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
.wrap { width: min(100% - 40px, 1000px); margin-inline: auto; }
a { color: var(--green); text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
button, .login-link { min-height: 44px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 9px; background: transparent; cursor: pointer; }
button:hover, .login-link:hover { background: #e8eddf; }
button:disabled { cursor: wait; opacity: .7; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #8f5808; outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: 0; transform: translateY(-120%); padding: 12px; background: white; z-index: 1; }
.skip:focus { transform: none; }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner, .account, .section-title, .form-actions { display: flex; align-items: center; gap: 10px; }
.mast-inner, .section-title { justify-content: space-between; }
.mast-inner { min-height: 64px; }
.garden-link, .login-link, .section-nav a, .text-link, footer a, .article-back { display: inline-flex; min-height: 44px; align-items: center; }
.garden-link { color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -.04em; }
.account { min-width: 0; }
#user-name { max-width: 16ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .94rem; }
.login-link { font-weight: 650; text-decoration: none; }
.page-title { margin-block: clamp(26px, 5.5vw, 66px) 24px; }
h1, h2, h3, p { margin: 0; }
h1, .feature h3, .story h3, .long-read h2 { font-family: var(--serif); }
h1 { font-size: clamp(2.1rem, 6.5vw, 4rem); letter-spacing: -.065em; line-height: 1.18; }
.page-title p { color: var(--muted); margin-top: 12px; }
.section-nav { display: flex; gap: 28px; border-block: 1px solid var(--line); }
.section-nav a { font-weight: 650; text-decoration: none; }
.section-nav a:hover, .garden-link:hover, footer a:hover { text-decoration: underline; }
#columns, #board { margin-top: clamp(28px, 4vw, 44px); }
.section-title { margin-bottom: 14px; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); letter-spacing: -.045em; line-height: 1.45; }
.editorial-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: 28px; }
.feature, .story { display: block; color: var(--ink); text-decoration: none; }
.feature:hover h3, .story:hover h3 { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.feature { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #f0f2e7; }
.feature img { display: block; width: 100%; height: auto; aspect-ratio: 2.35; object-fit: cover; }
.feature-copy { padding: 16px 20px 20px; }
.topic { color: var(--green); font-size: .82rem; font-weight: 750; }
.feature h3, .story h3 { margin-top: 5px; font-size: clamp(1.28rem, 2.8vw, 1.74rem); line-height: 1.45; letter-spacing: -.05em; }
.feature-copy p { margin-top: 8px; color: var(--muted); }
.side-stories { border-top: 1px solid var(--line); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(72px, 28%); gap: 16px; align-items: center; border-bottom: 1px solid var(--line); padding: 18px 0; }
.story img { width: 100%; height: auto; aspect-ratio: 1.15; border-radius: 8px; object-fit: cover; }
#published-columns { margin-top: 22px; }
#board { padding-top: 24px; border-top: 1px solid var(--line); }
.write { color: white; border-color: var(--green); background: var(--green); font-weight: 700; }
.write:hover { background: #173f2e; }
.text-link, footer a, .article-back { font-weight: 650; }
#family-board, #column-status, #free-status, .byline, #compose > p, #account-status { color: var(--muted); }
#free-status:not(:empty), #column-status:not(:empty) { margin-block: 6px; }
.posts { padding: 0; margin: 0; list-style: none; }
.posts li { border-bottom: 1px solid var(--line); }
.posts a { display: grid; gap: 3px; padding: 12px 0; text-decoration: none; min-height: 44px; }
.posts a:hover strong { text-decoration: underline; }
.posts small { color: var(--muted); }
#more-free, #more-column, #account-status:not(:empty) { margin-top: 12px; }
.post-panel, .auth-panel { margin: 28px 0; padding: clamp(16px, 4vw, 32px); border: 1px solid var(--line); border-radius: 12px; background: #fffefa; }
.byline { font-size: .95rem; margin-block: 8px 16px; }
#post-body { white-space: pre-wrap; margin-block: 14px; }
form { display: grid; gap: 8px; margin-top: 14px; }
label { font-weight: 700; }
textarea { resize: vertical; }
input, textarea { min-width: 0; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #9aafa1; border-radius: 8px; background: white; }
.form-actions, .providers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.providers a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
footer { margin-top: 50px !important; padding: 12px 0 30px; border-top: 1px solid var(--line); }
.long-read { max-width: 690px; margin-top: 20px; }
.article-back { margin-bottom: 18px; }
.long-read h1 { margin: 6px 0 15px; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.32; }
.long-read .intro { color: var(--muted); font-size: 1.14rem; }
.long-read img { display: block; width: 100%; height: auto; aspect-ratio: 2; object-fit: cover; border-radius: 9px; margin-top: 20px; }
.long-read h2 { margin-top: 26px; }
.long-read article > p { margin-top: 12px; line-height: 1.9; }
@media (max-width: 680px) { .editorial-grid { grid-template-columns: 1fr; gap: 17px; } .side-stories { border-top: 0; } .story { padding-block: 11px; } .story img { max-height: 92px; } }
@media (max-width: 420px) { .wrap { width: calc(100% - 28px); } .mast-inner { min-height: 58px; } .feature-copy { padding: 12px 14px 16px; } #user-name { max-width: 6ch; } .mast-inner { gap: 6px; } .account { gap: 4px; } }
