/* Shared styles for the redesigned pages (ported from design/redesign mockups, React Bits Pro portfolio template). */
/* Fonts, served from /assets/fonts (Latin subset, OFL; licences sit next to the files). Same files, families,
   weights and unicode-range Google Fonts served before. Fraunces is variable on opsz and SOFT at weight 500;
   the browser sets opsz from the font size (font-optical-sizing: auto). File names carry the upstream version:
   a new file gets a new name, so /assets/fonts can be cached immutable (vercel.json). The two files preloaded
   in chrome.mjs (Geist, Fraunces) must keep these exact URLs. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/fraunces-v38-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: "Geist";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/geist-v5-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: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-v6-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;
}

/* Tokens (from the template's globals.css) */
:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --ring: #0066ff;
  --frame: #ffffff;
  --font-sans: "Geist", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --font-serif: "Fraunces", ui-serif, Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fg-4: color-mix(in srgb, var(--foreground) 4%, transparent);
  --fg-5: color-mix(in srgb, var(--foreground) 5%, transparent);
  --fg-8: color-mix(in srgb, var(--foreground) 8%, transparent);
  --fg-10: color-mix(in srgb, var(--foreground) 10%, transparent);
  --fg-15: color-mix(in srgb, var(--foreground) 15%, transparent);
  --fg-45: color-mix(in srgb, var(--foreground) 45%, transparent);
  --fg-50: color-mix(in srgb, var(--foreground) 50%, transparent);
  --fg-60: color-mix(in srgb, var(--foreground) 60%, transparent);
  --fg-65: color-mix(in srgb, var(--foreground) 65%, transparent);
  --fg-70: color-mix(in srgb, var(--foreground) 70%, transparent);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}
