@font-face {
    font-family: "Aritaburi";
    src: url("/AritaBuriKR-Medium-full.woff2?v=20261008-full-kr") format("woff2");
    font-weight: 400;
    font-display: swap;
}

/* Use one regular face within each sentence, retaining component sizes. */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-weight: 400;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

strong, b {
    font-weight: inherit;
}

button, input, select, textarea {
    font-family: inherit;
    font-weight: inherit;
}

:root {
    color-scheme: dark;
    --background: #2a2a2a;
    --panel: #303030;
    --line: #565656;
    --text: #d8d8d8;
    --muted: #999;
    --strong: #f0f0f0;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--background);
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.035), transparent 34rem),
        var(--background);
    color: var(--text);
    font-family: "Aritaburi", AppleMyungjo, "Noto Serif KR", Batang, serif;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

[hidden] {
    display: none !important;
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    padding: 12px clamp(20px, 5vw, 72px);
}

.auth-logo img {
    display: block;
    width: 62px;
    height: auto;
}

.auth-header nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.auth-header a {
    text-decoration: none;
}

.auth-header nav button {
    min-height: auto;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
}

.auth-main {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 150px);
    padding: 42px 20px 72px;
}

.auth-panel {
    width: min(100%, 440px);
    padding: clamp(28px, 5vw, 50px);
    border: 1px solid var(--line);
    background: rgba(48, 48, 48, 0.74);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

.auth-kicker {
    margin: 0 0 8px;
    color: #858585;
    font-size: 11px;
    letter-spacing: 0.2em;
}

.auth-panel h1 {
    margin: 0 0 34px;
    color: var(--strong);
    font-size: clamp(26px, 4vw, 34px);
    font-weight: normal;
    letter-spacing: 0.1em;
}

.auth-form {
    display: grid;
    gap: 22px;
}

.field {
    display: grid;
    gap: 9px;
    color: #bdbdbd;
    font-size: 13px;
}

.field input {
    width: 100%;
    padding: 13px 2px 11px;
    border: 0;
    border-bottom: 1px solid #696969;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: var(--strong);
}

.field input:focus {
    border-bottom-color: #d2d2d2;
}

.field input[readonly] {
    color: #929292;
    cursor: default;
}

.agreement {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #a7a7a7;
    font-size: 12px;
    line-height: 1.65;
}

.agreement input {
    margin: 4px 0 0;
    accent-color: #b8b8b8;
}

.agreement a {
    text-underline-offset: 3px;
}

.primary-button,
.secondary-button {
    min-height: 48px;
    border: 1px solid #bdbdbd;
    cursor: pointer;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.primary-button {
    margin-top: 4px;
    background: #d7d7d7;
    color: #262626;
}

.secondary-button {
    background: transparent;
    color: #bcbcbc;
}

.primary-button:hover,
.secondary-button:hover {
    opacity: 0.8;
}

.primary-button:disabled,
.secondary-button:disabled {
    cursor: wait;
    opacity: 0.45;
}

.auth-message {
    min-height: 1.6em;
    margin: -6px 0 0;
    color: #c9ae98;
    font-size: 12px;
    line-height: 1.6;
}

.auth-message[data-state="success"] {
    color: #a9c1ad;
}

.auth-switch {
    margin: 26px 0 0;
    color: #8e8e8e;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

.auth-switch a {
    color: #d0d0d0;
    text-underline-offset: 4px;
}

.profile-list {
    display: grid;
    gap: 18px;
    margin: 0 0 30px;
}

.profile-row {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #4d4d4d;
}

.profile-row dt {
    color: #858585;
    font-size: 12px;
}

.profile-row dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: #d7d7d7;
    font-size: 14px;
}

.mypage-panel {
    width: min(100%, 720px);
}

.mypage-form h2,
.mypage-section h2 {
    margin: 0;
    color: #d7d7d7;
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 0.08em;
}

.mypage-section {
    margin-top: 38px;
    padding-top: 34px;
    border-top: 1px solid #4d4d4d;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.section-eyebrow {
    margin: 0 0 7px;
    color: #72a798;
    font-family: inherit;
    font-size: 9px;
    letter-spacing: 0.23em;
}

.text-button {
    padding: 3px 0;
    border: 0;
    border-bottom: 1px solid #707070;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    font-size: 11px;
}

.text-button:disabled {
    cursor: wait;
    opacity: 0.45;
}

.orders-list {
    display: grid;
    gap: 18px;
}

.order-card {
    padding: clamp(20px, 4vw, 28px);
    border: 1px solid #565656;
    background:
        linear-gradient(145deg, rgba(9, 71, 55, 0.2), rgba(17, 17, 17, 0.2)),
        rgba(18, 18, 18, 0.24);
}

.order-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #4b4b4b;
}

.order-date,
.order-number {
    margin: 0;
    color: #8f8f8f;
    font-family: inherit;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.04em;
}

.order-number {
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.order-status-badge {
    flex: none;
    padding: 6px 10px;
    border: 1px solid #6b9988;
    border-radius: 999px;
    color: #a6decf;
    font-size: 10px;
    letter-spacing: 0.04em;
}

.order-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 20px;
    padding: 20px 0 24px;
}

.order-name,
.order-price,
.order-quantity {
    margin: 0;
}

.order-name {
    color: #ededed;
    font-size: 16px;
    letter-spacing: 0.04em;
}

.order-price {
    grid-column: 2;
    grid-row: 1;
    color: #d3d3d3;
    font-family: inherit;
    font-size: 14px;
    text-align: right;
}

.order-quantity {
    color: #858585;
    font-size: 11px;
}

.shipping-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.shipping-step {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 10px;
    color: #777;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
    word-break: keep-all;
}

.shipping-step::before {
    position: absolute;
    top: 6px;
    right: 50%;
    z-index: 0;
    width: 100%;
    height: 1px;
    background: #545454;
    content: "";
}

.shipping-step:first-child::before {
    display: none;
}

.shipping-dot {
    position: relative;
    z-index: 1;
    width: 13px;
    height: 13px;
    border: 1px solid #656565;
    border-radius: 50%;
    background: #303030;
}

.shipping-step[data-state="complete"]::before,
.shipping-step[data-state="current"]::before {
    background: #5a9584;
}

.shipping-step[data-state="complete"] .shipping-dot,
.shipping-step[data-state="current"] .shipping-dot {
    border-color: #8fd8c3;
    background: #2b806b;
    box-shadow: 0 0 0 3px rgba(143, 216, 195, 0.1);
}

.shipping-step[data-state="complete"],
.shipping-step[data-state="current"] {
    color: #b9d6ce;
}

.shipping-step[data-state="current"] {
    color: #e0f2ed;
}

.tracking-info {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 8px 16px;
    margin: 22px 0 0;
    padding: 16px 18px;
    background: rgba(9, 71, 55, 0.28);
    color: #d4e8e1;
    font-size: 11px;
}

.tracking-info dt {
    color: #84ab9f;
}

.tracking-info dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.orders-empty {
    margin: 0;
    padding: 28px 18px;
    border: 1px solid #505050;
    color: #8e8e8e;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

.section-description {
    margin: 12px 0 22px;
    color: #909090;
    font-size: 12px;
    line-height: 1.75;
    word-break: keep-all;
}

.compact-form {
    gap: 16px;
}

.compact-form .secondary-button {
    margin-top: 2px;
}

.saved-coupon-card {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #666;
    background: rgba(18, 18, 18, 0.24);
}

.saved-coupon-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.saved-coupon-heading h3,
.coupon-form-title {
    margin: 0;
    color: #d7d7d7;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 0.06em;
}

.coupon-status {
    flex: none;
    padding: 5px 9px;
    border: 1px solid #777;
    border-radius: 999px;
    color: #bdbdbd;
    font-size: 10px;
    letter-spacing: 0.04em;
}

.coupon-status[data-state="available"] {
    border-color: #6b9988;
    color: #9fd6c2;
}

.coupon-status[data-state="attention"] {
    border-color: #a48970;
    color: #d1b397;
}

.saved-coupon-code {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0 0 16px;
    border-bottom: 1px solid #4d4d4d;
}

.saved-coupon-code span,
.saved-coupon-details span {
    color: #8f8f8f;
    font-size: 11px;
}

.saved-coupon-code strong {
    color: #ededed;
    font-size: 17px;
    font-weight: normal;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
}

.saved-coupon-details {
    display: grid;
    gap: 12px;
}

.saved-coupon-details p {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 18px;
    margin: 0;
    color: #8f8f8f;
    font-size: 12px;
}

.saved-coupon-details strong {
    color: #d7d7d7;
    font-weight: normal;
    overflow-wrap: anywhere;
}

.coupon-form-title {
    margin-top: 30px;
}

.welcome-panel {
    text-align: center;
}

.welcome-panel h1 {
    margin-bottom: 24px;
    font-size: clamp(18px, 2.5vw, 22px);
    line-height: 1.55;
    letter-spacing: 0.06em;
    word-break: keep-all;
}

.welcome-copy {
    margin: 0 0 34px;
    color: #aaa;
    font-size: 13px;
    line-height: 1.9;
    word-break: keep-all;
}

.welcome-button {
    display: grid;
    place-items: center;
    width: 100%;
    text-decoration: none;
}

@media (max-width: 520px) {
    .auth-header {
        min-height: 66px;
        padding: 8px 18px;
    }

    .auth-logo img {
        width: 54px;
    }

    .auth-header nav {
        gap: 12px;
        font-size: 10px;
        letter-spacing: 0;
    }

    .auth-main {
        align-items: start;
        min-height: calc(100vh - 66px);
        padding: 28px 16px 52px;
    }

    .auth-panel {
        padding: 30px 24px;
    }

    .order-card {
        padding: 20px 16px;
    }

    .order-card-header {
        gap: 12px;
    }

    .order-summary {
        grid-template-columns: 1fr;
    }

    .order-price {
        grid-column: 1;
        grid-row: auto;
        text-align: left;
    }

    .shipping-step {
        gap: 8px;
        font-size: 9px;
    }

    .tracking-info {
        grid-template-columns: 58px 1fr;
        padding: 14px;
    }
}
