/* ==========================================================================
   Oahidur Islam Roman — Portfolio
   main.css — design tokens, reset, base typography, layout primitives
   ========================================================================== */

:root {
  /* ---- Atmosphere / background ----
     Light atmosphere: near-white/pearl base, ambient color carried by the
     orbs in animations.css, not by the base tones themselves. */
  --bg-0: #e6ebef;   /* coolest edge tone, used for vignette */
  --bg-1: #f4f7f9;   /* primary base */
  --bg-2: #eef2f5;   /* secondary base */
  --bg-3: #ffffff;   /* lifted highlight tone */

  /* ---- Ambient light colors (used for glows, accents, gradients only —
     never as solid fills) ---- */
  --light-cyan: #7fe3ef;
  --light-blue: #6ea8ff;
  --light-lavender: #b6a6ff;
  --light-peach: #ffb98f;

  /* ---- Ink — raw RGB triplet for text/borders/overlays on the light
     atmosphere. Reuses the portfolio's original dark-charcoal hue as the
     new ink color, so the palette stays one connected idea. ---- */
  --ink-rgb: 21, 32, 41;

  /* ---- Text ---- */
  --text-primary: rgba(var(--ink-rgb), 0.94);
  --text-secondary: rgba(var(--ink-rgb), 0.64);
  --text-tertiary: rgba(var(--ink-rgb), 0.42);
  --text-on-glass-strong: rgba(var(--ink-rgb), 0.9);

  /* ---- Accessible focus accent — deeper than the ambient cyan glow so it
     holds contrast against the light base ---- */
  --focus-ring: #0e7490;

  /* ---- Radius ---- */
  --radius-pill: 999px;
  --radius-card: 24px;
  --radius-card-lg: 32px;
  --radius-sm: 14px;

  /* ---- Spacing scale (fluid) ---- */
  --space-1: clamp(0.5rem, 0.46rem + 0.2vw, 0.625rem);
  --space-2: clamp(0.75rem, 0.68rem + 0.35vw, 1rem);
  --space-3: clamp(1.25rem, 1.1rem + 0.6vw, 1.75rem);
  --space-4: clamp(2rem, 1.8rem + 1vw, 2.75rem);
  --space-5: clamp(3rem, 2.6rem + 1.8vw, 4.5rem);
  --space-6: clamp(4.5rem, 3.8rem + 3vw, 7.5rem);
  --space-7: clamp(6rem, 5vw + 4rem, 10rem);

  /* ---- Container ---- */
  --container-max: 1280px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);

  /* ---- Layout ---- */
  /* Vertical space the fixed floating nav reserves — every anchor-jump
     target's scroll-margin-top and body's padding-top derive from this
     one value so they can't drift out of sync. Redefined (not
     duplicated) at the ≤760px breakpoint in responsive.css, so every
     consumer below adjusts automatically. */
  --nav-clearance: 6.5rem;

  /* ---- Shadows ---- */
  --shadow-soft: 0 20px 50px -24px rgba(var(--ink-rgb), 0.18);
  --shadow-lift: 0 28px 70px -26px rgba(var(--ink-rgb), 0.22);
  --shadow-inner-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.7);

  /* ---- Motion ---- */
  --ease-glass: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 200ms;
  --duration-normal: 420ms;
  --duration-slow: 900ms;
  --duration-ambient: 26s;

  /* ---- Typography ---- */
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system,
    "Segoe UI", sans-serif;

  --fs-hero: clamp(2.75rem, 2rem + 4.2vw, 5.75rem);
  --fs-h1: clamp(2.25rem, 1.8rem + 2.4vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.5rem + 1.4vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem);
  --fs-body-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;
}

/* ==========================================================================
   Dark theme — the site's original default before Decision #0007
   flipped it to the light "pearl" atmosphere. Re-introduced here as a
   toggleable alternate theme (see the nav's [data-theme] toggle
   button, assets/js/main.js's initThemeToggle()) using the exact
   reverse-delta #0007 already documented, rather than a new design.
   Reusing --ink-rgb for text/borders/shadows throughout the codebase
   means flipping it here re-colors most of the site automatically —
   only the handful of genuinely hardcoded white/light values (glass
   fill percentages, ambient orb opacities, a couple of blend modes)
   need their own explicit overrides, scattered through glass.css/
   animations.css/responsive.css near what they each affect. */
