/* saraefoy.com — site styles */
:root {
  --ink: #16181D;
  --body: #3D424B;
  --muted: #5A606B;
  --line: #E4E6EA;
  --bg: #FFFFFF;
  --soft: #F2F5F5;
  --accent: #0B5F62;
  --accent-dark: #083F41;
  --accent-tint: #E6F0F0;
  --accent-ink: #0B4A4C;
  --radius: 14px;
  --wrap: 1200px;
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -0.015em; }
h1 { font-weight: 800; font-size: clamp(36px, 5vw, 56px); line-height: 1.08; margin: 0 0 24px; }
h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin: 0 0 24px; }
h3 { font-weight: 700; font-size: 21px; line-height: 1.3; margin: 0 0 8px; }
p { margin: 0 0 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; color: #fff; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.logo img { height: 48px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-weight: 500; font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav a.btn { color: #fff; padding: 10px 18px; text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 48px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 26px; border-radius: 8px; border: 1.5px solid var(--accent); }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--accent-ink); border-color: #fff; }
.btn-light:hover { background: var(--accent-tint); color: var(--accent-ink); border-color: var(--accent-tint); }
.btn-ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--accent-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 19px; color: var(--body); max-width: 620px; }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 88px; padding-bottom: 96px; }
.hero-text { flex: 1 1 460px; min-width: 0; }
.hero-text .lead { margin-bottom: 36px; }
.hero-visual { flex: 1 1 440px; min-width: 0; }
@media (max-width: 600px) { .hero .wrap { padding-top: 48px; padding-bottom: 56px; gap: 40px; } }

