/* ryanscheinberg.com — static, instant-load. System fonts, zero JS, CSS-only motion. */

:root {
  --accent: #1f5c45;       /* deep forest green */
  --accent-deep: #17452f;  /* darker green, hover */
  --soft: #ebf0ea;         /* pale green block */
  --ink: #21201c;          /* warm near-black */
  --muted: #6b665d;        /* warm gray */
  --line: #e6e0d4;         /* warm hairline */
  --bg: #faf7f1;           /* warm off-white */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 2rem) 4rem;
}

/* ---------- Hero ---------- */

.hero { margin-bottom: 4.5rem; }

.kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

h1 {
  font-size: clamp(2.6rem, 9vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--accent-deep);
  margin-bottom: 1.4rem;
}

.lede {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: var(--ink);
  margin-bottom: 1.8rem;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.9rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.links a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}

.links a:hover { border-color: var(--accent); }

/* ---------- Sections ---------- */

section {
  padding-top: 2.6rem;
  margin-top: 2.6rem;
  border-top: 1px solid var(--line);
}

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

section > p { color: #38352e; }

h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

/* ---------- Roles ---------- */

.role { margin-bottom: 2.2rem; }
.role:last-child { margin-bottom: 0; }

.role-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  margin-bottom: 0.6rem;
}

.meta {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

ul { list-style: none; margin-top: 0.8rem; }

li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.55rem;
  color: #38352e;
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- Feature ---------- */

.feature {
  background: var(--soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 1.6rem;
}

.feature + .feature { margin-top: 1.25rem; }

.feature h2 { color: var(--accent-deep); margin-bottom: 0.6rem; }

.feature-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.feature-link:hover { transform: translateX(3px); }
.feature-link + .feature-link { margin-left: 1.4rem; }

/* ---------- CTA ---------- */

.button {
  display: inline-block;
  margin-top: 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  border-radius: 7px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.button:hover { background: var(--accent-deep); transform: translateY(-1px); }

.cta-buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1rem; }
.cta-buttons .button { margin-top: 0; }

.button-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.button-secondary:hover { background: var(--soft); color: var(--accent-deep); border-color: var(--accent-deep); }

/* ---------- Footer ---------- */

footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.dot { margin: 0 0.6rem; color: var(--line); }

/* ---------- Motion (CSS only, respectful) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero, section { animation: rise 0.6s ease both; }
  section:nth-of-type(1) { animation-delay: 0.05s; }
  section:nth-of-type(2) { animation-delay: 0.1s; }
  section:nth-of-type(3) { animation-delay: 0.15s; }
  section:nth-of-type(4) { animation-delay: 0.2s; }
  section:nth-of-type(5) { animation-delay: 0.25s; }
}

/* translateY-only entrance: an opacity fade lets axe capture failing
   contrast mid-animation (see skillscake-web AGENTS.md). Motion stays, contrast passes. */
@keyframes rise {
  from { transform: translateY(12px); }
  to { transform: translateY(0); }
}
