:root {
    --ink: #172d2b;
    --subtle: #66756d;
    --pine: #183c37;
    --pine-soft: #28564d;
    --cream: #f7f4ec;
    --paper: #fffdf7;
    --sand: #e9e1d1;
    --gold: #a88145;
    --line: rgba(23, 45, 43, 0.11);
    --white: #ffffff;
    --shadow: 0 26px 70px rgba(30, 39, 34, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
    line-height: 1.55;
}

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 244, 236, 0.92);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 42px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-right: auto;
}

.brand-mark {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--cream);
    background: var(--pine);
    font: 27px Georgia, serif;
}

.brand strong {
    display: block;
    font-size: 21px;
    letter-spacing: -0.04em;
}

.brand small {
    display: block;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 0.27em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--subtle);
    font-size: 15px;
}

.main-nav a {
    position: relative;
    padding: 29px 0;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--pine);
}

.main-nav a.active::after {
    position: absolute;
    right: 0;
    bottom: 19px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--gold);
}

.admin-link {
    padding: 10px 19px;
    border: 1px solid var(--line);
    border-radius: 24px;
    color: var(--subtle);
    font-size: 14px;
}

.hero {
    padding: 82px 0 70px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 390px;
    align-items: center;
    gap: 70px;
}

.eyebrow {
    margin: 0 0 15px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.hero h1 {
    margin: 0 0 24px;
    font-family: Georgia, "Noto Serif KR", serif;
    font-size: clamp(49px, 5.6vw, 68px);
    font-weight: 500;
    letter-spacing: -0.09em;
    line-height: 1.18;
}

.hero-copy {
    max-width: 475px;
    margin: 0 0 40px;
    color: var(--subtle);
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    color: var(--white);
    background: var(--pine);
}

.button.ghost {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.25);
}

.button.block {
    width: 100%;
    margin-top: 8px;
}

.hero-card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 23px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.card-label {
    margin: 0 0 11px;
    color: var(--subtle);
    font-size: 13px;
}

.today {
    margin-bottom: 18px;
    font-family: Georgia, "Noto Serif KR", serif;
    font-size: 31px;
    font-weight: 500;
}

.muted {
    margin: 0 0 27px;
    color: var(--subtle);
    font-size: 14px;
}

.quick-links a {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    font-size: 15px;
}

.quick-links span,
.card-action b {
    color: var(--gold);
}

.services {
    padding: 15px 0 41px;
}

.section-heading {
    margin-bottom: 36px;
}

.section-heading h2,
.data-section h2 {
    margin: 0;
    font-family: Georgia, "Noto Serif KR", serif;
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.07em;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.service-card {
    min-height: 246px;
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.46);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    background: var(--white);
    box-shadow: 0 18px 38px rgba(36, 49, 43, 0.07);
}

.service-number {
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
}

.service-card h3 {
    margin: 45px 0 10px;
    font-size: 22px;
    letter-spacing: -0.06em;
}

.service-card p {
    min-height: 46px;
    margin: 0 0 19px;
    color: var(--subtle);
    font-size: 14px;
}

.card-action {
    font-size: 14px;
}

.data-section {
    padding: 64px 0;
    color: var(--cream);
    background: var(--pine);
}

.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stats strong {
    display: block;
    margin-bottom: 7px;
    color: var(--white);
    font-size: 30px;
    font-weight: 500;
}

.stats span {
    color: #bdc8c2;
    font-size: 13px;
}

.workspace-hero {
    padding: 42px 0 32px;
}

.back-link {
    display: inline-block;
    margin-bottom: 40px;
    color: var(--subtle);
    font-size: 14px;
}

.workspace-hero h1 {
    margin: 0 0 8px;
    font-family: Georgia, "Noto Serif KR", serif;
    font-size: 43px;
    font-weight: 500;
    letter-spacing: -0.08em;
}

.workspace-hero > .container > p:last-child {
    margin: 0;
    color: var(--subtle);
}

.workspace {
    padding: 10px 0 78px;
}

.work-grid {
    display: grid;
    grid-template-columns: 390px 1fr;
    align-items: start;
    gap: 20px;
}