:root[data-theme="dark"] {
  --bg-0: #0c1319;
  --bg-1: #17232d;
  --bg-2: #20313d;
  --bg-3: #223846;

  --ink-rgb: 236, 241, 245;

  --focus-ring: var(--light-cyan);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* `clip`, not `hidden` — same reasoning as body's overflow-x below.
     Matters here specifically because position: fixed elements (.nav,
     .atmosphere, and anything appended into it) are positioned
     relative to the viewport/initial containing block, not body — so
     body's own overflow-x: clip does NOT contain them if one is ever
     even slightly wider than the viewport on a narrow screen. This
     clips at the true root, catching that case too. */
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100svh;
  padding-top: var(--nav-clearance);
  background-color: var(--bg-1);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* `clip`, not `hidden` — `hidden` on only one axis forces the browser
     to compute the other axis as `auto`, making body its own scroll
     container and breaking native anchor-link scrolling. `clip` isn't a
     scrolling value, so it doesn't trigger that pairing rule. */
  overflow-x: clip;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.eyebrow {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-name {
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.section-title {
  font-size: var(--fs-h2);
}

.text-lg {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  font-weight: 400;
}

.text-secondary {
  color: var(--text-secondary);
}

.text-tertiary {
  color: var(--text-tertiary);
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  position: relative;
  padding-block: var(--space-6);
}

.stack {
  display: flex;
  flex-direction: column;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   Focus states — accessibility, never suppressed
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  transition: transform var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard);
  white-space: nowrap;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-1);
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--text-primary);
  border: 1px solid rgba(var(--ink-rgb), 0.16);
  background: rgba(var(--ink-rgb), 0.03);
}

.btn-secondary:hover {
  background: rgba(var(--ink-rgb), 0.06);
  border-color: rgba(var(--ink-rgb), 0.26);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover {
    transform: none;
  }
}

/* Magnetic pull (Phase 7 — Advanced Motion) — motion.js sets
   [data-magnetic] elements' transform directly on mousemove for
   responsive tracking, so transform's transition is suspended while
   active (it resumes once .is-magnetic-active is removed and the
   inline transform is cleared on mouseleave). Re-lists .btn's other
   two transitions rather than using `transition: none`, which would
   also kill background-color/border-color and make :hover's fade
   snap instantly for the whole time a button is being dragged. */
[data-magnetic].is-magnetic-active {
  transition: background-color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard);
}

/* ==========================================================================
   Navigation — floating glass pill (desktop), compact bar + dropdown (mobile)
   Entrance motion and reduced-motion overrides live in animations.css;
   the mobile collapse breakpoint lives in responsive.css.
   ========================================================================== */

.nav {
  position: fixed;
  /* Flush with the top edge — user explicitly asked to remove the
     floating offset entirely after repeated reports of a gap above
     the nav (see DECISIONS.md #0026). This is a real design change,
     not a bug fix: the nav no longer "floats" with a visible margin
     above it. */
  top: 0;
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0.4rem;
  transform: translateX(-50%);
}

/* Scoped to html:not([data-design]) (not a bare :not([data-design]) —
   that would match on *any* ancestor lacking the attribute, e.g. body,
   and body never carries it regardless of html's state, so it would
   always match). This scroll-opacity boost hardcodes glass-specific
   translucent literals onto --glass-floating-bg/border, which would
   otherwise leak into a non-glass design's own reading of those same
   tokens. Only fires for Glassmorphism (the attribute is absent on
   html there, same convention as the attribute itself). */
html:not([data-design]) .nav--scrolled {
  --glass-floating-bg: rgba(255, 255, 255, 0.32);
  --glass-floating-border: rgba(var(--ink-rgb), 0.16);
}

html[data-theme="dark"]:not([data-design]) .nav--scrolled {
  --glass-floating-bg: rgba(12, 19, 25, 0.55);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard);
}

