/* Rachel Davis Consulting
   Layout: paper-white pages, the card's three-line meander as the one bold graphic,
   generous two-column reading layouts, thin triple rules as section dividers. */
:root {
  --paper: #fbf8f5;
  --surface: #ffffff;
  --ink: #2c3534;
  --muted: #5d6766;
  --line: #e7e0da;
  --orange: #ee6a45;
  --pink: #ee8bb8;
  --slate: #4f5c5b;
  --green: #2f9e82;   /* bright jade, sits beside the card colors */
  --coral: #d8434a;   /* "CONSULTING" red */
  --rose: #d55f95;    /* "RACHEL DAVIS" pink, deepened for legibility */
  --font: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  --maxw: 72rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1d2322; --surface: #252c2b; --ink: #eee9e4; --muted: #b3bbb9; --line: #384241;
    --orange: #f2805f; --pink: #f3a2c7; --slate: #9fb0ae; --green: #5cc6a6; --coral: #f27a7e; --rose: #f39cc3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1d2322; --surface: #252c2b; --ink: #eee9e4; --muted: #b3bbb9; --line: #384241;
  --orange: #f2805f; --pink: #f3a2c7; --slate: #9fb0ae; --green: #5cc6a6; --coral: #f27a7e; --rose: #f39cc3;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--orange); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem 2rem; padding-block: 1rem;
}
.brand { display: inline-flex; flex-direction: column; gap: 0.4rem; text-decoration: none; }
.wm-waves { width: 0; min-width: 100%; height: auto; display: block; }
.wordmark { display: flex; flex-direction: column; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.04em; }
.wm-name { color: var(--rose); font-weight: 600; font-size: 1.15rem; }
.wm-sub { color: var(--coral); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.08em; }
.brand:hover .wm-name { color: var(--rose); }
.brand:hover, .brand:hover .wm-sub { color: var(--coral); }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a {
  text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--muted);
  padding-block: 0.35rem; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--pink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }

/* Type */
h1, h2 { text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: var(--step-3); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: var(--step-1); line-height: 1.3; font-weight: 600; }
p { margin: 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; color: var(--coral);
}
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink); }

/* Triple rule (echoes the card's three lines) */
.rule { display: flex; flex-direction: column; gap: 4px; width: 7rem; }
.rule span { display: block; height: 3px; border-radius: 0; }
.rule span:nth-child(1) { background: var(--orange); }
.rule span:nth-child(2) { background: var(--pink); width: 88%; }
.rule span:nth-child(3) { background: var(--slate); width: 76%; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.btn {
  display: inline-block; background: var(--coral); color: #fff; text-decoration: none;
  font-weight: 600; padding: 0.75rem 1.4rem; border-radius: 999px; font-size: 1rem;
}
:root[data-theme="dark"] .btn { color: #1d2322; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: #1d2322; } }
.btn:hover { color: #fff; background: var(--orange); }
:root[data-theme="dark"] .btn:hover { color: #1d2322; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:hover { color: #1d2322; } }
.btn-quiet { font-weight: 600; font-size: 1rem; }

/* Home hero */
.home { position: relative; overflow: hidden; }
.side-rail {
  position: absolute; top: 0; bottom: 0;
  left: max(20px, env(safe-area-inset-left, 0px), calc((100% - var(--maxw)) / 2 - 40px));
  overflow: hidden; pointer-events: none;
}
.side-waves { display: block; height: 3000px; width: auto; }
.side-waves polyline { stroke-dasharray: 3200; stroke-dashoffset: 0; animation: draw 3s ease-out both; }
.side-waves polyline:nth-child(2) { animation-delay: 0.15s; }
.side-waves polyline:nth-child(3) { animation-delay: 0.3s; }
@keyframes draw { from { stroke-dashoffset: 3200; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .side-waves polyline { animation: none; } }
.home-body .wrap { padding-left: max(100px, env(safe-area-inset-left, 0px)); }
.hero-inner { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero-text { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; max-width: 46rem; }
.hero-text .lede { color: var(--muted); max-width: 36em; }

.sections { padding-block: 0 4.5rem; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.tile {
  display: flex; flex-direction: column; gap: 0.6rem; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); padding: 1.5rem 1.5rem 1.35rem;
  border-top: 4px solid var(--slate); transition: border-color 0.2s;
}
.tile:nth-child(1) { border-top-color: var(--orange); }
.tile:nth-child(2) { border-top-color: var(--pink); }
.tile:hover { color: inherit; border-color: var(--slate); }
.tile-k { font-weight: 600; font-size: var(--step-1); }
.tile-t { color: var(--muted); flex: 1; }
.tile-go { font-weight: 600; font-size: 0.95rem; color: var(--coral); }
.tile-go::after { content: " \2192"; }

/* Inner pages */
.page-title .wrap { display: flex; flex-direction: column; gap: 1rem; padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.content { padding-block: 1rem 5rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.prose { display: flex; flex-direction: column; gap: 1.15rem; max-width: 40em; min-width: 0; }
.prose h2 { margin-top: 1rem; }
.panel {
  background: var(--surface); border: 1px solid var(--line); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1rem; min-width: 0;
}
.panel-note { color: var(--muted); font-size: 0.97rem; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { padding: 0.7rem 0 0.7rem 1.4rem; border-top: 1px solid var(--line); position: relative; line-height: 1.45; }
.list li:first-child { border-top: 0; padding-top: 0.2rem; }
.list li::before {
  content: ""; position: absolute; left: 0.1rem; top: 1.25rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--green);
}
.list li:first-child::before { top: 0.75rem; }

.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.project {
  background: var(--surface); border: 1px solid var(--line); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.85rem; min-width: 0;
}
.project-tag { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 600; color: var(--coral); }
.project p:not(.project-tag) { color: var(--muted); }

.contact-card .email { font-size: var(--step-1); font-weight: 600; overflow-wrap: anywhere; }
.contact-card .btn { align-self: flex-start; }


/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; gap: 1rem; padding-block: 2rem 2.5rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.95rem; }
.footer-name { font-weight: 600; }
.footer-name span { font-weight: 400; color: var(--muted); }
.footer-row a { overflow-wrap: anywhere; }

/* Narrow screens */
@media (max-width: 860px) {
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .side-waves { width: 36px; height: auto; }
  .home-body .wrap { padding-left: max(72px, env(safe-area-inset-left, 0px)); }
  .tiles, .projects { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .site-nav { gap: 0.15rem 1rem; }
  .site-nav a { font-size: 0.9rem; }
}
