/* ================================================================
   denby.design / shared design system
   ================================================================ */

/* ── Fonts ──────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Averia';
  src: url('fonts/AveriaSerifLibre-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal;
}
@font-face {
  font-family: 'Averia';
  src: url('fonts/AveriaSerifLibre-LightItalic.ttf') format('truetype');
  font-weight: 300; font-style: italic;
}
@font-face {
  font-family: 'Averia';
  src: url('fonts/AveriaSerifLibre-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal;
}
@font-face {
  font-family: 'Averia';
  src: url('fonts/AveriaSerifLibre-Italic.ttf') format('truetype');
  font-weight: 400; font-style: italic;
}
@font-face {
  font-family: 'Averia';
  src: url('fonts/AveriaSerifLibre-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal;
}

/* ── Variables ──────────────────────────────────────────────────── */
:root {
  --dark:      #0A2326;
  --dark-mid:  #224040;
  --mid:       #73675C;
  --light-mid: #A69586;
  --cream:     #F2D4C2;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--cream);
  font-family: 'Averia', Georgia, serif;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

/* ── Global background ──────────────────────────────────────────── */
#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  z-index: 0;
}

#ascii {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0.95;
  letter-spacing: 0.02em;
  white-space: pre;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
  font-family: "Courier New", Courier, monospace;
  color: var(--cream);
  opacity: 0.26;
  z-index: 1;
  text-shadow:
    0 0 10px rgba(242, 212, 194, 0.18),
    0 0 28px rgba(10, 35, 38, 0.12);
}

/* ── Page wrapper (inner pages) ─────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 2;
  background: rgba(10, 35, 38, 0.78);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Page header: title block inside the content area */
.page-header {
  padding: 52px 40px 36px;
  border-bottom: 1px solid rgba(166, 149, 134, 0.08);
}

.page-header h1 {
  font-family: 'Averia', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 8px;
}

.page-header p {
  font-family: 'Averia', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--light-mid);
}

/* Content area (flex child, fills remaining space) */
.page-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Site navigation ────────────────────────────────────────────── */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(166, 149, 134, 0.12);
  background: rgba(10, 35, 38, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
}

nav.site-nav a {
  font-family: 'Averia', Georgia, serif;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--light-mid);
  text-decoration: none;
  transition: color 0.22s;
  text-align: center;
}

nav.site-nav a:hover,
nav.site-nav a.active { color: var(--cream); }

nav.site-nav a.active {
  border-bottom: 1px solid rgba(242, 212, 194, 0.4);
  padding-bottom: 2px;
}

.nav-logo {
  height: 30px;
  width: auto;
  opacity: 0.75;
  margin-right: 4px;
  transition: opacity 0.22s;
  flex-shrink: 0;
}
.nav-logo:hover { opacity: 1; }

/* ── Page header ────────────────────────────────────────────────── */
.page-header {
  padding: 56px 28px 32px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.page-header h1 {
  font-family: 'Averia', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 10px;
}

.page-header p {
  font-family: 'Averia', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--light-mid);
}

/* ── Section label ──────────────────────────────────────────────── */
.section-label {
  font-family: 'Averia', Georgia, serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 24px;
  display: block;
}

/* ── Text link ──────────────────────────────────────────────────── */
.text-link {
  font-family: 'Averia', Georgia, serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 212, 194, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.22s, color 0.22s;
}
.text-link:hover { color: #fff; border-color: rgba(242, 212, 194, 0.85); }

/* ── Site footer ────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(166, 149, 134, 0.12);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: auto;
  gap: 16px;
  flex-shrink: 0;
}

.site-footer p {
  font-family: 'Averia', Georgia, serif;
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--light-mid);
}

.footer-links { display: flex; gap: 28px; }

.footer-links a {
  font-family: 'Averia', Georgia, serif;
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--light-mid);
  text-decoration: none;
  transition: color 0.22s;
}
.footer-links a:hover { color: var(--cream); }

/* ── Portfolio grid ─────────────────────────────────────────────── */
.portfolio-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 28px 72px;
  flex: 1;
}

