/*
  Doxblock: minimal starter styles.
  All colors, fonts and spacing are defined as tokens in :root.
  Restyle by changing tokens first, then individual components.
*/

:root {
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --text: #16181d;
  --text-muted: #555b66;
  --border: #d9dce2;
  --accent: #1f5eff;
  --accent-text: #ffffff;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: var(--font-body);

  --container: 64rem;
  --container-narrow: 36rem;
  --gutter: 1.25rem;
  --radius: 0.5rem;
  --section-space: clamp(3rem, 8vw, 6rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-alt: #171a20;
    --text: #e8eaee;
    --text-muted: #a2a8b3;
    --border: #2c313a;
    --accent: #6f95ff;
    --accent-text: #0f1115;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0 0 1.25rem;
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1.5rem;
}

h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
}

p, ul, ol {
  max-width: 68ch;
}

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

/* Layout */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container.narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-space) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.grid-2 {
  display: grid;
  gap: 0 3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
}

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

nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

nav a:not(.button) {
  color: var(--text-muted);
  text-decoration: none;
}

nav a:not(.button):hover {
  color: var(--text);
}

/* Hero */

.hero {
  padding: var(--section-space) 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

/* Components */

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  border: 0;
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  filter: brightness(1.08);
}

.button-small {
  padding: 0.45rem 0.9rem;
  font-size: 0.95rem;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  max-width: none;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 0.5rem;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
}

.steps h3 {
  margin-top: 0.75rem;
}

.features li {
  margin-bottom: 0.75rem;
}

.note {
  color: var(--text-muted);
  font-style: italic;
}

/* Contact form */

.contact-form {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.contact-form small {
  font-weight: 400;
  color: var(--text-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.contact-form .button {
  justify-self: start;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer a {
  color: inherit;
}

/* Simple centered pages (thanks, 404) */

.simple-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--section-space) var(--gutter);
}

.simple-page p {
  margin-left: auto;
  margin-right: auto;
}
