:root {
    --primary-background: #FDFBF7;
    --primary-text: #2C2A29;
    --secondary-background: #F4EFEA;
    --secondary-text: #6E6963;
    --card-background: #FFFFFF;
    --accent-color: #8C6D58;
    --accent-hover: #735744;
    --border-color: #E8E2D9;
    --input-bg: #FFFFFF;
    --input-border: #D8D0C5;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--primary-background);
    color: var(--primary-text);
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Serif KR', serif;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: inherit;
}

h1 {
    font-size: clamp(2rem, 3.8vw + 1rem, 2.75rem);
}

h2 {
    font-size: clamp(1.6rem, 2.4vw + 0.8rem, 2.2rem);
}

h3 {
    font-size: clamp(1.3rem, 1.6vw + 0.6rem, 1.65rem);
}

h4 {
    font-size: clamp(1.15rem, 1.1vw + 0.4rem, 1.35rem);
}

h5 {
    font-size: clamp(1.05rem, 0.8vw + 0.3rem, 1.2rem);
}

h6 {
    font-size: 1rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover,
a:focus {
    color: var(--accent-hover);
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: 'Noto Sans KR', sans-serif;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.85rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    h5 {
        font-size: 1rem;
    }

    a[href^="mailto:"],
    a[href^="http://"],
    a[href^="https://"] {
        word-break: break-all;
        font-size: 0.95rem;
    }
}

/* ===== header_block ===== */
.site-header {
    overflow: hidden;
    background-color: var(--primary-background);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    width: 100%
}

.site-nav {
    padding: 14px 0;
    background-color: var(--primary-background)
}

.header-inner {
    min-height: 48px
}

.brand-group {
    color: var(--primary-text);
    font-weight: 700;
    letter-spacing: -0.02em
}

.brand-icon {
    color: var(--accent-color);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: var(--secondary-background)
}

.brand-title {
    color: var(--primary-text);
    font-size: 1.05rem;
    white-space: nowrap
}

@media(max-width:767px) {
    .brand-title {
        font-size: 0.75rem
    }
}

.desktop-menu {
    gap: 28px
}

.desktop-menu .nav-link {
    color: var(--secondary-text);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 0;
    transition: color .2s ease
}

.desktop-menu .nav-link:hover {
    color: var(--accent-color)
}

.action-group {
    gap: 12px
}

.btn-cta {
    background-color: var(--accent-color);
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 6px;
    transition: background-color .2s ease;
    border: none
}

.btn-cta,
.btn-cta:link,
.btn-cta:visited,
.btn-cta:hover,
.btn-cta:focus,
.btn-cta:focus-visible,
.btn-cta:active {
    color: #FFFFFF
}

.btn-cta:hover {
    background-color: var(--accent-hover)
}

.mobile-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--primary-text);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0
}

.mobile-dropdown-menu {
    display: none;
    background-color: var(--primary-background);
    border-top: 1px solid var(--border-color)
}

.mobile-dropdown-menu.open {
    display: block
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--primary-text);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1px solid var(--secondary-background)
}

.mobile-cta-link {
    display: block;
    width: 100%;
    min-height: 44px;
    line-height: 44px;
    background-color: var(--accent-color);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 8px
}

.mobile-cta-link,
.mobile-cta-link:link,
.mobile-cta-link:visited,
.mobile-cta-link:hover,
.mobile-cta-link:focus,
.mobile-cta-link:focus-visible,
.mobile-cta-link:active {
    color: #FFFFFF
}

.mobile-cta-link:hover {
    background-color: var(--accent-hover)
}

/* ===== hero_block ===== */
#hero.hero-section {
    width: 100%;
    overflow: hidden;
}

#hero .hero-main-img {
    height: 380px;
    width: 100%;
    object-fit: cover;
}

@media (min-width: 992px) {
    #hero .hero-main-img {
        height: 500px;
    }

    #hero .hero-heading {
        font-size: 2.25rem;
    }
}

@media (max-width: 767.98px) {
    #hero .hero-heading {
        font-size: 1.125rem !important;
        line-height: 1.25 !important;
    }

    #hero h2.h6 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }

    #hero .hero-description {
        font-size: 0.9rem !important;
    }

    #hero .hero-main-img {
        height: 260px;
    }
}

/* ===== space_block ===== */
.reading-space-section {
    background-color: var(--primary-background);
    color: var(--primary-text);
    hyphens: auto
}

.reading-badge {
    background-color: var(--secondary-background);
    color: var(--accent-color);
    font-size: 0.875rem;
    letter-spacing: -0.02em
}

.reading-title {
    color: var(--primary-text);
    font-size: 2rem;
    line-height: 1.25
}

@media(max-width:767.98px) {
    .reading-title {
        font-size: 1rem;
        line-height: 1.2
    }
}

