:root {
  color-scheme: light dark;
  --ink: #111827;
  --paper: #eef1f4;
  --bone: #fbfcf8;
  --newsprint: #dfe5e8;
  --charcoal: #27313a;
  --mustard: #c3912f;
  --dusty-rose: #ad6a75;
  --oxide: #b45332;
  --sage: #708c78;
  --petrol: #245f73;
  --plum: #654768;
  --sky-wash: #88aeba;
  --text: var(--ink);
  --muted: #53616b;
  --bg: var(--paper);
  --surface: var(--bone);
  --surface-muted: var(--newsprint);
  --border: rgba(17, 24, 39, 0.24);
  --primary: var(--petrol);
  --primary-soft: rgba(49, 95, 105, 0.13);
  --success: var(--sage);
  --shadow: 0 0.85rem 0 rgba(17, 24, 39, 0.10);
  --radius: 0.375rem;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

:root[data-theme="dark"] {
  --ink: #e8edf2;
  --paper: #0d1117;
  --bone: #151b23;
  --newsprint: #1f2933;
  --charcoal: #27313a;
  --mustard: #d7a743;
  --dusty-rose: #c9828c;
  --oxide: #c5653d;
  --sage: #99aa82;
  --petrol: #80aeb8;
  --plum: #b18bb0;
  --sky-wash: #9ab8c0;
  --text: var(--ink);
  --muted: #a5b2bf;
  --bg: var(--paper);
  --surface: var(--bone);
  --surface-muted: var(--newsprint);
  --border: rgba(243, 234, 219, 0.2);
  --primary: var(--mustard);
  --primary-soft: rgba(215, 167, 67, 0.14);
  --success: var(--sage);
  --shadow: 0 0.85rem 0 rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --ink: #e8edf2;
    --paper: #0d1117;
    --bone: #151b23;
    --newsprint: #1f2933;
    --charcoal: #27313a;
    --mustard: #d7a743;
    --dusty-rose: #c9828c;
    --oxide: #c5653d;
    --sage: #99aa82;
    --petrol: #80aeb8;
    --plum: #b18bb0;
    --sky-wash: #9ab8c0;
    --text: var(--ink);
    --muted: #a5b2bf;
    --bg: var(--paper);
    --surface: var(--bone);
    --surface-muted: var(--newsprint);
    --border: rgba(243, 234, 219, 0.2);
    --primary: var(--mustard);
    --primary-soft: rgba(215, 167, 67, 0.14);
    --success: var(--sage);
    --shadow: 0 0.85rem 0 rgba(0, 0, 0, 0.2);
  }
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: clip; font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.58; }
body.app-loading { visibility: hidden; }
body.app-ready { visibility: visible; }

