/* Chronetic — shared styles for chronetic.co
   Palette mirrors lib/theme/chronetic_colors.dart so the site and the app
   read as one thing. Type is Archivo / Archivo Black, matching the app's
   bundled fonts (assets/fonts). */

:root {
  color-scheme: dark;
  --outer: #09090B;
  --screen: #111111;
  --lifted: #151513;
  --accent: #E7FF3D;
  --text: #F4F2EA;
  --secondary: #8A8A85;
  --muted: #5A5A56;
  --rule: #2A2A28;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--outer);
  color: var(--text);
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* --- masthead ---------------------------------------------------------- */

header.masthead {
  border-bottom: 2px solid var(--rule);
  padding-bottom: 1.25rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: 'Archivo Black', 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

nav a {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  text-decoration: none;
  margin-left: 1.25rem;
}

nav a:hover, nav a:focus { color: var(--accent); }
nav a:first-child { margin-left: 0; }

/* --- type -------------------------------------------------------------- */

h1 {
  font-family: 'Archivo Black', 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

h2 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 2.75rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
}

p, li { color: var(--text); }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }

a { color: var(--accent); }

strong { font-weight: 700; }

.lede {
  font-size: 1.125rem;
  color: var(--secondary);
  margin-bottom: 2rem;
}

.updated {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

/* --- callout ----------------------------------------------------------- */

.callout {
  background: var(--lifted);
  border-left: 2px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
}

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

/* --- feature grid (home) ----------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 2rem 0;
}

.grid div {
  background: var(--screen);
  padding: 1.5rem;
}

.grid h3 { margin-top: 0; }
.grid p { margin-bottom: 0; color: var(--secondary); font-size: 0.9375rem; }

/* --- footer ------------------------------------------------------------ */

footer {
  border-top: 2px solid var(--rule);
  margin-top: 4rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

footer a { margin-right: 1.25rem; }
