/* =========================================================
   Katy German — Portfolio
   Design keywords: professional · expert · accessible · empathetic
   ========================================================= */

:root {
  --ink: #22303a;          /* primary text - deep slate */
  --ink-soft: #4d5d66;     /* secondary text */
  --muted: #6f7f87;        /* meta text */
  --primary: #2c6e7f;      /* teal - trustworthy, expert */
  --primary-dk: #1f5361;
  --accent: #2f9e6a;       /* positive green - growth, achievement */
  --accent-dk: #1a6b47;    /* deep green - accessible text on light */
  --accent-soft: #dcefe4;
  --bg: #fbf8f4;           /* warm cream */
  --surface: #ffffff;
  --line: #e7e0d7;         /* warm hairline */
  --ring: #2c6e7f;
  --shadow: 0 1px 2px rgba(34,48,58,.05), 0 10px 30px rgba(34,48,58,.06);
  --shadow-lift: 0 6px 14px rgba(34,48,58,.09), 0 18px 44px rgba(34,48,58,.10);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* ---- Accessibility helpers ---- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 0; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; }

a { color: var(--primary-dk); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,248,244,.85);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-weight: 600; font-size: 20px;
  color: var(--ink); text-decoration: none; letter-spacing: -.01em;
}
.brand .mono {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: inline-grid; place-items: center;
  font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: .02em;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 16px;
}
.nav-links a:hover { color: var(--primary-dk); }
.nav-links a[aria-current="page"] { color: var(--primary-dk); font-weight: 600; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: #fff !important; padding: 9px 16px;
  border-radius: 999px; font-size: 15px; font-weight: 600;
}
.nav-cta:hover { background: var(--primary-dk); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .18s ease, box-shadow .18s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dk); }

/* ---- Eyebrow / typography ---- */
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px;
  font-weight: 700; color: var(--accent-dk); margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--serif); color: var(--ink); letter-spacing: -.015em; line-height: 1.12; }
.lede { font-size: 20px; color: var(--ink-soft); }

/* ---- Hero ---- */
.hero { padding: 78px 0 34px; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); margin: 0 0 22px; font-weight: 600; }
.hero .lede { max-width: 640px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px;
  color: var(--muted); font-size: 15px; font-weight: 500;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* ---- Section heads ---- */
.section { padding: 30px 0 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 8px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0; font-weight: 600; }
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---- Work cards (home) ---- */
.cards { display: grid; grid-template-columns: 1fr; gap: 22px; padding-bottom: 40px; }
.card {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #d9cfc1; }
.card-accent { height: 6px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.card-body { padding: 30px 32px 34px; }
.card .kicker { font-size: 13.5px; font-weight: 600; color: var(--primary); letter-spacing: .01em; margin: 0 0 10px; }
.card h3 { font-size: 25px; margin: 0 0 12px; font-weight: 600; }
.card p { margin: 0 0 20px; color: var(--ink-soft); font-size: 17px; max-width: 62ch; }
.card a.stretched::after { content: ""; position: absolute; inset: 0; }
.card .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--primary-dk); text-decoration: none; }
.card:hover .more { gap: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 22px; }
.chip {
  font-size: 13.5px; font-weight: 600; color: var(--primary-dk);
  background: #eaf2f3; border: 1px solid #d7e6e8; padding: 6px 12px; border-radius: 999px;
}
.chip-num { background: var(--accent-soft); border-color: #bfe0cd; color: var(--accent-dk); }

/* ---- Case study layout ---- */
.backlink { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; margin: 30px 0 8px; }
.backlink:hover { color: var(--primary-dk); }
.case-header { padding: 8px 0 26px; border-bottom: 1px solid var(--line); }
.case-header h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 600; margin: 14px 0 16px; max-width: 20ch; }
.case-header .lede { max-width: 640px; }
.metabar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 30px 0 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.metabar div { padding: 16px 20px; border-right: 1px solid var(--line); }
.metabar div:last-child { border-right: 0; }
.metabar dt { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin: 0 0 4px; }
.metabar dd { margin: 0; font-weight: 600; color: var(--ink); font-size: 16px; }

.case-body { padding: 20px 0 10px; max-width: 760px; }
.case-body h2 { font-size: 26px; font-weight: 600; margin: 40px 0 14px; }
.case-body p { color: var(--ink-soft); }
.case-body ul { padding-left: 0; list-style: none; margin: 18px 0; }
.case-body li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--ink-soft); }
.case-body li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.case-body li b { color: var(--ink); }

.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 22px 0 8px; }
.result {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 20px; box-shadow: var(--shadow);
}
.result .num { font-family: var(--serif); font-size: 38px; font-weight: 600; color: var(--primary); line-height: 1; }
.result .lab { display: block; margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); font-weight: 500; }

.pullquote { border-left: 4px solid var(--accent); padding: 6px 0 6px 22px; margin: 30px 0; font-family: var(--serif); font-size: 22px; color: var(--ink); font-style: italic; line-height: 1.4; }

.toolrow { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0 0; }
.tool { font-size: 14px; font-weight: 500; color: var(--ink-soft); background: #f3ede4; border: 1px solid var(--line); padding: 7px 13px; border-radius: 8px; }

.case-next { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 44px 0 10px; padding-top: 26px; border-top: 1px solid var(--line); }
.case-next span { color: var(--muted); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

/* ---- About ---- */
.about-hero { display: grid; grid-template-columns: 150px 1fr; gap: 34px; align-items: start; padding: 60px 0 20px; }
.avatar { width: 150px; height: 150px; border-radius: 50%; background: linear-gradient(140deg, var(--primary), var(--primary-dk)); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 52px; box-shadow: var(--shadow-lift); }
.about-hero h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 600; margin: 0 0 18px; }
.about-hero .lede { font-size: 21px; color: var(--ink-soft); max-width: 60ch; }
.about-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 20px 0; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 28px; box-shadow: var(--shadow); }
.value .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-dk); display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.value h3 { font-size: 19px; margin: 0 0 8px; font-weight: 600; }
.value p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); margin: 12px 0; }
.facts div { padding: 20px 22px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts .k { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.facts .v { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--primary); margin-top: 4px; }
.toolcloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---- CTA band ---- */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 44px 40px; margin: 44px 0 10px; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); font-weight: 600; margin: 0 0 12px; }
.cta-band p { color: #c7d3d8; margin: 0 auto 24px; max-width: 52ch; }
.cta-band .btn-primary { background: #1f7a52; }
.cta-band .btn-primary:hover { background: #185f40; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 34px 0 46px; color: var(--muted); font-size: 15px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.foot a:hover { color: var(--primary-dk); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---- Responsive ---- */
@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav-links { gap: 16px; }
  .nav-links a.hide-sm { display: none; }
  .metabar { grid-template-columns: 1fr; }
  .metabar div { border-right: 0; border-bottom: 1px solid var(--line); }
  .metabar div:last-child { border-bottom: 0; }
  .about-hero { grid-template-columns: 1fr; gap: 22px; }
  .avatar { width: 108px; height: 108px; font-size: 38px; }
  .facts div { border-right: 0; border-bottom: 1px solid var(--line); }
}

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