@font-face {
  font-family: "TeleNeo";
  src: url("TeleNeoWeb-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TeleNeo";
  src: url("TeleNeoWeb-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TeleNeo";
  src: url("TeleNeoWeb-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #dfdfdf;
  --text: #2b2b2d;
  --muted: #717171;
  --panel: #2b2b2d;
  --panel-text: #f4f4f4;
  --accent: #e20074;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --text: #f4f4f4;
    --muted: #a2a2a2;
    --panel: #dfdfdf;
    --panel-text: #2b2b2d;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "TeleNeo", "Segoe UI", system-ui, sans-serif;
}

.shell {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  gap: 16px;
  max-width: 1920px;
  min-height: 100%;
  padding: 24px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: 16px 12px 24px;
  border-radius: 16px;
  background: var(--panel);
  color: var(--panel-text);
}

.brand-link {
  color: var(--panel-text);
  text-decoration: none;
}

.brand,
.mark {
  display: block;
  color: var(--panel-text);
}

.brand {
  width: 140px;
  height: auto;
}

.logos {
  display: flex;
  gap: 6px;
  align-items: center;
}

.tmark {
  display: block;
  width: 24px;
  height: 24px;
}

.mark {
  width: 48px;
  height: 24px;
}

.main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 100%;
  padding: 8px 8px 0;
}

.content {
  display: flex;
  flex: 1;
  align-items: center;
}

.page .content {
  align-items: flex-start;
  padding-top: 16px;
}

h1,
p {
  color: var(--text);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 span {
  font-weight: 400;
}

h1.doc {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}

.rule {
  width: 48px;
  height: 4px;
  margin: 0 0 24px;
  border-radius: 999px;
  background: var(--accent);
}

p {
  max-width: 40rem;
  margin: 0 0 12px;
  font-size: 1.125rem;
  line-height: 1.5;
}

.prose a,
.back a {
  color: var(--accent);
}

.site-footer {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  padding: 16px 0 8px;
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover,
.prose a:hover,
.back a:hover,
.brand-link:hover {
  color: var(--accent);
}

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

@media (max-width: 800px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: 0;
    gap: 24px;
  }
}