.portfolio-category {
  margin-bottom: 60px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.portfolio-card {
  background: var(--dark-mid);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: none;
  text-align: left;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  width: 100%;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
}

.portfolio-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.portfolio-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-card h3 {
  font-family: 'Averia', Georgia, serif;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 6px;
  line-height: 1.3;
}

.portfolio-card p {
  font-family: 'Averia', Georgia, serif;
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--light-mid);
  line-height: 1.5;
  flex: 1;
}

.portfolio-card .project-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── Modals ─────────────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 35, 38, 0.88);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  overflow-y: auto;
}

.modal.is-open { display: flex; }

.modal-content {
  background: var(--dark-mid);
  border: 1px solid rgba(166, 149, 134, 0.15);
  padding: 36px;
  max-width: 760px;
  width: 100%;
  border-radius: 12px;
  position: relative;
}

.modal-content h2 {
  font-family: 'Averia', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--cream);
  margin-bottom: 20px;
  line-height: 1.2;
}

.modal-content img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 24px;
  display: block;
}

.modal-content p {
  font-family: 'Averia', Georgia, serif;
  font-weight: 300;
  font-size: 0.97rem;
  color: var(--light-mid);
  line-height: 1.72;
  margin-bottom: 14px;
}

.modal-content p strong {
  font-weight: 400;
  color: var(--cream);
}

.modal-content em { font-style: italic; }

.close-modal {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--mid);
  background: none;
  border: none;
  transition: color 0.22s, transform 0.22s;
}
.close-modal:hover {
  color: var(--cream);
  transform: rotate(90deg);
}

/* ── CTA buttons ────────────────────────────────────────────────── */
.cta {
  display: inline-block;
  margin-top: 16px;
  margin-right: 8px;
  padding: 10px 18px;
  font-family: 'Averia', Georgia, serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--dark);
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: filter 0.22s, transform 0.18s;
}
.cta:hover { filter: brightness(1.1); transform: translateY(-1px); }

