:root {
    --ink: #1c1915;
    --paper: #f3efe6;
    --card: #fffdf8;
    --line: #e3d9c8;
    --teal: #0f5c56;
    --teal-deep: #0b403c;
    --muted: #6f675d;
    --amber: #a15c12;
    --shadow: 0 18px 40px rgba(28, 25, 21, 0.06);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.25rem;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: "IBM Plex Sans KR", sans-serif;
}

.site-nav {
    background: rgba(28, 25, 21, 0.96);
    backdrop-filter: blur(10px);
}

.site-nav .navbar-brand,
.site-nav .nav-link {
    color: #f6f1e8;
}

.site-nav .nav-link {
    font-size: 0.95rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
    color: #f0c38a;
}

.eyebrow {
    font-family: Newsreader, "IBM Plex Sans KR", serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 650;
    margin-bottom: 0.75rem;
}

.hero {
    padding: 8.5rem 0 4rem;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: 1rem;
}

.slogan {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 600;
    line-height: 1.45;
    max-width: 46rem;
    margin-bottom: 1rem;
}

.summary {
    max-width: 48rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.summary + .summary {
    margin-top: 0.85rem;
}

.btn-teal,
.btn-line {
    border-radius: 999px;
    padding: 0.72rem 1.25rem;
    font-weight: 600;
}

.btn-teal {
    background: var(--teal);
    color: #fff;
    border: 1px solid var(--teal);
}

.btn-teal:hover,
.btn-teal:focus {
    background: var(--teal-deep);
    border-color: var(--teal-deep);
    color: #fff;
}

.btn-line {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
}

.btn-line:hover,
.btn-line:focus {
    background: var(--ink);
    color: #fff;
}

.section {
    padding: 1.5rem 0 4.5rem;
}

.section h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.section-lead {
    max-width: 44rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.35rem;
}

.specialty,
.portfolio-card,
.contact-panel,
.admin-card,
.login-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
}

.specialty,
.portfolio-card,
.contact-panel {
    padding: 1.4rem 1.45rem;
    height: 100%;
}

.specialty h3,
.portfolio-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.specialty p,
.portfolio-card p,
.contact-copy {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0;
}

.stack-title {
    margin-top: 2.4rem;
}

.skill-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.9rem;
}

.skill-group {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    padding: 1.15rem 1.2rem 1.25rem;
}

.skill-group h3 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.skill,
.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0.32rem 0.75rem;
    font-size: 0.92rem;
}

.tag {
    color: var(--teal-deep);
    background: #f3faf8;
    border-color: #d5ebe7;
    font-size: 0.82rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.9rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.status {
    border-radius: 999px;
    padding: 0.18rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-ongoing {
    background: #fff1df;
    color: var(--amber);
}

.status-done {
    background: #e7f6ee;
    color: #1d7a4d;
}

.card-summary + .card-summary {
    margin-top: 0.7rem;
}

.highlights {
    margin: 0.9rem 0 0;
    padding-left: 1.15rem;
    color: var(--ink);
}

.highlights li + li {
    margin-top: 0.28rem;
}

.role-label {
    margin-top: 1rem;
    margin-bottom: 0.2rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.role-text {
    color: var(--ink);
    line-height: 1.7;
    margin-bottom: 0;
}

.ad-slot {
    padding: 0 0 2.5rem;
}

.ad-slot .adsbygoogle {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.contact-band {
    padding-bottom: 5rem;
}

.contact-copy {
    font-size: 1.02rem;
    margin-bottom: 0.75rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.3rem 0 2rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.site-footer a {
    color: var(--teal-deep);
    text-decoration: none;
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.login-card {
    width: min(100%, 28rem);
    margin: 0 auto;
    padding: 2rem 1.7rem;
}

.admin-top {
    background: var(--ink);
    color: #f6f1e8;
}

.admin-top a {
    color: #f6f1e8;
    text-decoration: none;
}

.admin-shell {
    padding: 2rem 0 4rem;
}

.admin-card {
    padding: 1.25rem;
}

.inquiry-content {
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 26rem;
    max-height: 8.5rem;
    overflow: auto;
}

.inquiry-title {
    word-break: break-word;
    min-width: 8rem;
}

.table thead th {
    white-space: nowrap;
    color: var(--muted);
    font-weight: 600;
}

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

@media (max-width: 767.98px) {
    .hero {
        padding-top: 7rem;
    }

    .hero-actions .btn {
        width: 100%;
    }
}
