@font-face {
    font-family: "Freesentation";
    src: url("./images/FreesentationVF.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: block;
}

:root {
    --accent: #2a7fe1;
    --text: #000000;
    --text-secondary: #000000;
    --text-tertiary: #999999;
    --content-width: 680px;
    --fs-headline: 40px;
    --fs-post-title: 24px;
    --fs-list-title: 15px;
    --fs-body: 14px;
    --fs-small: 13px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    height: 100%;
    color: var(--text);
    font-family: "Freesentation", "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Corner nav */
.corner {
    position: fixed;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 11px;
}

.corner-tl {
    top: 40px;
    left: 40px;
    align-items: flex-start;
    max-width: 220px;
}

.corner-br {
    bottom: 40px;
    right: 40px;
    align-items: flex-end;
}

@media (max-width: 640px) {
    .corner-br {
        top: 40px;
        bottom: auto;
        right: 40px;
        left: auto;
    }
}

.corner-label {
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    color: var(--text);
}

.corner-label:hover, .corner-toggle.active {
    text-decoration: line-through;
}

.corner-group {
    display: flex;
    flex-direction: column;
}

.corner-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.corner-panel.open {
    max-height: 420px;
    opacity: 1;
}

.category-tree {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
    padding-left: 12px;
}

.category-tree ul {
    list-style: none;
    margin: 0;
    padding: 0 0 0 12px;
}

.category-tree > ul {
    padding-left: 0;
}

.category-tree li {
    display: flex;
    flex-direction: column;
}

.category-tree a {
    display: block;
    font-size: 12px;
    letter-spacing: 0.03em;
    color: var(--text);
    padding: 4px 0;
}

.category-tree li ul a {
    font-size: 12px;
    color: var(--text-secondary);
}

.category-tree a:hover {
    color: var(--accent);
}

.search-form {
    padding-top: 8px;
}

.search-input {
    width: 160px;
    font-size: 11px;
    font-family: inherit;
    color: var(--text);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-tertiary);
    border-radius: 0;
    padding: 6px 0;
    outline: none;
}

.search-input:focus {
    border-bottom-color: var(--text);
}

/* Scroll area / content */
.scroll-area {
    position: absolute;
    inset: 0;
    overflow-y: auto;
}

.content {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding: 200px 24px 200px;
}

.section + .section {
    margin-top: 40px;
}

.section-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.section-heading {
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 28px;
    font-family: inherit;
}

/* Intro cover */
.eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.headline {
    font-size: var(--fs-headline);
    line-height: 1.15;
    font-weight: 500;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.intro-desc {
    font-size: var(--fs-list-title);
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 32px;
    max-width: 480px;
}

.hero-image {
    width: 100%;
    height: 340px;
    margin-bottom: 40px;
    background: url("./images/noimg.png") center/cover no-repeat;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image img[src=""], .hero-image img:not([src]) {
    display: none;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb .sep {
    color: var(--text-tertiary);
}

/* Post list shared */
.post-thumb {
    display: none;
    position: relative;
    overflow: hidden;
    background: url("./images/noimg.png") center/cover no-repeat;
}

.quote-text {
    font-size: 22px;
    line-height: 1.6;
    font-weight: 500;
    margin: 0;
    max-width: 480px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.gallery-grid .post-thumb {
    display: block;
    aspect-ratio: 1 / 1;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.links-list a {
    font-size: var(--fs-small);
}

.links-list a:hover {
    text-decoration: line-through;
}

.social-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.social-link {
    font-size: var(--fs-small);
}

.social-link:hover {
    text-decoration: line-through;
}

.post-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-thumb-img[src=""], .post-thumb-img:not([src]) {
    display: none;
}

.post-excerpt {
    display: none;
}

.post-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.post-date {
    font-size: 11px;
    color: var(--text-tertiary);
}

.post-title-text {
    font-size: var(--fs-list-title);
    font-weight: 500;
}

/* list style */
.list--list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.list--list .post-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.list--list .post-excerpt {
    display: block;
    font-size: var(--fs-small);
    line-height: 1.7;
    color: var(--text-secondary);
    order: 3;
}

.list--list .post-row:hover .post-title-text {
    color: var(--accent);
}

/* gallery style */
.list--gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.list--gallery .post-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list--gallery .post-thumb {
    display: block;
    aspect-ratio: 1 / 1;
}

.list--gallery .post-title-text {
    font-size: var(--fs-body);
    font-weight: 400;
}

.list--gallery .post-row:hover .post-title-text {
    color: var(--accent);
}

/* memo style */
.list--memo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 24px;
}

.list--memo .post-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.list--memo .post-date {
    order: -1;
}

.list--memo .post-excerpt {
    display: block;
    font-size: var(--fs-small);
    line-height: 1.7;
    color: var(--text-secondary);
}

.list--memo .post-row:hover .post-title-text {
    color: var(--accent);
}

@media (max-width: 640px) {
    .list--memo {
        grid-template-columns: 1fr;
    }
}

/* mix style: thumbnail left, title/date/excerpt stacked right */
.list--mix {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.list--mix .post-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.list--mix .post-thumb {
    display: block;
    width: 110px;
    height: 110px;
    flex: none;
}

.list--mix .post-info {
    flex: 1;
    min-width: 0;
    height: 110px;
    overflow: hidden;
}

.list--mix .post-title-text {
    font-size: var(--fs-list-title);
}

.list--mix .post-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--text-secondary);
}

.list--mix .post-row:hover .post-title-text {
    color: var(--accent);
}

/* Post detail */
.post-title {
    font-size: var(--fs-post-title);
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 10px;
}

.meta-date {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

.post-body {
    font-size: var(--fs-body);
    line-height: 1.5;
    color: #222222;
    margin-bottom: 22px;
}

.post-body img {
    max-width: 100%;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    font-size: var(--fs-body);
    color: var(--text-secondary);
    padding: 20px 0;
}

.post-nav-link:hover {
    color: var(--accent);
}

#tt-body-notice .post-nav {
    display: none;
}

/* Comments toggle + widget (underline style) */
.comments-section {
    margin-top: 40px;
}

/* Comments toggle */
.comments-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 4px 0;
    margin: -4px 0;
    user-select: none;
}

.comments-toggle .section-label {
    margin-bottom: 0;
    pointer-events: none;
}

.comments-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.comments-panel.open {
    max-height: none;
    opacity: 1;
    margin-top: 28px;
}

.post-comments .tt-box-total, .post-comments .tt_box_cheers, .editorial-comments .tt-box-total {
    display: none;
}

.post-comments .tt-area-write .tt-box-account,
.editorial-comments .tt-area-write .tt-box-account {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

.post-comments .tt-area-write .tt-box-account input,
.editorial-comments .tt-area-write .tt-box-account input,
.post-comments .tt-box-textarea .tt-inner-g,
.editorial-comments .tt-box-textarea .tt-inner-g {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--text-tertiary);
    border-radius: 0;
    background: transparent;
    padding: 6px 0;
    font-size: var(--fs-small);
    font-family: inherit;
    outline: none;
}

.post-comments .tt-area-write .tt-box-account input:focus,
.editorial-comments .tt-area-write .tt-box-account input:focus,
.post-comments .tt-box-textarea .tt-inner-g:focus,
.editorial-comments .tt-box-textarea .tt-inner-g:focus {
    border-bottom-color: var(--text);
}

.post-comments .tt-box-textarea .tt-inner-g,
.editorial-comments .tt-box-textarea .tt-inner-g {
    display: block;
    min-height: 56px;
    margin-bottom: 12px;
}

.post-comments .tt-list-reply, .editorial-comments .tt-list-reply {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-comments .tt-item-reply, .editorial-comments .tt-item-reply {
    padding: 14px 0;
}

.post-comments .tt-item-reply::before, .editorial-comments .tt-item-reply::before {
    display: none;
}

.post-comments .tt-thumbnail, .editorial-comments .tt-thumbnail, .tt-box-thumb {
    display: none;
}

.post-comments .tt-link-user, .editorial-comments .tt-link-user {
    font-size: var(--fs-body);
    font-weight: 500;
    color: var(--text);
}

.post-comments .tt_date, .editorial-comments .tt_date {
    font-size: 11px;
    color: var(--text-tertiary);
}

.post-comments .tt_desc, .editorial-comments .tt_desc {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 4px;
}

.post-comments .tt-btn_register, .editorial-comments .tt-btn_register {
    appearance: none;
    border: none;
    background: var(--text);
    color: #ffffff;
    padding: 7px 16px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    cursor: pointer;
    font-family: inherit;
    border-radius: 0px;
}

.tt-link-comment .tt_txt_g {
    font-size: 11px;
}

.post-comments .tt-btn_register:hover, .editorial-comments .tt-btn_register:hover {
    background: var(--accent);
}

.post-comments .tt-list-reply-comment, .editorial-comments .tt-list-reply-comment {
    padding: 0 0 0 24px;
}

[data-tistory-react-app="Namecard"], .tt_box_namecard {
    display: none !important;
}

.container_postbtn {
    display: none !important;
}

.another_category {
    display: none !important;
}

/* Protected post */
.section-description {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    margin: 8px 0 22px;
}

.protected-form {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--text-tertiary);
    padding-bottom: 6px;
    max-width: 320px;
}

.protected-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 4px 0;
    font-size: var(--fs-small);
    font-family: inherit;
    color: var(--text);
}

.protected-submit {
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--accent);
    font-weight: 500;
    cursor: pointer;
}

/* Tag cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.tag-chip {
    font-size: var(--fs-body);
    color: var(--text-secondary);
}

.tag-chip:hover {
    color: var(--accent);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    font-size: var(--fs-body);
    color: var(--text-secondary);
    margin-top: 40px;
}

.pagination-link:hover {
    color: var(--accent);
}
.pagination-next { margin-left: auto; }

/* 이동할 페이지 없을 때 버튼 숨김 */
.pagination-link:not([href]),
.pagination-link[href=""],
.pagination-link[href="javascript:;"],
.no_more_prev,
.no_more_next {
    display: none;
}

.site-footer {
    margin-top: 80px;
    padding-bottom: 40px;
}

.footer-credit {
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
}

.footer-credit:hover {
    color: var(--accent);
}
