/* ===== Dalton McBee — brand tokens ===== */
:root {
  --bg: #101614;
  --bg-raised: #16201c;
  --ink: #edeae3;
  --ink-dim: #a8b0aa;
  --teal: #3fb8a8;
  --green: #7bc96f;
  --rule: #263129;
  --display: Georgia, 'Times New Roman', serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'SF Mono', 'Cascadia Code', Consolas, 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

a { color: var(--teal); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
a:hover, a:focus-visible { border-bottom-color: var(--teal); }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

/* ===== Header ===== */
header.site {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 28px 0;
}
.wordmark { font-family: var(--display); font-size: 1.05rem; color: var(--ink); letter-spacing: .02em; }
.wordmark:hover { border-bottom-color: transparent; color: var(--teal); }
nav.site a { font-size: .85rem; color: var(--ink-dim); margin-left: 22px; }
nav.site a:hover { color: var(--teal); }

/* ===== Hero / deploy log ===== */
.hero { padding: 56px 0 40px; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 15ch;
}
.hero h1 em { font-style: italic; color: var(--teal); }
.hero .sub { margin-top: 20px; color: var(--ink-dim); max-width: 52ch; }

.deploylog {
  margin: 44px 0 8px;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 2;
  color: var(--ink-dim);
  overflow-x: auto;
}
.deploylog .ln { display: block; white-space: nowrap; opacity: 0; animation: rise .4s ease forwards; }
.deploylog .ln:nth-child(1) { animation-delay: .2s; }
.deploylog .ln:nth-child(2) { animation-delay: .9s; }
.deploylog .ln:nth-child(3) { animation-delay: 1.6s; }
.deploylog .ln:nth-child(4) { animation-delay: 2.3s; }
.deploylog .ln:nth-child(5) { animation-delay: 3.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .deploylog .ln { opacity: 1; } }
.deploylog .cmd { color: var(--ink); }
.deploylog .ok { color: var(--green); }
.deploylog .flag { color: var(--teal); }

/* ===== Sections ===== */
section { padding: 40px 0; border-top: 1px solid var(--rule); }
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
section h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin-bottom: 14px; }
section p + p { margin-top: 14px; }
.dim { color: var(--ink-dim); }

/* ===== Case study cards ===== */
.cases { display: grid; gap: 14px; margin-top: 24px; }
.case {
  display: block;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 22px 24px;
  color: var(--ink);
  transition: border-color .15s;
}
.case:hover, .case:focus-visible { border-color: var(--teal); border-bottom-color: var(--teal); }
.case .k {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 8px;
}
.case h3 { font-family: var(--display); font-weight: 400; font-size: 1.15rem; margin-bottom: 6px; }
.case p { font-size: .92rem; color: var(--ink-dim); }
.case .soon {
  font-family: var(--mono); font-size: .7rem; color: var(--green);
  border: 1px solid var(--rule); border-radius: 99px; padding: 2px 10px;
  display: inline-block; margin-top: 12px;
}

/* ===== Case study article pages ===== */
article.study { padding: 24px 0 56px; }
article.study .eyebrow { margin-top: 24px; }
article.study h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.25; margin-bottom: 18px; }
article.study .placeholder {
  margin-top: 28px; padding: 24px; border: 1px dashed var(--rule); border-radius: 8px; color: var(--ink-dim);
}

/* ===== Footer ===== */
footer.site {
  border-top: 1px solid var(--rule);
  padding: 32px 0 48px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .85rem; color: var(--ink-dim);
}
footer.site .sig { font-family: var(--display); color: var(--ink); }
footer.site a { color: var(--ink-dim); margin-right: 18px; }
footer.site a:hover { color: var(--teal); }

@media (max-width: 540px) {
  body { font-size: 16px; }
  .hero { padding: 36px 0 28px; }
}
