/* calmcritic.com: one stylesheet shared by every page. Change the colors here and every page follows. */
@import url("fonts/fonts.css");

:root {
  --paper: #f7f4ee;
  --surface: #ffffff;
  --ink: #1f2328;
  --muted: #5b6168;
  --line: #e2ddd3;
  --accent: #1f6f78;       /* ripple's sea-teal */
  --accent-ink: #ffffff;
  --accent-soft: #e3f0f1;
  --radius: 14px;
  --measure: 40rem;        /* comfortable reading width */
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Bricolage Grotesque", var(--font-body);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15181b;
    --surface: #1d2125;
    --ink: #e9e6df;
    --muted: #a3a8ae;
    --line: #2e3439;
    --accent: #6cc3cc;
    --accent-ink: #0f1a1c;
    --accent-soft: #1b2e31;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--accent); text-underline-offset: 0.2em; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 1rem; }

/* Header and navigation: add a link to .nav for each new page. */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

main { flex: 1; padding: 3rem 0 4rem; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }

/* A card for each project. Copy the whole <section class="card"> block to add another. */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2.5rem;
}
.card-label { display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.5rem; }

.steps { margin: 1.25rem 0 1.5rem; padding-left: 1.4rem; }
.steps li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.steps li::marker { color: var(--accent); font-weight: 700; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
}
.button:hover { filter: brightness(1.08); }

.note { font-size: 0.95rem; color: var(--muted); margin-top: 1rem; margin-bottom: 0; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.site-footer p { margin: 0; }
