/* dotroot.dev — plain CSS, no framework. always light. */

:root {
  color-scheme: light;
  --bg: #f7f8f4;
  --surface: #ffffff;
  --border: #e2e5dd;
  --text: #10140f;
  --muted: #a3ab9f;
  --accent: #2c9a4d;
  /* brand --muted is below 4.5:1 on both themes (decorative only); --text-dim passes for small text */
  --text-dim: #5a635a;
  /* light accent #2c9a4d is 3.37:1 on --bg as text; --link passes 4.5:1 (dark theme: #4cc26a, 8.53:1) */
  --link: #1e7a3a;
  --font-brand:
    ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.wrap {
  max-width: 90ch;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 6vw, 3rem);
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

/* nav */

.nav {
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-size: 1.725rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.dot {
  color: var(--accent);
}

.wordmark-small {
  font-size: 0.8125rem;
}

/* hero */

main {
  flex: 1;
  padding-top: clamp(3.5rem, 12vh, 7rem);
  padding-bottom: clamp(2rem, 6vw, 4rem);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw + 1.5rem, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero .sub {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text-dim);
}

/* sections */

main > section {
  margin-top: clamp(3.5rem, 9vw, 5.5rem);
}

h2 {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--link);
}

main p {
  margin: 0;
}

dl {
  margin: 0;
}

dt {
  font-weight: 700;
  margin-top: 1.5rem;
}

dt:first-child {
  margin-top: 0;
}

dd {
  margin: 0.35rem 0 0;
}

/* legal + footer */

.legal-body {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.legal-body p + p {
  margin-top: 0.75rem;
}

footer {
  border-top: 1px solid var(--border);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.75rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.foot p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