/* Drawn course-player preview */
.player-frame { background: var(--soft); border-radius: 16px; padding: 28px; }
.player { background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(22,24,29,.08); overflow: hidden; }
.player-bar { display: flex; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.player-bar b { font-weight: 600; }
.player-bar span { color: var(--muted); }
.slide { position: relative; height: 260px; background: #F7E9EF; overflow: hidden; }
.blob { position: absolute; }
.b1 { left: 8%; top: 14%; width: 36%; height: 50%; border-radius: 50% 44% 52% 40%; background: #E6B8CB; }
.b2 { left: 32%; top: 42%; width: 44%; height: 46%; border-radius: 46% 54% 40% 56%; background: #DDA2BC; }
.b3 { left: 64%; top: 9%; width: 26%; height: 37%; border-radius: 50%; background: #E9C3D3; }
.ring { position: absolute; left: 42%; top: 35%; width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--accent); }
.note { position: absolute; right: 16px; bottom: 16px; background: #fff; border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.4; max-width: 180px; box-shadow: 0 2px 6px rgba(22,24,29,.12); }
.player-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; font-size: 14px; }
.steps { display: flex; gap: 6px; }
.steps i { width: 28px; height: 6px; border-radius: 3px; background: #D5D9DE; }
.steps i.on { background: var(--accent); }
.fake-btn { background: var(--accent); color: #fff; font-weight: 600; padding: 8px 16px; border-radius: 6px; }

/* Stats strip */
.strip { background: var(--ink); color: #fff; }
.strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; padding-top: 36px; padding-bottom: 36px; }
.strip strong { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; }
.strip span { color: #C9CDD3; font-size: 15px; }

/* Sections */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.section-head h2 { margin: 0; }
@media (max-width: 600px) { .section { padding: 64px 0; } }

/* Project cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.card:hover { color: var(--ink); border-color: var(--accent); box-shadow: 0 4px 16px rgba(22,24,29,.08); }
.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--body); font-size: 16px; margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 0; list-style: none; font-size: 13px; font-weight: 500; }
.tags li { background: var(--accent-tint); color: var(--accent-ink); padding: 4px 10px; border-radius: 999px; }

/* Card thumbnails (drawn placeholders; swap for screenshots) */
.thumb { height: 200px; position: relative; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .badge { position: absolute; left: 16px; bottom: 14px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.t-path { background: #F7E9EF; }
.t-path .b1 { left: 8%; top: 15%; width: 45%; height: 55%; }
.t-path .b2 { left: 38%; top: 45%; width: 52%; height: 50%; }
.t-path .ring { left: 44%; top: 34%; width: 70px; height: 70px; }
.t-access { background: #EEF0F4; display: flex; }
.t-access div { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.t-access div:first-child { border-right: 2px solid var(--ink); }
.t-access div:last-child { background: #fff; }
.t-access small { font-size: 12px; font-weight: 700; color: var(--muted); }
.t-access div:last-child small { color: var(--accent); }
.bar { height: 14px; border-radius: 3px; }
.blk { height: 50px; border-radius: 6px; margin-top: 6px; }
.t-ai { background: #EEF3FA; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.t-ai .row { display: flex; gap: 10px; align-items: center; }
.t-ai .chip { background: #fff; border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.t-ai .arrow { color: var(--muted); font-size: 18px; }
.t-ai .chip.final { background: var(--accent); color: #fff; }
.t-env { background: #E7F1EA; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.t-env .chip { background: #fff; border-radius: 8px; padding: 10px 14px; font-size: 13px; font-weight: 600; }
.t-env .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; }
.t-env .grid3 i { border-radius: 8px; background: #B9D8C2; }
.t-env .grid3 i:nth-child(2) { background: #9CC8AA; }
.t-kit { background: #F6F1E7; padding: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; }
.t-kit i { background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(22,24,29,.1); }
.t-kit i:nth-child(1) { height: 70%; } .t-kit i:nth-child(2) { height: 85%; } .t-kit i:nth-child(3) { height: 100%; } .t-kit i:nth-child(4) { height: 78%; }
.t-econ { background: #F3EEF8; display: flex; align-items: center; justify-content: center; }
.t-econ svg { width: 70%; height: 80%; }

/* Filters on Work page */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.filters a { display: inline-block; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.filters a:hover { border-color: var(--accent); color: var(--accent); }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.services svg { width: 40px; height: 40px; }
.services h3 { margin-top: 14px; }
.services p { color: var(--body); }

/* CTA band */
.cta { background: var(--accent); color: #fff; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 80px; padding-bottom: 80px; }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: #D6E8E8; font-size: 19px; margin: 0; }
.cta-text { flex: 1 1 520px; min-width: 0; }

/* Footer */
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; }

/* Page header */
.page-head { padding: 72px 0 40px; }
.page-head .lead { margin-bottom: 0; }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.about-photo { flex: 0 1 360px; min-width: 0; }
.photo-slot { aspect-ratio: 4 / 5; background: var(--soft); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 15px; padding: 24px; border: 2px dashed #C9CDD3; }
.about-text { flex: 1 1 480px; min-width: 0; }
.about-text p { color: var(--body); }
.glance { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 12px; }
.glance li { display: flex; gap: 12px; align-items: baseline; }
.glance li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }

/* Case study */
.cs-head { padding: 64px 0 32px; }
.back { display: inline-block; margin-bottom: 24px; font-weight: 600; text-decoration: none; }
.cs-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; margin: 32px 0 0; }
.cs-meta dt { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cs-meta dd { margin: 0; font-weight: 500; }
.cs-hero { margin: 40px 0 0; }
.cs-body { display: flex; flex-wrap: wrap; gap: 56px; padding: 64px 0 96px; }
.cs-main { flex: 1 1 600px; min-width: 0; max-width: 760px; }
.cs-main h2 { font-size: 28px; margin: 48px 0 14px; }
.cs-main h2:first-child { margin-top: 0; }
.cs-main p, .cs-main li { color: var(--body); }
.cs-main ol, .cs-main ul { padding-left: 22px; margin: 0 0 16px; }
.cs-main li { margin-bottom: 8px; }
.cs-aside { flex: 1 1 260px; min-width: 0; }
.aside-box { position: sticky; top: 24px; background: var(--soft); border-radius: var(--radius); padding: 24px; }
.aside-box h3 { font-size: 17px; }
.aside-box ul { margin: 0; padding-left: 18px; color: var(--body); font-size: 15px; }
.slot { background: var(--soft); border: 2px dashed #C9CDD3; border-radius: var(--radius); color: var(--muted); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 15px; min-height: 220px; margin: 16px 0 24px; }
.slot.wide { min-height: 420px; }
.demo { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 16px 0 12px; aspect-ratio: 16 / 10; }
.demo iframe { width: 100%; height: 100%; border: 0; }
.todo { background: #FFF6D6; padding: 0 4px; border-radius: 3px; color: #5C4300; }
.a11y { background: var(--accent-tint); border-radius: var(--radius); padding: 20px 24px; margin: 16px 0; }
.a11y p { margin: 0; color: var(--accent-ink); }
.next { border-top: 1px solid var(--line); padding: 40px 0 0; margin-top: 48px; }
.next a { font-family: var(--display); font-size: 24px; font-weight: 700; text-decoration: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card p { color: var(--body); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }

/* Toolkit documents */
.docs { display: grid; gap: 28px; margin: 24px 0; }
.doc { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; align-items: start; margin: 0; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.doc img { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.doc a:hover img { border-color: var(--accent); }
.doc h3 { margin-top: 0; }
.doc p { color: var(--body); margin-bottom: 8px; }
.doc figcaption > a { font-weight: 600; }
@media (max-width: 600px) { .doc { grid-template-columns: 1fr; } .doc img { max-width: 260px; } }

/* Embedded demos */
.demo { aspect-ratio: auto; height: 620px; max-width: 100%; }
.demo-cap { font-size: 15px; color: var(--muted); }
.demo-cap a { font-weight: 600; }
@media (max-width: 600px) { .demo { height: 520px; } }

/* Headshot */
.headshot { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }

/* Code thumbnail */
.t-code { background: #1F2A2E; display: flex; align-items: center; justify-content: center; padding: 20px; }
.codewin { width: 100%; background: #263338; border-radius: 8px; padding: 12px 14px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; line-height: 1.7; color: #D6E2E2; }
.codewin code { display: block; white-space: nowrap; overflow: hidden; }
.codewin .dots { display: flex; gap: 6px; margin-bottom: 8px; }
.codewin .dots b { width: 9px; height: 9px; border-radius: 50%; background: #5B6B70; }
.codewin .k { color: #7FD1C7; } .codewin .s { color: #F2C38B; } .codewin .n { color: #B9A7F0; }
