/*
  anaghadilip.com

  Same layout and components as dipinkrishna.com, with its own palette
  (cool ink + jade instead of warm brown + orange). All colours are tokens in
  :root; nothing below hardcodes a hex.
*/

/* ------------------------------------------------------------------
   1. Fonts (self-hosted, latin + latin-ext)

   These are the subset, re-instanced files from the dipinkrishna theme, so the
   weight ranges are exactly 400-500. Widen one and the font has nothing to
   interpolate.
   ------------------------------------------------------------------ */
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ------------------------------------------------------------------
   2. Tokens
   Contrast (WCAG): text 17:1, muted 7.1:1, labels 6.1:1, accent 8.1:1 on
   surface, ink on accent 8.7:1, accent-deep on light panel 5.0:1.
   ------------------------------------------------------------------ */
:root {
  --bg:          #0c0f10;
  --bg-2:        #0a0d0e;   /* text on accent */
  --surface:     #121617;
  --surface-2:   #181d1f;   /* hover bg, image placeholders */
  --surface-3:   #1e2427;   /* active nav chip */
  --line:        #1e2427;   /* section rules */
  --line-soft:   #161b1c;
  --border:      #252c2f;   /* card borders */
  --border-2:    #2a3235;
  --border-3:    #323b3f;   /* chip / outline button borders */
  --border-hover:#5f6d72;

  --text:        #eef2f1;
  --text-2:      #d5dddb;   /* long-form body */
  --text-3:      #b2bebc;   /* chips, secondary links */
  --muted:       #97a5a2;   /* lead paragraphs, card blurbs */
  --muted-2:     #8a9895;   /* labels, meta */

  --accent:      #3fc1a0;
  --accent-hover:#5ad3b3;
  --accent-link: #7fdcc3;
  --accent-deep: #1b7560;   /* on light panels */
  --accent-glow: rgba(63, 193, 160, 0.16);

  --light:       #eef3f1;   /* inverted panel bg */
  --light-text:  #0c0f10;
  --light-text-2:#3e4a48;
  --light-text-3:#4f5b59;
  --light-muted: #5f6b69;

  --sans:  'Schibsted Grotesk', system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1180px;
  --gutter: 24px;

  --r-card: 20px;
  --r-panel: 24px;
  --r-tile: 16px;
  --r-row: 14px;
  --r-pill: 999px;

  --bg-blur: rgba(12, 15, 16, 0.9);
  --hatch: repeating-linear-gradient(135deg, rgba(238,242,241,0.06) 0 1px, transparent 1px 10px);
}

/* ------------------------------------------------------------------
   3. Base
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.site-main { flex: 1 0 auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-link); text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg-2); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-weight: 500; margin: 0; overflow-wrap: break-word; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.screen-reader-text:focus { position: fixed !important; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto; padding: 12px 20px; background: var(--surface); border: 1px solid var(--accent); border-radius: var(--r-pill); font-family: var(--mono); font-size: 12px; color: var(--text); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ------------------------------------------------------------------
   4. Layout primitives
   ------------------------------------------------------------------ */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }

.grid-cards { display: flex; flex-wrap: wrap; gap: 16px; }
.grid-cards > * { flex: 1 1 340px; min-width: min(280px, 100%); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }

/* ------------------------------------------------------------------
   5. Type
   ------------------------------------------------------------------ */
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); display: block; }
.label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }

.h-hero { font-size: clamp(40px, 7.4vw, 88px); line-height: 0.98; letter-spacing: -0.042em; margin: 34px 0 28px; max-width: 17ch; text-wrap: balance; }
.h-page { font-size: clamp(34px, 5.4vw, 62px); line-height: 1.02; letter-spacing: -0.038em; margin: 22px 0; text-wrap: balance; }
.h-page--wide { max-width: 20ch; }
.h-single { font-size: clamp(32px, 4.8vw, 54px); line-height: 1.04; letter-spacing: -0.036em; margin: 0 0 24px; text-wrap: balance; }
.h-section { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.03em; }
.h-card { font-size: 23px; line-height: 1.2; letter-spacing: -0.025em; }
.h-panel { font-size: 22px; letter-spacing: -0.025em; }
.h-mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); font-weight: 400; margin: 0 0 18px; }

.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); max-width: 56ch; overflow-wrap: anywhere; }
.lead--page { font-size: 18px; max-width: 58ch; margin: 0 0 44px; }
.lead--single { font-size: 19px; max-width: 52ch; margin: 0 0 26px; }

