/* DragonDoor: a plain document, the way a network operator's page should read.
   One column, system sans, tables and rules. No build step, no external requests. */

:root {
  color-scheme: dark;
  --bg: #1b1b25;
  --text: #e7e7ec;
  --dim: #a3a3b2;
  --rule: #3a3a49;
  --link: #cbb182;
  --link-hover: #e8d4ad;
  --max: 640px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--link);
  color: #1b1b25;
  padding: 8px 14px;
  z-index: 10;
}

/* ---------- masthead ---------- */

.masthead {
  text-align: center;
  margin-bottom: 52px;
}

.mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: block;
  opacity: 0.95;
}

h1 {
  font-size: clamp(40px, 9vw, 56px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
}

.tagline {
  margin: 14px 0 0;
  font-size: 18px;
  color: var(--text);
}

.tagline.sub {
  margin-top: 4px;
  font-size: 15px;
  color: var(--dim);
}

/* ---------- sections ---------- */

section { margin-bottom: 44px; }

h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 14px;
}

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

ul.plain {
  margin: 0;
  padding: 0;
  list-style: none;
}
ul.plain li {
  margin-bottom: 10px;
}
ul.plain b { font-weight: 600; }

.note {
  font-size: 14px;
  color: var(--dim);
  margin-top: 12px;
}

.dim { color: var(--dim); font-size: 14px; }

/* ---------- tables ---------- */

.table-wrap { margin: 0 -2px; overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 400;
}

/* the date column is the one that must not wrap */
th:last-child,
td:last-child { white-space: nowrap; padding-right: 0; }

thead th {
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
}

tbody th {
  font-weight: 600;
  width: 38%;
  padding-right: 16px;
}

tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }

/* ---------- links ---------- */

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--link-hover); }

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

/* ---------- footer ---------- */

footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--dim);
  text-align: center;
}
footer p { margin: 0; }
footer a { color: var(--link); }

/* ---------- narrow screens ---------- */

@media (max-width: 520px) {
  .page { padding: 40px 18px 48px; }
  body { font-size: 15.5px; }
  .tagline { font-size: 16.5px; }

  /* one table row becomes a small stack: object, handle, date */
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
  }
  tbody tr:last-child { border-bottom: 0; }
  th, td {
    border: 0;
    padding: 0;
    white-space: normal;
  }
  tbody th { width: auto; margin-bottom: 2px; }
  td:last-child {
    margin-top: 2px;
    font-size: 14px;
    color: var(--dim);
  }
}
