/* ==========================================================================
   CHROME: nav and footer, shared by every page.
   ========================================================================== */

/* Theme switch: the new theme grows out of the toggle (core.js), so the
   default cross-fade is off. */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  height: var(--nav-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }

.nav__brand {
  display: inline-flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 18px 0 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em;
  transition: background-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
/* The mark: her initials, selected, the way the site selects everything else (Figma: Site · Home, "Brand", option A).
   Pointing at it turns the selection component-purple. */
.nav__mark {
  --sel: var(--ink);
  position: relative; flex: none;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  box-shadow: inset 0 0 0 1.5px var(--sel);
  font-size: 13px; line-height: 1; letter-spacing: -0.02em;
  transition: box-shadow var(--t-base) var(--ease-out);
}
.nav__mark i { position: absolute; width: 6px; height: 6px; border-radius: 1px; background: var(--surface); box-shadow: inset 0 0 0 1.25px var(--sel); transition: box-shadow var(--t-base) var(--ease-out); }
.nav__mark i:nth-child(1) { left: -3px; top: -3px; } .nav__mark i:nth-child(2) { right: -3px; top: -3px; }
.nav__mark i:nth-child(3) { left: -3px; bottom: -3px; } .nav__mark i:nth-child(4) { right: -3px; bottom: -3px; }
@media (hover: hover) { .nav__brand:hover .nav__mark { --sel: var(--component); } }
.nav.is-scrolled .nav__brand {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-s);
}

.nav__pill {
  position: relative;
  display: flex; align-items: center; gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-s), inset 0 0 0 1px var(--line-2);
}
.nav__links { display: flex; }
.nav__links a {
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: var(--fs-small); font-weight: 500;
  color: var(--ink-2);
  transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
}
@media (hover: hover) { .nav__links a:hover { color: var(--ink); background: var(--bg-2); } }
.nav__links a[aria-current] { color: var(--ink); background: var(--bg-2); }
/* Resume opens the PDF in a new tab, so it carries a small out-arrow. */
.nav__ext { width: 12px; height: 12px; margin-left: 5px; opacity: 0.55; }
.nav__sep { width: 1px; height: 20px; margin: 0 4px; background: var(--line); }
.nav__menu { display: none; }

@media (width < 900px) {
  .nav__links, .nav__sep { display: none; }
  .nav__menu { display: grid; }
  .nav.is-open .nav__links {
    position: absolute; top: calc(100% + 8px); right: 0;
    display: grid; gap: 4px; min-width: 200px;
    padding: 8px;
    border-radius: var(--r-l);
    background: var(--surface);
    box-shadow: var(--shadow-l), inset 0 0 0 1px var(--line-2);
  }
  .nav.is-open .nav__links a { height: 48px; font-size: var(--fs-body); }
}
@media (width < 760px) {
  .nav { transition: translate 320ms var(--ease-out); }
  .nav.is-tucked { translate: 0 calc(-100% - 24px); }
}
@media (width < 520px) {
  .nav__name { display: none; }
  /* Just the mark: a rounded square, so the selection handles sit inside it rather than poking out of a circle */
  .nav__brand { padding: 0 9px; border-radius: 14px; }
}

/* ---------- Footer ----------
   A calm ink panel with its own tokens. */
.contact {
  --c-bg: #1C1C1F;
  --c-ink: #F2F2EE;
  --c-ink-2: rgba(242, 242, 238, 0.64);
  --c-line: rgba(242, 242, 238, 0.14);
  position: relative;
  margin: 0 12px 12px;
  padding: 144px 0 32px;
  border-radius: var(--r-xl);
  background: var(--c-bg);
  color: var(--c-ink);
}
.contact__title {
  display: grid;
  font-family: var(--font-display);
  font-size: clamp(48px, 7.6vw, 120px);
  line-height: 0.96;
  font-weight: 600;
  font-stretch: 94%;
  letter-spacing: -0.045em;
}
.contact__line { justify-self: start; }
.contact__line:first-child { color: var(--c-ink-2); }
.contact__squiggle { display: block; width: max-content; max-width: 100%; margin-top: 4px; padding: 16px 0; cursor: default; }
.contact__coil { position: relative; display: block; overflow: visible; }
.contact__coil path { fill: none; stroke: #F2DC7A; stroke-linecap: round; stroke-linejoin: round; }
.contact__row { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; margin-top: 72px; }
.contact__email {
  display: inline-flex; align-items: center; gap: 24px;
  max-width: 100%;
  height: 72px; padding: 0 12px 0 32px;
  border-radius: var(--r-pill);
  background: #F2DC7A; color: #1C1C1F;
  font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-base) var(--ease-out);
}
.contact__email > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact__email:active { transform: scale(0.98); }
.contact__copy {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 48px; padding: 0 20px;
  border-radius: var(--r-pill);
  background: #1C1C1F; color: #F2F2EE;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
}
.contact__copy svg { width: 16px; height: 16px; }
@media (hover: hover) { .contact__email:hover { background: #F6E7A3; } }
.contact__links { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.contact__links a {
  font-size: 18px; line-height: 28px; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px;
  text-decoration-color: var(--c-line);
  transition: text-decoration-color var(--t-base) var(--ease-out);
}
@media (hover: hover) { .contact__links a:hover { text-decoration-color: #F2DC7A; } }
.contact__base {
  display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap;
  margin-top: 120px; padding-top: 24px;
  border-top: 1px solid var(--c-line);
  font-size: 13px; line-height: 20px; color: var(--c-ink-2);
}
kbd {
  display: inline-block; padding: 0 6px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px currentColor;
  font: 500 12px/20px var(--font-mono);
}

@media (width < 640px) {
  .contact { margin: 0 8px 8px; padding-top: 96px; border-radius: var(--r-l); }
  .contact__email { width: 100%; justify-content: space-between; height: 60px; gap: 12px; padding-left: 20px; font-size: 15px; }
  .contact__copy { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .contact__copy-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .contact__base { margin-top: 72px; flex-direction: column; }
}