.nav__link:hover {
  color: var(--text-primary);
  background: rgba(var(--ink-rgb), 0.05);
}

.nav__link--active {
  color: var(--text-primary);
  background: rgba(var(--ink-rgb), 0.07);
}

.nav__theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard);
}

.nav__theme-toggle:hover {
  background: rgba(var(--ink-rgb), 0.05);
  color: var(--text-primary);
}

.nav__theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Only the icon for the action you'd take is shown — moon ("go dark")
   in light mode, sun ("go light") once dark mode is active. */
.nav__theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .nav__theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .nav__theme-toggle .icon-moon {
  display: none;
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.nav__toggle:hover {
  background: rgba(var(--ink-rgb), 0.05);
}

.nav__toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform var(--duration-fast) var(--ease-standard),
    opacity var(--duration-fast) var(--ease-standard);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   Design switcher
   A second floating pill, sitting just under the nav (not inside it), for
   the Glassmorphism/Skeuomorphism/Claymorphism/Bento Grid toggle. Reuses
   the nav's own .glass.glass-pill classes so it reskins live along with
   everything else. Per-design material/palette overrides for its buttons
   live in the design-*.css files; this block only owns layout.
   ========================================================================== */

.design-switcher {
  position: fixed;
  top: 4.6rem;
  left: 50%;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  padding: 0.3rem;
  max-width: min(90vw, 560px);
  transform: translateX(-50%);
  transition: opacity var(--duration-fast) var(--ease-standard),
    visibility var(--duration-fast) var(--ease-standard);
}

.design-switcher.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.design-switcher__btn {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard);
}

.design-switcher__btn:hover {
  color: var(--text-primary);
  background: rgba(var(--ink-rgb), 0.05);
}

.design-switcher__btn[aria-pressed="true"] {
  color: var(--text-primary);
  background: rgba(var(--ink-rgb), 0.07);
}

/* ==========================================================================
   Hero
   The name and glass orb are the strongest visual elements on the page —
   sits directly on the atmosphere, no wrapping card. Orb/chip keyframes
   live in animations.css.
   ========================================================================== */

.hero {
  min-height: calc(100svh - var(--nav-clearance));
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-5);
  padding-block: var(--space-6);
}

.hero__content {
  max-width: 640px;
}

.hero__tagline {
  font-weight: 500;
}

.hero__lede {
  max-width: 44ch;
}

.hero__ctas {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

/* .hero-orb.glass (not just .hero-orb) so this border-radius reliably
   beats .glass's own — glass.css loads after main.css, so equal-
   specificity selectors here would otherwise lose the cascade. */
.hero-orb.glass {
  position: relative;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(127, 227, 239, 0.35), transparent 55%),
    radial-gradient(circle at 72% 70%, rgba(255, 185, 143, 0.3), transparent 55%),
    var(--glass-ultra-bg);
  overflow: hidden;
}

.hero-orb__highlight {
  position: absolute;
  top: 14%;
  left: 18%;
  width: 34%;
  height: 22%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(18px);
}

/* Hero photo (admin-optional, via $content['hero']['photo']) — sits
   inside the same .hero-orb.glass circle, behind .hero-orb__tint and
   .hero-orb__highlight so it reads as "seen through" the glass rather
   than pasted on top of it. Absent entirely when no photo is set, in
   which case .hero-orb.glass's own background gradient (unchanged)
   is exactly today's abstract orb. */
.hero-orb__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Same two radial-gradient stops as .hero-orb.glass's own background,
   just moved onto a layer that paints in front of the photo instead
   of behind it — this is what makes the photo read as tinted glass
   rather than a plain portrait. */
.hero-orb__tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 30% 28%, rgba(127, 227, 239, 0.35), transparent 55%),
    radial-gradient(circle at 72% 70%, rgba(255, 185, 143, 0.3), transparent 55%);
  pointer-events: none;
}

/* Shape comes from the .glass-pill class already on these elements in
   markup (999px radius — reads as fully circular at this size). */
.hero-chip {
  position: absolute;
  width: 64px;
  height: 64px;
}

.hero-chip--a {
  top: 6%;
  right: 4%;
}