.dark {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --muted: #171717;
  --muted-foreground: #a3a3a3;
  --border: #262626;
  --ring: #3b82f6;
  --frame: #0a0a0a;
}
html { color-scheme: light; }
html.dark { color-scheme: dark; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth iframe { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; background-color: var(--background); color: var(--foreground); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; line-height: 1.5; position: relative; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.focus-ring:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.skip-to-content { position: absolute; left: -9999px; top: 1rem; z-index: 9999; padding: 0.75rem 1rem; background: var(--background); border: 2px solid var(--ring); border-radius: 0.375rem; font-weight: 600; color: var(--foreground); }
.skip-to-content:focus { left: 1rem; outline: 2px solid var(--ring); outline-offset: 2px; }

/* Theme reveal */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html[data-theme-anim="1"]::view-transition-old(root) { z-index: 0; }
html[data-theme-anim="1"]::view-transition-new(root) { z-index: 1; animation: theme-reveal 700ms var(--ease) both; }
@keyframes theme-reveal { from { clip-path: circle(0px at var(--theme-cx) var(--theme-cy)); } to { clip-path: circle(var(--theme-r) at var(--theme-cx) var(--theme-cy)); } }
@media (prefers-reduced-motion: reduce) { html[data-theme-anim="1"]::view-transition-new(root) { animation: none; } }

/* Site frame */
.site-frame { display: block; position: absolute; z-index: 9999; pointer-events: none; background-color: var(--frame); }
.site-frame--top { top: 0; left: 0; right: 0; height: 10px; }
.site-frame--left { top: 0; left: 0; bottom: 0; width: 10px; }
.site-frame--right { top: 0; right: 0; bottom: 0; width: 10px; }
.site-corner { display: block; position: absolute; z-index: 9998; pointer-events: none; color: var(--frame); }
.site-corner--top-left { transform: rotate(90deg); top: 10px; left: 10px; }
.site-corner--top-right { top: 10px; right: 10px; transform: rotate(180deg); }
@media (max-width: 850px) { .site-frame, .site-corner { display: none; } }

/* Backdrop shader */
.backdrop { pointer-events: none; position: absolute; left: 0; right: 0; top: 0; z-index: -10; height: 900px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 100%); mask-image: linear-gradient(to bottom, #000 35%, transparent 100%); }
.backdrop > div { position: absolute; inset: 0; opacity: 0.5; }
@media (min-width: 768px) { .backdrop > div { opacity: 1; } }
.shader { position: absolute; inset: 0; width: 100%; height: 100%; filter: grayscale(100%); }
.shader canvas { display: block; width: 100%; height: 100%; }

.grainient-container { position: relative; width: 100%; height: 100%; overflow: hidden; }
.grainient-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

/* Nav */
.nav { position: fixed; left: 50%; top: 24px; z-index: 50; transform: translateX(-50%); }
.nav-bar { display: flex; align-items: center; gap: 4px; border-radius: 9999px; background: var(--background); padding: 6px; box-shadow: var(--shadow-sm); border: 1px solid var(--fg-8); }
.nav-list { position: relative; display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-pill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 9999px; background: var(--fg-5); box-shadow: inset 0 0 0 1px var(--fg-8); pointer-events: none; }
.nav-pill.animate { transition: transform 450ms cubic-bezier(0.34, 1.3, 0.5, 1), width 450ms cubic-bezier(0.34, 1.3, 0.5, 1); }
.nav-list li { position: relative; }
.nav-list a { position: relative; display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; padding: 6px 16px; font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; }
.nav-list a span { position: relative; z-index: 10; color: var(--fg-60); transition: color 300ms; }
.nav-list a:hover span, .nav-list a[aria-current="page"] span { color: var(--foreground); }
.theme-toggle { position: relative; display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 9999px; background: var(--background); box-shadow: inset 0 0 0 1px var(--fg-8); cursor: pointer; }
.theme-toggle .ic { position: relative; width: 16px; height: 16px; }
.theme-toggle .icon { position: absolute; inset: 0; transition: transform 300ms, opacity 300ms; }
.theme-toggle .sun { transform: rotate(-90deg) scale(0); opacity: 0; }
.theme-toggle .moon { transform: none; opacity: 1; }
.dark .theme-toggle .sun { transform: none; opacity: 1; }
.dark .theme-toggle .moon { transform: rotate(90deg) scale(0); opacity: 0; }
@media (max-width: 420px) { .nav-list a { padding: 6px 11px; } }

/* Layout helpers */
main { display: flex; flex: 1; flex-direction: column; gap: 80px; }
@media (min-width: 640px) { main { gap: 112px; } }
.container { margin: 0 auto; width: 100%; max-width: 1100px; padding: 0 24px; }
@media (min-width: 640px) { .container { padding: 0 40px; } }

/* Entrance (FadeIn / ScaleUnblur, on load like motion's animate) */
.js .fade-in { opacity: 0; transform: translateY(12px); animation: fade-in 0.8s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fade-in { to { opacity: 1; transform: none; } }
.js .scale-unblur { opacity: 0; transform: scale(0.7); filter: blur(20px); animation: scale-unblur 1s var(--ease) forwards; animation-delay: var(--d, 0s); transform-origin: center; }
@keyframes scale-unblur { to { opacity: 1; transform: none; filter: blur(0); } }

/* Buttons */
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--fg-5); border-radius: 12px; background: var(--background); padding: 10px 20px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--foreground); cursor: pointer; transition: background-color 150ms; }
.btn-secondary .icon { transition: transform 300ms; }
.btn-secondary:hover .icon { transform: translateX(2px); }
.btn-secondary.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.btn-secondary.shadow-2xl:hover { background: color-mix(in srgb, var(--foreground) 4%, var(--background)); }
.btn-secondary.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.02), 0 2px 4px -2px rgb(0 0 0 / 0.02); }
.btn-outline { border-color: var(--fg-8); }
.btn-outline:hover { background: color-mix(in srgb, var(--foreground) 5%, var(--background)); }