.cta-demo     { background: var(--cream); }
.cta-github   { background: var(--light-mid); }
.cta-video    { background: #c9897a; }
.cta-figma    { background: #9a8fb5; }
.cta-download { background: #7a9e8a; color: #fff; }

/* ── Homepage: hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 50%,
    rgba(10, 35, 38, 0.52) 0%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 20px;
  pointer-events: none;
}

.logo {
  width: clamp(72px, 11vw, 130px);
  height: auto;
  opacity: 0.92;
  margin-bottom: 4px;
}

.wordmark {
  font-family: 'Averia', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow:
    0 2px 18px rgba(10, 35, 38, 0.7),
    0 4px 40px rgba(10, 35, 38, 0.5);
  line-height: 1;
}

.tagline {
  font-family: 'Averia', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  color: var(--cream);
  opacity: 0.9;
  letter-spacing: 0.01em;
  min-height: 1.7em;
  text-shadow:
    0 1px 10px rgba(10, 35, 38, 0.85),
    0 2px 24px rgba(10, 35, 38, 0.6);
}

#rotating-word {
  display: inline-block;
  font-style: italic;
  color: var(--cream);
  border-bottom: 1px solid rgba(242, 212, 194, 0.35);
  padding-bottom: 1px;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.scroll-arrow {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(242, 212, 194, 0.75);
  border-radius: 50%;
  background: rgba(242, 212, 194, 0.08);
  text-decoration: none;
  color: var(--cream);
  opacity: 0.88;
  animation: bob 2.4s ease-in-out infinite;
  transition: opacity 0.25s, background 0.25s;
}
.scroll-arrow:hover { opacity: 1; background: rgba(242, 212, 194, 0.16); }

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

.scroll-arrow svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ── Homepage: main content ─────────────────────────────────────── */
.main-content {
  position: relative;
  z-index: 2;
  background: rgba(10, 35, 38, 0.78);
  min-height: 100dvh;
}

.intro-section {
  max-width: 660px;
  margin: 80px auto 64px;
  padding: 0 28px;
  text-align: center;
}

.intro-section h2 {
  font-family: 'Averia', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 22px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.intro-section p {
  font-family: 'Averia', Georgia, serif;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--light-mid);
  line-height: 1.72;
}

.intro-section p + p {
  margin-top: 18px;
}

.intro-section .text-link { margin-top: 30px; display: inline-block; }

.projects-section {
  max-width: 1080px;
  margin: 0 auto 72px;
  padding: 0 28px;
}

.projects-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.projects-section-header .section-label {
  margin-bottom: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.projects-featured-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.project-card {
  background: var(--dark-mid);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}
.project-card img {
  width: 100%; height: 195px;
  object-fit: cover; display: block;
}
.project-card-body {
  padding: 22px;
  display: flex; flex-direction: column; flex: 1;
}
.project-card h3 {
  font-family: 'Averia', Georgia, serif;
  font-weight: 400; font-size: 1.1rem;
  color: var(--cream); margin-bottom: 8px; line-height: 1.3;
}
.project-card p {
  font-family: 'Averia', Georgia, serif;
  font-weight: 300; font-size: 0.9rem;
  color: var(--light-mid); line-height: 1.55; flex: 1;
}
.project-tag {
  display: inline-block; margin-top: 14px;
  font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mid);
  align-self: flex-start;
}

/* ── Homepage: hero project card ────────────────────────────────── */
.project-card--hero {
  display: grid;
  grid-template-columns: 3fr 2fr;
  border-radius: 10px;
  overflow: hidden;
  background: var(--dark-mid);
  text-decoration: none;
  color: inherit;
  min-height: 300px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.project-card--hero:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.55);
}
.project-card--hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-card--hero .project-card-body {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
}
.project-card--hero .project-tag {
  margin-top: 0;
  order: -1;
}
.project-card--hero h3 {
  font-family: 'Averia', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  color: var(--cream);
  line-height: 1.2;
}
.project-card--hero p {
  font-family: 'Averia', Georgia, serif;
  font-weight: 300;
  font-size: 0.97rem;
  color: var(--light-mid);
  line-height: 1.65;
  flex: 1;
}
.project-card-cta {
  font-family: 'Averia', Georgia, serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--cream);
  border-bottom: 1px solid rgba(242, 212, 194, 0.35);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: border-color 0.22s;
}
.project-card--hero:hover .project-card-cta {
  border-color: rgba(242, 212, 194, 0.85);
}

/* ── Homepage: blog preview ─────────────────────────────────────── */
.blog-preview-section {
  max-width: 1080px;
  margin: 0 auto 90px;
  padding: 0 28px;
}

.blog-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.blog-preview-header .section-label {
  margin-bottom: 0;
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.blog-preview-card {
  background: var(--dark-mid);
  border-radius: 10px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.blog-preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.55);
}

.blog-preview-card--featured {
  grid-row: span 2;
  padding: 32px;
}

.blog-preview-meta {
  font-family: 'Averia', Georgia, serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

.blog-preview-card h3 {
  font-family: 'Averia', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--light-mid);
  line-height: 1.5;
}

.blog-preview-card--featured h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.65rem);
}

.blog-preview-card--soon h3 {
  opacity: 0.72;
}

@media (max-width: 640px) {
  .blog-preview-grid {
    grid-template-columns: 1fr;
  }
  .blog-preview-card--featured {
    grid-row: span 1;
  }
}

/* ── Work With Me ───────────────────────────────────────────────── */
.wwm-intro {
  font-family: 'Averia', Georgia, serif;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--light-mid);
  line-height: 1.72;
  margin-bottom: 40px;
}

.wwm-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px 72px;
  flex: 1;
}