.hero-chip--b {
  bottom: 8%;
  left: 0;
  width: 48px;
  height: 48px;
}

/* ==========================================================================
   Featured Work — project cards
   Image zoom / CTA reveal are hover *and* focus-within, so keyboard users
   get the same affordance — nothing here is hover-only.
   ========================================================================== */

#work {
  scroll-margin-top: var(--nav-clearance);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-3);
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-2);
}

.project-card__visual {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(127, 227, 239, 0.32), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(255, 185, 143, 0.28), transparent 60%),
    rgba(255, 255, 255, 0.06);
}

.project-card__monogram {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(var(--ink-rgb), 0.16);
  transition: transform var(--duration-normal) var(--ease-glass);
}

.project-card:hover .project-card__monogram,
.project-card:focus-within .project-card__monogram {
  transform: scale(1.08);
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__body {
  padding: var(--space-3) var(--space-1) var(--space-1);
}

.project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Shared badge — used on project cards ("Demo") and any placeholder
   section ("Placeholder — swap in real content"), not project-card-specific. */
.demo-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(var(--ink-rgb), 0.08);
  color: var(--text-secondary);
}

.project-card__title {
  margin-top: var(--space-2);
  font-size: var(--fs-h3);
}

.project-card__desc {
  margin-top: var(--space-1);
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: var(--space-2);
}

.project-card__tags li {
  font-size: var(--fs-xs);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(var(--ink-rgb), 0.05);
  color: var(--text-tertiary);
}

.project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-3);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text-primary);
}

.project-card__cta-arrow {
  transition: transform var(--duration-fast) var(--ease-standard);
}

.project-card:hover .project-card__cta-arrow,
.project-card:focus-within .project-card__cta-arrow,
.lab-card:hover .project-card__cta-arrow,
.lab-card:focus-within .project-card__cta-arrow {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .project-card:hover .project-card__monogram,
  .project-card:focus-within .project-card__monogram,
  .project-card:hover .project-card__cta-arrow,
  .project-card:focus-within .project-card__cta-arrow,
  .lab-card:hover .project-card__cta-arrow,
  .lab-card:focus-within .project-card__cta-arrow {
    transform: none;
  }
}

/* ==========================================================================
   About
   ========================================================================== */

#about {
  scroll-margin-top: var(--nav-clearance);
}

.about__lede {
  max-width: 60ch;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
  max-width: 760px;
}

.about-panel {
  padding: var(--space-3);
}

.about-panel__title {
  font-size: var(--fs-h3);
}

.about-panel p {
  margin-top: var(--space-1);
}

/* ==========================================================================
   What I Build — floating glass typography, not a card grid
   ========================================================================== */

#build {
  scroll-margin-top: var(--nav-clearance);
}

.build-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.build-chip {
  padding: 0.9rem 1.5rem;
  font-size: var(--fs-body-lg);
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   Toolbox
   ========================================================================== */

#toolbox {
  scroll-margin-top: var(--nav-clearance);
}

.toolbox-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.toolbox-list li {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(var(--ink-rgb), 0.05);
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

/* ==========================================================================
   The Lab — small floating transparent cards, lighter than project
   cards (no visual/image area, tighter grid).
   ========================================================================== */

#lab {
  scroll-margin-top: var(--nav-clearance);
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-2);
}

.lab-card {
  padding: var(--space-3);
}

.lab-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lab-card__title {
  margin-top: var(--space-2);
  font-size: var(--fs-h3);
}

.lab-card__desc {
  margin-top: var(--space-1);
}

.lab-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-2);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text-primary);
}

/* ==========================================================================
   Contact
   ========================================================================== */

#contact {
  scroll-margin-top: var(--nav-clearance);
}

.contact__lede {
  max-width: 56ch;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.social-link svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.site-footer__text p + p {
  margin-top: 0.2rem;
}

.site-footer__social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-1);
}

.social-list--footer .social-link {
  width: 2.5rem;
  height: 2.5rem;
  font-size: var(--fs-xs);
}

.social-list--footer .social-link svg {
  width: 1rem;
  height: 1rem;
}