@media(min-width:768px) and (max-width:991.98px) {
    .reading-title {
        font-size: 1.5rem
    }
}

.reading-subtitle {
    color: var(--secondary-text);
    font-size: 1rem;
    line-height: 1.6
}

.card-custom {
    background-color: var(--card-background);
    border: 1px solid var(--border-color)
}

.card-title-custom {
    color: var(--primary-text);
    font-size: 1.25rem;
    line-height: 1.3
}

@media(max-width:767.98px) {
    .card-title-custom {
        font-size: 0.875rem;
        line-height: 1.2
    }
}

.card-text-custom {
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.75;
    text-align: justify
}

.image-frame {
    background-color: var(--secondary-background);
    border: 1px solid var(--border-color);
    overflow: hidden
}

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

@media(max-width:767.98px) {
    .image-frame img {
        height: 220px
    }
}

/* ===== lighting_block ===== */
#lighting-ambience {
    word-break: keep-all;
    hyphens: auto;
}

#lighting-ambience .object-fit-cover {
    object-fit: cover;
}

@media (max-width: 767.98px) {
    #lighting-ambience h2 {
        font-size: 1rem;
        line-height: 1.25;
    }

    #lighting-ambience h3 {
        font-size: 0.875rem;
        line-height: 1.2;
    }

    #lighting-ambience .card-body {
        padding: 1.25rem !important;
    }
}

/* ===== books_block ===== */
#books-management {
    overflow: hidden;
}

#books-management .books-title {
    font-size: 1.75rem;
    word-break: keep-all;
    hyphens: auto;
}

#books-management .books-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    word-break: keep-all;
    hyphens: auto;
}

#books-management .books-card-title {
    font-size: 1.25rem;
    line-height: 1.4;
    word-break: keep-all;
    hyphens: auto;
}

#books-management .books-tip-title {
    font-size: 1.1rem;
    line-height: 1.4;
    word-break: keep-all;
    hyphens: auto;
}

#books-management .books-text {
    font-size: 0.95rem;
    line-height: 1.65;
    word-break: keep-all;
    hyphens: auto;
}

#books-management .books-img-wrapper {
    height: 240px;
    overflow: hidden;
}

#books-management .books-card-img {
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#books-management .card:hover .books-card-img {
    transform: scale(1.03);
}

@media (max-width: 767.98px) {
    #books-management .books-title {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }

    #books-management .books-card-title,
    #books-management .books-tip-title {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
    }

    #books-management .books-intro {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    #books-management .books-text {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    #books-management .books-img-wrapper,
    #books-management .books-card-img {
        height: 190px;
    }
}

/* ===== habits_block ===== */
#reading-habits {
    overflow: hidden;
    background-color: var(--primary-background);
    color: var(--primary-text);
}

.reading-habits-badge {
    background-color: var(--secondary-background);
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.reading-habits-title {
    color: var(--primary-text);
    letter-spacing: -0.02em;
    hyphens: auto;
}

.reading-habits-intro {
    color: var(--secondary-text);
    font-size: 1rem;
    line-height: 1.6;
}

.reading-habit-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reading-habit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 42, 41, 0.06);
}

.reading-habit-icon-wrap {
    width: 48px;
    height: 48px;
    background-color: var(--secondary-background);
}

.reading-habit-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
}

.reading-habit-heading {
    color: var(--primary-text);
    font-size: 1.15rem;
    line-height: 1.3;
}

.reading-habit-desc {
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: keep-all;
}

.reading-habit-image {
    height: 260px;
    object-fit: cover;
    display: block;
}

.reading-img-frame {
    border: 1px solid var(--border-color);
}

@media (max-width: 767.98px) {
    .reading-habits-title {
        font-size: 1rem;
        line-height: 1.25;
    }

    .reading-habit-heading {
        font-size: 0.875rem;
        line-height: 1.2;
    }

    .reading-habits-intro,
    .reading-habit-desc {
        font-size: 0.875rem;
    }

    .reading-habit-image {
        height: 210px;
    }
}

/* ===== team_block ===== */
.faces-voices-section {
    background-color: var(--primary-background);
    color: var(--primary-text);
}

.faces-voices-badge {
    background-color: var(--secondary-background);
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.faces-voices-heading {
    color: var(--primary-text);
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    hyphens: auto;
}

@media (max-width: 767.98px) {
    .faces-voices-heading {
        font-size: 1rem;
        line-height: 1.25;
    }

    .faces-voices-name {
        font-size: 0.875rem;
        line-height: 1.2;
    }

    .faces-voices-quote p {
        font-size: 0.85rem;
    }
}

.faces-voices-intro {
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: keep-all;
    hyphens: auto;
}

.faces-voices-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.faces-voices-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(44, 42, 41, 0.08) !important;
}

