/*
Theme Name: GROON Journal
Theme URI: https://groo.im/blog/
Author: GROON
Author URI: https://groo.im/
Description: 에너지 친구들과 함께하는 그루온 블로그. 기존 글과 설정을 보존하는 독립 클래식 테마입니다.
Version: 1.1.5
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: groon-journal
*/

:root {
    --journal-ink: #203033;
    --journal-muted: #586568;
    --journal-blue: #24519a;
    --journal-teal: #176b64;
    --journal-border: #dce4e4;
    --journal-surface: #f4f8f7;
    --journal-sky: #b8e7f7;
    --journal-yellow: #f7d65a;
    --journal-width: 1280px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; color: var(--journal-ink); background: #fff; font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; text-underline-offset: .22em; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
button, input[type="submit"] { touch-action: manipulation; }
a, button, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--journal-blue); outline-offset: 4px; }
a:hover { color: var(--journal-teal); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.32; word-break: keep-all; overflow-wrap: anywhere; }
main:focus { outline: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100000; background: var(--journal-ink); color: white; padding: 12px 20px; }
.skip-link:focus { top: 16px; color: white; }
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--journal-border); background: #fff; }
.header-inner, .section-shell, .footer-inner, .footer-bottom { width: min(var(--journal-width), calc(100% - 96px)); margin-inline: auto; }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand-lockup { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.brand { display: flex; align-items: center; min-height: 48px; }
.brand img { width: 114px; }
.journal-label { color: var(--journal-muted); font-size: 15px; padding-left: 24px; border-left: 1px solid var(--journal-border); }
.header-actions { display: flex; align-items: center; gap: 28px; min-width: 0; }
.desktop-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.desktop-nav a { display: inline-flex; min-height: 48px; align-items: center; position: relative; }
.desktop-nav a.is-current { color: var(--journal-teal); }
.desktop-nav a.is-current::after { content: ""; position: absolute; height: 3px; background: var(--journal-teal); left: 0; right: 0; bottom: 3px; }
.language-switch { display: flex; align-items: center; gap: 2px; padding-left: 16px; border-left: 1px solid var(--journal-border); flex-shrink: 0; }
.language-switch a, .language-switch > span { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; font-size: 12px; font-weight: 650; color: var(--journal-muted); }
.language-switch a:hover { color: var(--journal-teal); background: var(--journal-surface); }
.language-switch .is-current { color: var(--journal-teal); background: var(--journal-surface); border-radius: 3px; }
.mobile-menu { display: none; }
.mobile-menu summary { min-height: 44px; min-width: 64px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; list-style: none; font-size: 14px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { font-size: 22px; line-height: 1; }
.mobile-menu[open] summary span { transform: rotate(45deg); }
.mobile-menu nav { position: absolute; top: calc(100% - 1px); left: 0; right: 0; padding: 14px 20px 20px; background: #fff; border-bottom: 1px solid var(--journal-border); box-shadow: 0 12px 16px #2030330a; }
.mobile-menu nav a { display: flex; min-height: 48px; align-items: center; padding: 8px 12px; font-size: 15px; }
.mobile-menu nav a.is-current { background: var(--journal-surface); color: var(--journal-teal); font-weight: 650; }
.journal-hero { position: relative; margin: 28px auto 0; width: min(1440px, calc(100% - 48px)); background: var(--journal-sky); overflow: hidden; }
.hero-art { width: 100%; height: auto; }
.hero-copy { position: absolute; top: clamp(24px, 4.1vw, 64px); left: clamp(32px, 4.5vw, 72px); z-index: 1; max-width: 440px; }
.eyebrow { margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--journal-teal); }
.hero-copy .eyebrow { color: #245451; display: flex; align-items: center; gap: 10px; }
.hero-copy .eyebrow::before { content: ""; width: 24px; height: 4px; background: #e6b93c; }
.hero-copy h1 { margin: 0 0 22px; font-size: clamp(40px, 4vw, 60px); line-height: 1.22; letter-spacing: -.045em; font-weight: 750; }
.hero-description { margin: 0 0 24px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.7; color: #294e55; }
.hero-link, .text-link, .back-link { display: inline-flex; gap: 18px; align-items: center; min-height: 44px; font-size: 14px; font-weight: 650; }
.hero-link { border-bottom: 1px solid #4b7b7d; color: #204b4f; }
.hero-link:hover { border-color: var(--journal-ink); color: var(--journal-ink); }
.topic-note { display: flex; align-items: center; gap: 32px; border-bottom: 1px solid var(--journal-border); padding-block: 28px; }
.topic-note > span:first-child { font-size: 13px; font-weight: 650; color: var(--journal-teal); flex-shrink: 0; }
.topic-note p { font-size: 15px; margin: 0; color: var(--journal-muted); }
.topic-note i { font-style: normal; padding-inline: 14px; color: #718b8a; }
.topic-sun { margin-left: auto; margin-right: 6px; width: 14px; height: 14px; flex-shrink: 0; border-radius: 50%; background: var(--journal-yellow); box-shadow: 0 0 0 5px #fbefc3; }
.stories { padding-block: 68px 96px; scroll-margin-top: 24px; }
.stories-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 28px; }
.stories-heading > div { min-width: 0; }
.stories-title { font-size: clamp(28px, 2.8vw, 38px); letter-spacing: -.035em; margin: 0; }
.stories-heading .eyebrow { margin-bottom: 10px; }
.archive-description { color: var(--journal-muted); max-width: 640px; margin-top: 16px; }
.archive-description p:last-child { margin-bottom: 0; }
.journal-search { display: flex; border-bottom: 1px solid #91a6a6; align-items: center; width: 280px; flex-shrink: 0; }
.journal-search label { display: block; min-width: 0; flex: 1; }
.journal-search input { display: block; width: 100%; min-height: 48px; border: 0; padding: 8px 12px 8px 0; background: transparent; border-radius: 0; color: var(--journal-ink); font-size: 15px; }
.journal-search input::placeholder { color: #586f6f; opacity: 1; }
.journal-search button { font-size: 13px; font-weight: 650; display: grid; place-items: center; min-width: 48px; min-height: 48px; padding: 0; border: 0; background: transparent; color: var(--journal-ink); }
.journal-search button:hover { background: var(--journal-surface); }
.topic-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 28px; border-bottom: 1px solid var(--journal-border); }
.topic-nav a { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 7px 18px; color: var(--journal-muted); font-size: 14px; border: 1px solid transparent; border-radius: 3px; }
.topic-nav a:hover { background: var(--journal-surface); }
.topic-nav a.is-active { background: var(--journal-teal); color: #fff; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.post-card { padding-block: 32px; border-bottom: 1px solid var(--journal-border); min-width: 0; }
.post-cover { display: block; background: var(--journal-surface); margin-bottom: 24px; overflow: hidden; }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: contain; }
.post-meta { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; font-size: 13px; }
.post-meta time, .article-header time { color: var(--journal-muted); white-space: nowrap; font-size: 13px; }
.post-categories { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--journal-teal); font-size: 13px; font-weight: 650; }
.post-categories a { text-decoration: underline; text-decoration-color: transparent; }
.post-categories a:hover { text-decoration-color: currentColor; }
.post-card :is(h2, h3) { font-size: 26px; letter-spacing: -.025em; margin-bottom: 14px; }
.post-card :is(h2, h3) a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.post-excerpt { color: var(--journal-muted); font-size: 16px; margin-bottom: 18px; overflow-wrap: anywhere; }
.text-link { color: var(--journal-teal); }
.text-link:hover { text-decoration: underline; }
.no-cover { grid-column: 1 / -1; padding-block: 40px; }
.no-cover .post-card-content { max-width: 880px; }
.no-cover .post-meta { justify-content: flex-start; gap: 24px; }
.no-cover :is(h2, h3) { font-size: 30px; }
.empty-stories { padding: 62px 36px; background: #f4f8f7; margin-top: 30px; text-align: center; }
.empty-mark { display: inline-flex; gap: 7px; margin-bottom: 24px; align-items: flex-end; height: 32px; }
.empty-mark span { display: block; width: 16px; height: 22px; border-radius: 9px 9px 3px 3px; background: #4caaa0; }
.empty-mark span:nth-child(2) { height: 32px; background: #f1cc55; }
.empty-mark span:nth-child(3) { height: 27px; background: #6ca6c9; }
.empty-stories :is(h2, h3) { font-size: 24px; letter-spacing: -.025em; margin-bottom: 12px; }
.empty-stories p { color: var(--journal-muted); max-width: 520px; margin: 0 auto 8px; word-break: keep-all; }
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 6px 12px; border: 1px solid var(--journal-border); font-size: 14px; }
.page-numbers.current { background: var(--journal-teal); color: #fff; border-color: var(--journal-teal); }
.article-shell { width: min(1120px, calc(100% - 96px)); margin: 64px auto 80px; }
.article-header { width: min(800px, 100%); margin: 0 auto 40px; }
.article-header .back-link { margin-bottom: 32px; color: var(--journal-muted); }
.translation-note { margin: 0 0 24px; border-left: 2px solid #9dbfb8; padding-left: 16px; color: var(--journal-muted); font-size: 14px; }
.translation-note a { color: var(--journal-teal); text-decoration: underline; display: inline-block; }
.article-header .post-categories { margin-bottom: 18px; }
.article-header h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1.28; letter-spacing: -.04em; margin-bottom: 24px; }
.article-cover { margin: 0 0 52px; background: var(--journal-surface); }
.article-cover img { width: 100%; height: auto; }
.entry-content, .article-end, .post-navigation, .comments-area { width: min(760px, 100%); margin-inline: auto; }
.entry-content { font-size: 18px; line-height: 1.9; overflow-wrap: anywhere; }
.entry-content > * { margin-bottom: 1.5em; }
.entry-content h2 { font-size: 30px; margin-top: 2.2em; margin-bottom: .8em; letter-spacing: -.025em; }
.entry-content h3 { font-size: 24px; margin-top: 1.7em; margin-bottom: .7em; }
.entry-content a { color: var(--journal-blue); text-decoration: underline; }
.entry-content p { word-break: normal; }
.entry-content blockquote { margin-inline: 0; border-left: 3px solid #489789; padding: 20px 28px; background: var(--journal-surface); color: #3d5956; }
.entry-content blockquote > :last-child { margin-bottom: 0; }
.entry-content figcaption { font-size: 14px; color: var(--journal-muted); text-align: center; line-height: 1.6; margin-top: 12px; }
.entry-content pre { overflow: auto; padding: 20px; background: var(--journal-surface); font-size: 14px; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 16px; }
.entry-content th, .entry-content td { border: 1px solid var(--journal-border); padding: 12px 16px; }
.entry-content th { background: var(--journal-surface); text-align: left; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .35em; }
.entry-content .alignwide, .entry-content .alignfull { max-width: 100%; margin-inline: 0; }
.entry-content iframe { max-width: 100%; }
.article-end { border-top: 1px solid var(--journal-border); margin-top: 48px; padding-top: 24px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 14px; }
.post-tags a { padding: 4px 12px; background: var(--journal-surface); }
.post-navigation { margin-top: 32px; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.post-navigation a { display: block; padding: 20px 0; border-top: 1px solid var(--journal-border); font-size: 16px; overflow-wrap: anywhere; }
.nav-caption { display: block; color: var(--journal-muted); font-size: 12px; margin-bottom: 8px; }
.not-found { text-align: center; padding-block: 72px 64px; }
.not-found h1 { font-size: clamp(30px, 4vw, 48px); }
.not-found > p:not(.eyebrow) { color: var(--journal-muted); }
.not-found img { margin-top: 48px; width: 100%; height: auto; }
.solid-link { display: inline-flex; align-items: center; min-height: 48px; gap: 24px; padding: 10px 22px; background: var(--journal-teal); color: #fff; }
.solid-link:hover { background: #10544e; color: #fff; }
.comments-area { padding: 0 0 64px; }
.comments-area h2 { font-size: 25px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 24px 0; border-bottom: 1px solid var(--journal-border); }
.comment-author { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.comment-author .avatar { border-radius: 50%; margin-right: 5px; }
.comment-metadata { font-size: 12px; color: var(--journal-muted); margin-top: 8px; }
.comment-content { margin-top: 16px; overflow-wrap: anywhere; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-reply-link { display: inline-block; min-height: 36px; font-size: 13px; color: var(--journal-teal); }
.comment-respond { padding-top: 32px; }
.comment-form label { display: block; font-size: 14px; margin-bottom: 7px; }
.comment-form input:not([type="checkbox"]), .comment-form textarea { width: 100%; border: 1px solid #aebfbf; border-radius: 0; padding: 12px; color: var(--journal-ink); background: #fff; max-width: 100%; }
.comment-form textarea { min-height: 160px; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 12px; align-items: flex-start; }
.comment-form-cookies-consent input { margin-top: 5px; }
.comment-form .submit { width: auto !important; min-height: 48px; padding: 10px 24px !important; background: var(--journal-teal) !important; color: #fff !important; border-color: var(--journal-teal) !important; cursor: pointer; }
.site-footer { background: #f3f7f6; border-top: 1px solid var(--journal-border); }
.footer-inner { padding-block: 44px 32px; display: flex; justify-content: space-between; gap: 32px; }
.footer-brand { display: inline-block; }
.footer-inner p { color: var(--journal-muted); font-size: 14px; margin: 12px 0 0; }
.footer-inner nav { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 24px; font-size: 13px; padding-top: 10px; }
.footer-inner nav a { display: inline-flex; gap: 12px; min-height: 32px; }
.footer-bottom { color: var(--journal-muted); font-size: 12px; border-top: 1px solid var(--journal-border); padding-block: 20px calc(96px + env(safe-area-inset-bottom, 0px)); }

/* Same launcher shape as the homepage; reserve footer space for the fixed control. */
.journal-contact-button { position: fixed; right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 50; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 999px; background: #214f98; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.5; box-shadow: 0 5px 18px #11131824; }
.journal-contact-button:hover { background: #1b437f; }
.journal-contact-button:disabled { cursor: wait; opacity: .72; }
.journal-contact-button:focus-visible, .journal-contact-actions button:focus-visible { outline: 3px solid var(--journal-blue); outline-offset: 4px; }
.journal-contact-button[hidden], .journal-contact-actions button[hidden] { display: none; }
.journal-contact-dialog { margin: auto; width: min(420px, calc(100% - 40px)); max-height: calc(100dvh - 48px); overflow: auto; padding: 28px; border: 1px solid var(--journal-border); background: #fff; color: var(--journal-ink); }
.journal-contact-dialog::backdrop { background: #11131866; }
.journal-contact-dialog h2 { margin: 0; font-size: 24px; line-height: 1.4; letter-spacing: -.03em; }
.journal-contact-dialog p { margin: 12px 0 0; color: var(--journal-muted); font-size: 16px; }
.journal-contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.journal-contact-actions button { min-height: 44px; padding: 8px 18px; border: 1px solid var(--journal-border); background: #fff; color: var(--journal-ink); }
.journal-contact-actions [data-contact-close] { border-color: #111318; background: #111318; color: #fff; }

@media (max-width: 1100px) {
    .header-inner, .section-shell, .footer-inner, .footer-bottom { width: calc(100% - 64px); }
    .desktop-nav { gap: 20px; }
    .header-actions { gap: 18px; }
    .header-inner { gap: 24px; }
    .journal-label { display: none; }
    .hero-copy { max-width: 350px; top: 28px; left: 36px; }
    .hero-copy h1 { font-size: 42px; margin-bottom: 16px; }
    .hero-description { margin-bottom: 16px; font-size: 15px; }
    .hero-copy .eyebrow { margin-bottom: 12px; }
}
@media (max-width: 900px) {
    .desktop-nav { display: none; }
    .mobile-menu { display: block; }
    .header-actions { gap: 18px; }
    .journal-label { display: block; }
    .journal-hero { width: calc(100% - 48px); }
    .hero-copy { position: relative; top: auto; left: auto; max-width: none; padding: 38px 36px 6px; }
    .hero-copy h1 { font-size: 44px; }
    .hero-description { font-size: 16px; }
    .hero-art { width: 100%; height: auto; }
    .topic-note { gap: 20px; }
    .topic-note i { padding-inline: 8px; }
    .post-grid { gap: 0 28px; }
    .article-shell { width: calc(100% - 64px); }
    .comments-area { width: calc(100% - 64px); }
    .footer-inner { flex-direction: column; gap: 20px; }
}
@media (max-width: 640px) {
    .journal-contact-button { right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
    .header-inner, .section-shell, .footer-inner, .footer-bottom { width: calc(100% - 40px); }
    .header-inner { min-height: 76px; gap: 16px; }
    .brand img { width: 100px; }
    .brand-lockup { gap: 16px; }
    .journal-label { display: block; padding-left: 16px; font-size: 13px; }
    .header-actions { gap: 12px; }
    .language-switch { padding-left: 0; border-left: 0; }
    .journal-hero { margin-top: 16px; width: calc(100% - 24px); }
    .hero-copy { padding: 32px 24px 16px; }
    .hero-copy h1 { font-size: 38px; }
    .hero-copy .eyebrow { font-size: 10px; letter-spacing: .14em; }
    .hero-description { font-size: 15px; margin-bottom: 12px; }
    .hero-link { font-size: 13px; min-height: 42px; }
    .topic-note { align-items: flex-start; gap: 8px; flex-direction: column; padding-block: 22px; position: relative; }
    .topic-note p { font-size: 13px; padding-right: 12px; }
    .topic-note i { padding-inline: 4px; }
    .topic-sun { position: absolute; right: 0; top: 25px; width: 10px; height: 10px; }
    .stories { padding-block: 42px 64px; }
    .stories-heading { display: block; margin-bottom: 24px; }
    .stories-title { font-size: 28px; }
    .journal-search { width: 100%; margin-top: 24px; }
    .journal-search input { font-size: 16px; }
    .topic-nav { padding-bottom: 22px; gap: 6px; }
    .topic-nav a { padding-inline: 15px; }
    .post-grid { grid-template-columns: minmax(0, 1fr); }
    .post-card, .no-cover { padding-block: 28px; }
    .post-card :is(h2, h3), .no-cover :is(h2, h3) { font-size: 24px; }
    .post-meta { font-size: 12px; gap: 12px; }
    .post-excerpt { font-size: 16px; }
    .empty-stories { padding: 36px 20px; margin-top: 24px; }
    .empty-stories :is(h2, h3) { font-size: 21px; }
    .empty-stories p { font-size: 15px; }
    .article-shell { width: calc(100% - 40px); margin-block: 28px 48px; }
    .article-header { margin-bottom: 28px; }
    .article-header .back-link { margin-bottom: 20px; }
    .article-header h1 { font-size: 34px; }
    .article-cover { margin-bottom: 32px; }
    .entry-content { font-size: 17px; line-height: 1.85; }
    .entry-content h2 { font-size: 26px; }
    .entry-content h3 { font-size: 22px; }
    .entry-content blockquote { padding: 16px 20px; }
    .post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .comments-area { width: calc(100% - 40px); padding-bottom: 48px; }
    .comment-list .children { padding-left: 16px; }
    .footer-inner { padding-block: 32px 24px; }
    .footer-inner nav { gap: 12px 24px; }
    .not-found { padding-block: 48px; }
}
@media (max-width: 480px) {
    .journal-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