.process-list {
  list-style: none;
  margin: 24px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.process-list li {
  font-family: 'Averia', Georgia, serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--light-mid);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.process-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--mid);
}

.process-list li strong {
  font-weight: 400;
  color: var(--cream);
}

.wwm-heading {
  font-family: 'Averia', Georgia, serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 16px;
  margin-top: 40px;
}

.contact-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.contact-link {
  font-family: 'Averia', Georgia, serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 212, 194, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.22s, color 0.22s;
}
.contact-link:hover { color: #fff; border-color: rgba(242, 212, 194, 0.85); }

.contact-link--icon {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  border-bottom: none;
  padding: 10px 20px 10px 10px;
  border-radius: 999px;
  background: var(--dark-mid);
  border: 1px solid rgba(166, 149, 134, 0.15);
  transition: background 0.22s, border-color 0.22s;
}
.contact-link--icon:hover {
  background: rgba(34, 64, 64, 0.9);
  border-color: rgba(242, 212, 194, 0.2);
}

.contact-link--icon span {
  font-family: 'Averia', Georgia, serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--light-mid);
  transition: color 0.22s;
}
.contact-link--icon:hover span { color: var(--cream); }

.contact-icon {
  width: 28px;
  height: 28px;
  display: block;
}

.contact-icon--hover { display: none; }
.contact-link--icon:hover .contact-icon--default { display: none; }
.contact-link--icon:hover .contact-icon--hover { display: block; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  font-family: 'Averia', Georgia, serif;
  font-weight: 300;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--mid);
  text-transform: uppercase;
}

.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Averia', Georgia, serif;
  font-size: 0.97rem;
  color: var(--cream);
  background: var(--dark-mid);
  border: 1px solid rgba(166, 149, 134, 0.2);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.22s;
  appearance: none;
}

.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(242, 212, 194, 0.45);
}

.contact-form select option {
  background: var(--dark-mid);
}

.contact-form textarea { resize: vertical; min-height: 140px; }

.contact-form button {
  align-self: flex-start;
  padding: 11px 28px;
  font-family: 'Averia', Georgia, serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--cream);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: filter 0.22s, transform 0.18s;
}
.contact-form button:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ── Blog ───────────────────────────────────────────────────────── */
.blog-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px 72px;
  flex: 1;
}

.blog-post {
  border-top: 1px solid rgba(166, 149, 134, 0.12);
  padding: 32px 0;
}

.blog-post:first-child { border-top: none; }

.blog-post h2 {
  font-family: 'Averia', Georgia, serif;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 8px;
  cursor: pointer;
  transition: color 0.22s;
}
.blog-post h2:hover { color: #fff; }

.blog-meta {
  font-family: 'Averia', Georgia, serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--mid);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.blog-post p {
  font-family: 'Averia', Georgia, serif;
  font-weight: 300;
  font-size: 0.97rem;
  color: var(--light-mid);
  line-height: 1.72;
  margin-bottom: 16px;
}

.coming-soon {
  text-align: center;
  padding: 80px 0;
}

.coming-soon h2 {
  font-family: 'Averia', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.8rem;
  color: var(--light-mid);
  margin-bottom: 12px;
}

.coming-soon p {
  font-family: 'Averia', Georgia, serif;
  font-weight: 300;
  font-size: 0.97rem;
  color: var(--mid);
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  nav.site-nav { gap: 24px; padding: 24px 20px 18px; }

  .page-header { padding: 36px 20px 24px; }

  .portfolio-grid { grid-template-columns: 1fr; }

  .project-card--hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .project-card--hero img { height: 220px; }
  .project-card--hero .project-card-body { padding: 24px 20px; }

  .blog-preview-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .projects-grid { grid-template-columns: 1fr; }

  .intro-section { margin: 48px auto 40px; }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    margin: 0;
    max-width: 100%;
  }

  .modal-content { padding: 24px 20px; }

  .contact-links { flex-direction: column; gap: 12px; }
}
