/* ─────────────────────────────────────────────────────────────────────────
   Mindi Hamilton — UX Portfolio
   Shared styles
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Colors */
  --bg-sage: #b7d3ce;
  --bg-sage-2: #c4dad6;       /* a touch lighter for Projects bg */
  --bg-peach: #efa886;
  --blob-orange: #ee9a75;
  --blob-teal: #80a59f;        /* the smaller deep-sage blob behind cards */

  --accent-teal: #0e6e6f;
  --accent-teal-2: #2c8888;
  --card-teal: #5b9da7;
  --resume-side: #dee8ee;
  --resume-side-2: #e2eaf0;

  --ink: #1f2a35;
  --ink-soft: #2c3a47;
  --ink-mute: #4f5b69;
  --ink-faint: #7d8893;
  --line: rgba(31, 42, 53, 0.12);

  --card: #ffffff;
  --card-shadow: 0 8px 28px rgba(31, 42, 53, 0.12);

  /* Type */
  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Roboto", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --page-max: 1280px;
  --gutter: 64px;
  --gutter-tight: 32px;

  --nav-h: 88px;
}

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

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg-sage);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
  line-height: 1.18;
}

p { margin: 0; text-wrap: pretty; }

/* ── Page chrome (header + footer) ──────────────────────────────────────── */
.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;     /* keep blobs from causing horizontal scroll */
}

/* Blobs — drawn as absolutely-positioned SVGs in the page background.
   They sit behind everything. Each page picks which to show. */
.blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blob {
  position: absolute;
  display: block;
}
.blob--orange-tr {
  top: -80px;
  right: -120px;
  width: clamp(720px, 70vw, 1100px);
  aspect-ratio: 894 / 818;
  height: auto;
  color: #ED9E6C;
}
.blob--teal-bl {
  top: 32%;
  left: -240px;
  bottom: auto;
  width: clamp(680px, 78vw, 1080px);
  aspect-ratio: 894 / 818;
  height: auto;
  color: #80a59f;
  opacity: 0.85;
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 32px var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-left: auto;       /* glue nav to the right edge of the header */
}
.nav a {
  position: relative;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  padding: 6px 2px;
  transition: color .18s ease;
}
.nav a:hover { color: var(--accent-teal); }
.nav a.is-active {
  font-weight: 600;
}
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* Main */
.main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 56px var(--gutter) 80px;
}
.main--wide {
  max-width: none;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 24px var(--gutter) 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.site-footer .socials {
  display: flex;
  gap: 22px;
}
.site-footer .socials a {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: transform .15s ease, color .15s ease;
}
.site-footer .socials a:hover {
  transform: translateY(-2px);
  color: var(--accent-teal);
}
.site-footer .socials svg {
  width: 24px;
  height: 24px;
}
.copyright {
  font-size: 13px;
  color: var(--ink-faint);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  text-decoration: none;
}
.btn--primary {
  background: var(--blob-orange);
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(31, 42, 53, 0.08);
}
.btn--primary:hover {
  background: #f0a583;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(238, 154, 117, 0.4);
}
.btn--ghost {
  border-color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  background: rgba(31, 42, 53, 0.04);
  transform: translateY(-1px);
}
.btn--card-teal {
  background: var(--card-teal);
  color: #fff;
  box-shadow: 0 2px 0 rgba(31, 42, 53, 0.08);
}
.btn--card-teal:hover {
  background: #69aab4;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(91, 157, 167, 0.4);
}

/* ── Reusable section heading w/ orange underline ───────────────────────── */
.section-heading {
  text-align: center;
  margin: 0 auto 56px;
  font-size: 32px;
  font-weight: 600;
  position: relative;
  width: max-content;
  max-width: 100%;
}
.section-heading::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--blob-orange);
  border-radius: 3px;
  margin: 14px auto 0;
  width: 60%;
}

/* ── Reveal helper (no-op when JS disabled or screenshot-paused) ────────── */
/* Content is always visible. Pages get a soft fade-in by applying
   .has-fade-in to <html> via JS *only after* the page is fully loaded,
   so first paint is always content-visible. */
.reveal { opacity: 1; }
html.has-fade-in .reveal {
  animation: soft-fade-in .55s ease both;
  animation-delay: calc(var(--reveal-i, 0) * 70ms);
}
@keyframes soft-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.has-fade-in .reveal { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  :root { --gutter: 36px; --nav-h: 72px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    background: #fff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.12);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 90px 32px 32px;
    transform: translateX(100%);
    transition: transform .26s ease;
    z-index: 20;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a {
    font-size: 18px;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .nav a.is-active::after { display: none; }
  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
  }
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }

  .blob--orange-tr {
    width: clamp(560px, 90vw, 820px);
    top: -60px;
    right: -140px;
  }
  .blob--teal-bl {
    width: clamp(520px, 100vw, 800px);
    left: -220px;
    top: 38%;
  }

  .section-heading { font-size: 26px; }
}

@media (max-width: 640px) {
  :root { --gutter: 22px; }
  body { font-size: 15px; }
  .main { padding-top: 36px; padding-bottom: 56px; }
  .blob--orange-tr {
    width: clamp(420px, 110vw, 640px);
    top: -50px;
    right: -120px;
  }
}