.contact-btn { position: relative; display: inline-flex; height: 44px; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; background: var(--foreground); padding: 0 20px; font-size: 14px; font-weight: 500; color: var(--background); cursor: pointer; transition: width 550ms var(--ease); }
.contact-btn .face { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: opacity 350ms var(--ease), filter 350ms var(--ease); }
.contact-btn .face.email { position: absolute; left: 20px; opacity: 0; filter: blur(8px); }
.contact-btn.open .face.label { opacity: 0; filter: blur(8px); position: absolute; left: 20px; }
.contact-btn.open .face.email { position: static; opacity: 1; filter: none; }
.contact-btn .swap { position: relative; display: inline-flex; width: 16px; height: 16px; }
.contact-btn .swap .icon { position: absolute; inset: 0; transition: transform 200ms var(--ease), opacity 200ms var(--ease); }
.contact-btn .swap .check { transform: scale(0.5); opacity: 0; }
.contact-btn.copied .swap .copy { transform: scale(0.5); opacity: 0; }
.contact-btn.copied .swap .check { transform: none; opacity: 1; }
.contact-btn .addr { font-variant-numeric: tabular-nums; }

/* Section headings */
.serif-h { font-family: var(--font-serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.025em; }

/* Project cards */
.masonry { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .masonry { grid-template-columns: 1fr 1fr; gap: 28px; } }
.masonry > .fade-in { display: flex; }
.masonry .project-card { flex: 1; }
.project-card .meta { margin-top: auto; }
.project-card { display: flex; flex-direction: column; gap: 16px; border-radius: 1.5rem; border: 1px solid var(--fg-8); background: var(--background); padding: 12px; cursor: pointer;
  transform: translateY(0); box-shadow: 0 1px 2px rgb(0 0 0 / 0.04); transition: transform 400ms var(--ease), box-shadow 400ms var(--ease), border-color 400ms var(--ease); will-change: transform; }
@media (min-width: 640px) { .project-card { padding: 14px; } }
.project-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--foreground) 14%, transparent); box-shadow: 0 10px 20px -8px rgb(0 0 0 / 0.12), 0 4px 8px -4px rgb(0 0 0 / 0.08); }
.dark .project-card { box-shadow: 0 1px 2px rgb(0 0 0 / 0.4); }
.dark .project-card:hover { box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.6), 0 4px 8px -4px rgb(0 0 0 / 0.4); }
.project-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; padding: 8px 4px 0; }
.project-card .genre { font-size: 12px; letter-spacing: -0.01em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--fg-10); color: var(--fg-65); white-space: nowrap; }
.project-card .label { font-size: 14px; font-weight: 500; letter-spacing: -0.025em; }
.project-card__image { position: relative; width: 100%; overflow: hidden; border-radius: 1rem; background: var(--fg-5); box-shadow: inset 0 0 0 1px var(--fg-5); }
.project-card__image-inner { position: absolute; inset: 0; transform: scale(1); transition: transform 700ms var(--ease); will-change: transform; }
.project-card:hover .project-card__image-inner { transform: scale(1.06); }
.project-card__image img { width: 100%; height: 100%; object-fit: cover; }
.project-card .text { display: flex; flex-direction: column; gap: 10px; padding: 0 4px 4px; }
.project-card h3 { font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -0.025em; }
@media (min-width: 640px) { .project-card h3 { font-size: 22px; } }
.project-card .desc { font-size: 14px; line-height: 1.5; letter-spacing: -0.025em; color: var(--fg-65); }
@media (min-width: 640px) { .project-card .desc { font-size: 15px; } }
.project-card .meta { padding: 0 4px 8px; font-size: 12px; letter-spacing: -0.025em; color: var(--fg-50); }
.view-more { margin-top: 48px; display: flex; justify-content: center; }
@media (min-width: 640px) { .view-more { margin-top: 64px; } }

/* Contact card */
.contact-section { margin: 0 auto 48px; }
@media (min-width: 640px) { .contact-section { margin-bottom: 64px; } }
.contact-outer { position: relative; width: 100%; overflow: hidden; border-radius: 2rem; border: 1px solid var(--fg-8); background: var(--background); padding: 6px; box-shadow: var(--shadow-sm); }
.contact-inner { position: relative; width: 100%; overflow: hidden; border-radius: 1.6rem; }
.contact-shader { pointer-events: none; position: absolute; inset: 0; opacity: 0.45;
  -webkit-mask-image: radial-gradient(ellipse 90% 110% at 50% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.92) 40%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.4) 90%, rgba(0,0,0,0.15) 100%);
  mask-image: radial-gradient(ellipse 90% 110% at 50% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.92) 40%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.4) 90%, rgba(0,0,0,0.15) 100%); }