.panel {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.panel-title {
    margin: 0 0 25px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.editor-panel label,
.filter-panel label {
    display: block;
    margin-bottom: 17px;
    color: var(--subtle);
    font-size: 13px;
    font-weight: 600;
}

input,
select {
    display: block;
    width: 100%;
    height: 50px;
    margin-top: 8px;
    padding: 0 14px;
    border: 1px solid #dcd7cd;
    border-radius: 8px;
    color: var(--ink);
    background: #fffdf8;
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 22px;
}

.pill {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    color: var(--subtle);
    background: var(--white);
}

.pill.selected {
    color: var(--white);
    background: var(--pine);
}

.inline-select {
    display: grid;
    grid-template-columns: 1fr 123px;
    align-items: end;
    gap: 10px;
}

.preview-note {
    margin: 19px 0 0;
    padding: 12px 14px;
    border-radius: 7px;
    color: var(--subtle);
    background: #f7f5ee;
    font-size: 13px;
}

.output-panel {
    min-height: 600px;
}

.paper {
    margin: 0 auto;
    border: 1px solid var(--sand);
    color: #29271f;
    background: var(--paper);
    box-shadow: 0 14px 32px rgba(40, 34, 20, 0.05);
}

.jibang-paper {
    width: 190px;
    min-height: 470px;
    padding: 55px 46px;
    text-align: center;
    writing-mode: vertical-rl;
    font-family: "Batang", "Noto Serif KR", serif;
    font-size: 39px;
    letter-spacing: 0.12em;
}

.jibang-paper p {
    margin: 0 11px;
}

.paper-name {
    color: var(--gold);
}

.chukmun-paper {
    max-width: 510px;
    min-height: 500px;
    padding: 43px 48px;
    font-family: "Batang", "Noto Serif KR", serif;
}

.chukmun-paper div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(167, 129, 69, 0.16);
}

.chukmun-paper b {
    font-weight: 500;
}

.search-suggestion {
    margin: -3px 0 20px;
    padding: 14px;
    border-radius: 8px;
    background: #f5f3ea;
}

.search-suggestion strong,
.search-suggestion span {
    display: block;
    font-size: 13px;
}

.search-suggestion span {
    margin-top: 3px;
    color: var(--subtle);
}

.date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.notice-paper {
    max-width: 510px;
    min-height: 560px;
    padding: 52px 46px;
    text-align: center;
    font-family: "Batang", "Noto Serif KR", serif;
}

.notice-paper h2 {
    margin: 5px 0 68px;
    font-size: 64px;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-indent: 0.35em;
}

.notice-paper p {
    margin: 0 0 60px;
    font-size: 21px;
    line-height: 1.95;
}

.notice-paper strong,
.notice-paper span {
    display: block;
    margin-top: 23px;
}

.calendar-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    align-items: start;
    gap: 20px;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 5px;
    color: #6c5832;
    background: #fff1c9;
    font-size: 12px;
    font-weight: 600;
}

.tag.move {
    color: #214d47;
    background: #dfeae5;
}

.tag.nohand {
    color: #62592c;
    background: #eee8c9;
}

.tag.holiday {
    color: #8e3933;
    background: #f7e6e4;
}

.calendar-panel {
    padding: 29px;
}

.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.calendar-head h2 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.06em;
}

.calendar-head button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--subtle);
    background: transparent;
}

.weekdays,
.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.weekdays span {
    padding: 0 0 16px;
    color: var(--subtle);
    text-align: center;
    font-size: 13px;
}

.weekdays span:first-child {
    color: #a3433c;
}

.days > div {
    min-height: 92px;
    padding: 10px 8px;
    border-top: 1px solid var(--line);
}

.days b {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}

.days .selected-day {
    border-radius: 8px;
    background: #f4f1e8;
}

.days .empty-day {
    background: rgba(247, 244, 236, 0.32);
}

.days small {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.site-footer {
    padding: 31px 0 38px;
    border-top: 1px solid var(--line);
    color: var(--subtle);
    font-size: 13px;
}

.site-footer strong {
    color: var(--ink);
    font-size: 17px;
}

.site-footer p {
    margin: 7px 0 0;
}

@media (max-width: 980px) {
    .main-nav,
    .admin-link {
        display: none;
    }

    .hero-grid,
    .data-grid,
    .work-grid,
    .calendar-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 52px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        margin-top: 20px;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 32px, 1160px);
    }

    .hero h1 {
        font-size: 43px;
    }

    .service-grid,
    .stats {
        grid-template-columns: 1fr;
    }

    .days > div {
        min-height: 72px;
        padding: 7px 3px;
    }
}