body::before { position: fixed; inset: 0; z-index: -1; pointer-events: none; content: ""; background: linear-gradient(90deg, rgba(17, 24, 39, 0.055) 1px, transparent 1px), linear-gradient(180deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px), radial-gradient(circle at 12% 8%, rgba(195, 145, 47, 0.24), transparent 18rem), radial-gradient(circle at 86% 14%, rgba(36, 95, 115, 0.2), transparent 21rem), radial-gradient(circle at 74% 86%, rgba(173, 106, 117, 0.16), transparent 22rem); background-size: 4.5rem 100%, 100% 3.25rem, auto, auto, auto; }
a { color: inherit; }
:lang(ko) { word-break: keep-all; line-break: strict; overflow-wrap: break-word; }
h1, h2, h3, p { margin-top: 0; overflow-wrap: break-word; }
.site-shell { width: min(1180px, calc(100% - clamp(1rem, 4vw, 2rem))); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 10; border-bottom: 2px solid var(--text); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; }
.logo { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 0.92rem; font-weight: 900; letter-spacing: 0.12em; text-decoration: none; text-transform: uppercase; }
.logo-mark { display: grid; width: 2.1rem; height: 2.1rem; place-items: center; border: 2px solid var(--text); border-radius: var(--radius); background: var(--petrol); color: #fbfcf8; box-shadow: 0.22rem 0.22rem 0 var(--mustard); font-family: var(--font-serif); font-weight: 700; }
.nav-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }
main { padding: 3.25rem 0 3rem; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(min(18rem, 100%), 0.52fr); gap: clamp(1rem, 4vw, 3.2rem); align-items: end; margin-bottom: 1.2rem; padding: clamp(1.2rem, 4vw, 2.4rem) 0 2.2rem; border-bottom: 3px solid var(--text); }
.hero-mirror-panel { grid-column: 1 / -1; width: 100%; min-width: 0; align-self: stretch; margin-top: clamp(1rem, 3vw, 1.8rem); }
.hero.is-showing-mirror-list .hero-mirror-panel { order: -1; margin-top: 0; margin-bottom: clamp(1rem, 3vw, 1.8rem); }
.hero-mirror-placeholder { min-height: 13rem; height: 100%; padding: 1rem; border: 2px solid var(--text); border-radius: var(--radius); background: linear-gradient(135deg, var(--charcoal) 0 42%, var(--petrol) 42% 64%, var(--mustard) 64% 78%, var(--dusty-rose) 78%), repeating-linear-gradient(0deg, transparent 0 0.78rem, rgba(255, 255, 255, 0.18) 0.78rem 0.86rem); background-blend-mode: normal, screen; color: #fbfcf8; font-size: clamp(1.1rem, 2.8vw, 2.2rem); font-family: var(--font-serif); font-weight: 700; line-height: 1.02; text-transform: uppercase; box-shadow: var(--shadow); }
.hero-mirror-list { display: grid; grid-template-rows: auto minmax(0, 1fr); width: 100%; min-height: 32rem; height: min(72vh, 48rem); overflow: hidden; border: 2px solid var(--text); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.hero-mirror-list[hidden], .hero-mirror-placeholder[hidden] { display: none; }
.hero-mirror-list-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 1rem; border-bottom: 2px solid var(--text); background: color-mix(in srgb, var(--petrol) 18%, var(--surface)); }
.hero-mirror-list-header .eyebrow { margin-bottom: 0.45rem; }
.hero-mirror-list h2 { margin: 0; font-family: var(--font-serif); font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1; letter-spacing: -0.04em; }
.hero-mirror-frame { display: block; width: 100%; height: 100%; min-height: 0; border: 0; background: #fff; }
.hero-copy { display: contents; }
.eyebrow { width: fit-content; padding: 0.22rem 0.58rem; border: 2px solid var(--text); border-radius: var(--radius); background: var(--petrol); color: #fbfcf8; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; transform: skewX(-7deg); }
h1 { max-width: 780px; margin-bottom: 0; font-family: var(--font-serif); font-size: clamp(3rem, 8.5vw, 6.8rem); font-weight: 700; line-height: 0.86; letter-spacing: -0.075em; text-wrap: balance; }
.lead { max-width: 38rem; margin: 0 0 0 auto; padding: 0.85rem 0 0 1rem; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.18rem); border-top: 0.3rem solid var(--mustard); border-left: 0.3rem solid var(--petrol); }
.layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(min(280px, 100%), 0.72fr); gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.column { display: grid; min-width: 0; gap: 1rem; }
.layout > .column:first-child { margin-top: 2.2rem; }
.layout > .column:last-child { margin-top: -0.7rem; }
.meta-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 0.75rem; margin-top: 1.15rem; }
.meta-item { min-width: 0; min-height: 9rem; padding: 0.9rem; border: 2px solid var(--text); border-radius: var(--radius); background: var(--surface-muted); }
.meta-item:nth-child(1) { background: color-mix(in srgb, var(--mustard) 32%, var(--surface)); }
.meta-item:nth-child(2) { min-height: 10rem; background: color-mix(in srgb, var(--petrol) 20%, var(--surface)); }
.meta-item:nth-child(3) { min-height: 8rem; border-left-width: 0.55rem; background: color-mix(in srgb, var(--dusty-rose) 28%, var(--surface)); }
.meta-item:nth-child(4) { background: color-mix(in srgb, var(--sky-wash) 34%, var(--surface)); }
.meta-item strong { display: block; margin-bottom: 0.24rem; font-family: var(--font-serif); color: var(--text); font-size: 1.18rem; line-height: 1.05; }
.meta-item span { color: var(--text); font-size: 0.9rem; }
.card { min-width: 0; overflow: clip; border: 2px solid var(--text); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow); padding: clamp(1.15rem, 3vw, 1.8rem); }
.card.featured { min-height: 100%; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--sky-wash)), var(--surface) 34%); }
.card h2 { margin-bottom: 0.5rem; font-family: var(--font-serif); font-size: clamp(1.55rem, 3vw, 2.4rem); line-height: 1; letter-spacing: -0.04em; }
.card p { color: var(--muted); }
.card p:last-child, .card ul:last-child, .card dl:last-child { margin-bottom: 0; }
.content-block { padding-top: 1.25rem; margin-top: 1.25rem; border-top: 2px solid var(--text); }
.content-block h3 { width: fit-content; margin-bottom: 0.55rem; padding: 0.15rem 0.45rem; background: var(--charcoal); color: #fbfcf8; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0.22rem 0 0 var(--mustard); }
.server-profile-grid { display: grid; gap: 1rem; margin-top: 1rem; }
.server-spec { min-width: 0; }
.server-spec h4 { width: fit-content; margin: 0 0 0.5rem; padding: 0.18rem 0.5rem; border: 2px solid var(--text); border-radius: var(--radius); background: var(--mustard); color: var(--ink); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.info-table { display: block; width: 100%; max-width: 100%; margin-top: 0.85rem; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 2px solid var(--text); border-radius: var(--radius); background: var(--surface-muted); }
.info-table th, .info-table td { padding: 0.78rem 0.9rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 8.5rem; color: var(--oxide); font-size: 0.78rem; text-transform: uppercase; }
.visitor-ip, .domain { display: inline-flex; max-width: 100%; min-width: 0; border-radius: var(--radius); background: var(--surface-muted); color: var(--primary); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.visitor-ip { margin-top: 0.25rem; padding: 0.58rem 0.78rem; font-size: 1rem; border: 2px solid var(--text); }
.ip-check-button { width: fit-content; margin-top: 0.75rem; }
.domain { width: fit-content; padding: 0.34rem 0.56rem; font-size: 0.9rem; }
.info-list { display: grid; gap: 0.7rem; margin: 1rem 0 0; }
.endpoint { display: grid; min-width: 0; gap: 0.35rem; padding: 0.92rem; border: 2px solid var(--text); border-radius: var(--radius); background: var(--surface-muted); }
.endpoint:nth-child(1) { background: color-mix(in srgb, var(--petrol) 18%, var(--surface)); }
.endpoint:nth-child(2) { background: color-mix(in srgb, var(--oxide) 14%, var(--surface)); }
.endpoint:nth-child(3) { background: color-mix(in srgb, var(--sage) 18%, var(--surface)); }
.endpoint dt { color: var(--oxide); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.endpoint dd { margin: 0; }

.status-list, .thanks-list { display: grid; gap: 0.75rem; margin: 1rem 0 0; }
.status-group, .thanks-list > div { display: grid; gap: 0.42rem; min-width: 0; padding: 0.92rem; border: 2px solid var(--text); border-radius: var(--radius); background: var(--surface-muted); }
.status-group.official { background: color-mix(in srgb, var(--mustard) 22%, var(--surface)); }
.status-group.community { background: color-mix(in srgb, var(--plum) 18%, var(--surface)); }
.status-group dt, .thanks-list dt { color: var(--oxide); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.status-group dd, .thanks-list dd { margin: 0; }
.badge { display: inline-flex; align-items: center; width: fit-content; margin-right: 0.35rem; padding: 0.12rem 0.38rem; border: 1px solid var(--text); border-radius: 999px; background: var(--petrol); color: #fbfcf8; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.thanks-card { background: linear-gradient(160deg, color-mix(in srgb, var(--petrol) 20%, var(--surface)), var(--surface) 48%, color-mix(in srgb, var(--mustard) 20%, var(--surface))); }
.thanks-card .button { margin-top: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.15rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.35rem; padding: 0.54rem 0.78rem; border: 2px solid var(--text); border-radius: var(--radius); background: var(--surface); color: var(--text); font-size: 0.84rem; font-weight: 850; text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em; transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.button.primary { background: var(--petrol); color: #fbfcf8; }
.button:hover, .button:focus-visible { background: var(--mustard); color: var(--ink); transform: translate(-1px, -1px); box-shadow: 0.18rem 0.18rem 0 var(--text); }
.button.primary:hover, .button.primary:focus-visible { background: var(--oxide); color: #fbfcf8; }
.theme-toggle { cursor: pointer; }
.contact-block { border-top-style: dashed; }
.footer-notice { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 1rem; width: 100%; height: fit-content; margin-top: 1rem; background: linear-gradient(135deg, color-mix(in srgb, var(--mustard) 20%, var(--surface)), var(--surface) 44%, color-mix(in srgb, var(--petrol) 14%, var(--surface))); }
.footer-notice-logo { align-self: start; padding: 0.25rem 0.35rem 0.25rem 0; }
.footer-notice-copy h2 { margin-bottom: 0.45rem; font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1; letter-spacing: -0.04em; }
.footer-notice-copy p { margin-bottom: 0.35rem; color: var(--muted); }
footer { margin-top: 2rem; padding-top: 1.25rem; border-top: 3px solid var(--text); color: var(--muted); font-size: 0.92rem; }
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(min(15rem, 100%), 0.42fr); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout > .column:first-child, .layout > .column:last-child { margin-top: 0; }
}

@media (max-width: 900px) {
  .topbar-inner { align-items: flex-start; flex-direction: column; }
  .nav-actions { justify-content: flex-start; }
  main { padding: 2.4rem 0; }
  .hero { grid-template-columns: 1fr; }
  .hero-mirror-placeholder { min-height: 8rem; }
  .lead { margin-left: 0; padding-left: 1rem; }
  .meta-grid { grid-template-columns: 1fr; }
  .meta-item:nth-child(n) { min-height: auto; }
}

@media (max-width: 560px) {
  .footer-notice { grid-template-columns: 1fr; }
  .site-shell { width: min(100% - 1rem, 1180px); }
  .topbar-inner, .hero, .card { overflow-wrap: anywhere; }
  .nav-actions { width: 100%; }
  .button { flex: 1 1 8.5rem; min-width: 0; }
  h1 { font-size: clamp(2.35rem, 18vw, 3.6rem); }
  .hero-mirror-placeholder { font-size: clamp(1rem, 8vw, 1.55rem); }
  .hero-mirror-list-header { flex-direction: column; }
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { padding-bottom: 0.2rem; }
  .info-table td { padding-top: 0.2rem; }
}