.faces-voices-avatar-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 4px;
    border: 2px solid var(--border-color);
    background-color: var(--primary-background);
}

.faces-voices-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.faces-voices-name {
    color: var(--primary-text);
}

.faces-voices-role {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 500;
}

.faces-voices-quote {
    color: var(--secondary-text);
    font-size: 0.925rem;
    line-height: 1.6;
    word-break: keep-all;
    hyphens: auto;
}

/* ===== faq_block ===== */
#faq {
    hyphens: auto;
}

#faq .accordion-item {
    border-color: var(--border-color) !important;
    background-color: var(--card-background);
}

#faq .accordion-button {
    color: var(--primary-text);
    background-color: var(--card-background);
    font-size: 1rem;
    padding: 1.2rem 1.25rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#faq .accordion-button:not(.collapsed) {
    color: var(--accent-hover);
    background-color: var(--secondary-background);
    box-shadow: none;
}

#faq .accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

#faq .accordion-button::after {
    filter: invert(35%) sepia(10%) saturate(1000%) hue-rotate(340deg);
    transition: transform 0.2s ease;
}

#faq .accordion-body {
    color: var(--secondary-text);
    font-size: 0.95rem;
}

@media (max-width: 767.98px) {
    #faq h2 {
        font-size: 1rem !important;
        line-height: 1.2;
    }

    #faq h3,
    #faq .accordion-button {
        font-size: 0.875rem !important;
        line-height: 1.3;
        padding: 1rem 0.9rem;
    }

    #faq .accordion-body {
        font-size: 0.8125rem !important;
    }
}

/* ===== contact_block ===== */
#contact {
    overflow: hidden;
}

#contact .contact-heading {
    font-size: 1.75rem;
    line-height: 1.3;
    hyphens: auto;
}

#contact .contact-subtext {
    font-size: 0.95rem;
    hyphens: auto;
}

@media (max-width: 767.98px) {
    #contact .contact-heading {
        font-size: 1rem;
        line-height: 1.2;
    }

    #contact .contact-subtext {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    #contact .contact-card {
        padding: 1.5rem 1rem !important;
    }
}

#contact .contact-input,
#contact .contact-textarea {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

#contact .contact-input::placeholder,
#contact .contact-textarea::placeholder {
    color: var(--secondary-text);
    opacity: 0.7;
}

#contact .contact-input:focus,
#contact .contact-textarea:focus {
    background-color: var(--input-bg);
    color: var(--primary-text);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(140, 109, 88, 0.25);
    outline: none;
}

#contact .contact-checkbox {
    border-color: var(--input-border);
    border-radius: 4px;
    cursor: pointer;
}

#contact .contact-checkbox:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

#contact .contact-submit-btn {
    transition: background-color 0.2s ease, transform 0.1s ease;
}

#contact .contact-submit-btn:hover {
    background-color: var(--accent-hover) !important;
}

#contact .contact-submit-btn:active {
    transform: scale(0.99);
}

#contact .contact-link:hover {
    color: var(--accent-hover) !important;
}

/* ===== footer_block ===== */
#footer.footer-section {
    background-color: var(--secondary-background);
    border-top: 1px solid var(--border-color);
    color: var(--primary-text);
}

#footer .footer-brand-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-text);
    letter-spacing: -0.01em;
}

#footer .footer-description {
    color: var(--secondary-text);
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 480px;
}

#footer .footer-column-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-text);
}

#footer .footer-link-list li {
    margin-bottom: 0.625rem;
}

#footer .footer-link-list li:last-child {
    margin-bottom: 0;
}

#footer .footer-nav-link {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease-in-out;
}

#footer .footer-nav-link:hover,
#footer .footer-nav-link:focus {
    color: var(--accent-color);
    text-decoration: underline;
}

#footer .footer-divider {
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
}

#footer .copyright-text {
    color: var(--secondary-text);
    font-size: 0.875rem;
}

#footer .footer-accordion .accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
}

#footer .footer-accordion .accordion-button {
    background: transparent;
    box-shadow: none;
    color: var(--primary-text);
    font-size: 0.95rem;
    font-weight: 600;
}

#footer .footer-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--accent-color);
    box-shadow: none;
}

#footer .footer-accordion .accordion-button::after {
    filter: invert(30%);
}

@media (max-width: 767.98px) {
    #footer .footer-brand-title {
        font-size: 0.8rem;
    }

    #footer .footer-description {
        font-size: 0.875rem;
        line-height: 1.4;
        hyphens: auto;
    }

    #footer .accordion-title-text {
        font-size: 0.875rem;
    }

    #footer .footer-nav-link {
        font-size: 0.875rem;
    }

    #footer .copyright-text {
        font-size: 0.75rem;
    }
}