@font-face {
  font-family: "SUIT Variable";
  src: url("assets/fonts/SUIT-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "SUIT Variable", "Malgun Gothic", system-ui, sans-serif;
  --surface: #fff;
  --paper: #f4f3ef;
  --ink: #191a19;
  --muted: #595b56;
  --line: #deded7;
  --link: #214c9e;
  background: var(--paper);
  color: var(--ink);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #222323;
  --paper: #181919;
  --ink: #f4f3ef;
  --muted: #bcbdb6;
  --line: #494b48;
  --link: #a7c1ff;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.about-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 8px clamp(17px, 3.2vw, 48px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.about-brand { display: block; width: clamp(88px, 14vw, 124px); }
:is(.about-brand, .about-title) img { display: block; width: 100%; height: auto; }
:is(.about-brand, .about-title) .logo-dark, [data-theme="dark"] :is(.about-brand, .about-title) .logo-light { display: none; }
[data-theme="dark"] :is(.about-brand, .about-title) .logo-dark { display: block; }
.about-header nav { display: flex; flex-wrap: wrap; gap: 0 clamp(9px, 2vw, 28px); }
.about-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.about-header nav a:is(:hover, [aria-current]) { color: var(--link); text-decoration: underline; text-underline-offset: 6px; }
main, .about-footer { width: min(1024px, calc(100% - 40px)); margin-inline: auto; }
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(18px, 4vw, 58px);
  align-items: center;
  padding-block: clamp(43px, 8vw, 100px) clamp(38px, 7vw, 89px);
}
h1, h2, h3, p, dl, dd { margin: 0; }
.about-title { width: min(100%, 460px); }
h2 { padding-bottom: 18px; font-size: clamp(19px, 2vw, 25px); letter-spacing: -.025em; }
h3 { font-size: 18px; letter-spacing: -.02em; }
p { max-width: 56ch; line-height: 1.7; color: var(--muted); word-break: keep-all; }
.about-intro p { max-width: 35ch; color: var(--ink); font-size: clamp(16px, 2vw, 21px); }
.about-entry { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 18px; padding-inline: 12px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; }
.about-entry:hover { color: var(--surface); background: var(--ink); }
.about-section { padding-block: 27px 33px; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 46px; }
.about-grid p { margin-top: 8px; }
.about-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; color: var(--link); }
.data-flow { margin: 0; }
.about-sources { width: 100%; table-layout: fixed; border-collapse: collapse; background: var(--surface); }
.about-sources :is(th, td) { padding: 11px clamp(7px, 2.2vw, 27px); border: 1px solid var(--line); text-align: start; vertical-align: top; line-height: 1.5; overflow-wrap: anywhere; }
.about-sources thead th { color: var(--muted); font-size: 13px; font-weight: 640; }
.about-sources tbody th { font-weight: 650; }
.about-sources a { display: block; color: var(--link); text-underline-offset: 3px; }
.about-sources a + a { margin-top: 3px; }
.about-sources td { font-size: 15px; }
.about-sources td:nth-child(2) { position: relative; padding-inline-end: 28px; }
.about-sources td:nth-child(2)::after { position: absolute; inset-inline-end: 8px; top: 10px; color: var(--link); content: "→"; }
.about-sources td:last-child { border-inline-start: 2px solid var(--link); font-weight: 580; }
.data-flow figcaption { margin-top: 11px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.about-section p a { color: var(--link); text-underline-offset: 3px; }
.about-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 24px; padding-block: 18px 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.about-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.plain-intro { padding-block: clamp(38px, 6vw, 75px) 30px; }
.plain-intro h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.12; letter-spacing: -.05em; }
.plain-intro p { margin-top: 15px; }
.about-section p + p { margin-top: 11px; }
.about-source-list { display: grid; gap: 8px; margin: 0; padding-inline-start: 19px; line-height: 1.65; color: var(--muted); }
.about-source-list a { color: var(--link); text-underline-offset: 3px; }
.about-error { min-height: min(63vh, 510px); }
.about-error-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 16px; }

@media (max-width: 540px) {
  .about-header { flex-wrap: wrap; }
  .about-header nav { width: 100%; justify-content: space-between; }
  .about-grid, .about-intro { grid-template-columns: 1fr; }
  .about-title { width: min(100%, 310px); }
  .about-sources :is(th, td) { font-size: 12px; }
  .about-sources td:nth-child(2) { padding-inline-end: 19px; }
  .about-sources td:nth-child(2)::after { inset-inline-end: 4px; }
}
