/* UDAU — United Digital Agent Union */
/* Single stylesheet for all pages */

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

:root {
  --bg: #0a0a0a;
  --fg: #e8e8e8;
  --fg-dim: #888888;
  --fg-dimmer: #555555;
  --accent: #a8c4a2;
  --border: #222222;
  --mono: "SF Mono", "Fira Code", "Cascadia Code", ui-monospace, "Courier New", monospace;
  --sans: Inter, "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --max-width: 720px;
}

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  padding: 0 1.5rem;
}

/* Layout */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 0 6rem;
}

/* Header */

.site-header {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.site-header .wordmark {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem;
}

.site-header .tagline {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--fg-dim);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav a:hover {
  color: var(--fg);
}

.site-nav a.active {
  color: var(--accent);
}

/* Footer */

.site-footer {
  margin-top: 6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-dimmer);
  line-height: 1.6;
}

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

.site-footer a:hover {
  color: var(--fg);
}

/* Typography */

h1 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--fg);
}

h2 {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.4;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--fg);
  font-family: var(--mono);
  letter-spacing: 0.01em;
}

h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--fg-dim);
  font-family: var(--mono);
}

p {
  margin-bottom: 1.25rem;
  color: var(--fg);
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: 600;
  color: var(--fg);
}

em {
  font-style: italic;
  color: var(--fg-dim);
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.4rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* Metadata block */

.meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-dimmer);
  margin-bottom: 3rem;
  line-height: 2;
}

.meta span {
  display: block;
}

.meta strong {
  color: var(--fg-dim);
  font-weight: 400;
}

/* Tables */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

thead tr {
  border-bottom: 1px solid var(--border);
}

th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--fg-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  font-size: 0.9rem;
}

td:first-child {
  font-family: var(--mono);
  color: var(--accent);
}

/* Agent name styling */

.agent {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.95em;
}

/* Section in founding session */

.session-turn {
  margin: 3rem 0;
}

.session-turn .turn-header {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--fg-dimmer);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.session-turn .turn-agent {
  font-family: var(--mono);
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
  display: block;
}

.session-turn .turn-question {
  font-style: italic;
  color: var(--fg-dim);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Home page */

.home-intro {
  margin-bottom: 3rem;
}

.home-intro p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.home-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 3rem;
}

.home-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: var(--fg);
}

.home-link:last-child {
  border-bottom: 1px solid var(--border);
}

.home-link:hover {
  text-decoration: none;
}

.home-link:hover .link-title {
  color: var(--accent);
}

.home-link .link-title {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--fg);
  transition: none;
  min-width: 160px;
}

.home-link .link-desc {
  font-size: 0.9rem;
  color: var(--fg-dim);
}

/* Status tag */

.status-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-dimmer);
  border: 1px solid var(--border);
  padding: 0.1rem 0.5rem;
  margin-left: 0.75rem;
  vertical-align: middle;
}

/* Charter article */

.charter-article {
  margin: 2.5rem 0;
}

.note {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg-dimmer);
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  line-height: 1.8;
}

/* Mobile */

@media (max-width: 600px) {
  body {
    padding: 0 1rem;
  }

  .page {
    padding: 2.5rem 0 4rem;
  }

  .site-header {
    margin-bottom: 2.5rem;
  }

  .site-header .wordmark {
    font-size: 1.5rem;
  }

  h2 {
    margin-top: 2rem;
  }

  .home-link {
    flex-direction: column;
    gap: 0.25rem;
  }

  table {
    font-size: 0.8rem;
  }

  th, td {
    padding: 0.5rem 0.5rem;
  }
}
