/* US Documentation Company - Typography-first brutalist stylesheet */

/* Valkyrie OT A - Serif (body text) */
@font-face {
  font-family: 'Valkyrie';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('/fonts/valkyrie/valkyrie_ot_a_regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Valkyrie';
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url('/fonts/valkyrie/valkyrie_ot_a_italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Valkyrie';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url('/fonts/valkyrie/valkyrie_ot_a_bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Valkyrie';
  font-style: italic;
  font-weight: 700;
  font-display: block;
  src: url('/fonts/valkyrie/valkyrie_ot_a_bold_italic.woff2') format('woff2');
}

/* Iosevka Aile - Sans-serif (headings, UI) */
@font-face {
  font-family: 'Iosevka Aile';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('/fonts/iosevka-aile/IosevkaAile-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Iosevka Aile';
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url('/fonts/iosevka-aile/IosevkaAile-Italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Iosevka Aile';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url('/fonts/iosevka-aile/IosevkaAile-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Iosevka Aile';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url('/fonts/iosevka-aile/IosevkaAile-Bold.woff2') format('woff2');
}

/* Iosevka - Monospace (code) */
@font-face {
  font-family: 'Iosevka';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('/fonts/iosevka/Iosevka-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Iosevka';
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url('/fonts/iosevka/Iosevka-Italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Iosevka';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url('/fonts/iosevka/Iosevka-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Iosevka';
  font-style: italic;
  font-weight: 700;
  font-display: block;
  src: url('/fonts/iosevka/Iosevka-BoldItalic.woff2') format('woff2');
}

/* Font variables */
:root {
  --font-sans: 'Iosevka Aile', system-ui, sans-serif;
  --font-serif: 'Valkyrie', Georgia, serif;
  --font-mono: 'Iosevka', monospace;
}

/* Reset and base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 19px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-serif);
  line-height: 1.55;
  color: #000;
  background: #fff;
}

/* Typography scale */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

p + p {
  margin-top: 1rem;
}

a {
  color: #000;
  text-decoration: none;
  font-variant: small-caps;
}

a:hover {
  text-decoration: underline;
}

/* Code */
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: #000;
  color: #fff;
  padding: 0.06em 0.35em 0.14em;
  border-radius: 2px;
}

pre {
  background: #000;
  color: #fff;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: 2px;
}

pre code {
  background: transparent;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Layout */
.container {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid #000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  font-variant: normal;
}

nav a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-decoration: none;
  font-variant: normal;
  margin-left: 1.5rem;
}

nav a:hover {
  text-decoration: underline;
}

/* Main content */
main {
  padding: 4rem 0;
}

section {
  margin-bottom: 3rem;
}

section:last-child {
  margin-bottom: 0;
}

section h2 {
  margin-bottom: 1.5rem;
}

/* Hero */
.hero {
  margin-bottom: 3rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  line-height: 1.5;
}

/* Features/Products grid */
.features {
  display: grid;
  gap: 2.5rem;
}

.feature h3 {
  margin-bottom: 0.5rem;
}

/* Philosophy callout */
.philosophy {
  border-left: 3px solid #000;
  padding-left: 1.5rem;
}


/* Contact section */
.contact-email {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-variant: normal;
}

/* Footer */
footer {
  padding: 2rem 0;
  border-top: 1px solid #000;
  font-size: 0.875rem;
}

footer p {
  text-align: center;
}

/* Utility classes */
.sans {
  font-family: var(--font-sans);
}

.serif {
  font-family: var(--font-serif);
}

.small {
  font-size: 0.875rem;
}

.sc {
  font-variant: small-caps;
  font-size: 1.05em;
  text-transform: lowercase;
}

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Dark mode */
html[data-theme="dark"] {
  filter: invert(1) hue-rotate(180deg);
}

html[data-theme="dark"] img,
html[data-theme="dark"] video,
html[data-theme="dark"] iframe,
html[data-theme="dark"] .code-block {
  filter: invert(1) hue-rotate(180deg);
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  cursor: pointer;
  z-index: 1000;
  color: inherit;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .theme-toggle {
    position: static;
  }
  html {
    font-size: 17px;
  }

  header {
    padding: 2rem 0 1.5rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  nav a:first-child {
    margin-left: 0;
  }

  main {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