.dark .contact-shader { opacity: 0.25; }
.contact-shader .shader { filter: none; }
.contact-grid { position: relative; display: grid; gap: 32px; padding: 24px; }
@media (min-width: 640px) { .contact-grid { gap: 40px; padding: 28px; } }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1.2fr 1fr; align-items: stretch; gap: 24px; padding: 24px; } }
.contact-copy { display: flex; flex-direction: column; gap: 20px; }
.contact-copy h2 { font-size: 2.25rem; }
@media (min-width: 640px) { .contact-copy h2 { font-size: 2.75rem; } }
@media (min-width: 1024px) { .contact-copy h2 { font-size: 3.25rem; } }
.contact-copy p { max-width: 29ch; margin-bottom: 24px; font-size: 18px; line-height: 1.4; letter-spacing: -0.025em; color: var(--fg-65); }
@media (min-width: 640px) { .contact-copy p { font-size: 22px; } }
.contact-side { display: flex; align-items: flex-end; }
.contact-links { list-style: none; width: 100%; display: grid; }
.contact-links a { display: grid; grid-template-columns: 32px 88px 1fr 16px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 15px; letter-spacing: -0.015em; transition: background-color 200ms, padding 300ms var(--ease); }
.contact-links li + li a { border-top: 1px solid var(--fg-5); }
.contact-links a:hover { background: var(--fg-4); padding-left: 16px; }
.contact-links .ic { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--fg-8); background: var(--background); color: var(--fg-70); }
.contact-links .ic .icon { width: 15px; height: 15px; stroke-width: 2.25; }
.contact-links .ic .brand { width: 14px; height: 14px; fill: currentColor; }
.contact-links .lbl { font-weight: 500; }
.contact-links .hdl { color: var(--fg-60); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-links .go { color: var(--fg-45); transition: transform 300ms var(--ease), color 200ms; }
.contact-links a:hover .go { color: var(--foreground); transform: translate(2px, -2px); }
@media (max-width: 480px) { .contact-links a { grid-template-columns: 32px 1fr 16px; } .contact-links .hdl { display: none; } }
.socials { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; opacity: 0.75; }
.socials a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--fg-8); background: var(--background); color: var(--fg-70); transition: color 150ms, border-color 150ms; }
.socials a:hover { border-color: var(--fg-15); color: var(--foreground); }
.socials .icon { stroke-width: 2.5; }
.socials .brand { width: 14px; height: 14px; fill: currentColor; }
.colophon { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.colophon p:first-child { font-size: 13px; letter-spacing: -0.025em; color: var(--fg-70); }
.colophon p:last-child { font-size: 12px; letter-spacing: -0.025em; color: var(--fg-45); }
.spacer { height: 48px; }
@media (min-width: 640px) { .spacer { height: 64px; } }

/* Newsletter (same form and behaviour as the live site, template styling) */
.letters-outer { border-radius: 2rem; border: 1px solid var(--fg-8); background: var(--background); padding: 6px; box-shadow: var(--shadow-sm); }
.letters-inner { position: relative; overflow: hidden; border-radius: 1.6rem; }
.letters-grid { position: relative; display: grid; gap: 32px; padding: 24px; }
@media (min-width: 640px) { .letters-grid { gap: 40px; padding: 28px; } }
@media (min-width: 768px) { .letters-grid { grid-template-columns: 1.6fr 1fr; align-items: end; gap: 24px; padding: 24px; } }
/* Same type as the Let's connect card */
.letters .lede { display: flex; flex-direction: column; gap: 20px; }
.letters .lede h2 { font-size: 2.25rem; max-width: 20ch; text-wrap: balance; }
@media (min-width: 640px) { .letters .lede h2 { font-size: 2.75rem; } }
@media (min-width: 1024px) { .letters .lede h2 { font-size: 3.25rem; } }
.letters .lede p { max-width: 29ch; font-size: 18px; line-height: 1.4; letter-spacing: -0.025em; color: var(--fg-65); }
@media (min-width: 640px) { .letters .lede p { font-size: 22px; } }
.sub { display: grid; min-width: 0; }
.sub > .fields, .sub > .done { grid-area: 1 / 1; min-width: 0; transition: opacity 350ms var(--ease); }
.sub .fields { display: grid; gap: 12px; align-content: end; }
.sub .done { display: grid; gap: 8px; align-content: end; opacity: 0; visibility: hidden; }
.sub[data-state="done"] .fields { opacity: 0; visibility: hidden; }
.sub[data-state="done"] .done { opacity: 1; visibility: visible; }
.sub .done:focus { outline: none; }
.sub .done h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.025em; }
.sub .done p { font-size: 15px; color: var(--fg-65); }
.sub .done p b { color: var(--foreground); font-weight: 500; overflow-wrap: anywhere; }
.sub .row { display: flex; gap: 6px; padding: 5px; border-radius: 14px; border: 1px solid var(--fg-8); background: var(--background); transition: border-color 150ms; }
.sub .row:focus-within { border-color: var(--fg-15); }
.sub .row:has([aria-invalid="true"]) { border-color: #e5484d; }
.sub input[type="email"] { flex: 1; width: 0; min-width: 0; background: none; border: 0; outline: none; padding: 0 12px; font: 400 15px var(--font-sans); color: var(--foreground); }
.sub input[type="email"]::placeholder { color: var(--fg-45); }
.sub input[readonly] { color: var(--fg-50); }
.sub button[type="submit"] { display: grid; place-items: center; height: 40px; padding: 0 18px; border-radius: 10px; background: var(--foreground); color: var(--background); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: opacity 150ms; }
.sub button[type="submit"]:hover:not(:disabled) { opacity: 0.88; }
.sub button[type="submit"] > span { grid-area: 1 / 1; }
.sub button[type="submit"] .busy { visibility: hidden; }
.sub[data-state="sending"] button[type="submit"] .idle { visibility: hidden; }
.sub[data-state="sending"] button[type="submit"] .busy { visibility: visible; }
.sub[data-state="sending"] button[type="submit"] { cursor: progress; }
.sub .consent { display: flex; gap: 10px; align-items: center; padding-left: 4px; font-size: 13px; letter-spacing: -0.01em; color: var(--fg-65); cursor: pointer; }
.sub .consent input { width: 14px; height: 14px; margin: 0; flex: none; accent-color: var(--foreground); }
.sub .consent a { color: var(--foreground); text-decoration: underline; text-decoration-color: var(--fg-15); text-underline-offset: 3px; }
.sub .msg { padding-left: 4px; font-size: 13px; color: #e5484d; }
.sub .msg:empty { display: none; }
.sub .again { justify-self: start; margin-top: 4px; font-size: 14px; color: var(--fg-65); cursor: pointer; }
.sub .again:hover { color: var(--foreground); }
.sub .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 8px; padding-bottom: 40px; font-size: 13px; letter-spacing: -0.025em; color: var(--fg-50); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-foot a { transition: color 150ms; }
.site-foot a:hover { color: var(--foreground); }

/* Inner page heading (Projects, Writing): page-level gap 0, centred serif title */
.projects-page { gap: 0; }
.page-head .container { padding-top: 176px; padding-bottom: 64px; }
@media (min-width: 640px) { .page-head .container { padding-top: 240px; padding-bottom: 80px; } }
.page-title { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.page-title h1 { font-size: 2.75rem; }
@media (min-width: 768px) { .page-title h1 { font-size: 3.25rem; } }
@media (min-width: 1024px) { .page-title h1 { font-size: 3.75rem; } }
.page-title p { max-width: 33ch; font-size: 20px; line-height: 1.4; letter-spacing: -0.025em; color: var(--fg-65); }
@media (min-width: 640px) { .page-title p { font-size: 22px; } }