.meta { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); }

/* ------------------------------------------------------------------
   6. Buttons, chips, pills
   ------------------------------------------------------------------ */
.btn { display: inline-block; font-family: var(--mono); font-size: 12.5px; padding: 14px 22px; border-radius: var(--r-pill); border: 1px solid transparent; line-height: 1.2; text-decoration: none; transition: background .18s, border-color .18s, color .18s; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: var(--bg-2); font-weight: 500; }
.btn--primary:hover { background: var(--accent-hover); color: var(--bg-2); }
.btn--outline { border-color: var(--border-3); color: var(--text); }
.btn--outline:hover { border-color: var(--border-hover); background: var(--surface); color: var(--text); }
.btn--outline-accent { border-color: var(--border-3); color: var(--text); }
.btn--outline-accent:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { font-size: 12px; padding: 12px 20px; }

.chip { display: inline-block; font-family: var(--mono); font-size: 11px; border: 1px solid var(--border-3); color: var(--text-3); padding: 7px 12px; border-radius: var(--r-pill); line-height: 1.2; }
.chip--sm { font-size: 10.5px; padding: 6px 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--tight { gap: 7px; }

.link-more { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.link-back { font-family: var(--mono); font-size: 11.5px; color: var(--accent); }

/* ------------------------------------------------------------------
   7. Header

   Three nav items fit beside the brand on a phone once they wrap, so there is
   no toggle and no JavaScript on the site at all.
   ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg-blur); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { padding-top: 16px; padding-bottom: 16px; display: flex; align-items: center; gap: 12px 26px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; gap: 1px; margin-right: auto; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand__name { font-size: 18px; font-weight: 500; letter-spacing: -0.025em; }
.brand__role { font-family: var(--mono); font-size: 10px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted-2); }
.brand__name--footer { font-size: 19px; font-weight: 400; }

.site-nav ul { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; }
.site-nav a { display: block; padding: 8px 13px; border-radius: var(--r-pill); color: var(--text-3); transition: background .15s, color .15s; }
.site-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.site-nav .is-active > a { color: var(--text); background: var(--surface-3); }

/* ------------------------------------------------------------------
   8. Cards, tiles, panels
   ------------------------------------------------------------------ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); display: flex; flex-direction: column; color: var(--text); text-decoration: none; overflow: hidden; }
a.card { transition: border-color .18s, transform .18s; }
a.card:hover { border-color: var(--border-hover); text-decoration: none; color: var(--text); }
.card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 11px; }
.card__blurb { font-size: 15.5px; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.card__stack { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.03em; color: var(--muted-2); margin-top: auto; padding-top: 2px; }

.shot { background-color: var(--surface-2); background-image: var(--hatch); position: relative; overflow: hidden; }
.shot--card { height: 170px; border-bottom: 1px solid var(--border); }
.shot--hero { height: clamp(220px, 34vw, 420px); border-radius: var(--r-panel); border: 1px solid var(--border); }
.shot--portrait { height: 420px; border-radius: var(--r-panel); border: 1px solid var(--border); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-tile); padding: 22px 24px; display: flex; flex-direction: column; gap: 7px; }
.tile__value { font-size: 18px; letter-spacing: -0.02em; color: var(--text); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 30px 32px; }
.panel--inverse { background: var(--light); color: var(--light-text); border: 0; border-radius: var(--r-panel); padding: 48px 40px; }
.panel--outline { background: transparent; border: 1px solid var(--border); border-radius: var(--r-panel); padding: 52px 40px; }

.row { border: 1px solid var(--border); border-radius: var(--r-row); padding: 16px 20px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; color: var(--text); }
.row--filled { background: var(--surface); }

/* ------------------------------------------------------------------
   9. Home
   ------------------------------------------------------------------ */
.hero { padding-top: 76px; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid var(--border-2); border-radius: var(--r-pill); background: var(--surface); }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.status__text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-3); }
.hero__lead { margin-bottom: 36px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 60px; }

.facts { padding-bottom: 20px; display: flex; flex-wrap: wrap; gap: 16px; }
.facts .tile { flex: 1 1 220px; }

.selected-work { padding-top: 52px; }

