/* Shared layout for sub-pages: /manifesto and /careers
   Matches the home page's typography, palette, and page container. */

@font-face {
  font-family: "SK Modernist";
  src: url("fonts/Sk-Modernist-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SK Modernist";
  src: url("fonts/Sk-Modernist-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SK Modernist";
  src: url("fonts/Sk-Modernist-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SK Modernist Mono";
  src: url("fonts/Sk-Modernist-Mono.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f7f4;
  --ink: #111111;
  --ink-2: #1C1C1C;
  --muted: #6B6B6B;
  --muted-2: #9A9A9A;
  --line: #888888;
  --hatch: #888888;
  --frame-line: rgba(17, 17, 17, 0.1);
  --max: 1280px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E0E0E;
  --ink: #F2F2F2;
  --ink-2: #DADADA;
  --muted: #8A8A8A;
  --muted-2: #6A6A6A;
  --line: #B5B5B5;
  --hatch: #B5B5B5;
  --frame-line: rgba(242, 242, 242, 0.18);
}

/* Dark-mode logo invert (the wordmark PNG is dark-on-transparent) */
[data-theme="dark"] .page-header img,
[data-theme="dark"] .footer-logo {
  filter: invert(1);
}

.theme-toggle {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: "SK Modernist", system-ui, sans-serif;
  font-weight: 400;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: opacity 0.2s ease;
  line-height: 1;
}
.theme-toggle:hover { opacity: 0.55; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "SK Modernist", system-ui, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }

.page {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
}
.page-header .nav-logo { display: flex; align-items: center; }
.page-header .nav-logo img {
  display: block;
  height: 20px;
  width: auto;
  -webkit-user-drag: none;
  user-select: none;
}
.page-header .nav-links {
  display: flex;
  gap: 28px;
  font-size: 13.5px;
  color: var(--ink);
}
.page-header .nav-links a { color: var(--ink); transition: color 0.2s ease; }
.page-header .nav-links a:hover { color: var(--muted); }

/* Mobile-only hamburger + full-screen menu. Hidden on desktop. */
.nav-burger {
  display: none;
  position: relative;
  z-index: 101;
  background: transparent;
  border: 0;
  padding: 8px;
  margin: -8px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  padding: 96px 28px 28px;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.nav-menu a {
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.015em;
  font-weight: 400;
}
body.menu-open { overflow: hidden; }
@media (max-width: 900px) {
  .nav-burger { display: block; }
  body.menu-open .nav-menu { display: flex; }
  body.menu-open .nav-burger span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-burger span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

.prose { max-width: none; margin: 0; padding: 96px 28px; }
.prose h1 {
  font-family: "SK Modernist", system-ui, sans-serif;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  color: var(--ink);
}
.prose p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0 0 20px;
}
.prose p:last-child { margin-bottom: 0; }
.prose a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}
.prose a:hover { opacity: 0.6; }

/* ===== Footer (matches the home page) ===== */
.hatch {
  height: 22px;
  margin-left: -1px;
  margin-right: -1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
  background-image: repeating-linear-gradient(-45deg, var(--hatch) 0 1px, transparent 1px 5px);
}
.hatch.thin { height: 18px; }

footer {
  padding: 64px 28px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.foot-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.footer-logo {
  display: block;
  height: 20px;
  width: auto;
  -webkit-user-drag: none;
  user-select: none;
}
.foot-tagline {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  max-width: 560px;
  line-height: 1.6;
}
.foot-nav { display: flex; gap: 32px; font-size: 13.5px; color: var(--ink-2); align-items: center; }
.foot-nav a { transition: opacity 0.2s ease; }
.foot-nav a:hover { opacity: 0.55; }

.foot-strip {
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  font-family: "SK Modernist Mono", "SK Modernist", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.foot-strip .cs { display: inline-block; transform: translateY(1px); }

@media (max-width: 640px) {
  .page-header { padding: 18px 20px; }
  .page-header .nav-links { display: none; }
  .prose { padding: 64px 20px 72px; }
  .prose h1 { font-size: 28px; margin-bottom: 24px; }
  .prose p { font-size: 14.5px; line-height: 1.7; }
  footer {
    padding: 48px 20px 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .foot-nav { gap: 18px; flex-wrap: wrap; }
  .foot-strip {
    padding: 14px 20px;
    flex-direction: column;
    gap: 6px;
  }
}
