:root {
    --gw-bg: #f7f3ea;
    --gw-ink: #1f1c18;
    --gw-muted: #6f675c;
    --gw-faint: #a49a8b;
    --gw-line: #d8cdbb;
    --gw-line-strong: #a99b86;
    --gw-paper: #fffdf7;
    --gw-money: #17815d;
    --gw-saju: #9d6e1f;
    --gw-fromise: #7f9f16;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body.gw-page {
    min-height: 100%;
    margin: 0;
    color: var(--gw-ink);
    background: var(--gw-bg);
    font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.gw-shell {
    width: min(100% - 40px, 980px);
    margin: 0 auto;
    padding: 28px 0 56px;
}

.gw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--gw-line);
}

.gw-brand,
.gw-nav a,
.gw-tool__number,
.gw-tool__status,
.gw-tool__url,
.gw-log time,
.gw-build-label {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0.02em;
}

.gw-brand,
.gw-nav a {
    color: var(--gw-ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.gw-nav {
    display: flex;
    gap: 18px;
}

.gw-nav a {
    color: var(--gw-muted);
}

.gw-nav a:hover {
    color: var(--gw-ink);
    text-decoration: underline;
    text-underline-offset: 0.22em;
}

.gw-intro {
    max-width: 790px;
    padding: 64px 0 54px;
}

.gw-label {
    margin: 0 0 18px;
    color: var(--gw-muted);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gw-intro h1 {
    margin: 0;
    font-size: clamp(39px, 6.8vw, 76px);
    font-weight: 900;
    letter-spacing: -0.075em;
    line-height: 1.04;
    word-break: keep-all;
}

.gw-intro__lead {
    max-width: 700px;
    margin: 28px 0 0;
    color: #332e27;
    font-size: clamp(18px, 2.4vw, 25px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.48;
    word-break: keep-all;
}

.gw-intro__meta {
    display: inline-flex;
    margin: 22px 0 0;
    padding-top: 12px;
    color: var(--gw-muted);
    border-top: 1px solid var(--gw-line);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gw-section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
    align-items: end;
    padding: 18px 0;
    border-top: 2px solid var(--gw-ink);
    border-bottom: 1px solid var(--gw-line);
}

.gw-section-head h2,
.gw-log h2,
.gw-footer h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 1.1;
    word-break: keep-all;
}

.gw-section-head p {
    margin: 0;
    color: var(--gw-muted);
    font-size: 15px;
    line-height: 1.7;
    word-break: keep-all;
}

.gw-tool-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gw-tool {
    --gw-accent: var(--gw-faint);
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) minmax(150px, 0.32fr);
    gap: 22px;
    align-items: start;
    min-height: 164px;
    padding: 26px 0;
    color: var(--gw-ink);
    border-bottom: 1px solid var(--gw-line);
    text-decoration: none;
}

.gw-tool:hover {
    background:
        linear-gradient(90deg, rgba(255, 253, 247, 0.82), transparent 62%);
}

.gw-tool__number {
    color: var(--gw-faint);
    font-size: 19px;
    font-weight: 700;
}

.gw-tool__body,
.gw-tool__topline,
.gw-tool__summary,
.gw-tool__note,
.gw-tool__url {
    display: block;
}

.gw-tool__topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.gw-tool__title {
    display: block;
    font-size: clamp(29px, 4vw, 44px);
    font-weight: 900;
    letter-spacing: -0.07em;
    line-height: 1;
}

.gw-tool__title span {
    margin-left: 6px;
    color: #40392f;
    font-size: 0.58em;
    letter-spacing: -0.05em;
}

.gw-tool__status {
    flex: 0 0 auto;
    color: var(--gw-accent);
    font-size: 15px;
    font-weight: 700;
}

.gw-tool__summary {
    margin-top: 14px;
    color: #3d372f;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.45;
    word-break: keep-all;
}

.gw-tool__note {
    max-width: 620px;
    margin-top: 9px;
    color: var(--gw-muted);
    font-size: 14px;
    line-height: 1.68;
    word-break: keep-all;
}

.gw-tool__url {
    align-self: end;
    overflow: hidden;
    color: var(--gw-faint);
    font-size: 15px;
    font-weight: 700;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gw-tool--moneybook {
    --gw-accent: var(--gw-money);
}

.gw-tool--saju {
    --gw-accent: var(--gw-saju);
}

.gw-tool--fromise {
    --gw-accent: var(--gw-fromise);
}

.gw-log {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid var(--gw-line-strong);
}

.gw-log ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gw-log li {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    color: var(--gw-muted);
    font-size: 14px;
    line-height: 1.5;
}

.gw-log time {
    color: var(--gw-faint);
    font-size: 13px;
    font-weight: 700;
}

.gw-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: end;
    margin-top: 42px;
    padding-top: 24px;
    border-top: 2px solid var(--gw-ink);
}

.gw-footer p {
    max-width: 560px;
    margin: 12px 0 0;
    color: var(--gw-muted);
    font-size: 15px;
    line-height: 1.7;
    word-break: keep-all;
}

.gw-footer a {
    color: var(--gw-ink);
    font-weight: 800;
    text-decoration-color: rgba(127, 159, 22, 0.5);
    text-decoration-thickness: 0.12em;
    text-underline-offset: 0.2em;
    white-space: nowrap;
}

.gw-build-label {
    position: fixed;
    right: 12px;
    bottom: 10px;
    z-index: 5;
    color: rgba(31, 28, 24, 0.26);
    font-size: 11px;
    pointer-events: none;
}

@media (max-width: 780px) {
    .gw-shell {
        width: min(100% - 28px, 980px);
        padding-top: 22px;
        padding-bottom: 48px;
    }

    .gw-intro {
        padding: 42px 0 36px;
    }

    .gw-intro h1 {
        font-size: clamp(34px, 10vw, 52px);
    }

    .gw-intro__lead {
        margin-top: 22px;
        font-size: 18px;
    }

    .gw-section-head,
    .gw-log,
    .gw-footer {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gw-tool {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 14px;
        min-height: 0;
        padding: 22px 0;
    }

    .gw-tool__url {
        grid-column: 2;
        align-self: auto;
        text-align: left;
    }

    .gw-tool__topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .gw-tool__title {
        font-size: clamp(28px, 8.8vw, 38px);
    }

    .gw-log li {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;
    }

    .gw-footer a {
        white-space: normal;
    }

    .gw-build-label {
        position: static;
        display: block;
        width: min(100% - 28px, 980px);
        margin: -30px auto 10px;
        text-align: right;
    }
}