.capabilities { padding-top: 64px; }
.capabilities .h-section { margin-bottom: 34px; }
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 34px; }
.cap { display: flex; flex-direction: column; gap: 10px; }
.cap__num { font-family: var(--mono); font-size: 10.5px; color: var(--accent-deep); }
.cap__title { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.cap__body { font-size: 15px; line-height: 1.6; color: var(--light-text-3); }

.stack { padding-top: 64px; }
.stack .h-panel { margin-bottom: 18px; }

.cta { padding-top: 64px; padding-bottom: 84px; }
.cta__inner { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.cta__copy { flex: 1 1 380px; min-width: 0; }
.cta__title { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.032em; margin-bottom: 12px; max-width: 22ch; }
.cta__text { font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.cta .btn--primary { padding: 15px 24px; }

/* ------------------------------------------------------------------
   10. Work index + project
   ------------------------------------------------------------------ */
.page-intro { padding-top: 68px; padding-bottom: 90px; }
.empty { color: var(--muted); }

.project-card { padding: 28px 30px 30px; gap: 12px; }
.project-card__top { display: flex; align-items: center; justify-content: space-between; }
.project-card__num { font-family: var(--mono); font-size: 10.5px; color: var(--accent); }
.project-card__title { font-size: clamp(21px, 2.2vw, 27px); line-height: 1.18; letter-spacing: -0.028em; }
.project-card .chips { margin-top: 4px; }

.project-head { padding-top: 56px; }
.project-head__cols { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 26px; align-items: flex-start; }
.project-head__main { flex: 1 1 min(100%, 480px); min-width: 0; }
.project-head__meta { flex: 0 1 300px; min-width: min(250px, 100%); padding: 26px 28px; gap: 18px; }
.meta-item { display: flex; flex-direction: column; gap: 5px; }
.meta-item__value { font-size: 16px; color: var(--text); line-height: 1.4; overflow-wrap: anywhere; }

.project-shot { padding-top: 44px; }

.project-detail { padding-top: 56px; display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.project-detail__points { flex: 1 1 min(100%, 420px); min-width: 0; }
.project-detail__stack { flex: 0 1 320px; min-width: min(260px, 100%); }
.points { display: flex; flex-direction: column; gap: 16px; }
.points li { display: flex; gap: 14px; align-items: flex-start; font-size: 16.5px; line-height: 1.62; color: var(--text-2); }
.points li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 9px; }
.stack-text { font-family: var(--mono); font-size: 13px; line-height: 1.8; color: var(--text-3); }

.project-next { padding-top: 60px; padding-bottom: 90px; }
.project-next__inner { border-top: 1px solid var(--line); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.project-next__title { font-size: 20px; letter-spacing: -0.02em; }

/* ------------------------------------------------------------------
   11. About
   ------------------------------------------------------------------ */
.about-head { padding-top: 68px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.about-head__text { flex: 1 1 min(100%, 460px); min-width: 0; }
.about-head__text .h-single { margin: 22px 0 26px; }
.about-head__intro { display: flex; flex-direction: column; gap: 18px; max-width: 62ch; }
.about-head__intro p { font-size: 18px; line-height: 1.65; color: var(--text-2); }
.about-head__portrait { flex: 0 1 340px; min-width: min(260px, 100%); }

.experience { padding-bottom: 60px; }
.experience__list { display: flex; flex-direction: column; gap: 10px; }
.role { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-tile); padding: 22px 26px; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; }
.role__years { flex: 0 1 180px; font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }
.role__body { flex: 1 1 260px; }
.role__title { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 5px; }
.role__org { font-size: 15.5px; color: var(--muted); }

.skills { padding-bottom: 90px; }
.skills .panel--inverse { padding: 44px 40px; }
.skills__title { font-size: clamp(23px, 2.4vw, 32px); letter-spacing: -0.03em; margin-bottom: 32px; }
.skills__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 30px 40px; }
.skill__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-deep); font-weight: 400; margin-bottom: 10px; }
.skill__items { font-size: 15.5px; line-height: 1.6; color: var(--light-text-2); }
.skills__note { font-family: var(--mono); font-size: 12px; color: var(--light-muted); margin-top: 38px; }
.skills__note + .skills__note { margin-top: 8px; }

/* ------------------------------------------------------------------
   12. Contact
   ------------------------------------------------------------------ */
.contact { padding-top: 68px; padding-bottom: 100px; display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: flex-start; }
.contact__intro { flex: 1 1 min(100%, 440px); min-width: 0; }
.contact__intro .h-single { margin: 22px 0; }
.contact__intro .lead { font-size: 17.5px; line-height: 1.62; max-width: 44ch; margin-bottom: 34px; }
.contact__rows { flex: 1 1 380px; min-width: min(280px, 100%); display: flex; flex-direction: column; gap: 10px; }
.contact-row { font-family: var(--mono); font-size: 12.5px; }
.contact-row__label { color: var(--muted-2); letter-spacing: 0.09em; text-transform: uppercase; font-size: 10.5px; padding-top: 2px; }
.contact-row__value { color: var(--text); overflow-wrap: anywhere; }
.contact-row__value a { color: var(--text); }
.contact-row__value a:hover { color: var(--accent); }

/* ------------------------------------------------------------------
   13. 404
   ------------------------------------------------------------------ */
.page-plain { padding-top: 60px; padding-bottom: 90px; }
.page-plain .h-single { margin: 22px 0 18px; }
.page-plain__actions { margin-top: 32px; }

/* ------------------------------------------------------------------
   14. Footer
   ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; }
.site-footer__inner { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.site-footer__brand { margin-right: auto; }
.site-footer__brand .brand__role { margin-top: 6px; font-size: 10.5px; letter-spacing: 0.09em; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); font-size: 12px; }
.site-footer__col a { color: var(--text-3); }
.site-footer__col a:hover { color: var(--accent); text-decoration: none; }
.site-footer__bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted-2); }

/* ------------------------------------------------------------------
   15. Small screens
   Tiers: 900px (tablet), 720px (phone nav + touch targets), 640px, 420px.
   ------------------------------------------------------------------ */
@media (hover: hover) {
  a.card:hover { transform: translateY(-3px); }
}

@media (max-width: 900px) {
  .hero { padding-top: 60px; }
  .hero__actions { margin-bottom: 52px; }
  .selected-work, .capabilities, .stack, .cta { padding-top: 52px; }
  .cta { padding-bottom: 68px; }
  .page-intro { padding-top: 56px; padding-bottom: 68px; }
  .project-head { padding-top: 44px; }
  .project-head__cols { gap: 32px; }
  .project-detail { padding-top: 44px; gap: 32px 40px; }
  .project-next { padding-bottom: 68px; }
  .about-head { padding-top: 56px; padding-bottom: 44px; gap: 36px; }
  .skills { padding-bottom: 68px; }
  .contact { padding-top: 56px; padding-bottom: 72px; gap: 36px 40px; }
}

@media (max-width: 720px) {
  .site-header__inner { padding-top: 10px; padding-bottom: 10px; }
  .site-nav ul { gap: 2px; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; }

  /* 48px hit areas around small mono text; the type itself stays the same size. */
  .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; }
  .brand { min-height: 48px; justify-content: center; }
  .link-more, .link-back { display: inline-flex; align-items: center; min-height: 48px; }
  .section-head { align-items: center; }
  .contact-row__value a { display: inline-flex; align-items: center; min-height: 48px; }

  .site-footer__col { gap: 8px; }
  .site-footer__col a { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; }
}

/* Brand over a full-width nav row once the two no longer fit side by side.
   Two rows pinned to the top would cover a fifth of a phone screen, so the
   header scrolls away here. */
@media (max-width: 480px) {
  .site-header { position: static; }
  .brand { margin-right: 0; width: 100%; min-height: 0; }
  .site-nav { width: 100%; margin-left: -12px; }
}

@media (max-width: 640px) {
  .panel--inverse, .panel--outline { padding: 32px 22px; }
  .panel { padding: 24px 22px; }
  .hero { padding-top: 44px; }
  .shot--portrait { height: 300px; }
  .cap-grid { gap: 26px; }
  .skills .panel--inverse { padding: 32px 22px; }
  .skills__grid { gap: 24px; }
  .site-footer__inner { gap: 28px; }
}

@media (max-width: 420px) {
  :root { --gutter: 20px; }
  .card__body { padding: 20px 20px 22px; }
  .project-card { padding: 22px 20px 24px; }
  .tile { padding: 18px 20px; }
  .panel { padding: 22px 18px; }
  .panel--inverse, .panel--outline, .skills .panel--inverse { padding: 28px 18px; }
  .role { padding: 18px 20px; }
  .row { padding: 14px 16px; }
  .btn { padding: 13px 18px; }
}
