/* Keri Zeller portfolio — shared styles
   Brand: KZ deep blue #295989, sky #5985AC, white. Poppins for headings/UI, Source Serif 4 for reading text. */

:root {
  --ink: #295989;
  --ink-deep: #1d4268;
  --sky: #5985ac;
  --mist: #eef3f8;
  --line: #d6e0ea;
  --text: #1e2b3a;
  --muted: #55657a;
  --paper: #ffffff;
  --amber: #e8b04b;
  --sans: "Poppins", "Segoe UI", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 72rem;
  --read: 40rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--sans); color: var(--ink-deep); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--text); padding: .5rem 1rem; z-index: 10; font-family: var(--sans); }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; color: var(--ink-deep); text-decoration: none; }
.brand span { font-weight: 400; color: var(--muted); }
.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a { font-family: var(--sans); font-size: .95rem; color: var(--text); text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--sky); color: var(--ink-deep); }

/* ---------- Blueprint hero (home) ---------- */
.blueprint {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  color: #fff;
}
.hero { padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3rem; align-items: end; }
.hero h1 { color: #fff; margin-bottom: .25em; }
.hero .role { font-family: var(--sans); font-size: clamp(1.1rem, 2.2vw, 1.45rem); font-weight: 400; color: #d7e4f1; margin: 0 0 1.75rem; }
.hero .lede { font-size: 1.2rem; max-width: 36rem; color: #f2f6fa; }
.hero-note { border-left: 2px solid rgba(255,255,255,.5); padding-left: 1.25rem; font-family: var(--sans); font-size: .95rem; line-height: 1.6; color: #d7e4f1; }
.hero-note strong { display: block; color: #fff; font-weight: 600; margin-bottom: .35rem; }

.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.btn { display: inline-block; font-family: var(--sans); font-size: .98rem; font-weight: 500; padding: .8rem 1.4rem; border-radius: 6px; text-decoration: none; border: 2px solid transparent; }
.btn-light { background: #fff; color: var(--ink-deep); }
.btn-light:hover { background: var(--mist); color: var(--ink-deep); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--ink-deep); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--mist); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-mist { background: var(--mist); }
.section-intro { max-width: var(--read); margin-bottom: 2.5rem; color: var(--muted); }

/* ---------- Work list (home) ---------- */
.work-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.work-item { border-bottom: 1px solid var(--line); }
.work-link { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; padding: 2.25rem 0; text-decoration: none; color: inherit; }
.work-link:hover h3 { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.work-link h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: .4rem; }
.work-link .kind { font-family: var(--sans); font-size: .9rem; color: var(--sky); margin: 0 0 .5rem; font-weight: 500; }
.work-link p { margin: 0; color: var(--text); }
.work-meta { display: flex; flex-direction: column; gap: .9rem; justify-content: center; }
.work-meta .myrole { font-family: var(--sans); font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- ADDIE strip ---------- */
.addie { display: flex; gap: .35rem; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.addie li { font-family: var(--sans); font-size: .78rem; font-weight: 500; padding: .3rem .6rem; border-radius: 4px; border: 1px solid var(--line); color: #8796a8; background: var(--paper); }
.addie li.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.addie-label { font-family: var(--sans); font-size: .82rem; color: var(--muted); margin: 0 0 .4rem; }
.blueprint .addie li { background: transparent; border-color: rgba(255,255,255,.35); color: rgba(255,255,255,.55); }
.blueprint .addie li.on { background: #fff; border-color: #fff; color: var(--ink-deep); }

/* ---------- About (home) ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 3rem; align-items: start; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: var(--ink); }
.portrait-fallback { width: 100%; aspect-ratio: 4 / 5; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--sans); font-size: 3.5rem; font-weight: 600; }
.about-text { max-width: var(--read); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem 2rem; margin: 2rem 0 0; }
.facts div { border-top: 2px solid var(--sky); padding-top: .75rem; }
.facts dt { font-family: var(--sans); font-weight: 600; color: var(--ink-deep); font-size: .98rem; }
.facts dd { margin: .2rem 0 0; font-size: 1rem; color: var(--muted); line-height: 1.55; }

/* ---------- Case study pages ---------- */
.case-head { padding: clamp(3rem, 7vw, 5rem) 0 2.5rem; border-bottom: 1px solid var(--line); }
.case-head .back { font-family: var(--sans); font-size: .92rem; display: inline-block; margin-bottom: 1.5rem; }
.case-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 22ch; }
.case-head .summary { font-size: 1.25rem; max-width: var(--read); color: var(--muted); margin: 0; }

.case-body { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding: 3rem 0 4rem; }
.snapshot { align-self: start; position: sticky; top: 1.5rem; font-family: var(--sans); font-size: .93rem; line-height: 1.55; }
.snapshot dl { margin: 0 0 1.75rem; }
.snapshot dt { font-weight: 600; color: var(--ink-deep); margin-top: 1rem; }
.snapshot dt:first-child { margin-top: 0; }
.snapshot dd { margin: .15rem 0 0; color: var(--muted); }

.prose { max-width: var(--read); }
.prose h2 { margin-top: 2.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.5rem; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.4rem 3.25rem; margin: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: .1rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  border: 2px solid var(--sky); color: var(--ink-deep);
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  display: grid; place-items: center;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.03rem; top: 2.45rem; bottom: .2rem; width: 2px; background: var(--line); }
.steps strong { font-family: var(--sans); font-weight: 600; color: var(--ink-deep); display: block; margin-bottom: .2rem; font-size: 1.02rem; }

.callout { background: var(--mist); border-left: 4px solid var(--ink); padding: 1.25rem 1.5rem; border-radius: 0 6px 6px 0; margin: 1.5rem 0 2rem; }
.callout p:last-child { margin-bottom: 0; }

/* Samples */
.samples { display: grid; gap: 1rem; margin: 1.25rem 0 2rem; }
.sample { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: inherit; }
a.sample:hover { border-color: var(--sky); background: var(--mist); }
.sample .type { font-family: var(--sans); font-size: .78rem; font-weight: 600; color: var(--ink); background: var(--mist); border-radius: 4px; padding: .3rem .55rem; min-width: 5.2rem; text-align: center; }
a.sample:hover .type { background: #fff; }
.sample .title { font-family: var(--sans); font-size: .98rem; font-weight: 500; color: var(--text); }
.sample .note { display: block; font-family: var(--serif); font-size: .95rem; color: var(--muted); font-weight: 400; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--ink-deep); margin: 1.25rem 0 .5rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.caption { font-family: var(--sans); font-size: .88rem; color: var(--muted); margin-bottom: 1.75rem; }

/* Draft placeholders: remove once real links are added */
.todo { border: 2px dashed var(--amber) !important; background: #fff9ec !important; }
.video.todo { display: grid; place-items: center; color: var(--text); font-family: var(--sans); font-size: .95rem; padding: 1rem; text-align: center; }

.next { border-top: 1px solid var(--line); padding: 2.5rem 0 3.5rem; }
.next a { font-family: var(--sans); font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 600; text-decoration: none; }
.next a:hover { text-decoration: underline; }
.next p { font-family: var(--sans); font-size: .9rem; color: var(--muted); margin: 0 0 .35rem; }

/* ---------- Contact / footer ---------- */
.contact { text-align: left; }
.contact h2 { color: #fff; }
.contact p { color: #e3ecf5; max-width: 34rem; }
.site-footer { padding: 2rem 0; font-family: var(--sans); font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .work-link, .about-grid, .case-body { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 2rem; }
  .work-link { gap: 1rem; }
  .about-grid .portrait, .about-grid .portrait-fallback { max-width: 13rem; }
  .snapshot { position: static; border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; }
}
@media (max-width: 520px) {
  body { font-size: 1.05rem; }
  .site-nav { gap: 1rem; }
}
