/* ============================================================
   Paula Rosenberg — Design System
   Fonts: Fraunces (display/serif) + Mulish (body/sans)
   Palette: Pacific Teal, Dark Slate, Fawn Brown, Cream/Chalk White
   ============================================================ */

:root {
  /* Brand colors (from Pomelli brand book) */
  --teal: #2A9D8F;
  --teal-dark: #1f766b;
  --teal-light: #DCEFEC;
  --slate: #264653;
  --slate-soft: #3a5c6b;
  --gold: #E9C46A;
  --gold-soft: #f6e3b4;
  --cream: #FCF8EF;
  --chalk: #F4F4F9;
  --white: #FFFFFF;
  --ink: #24343d;

  /* Semantic aliases */
  --bg: var(--cream);
  --surface: var(--white);
  --text: var(--ink);
  --text-muted: #5c6b73;
  --accent: var(--teal);
  --accent-warm: var(--gold);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing / shape */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 30px rgba(38, 70, 83, 0.08);
  --shadow-lift: 0 16px 40px rgba(38, 70, 83, 0.14);
  --container: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--slate);
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 500; margin-bottom: 24px; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 500; margin-bottom: 20px; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; margin-bottom: 12px; }
h4 { margin-bottom: 10px; }

p { color: var(--text-muted); }
.lede { font-size: 1.25rem; color: var(--slate-soft); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--teal-dark);
  margin-bottom: 18px;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  flex-shrink: 0;
  width: 26px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-secondary {
  background: transparent;
  border-color: var(--slate);
  color: var(--slate);
}
.btn-secondary:hover { background: var(--slate); color: var(--white); transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--slate);
  box-shadow: var(--shadow-soft);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 248, 239, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(38, 70, 83, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0.01em;
}
.brand span { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--slate-soft);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--slate); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--slate);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span { margin: 5px 0; }
.nav-toggle.open span { opacity: 0; }
.nav-toggle.open::before { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open::after { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
  min-height: 460px;
}

.hero-photo {
  position: absolute;
  z-index: 2;
  top: 2%;
  left: 22%;
  width: 260px;
  height: 340px;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--teal-light), var(--gold-soft));
  box-shadow: var(--shadow-lift);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-photo .placeholder-label {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--slate-soft);
  background: rgba(255,255,255,0.75);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  margin: 0 20px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Organic blob decorations (stand-in for stock photography) */
.blob {
  position: absolute;
  border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%;
  filter: blur(0px);
}
.blob-teal { background: var(--teal); opacity: 0.9; }
.blob-gold { background: var(--gold); opacity: 0.95; }
.blob-outline { background: transparent; border: 3px solid var(--slate); opacity: 0.5; }

.hero-visual .blob-1 {
  z-index: 1;
  width: 190px; height: 190px;
  top: -6%; left: 0;
  background: var(--teal);
  animation: float 8s ease-in-out infinite;
}
.hero-visual .blob-2 {
  z-index: 1;
  width: 150px; height: 150px;
  bottom: -2%; right: 4%;
  background: var(--gold);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: float 7s ease-in-out infinite reverse;
}
.hero-visual .blob-ring {
  z-index: 1;
  width: 170px; height: 170px;
  top: -4%; right: 6%;
  border: 3px solid var(--slate);
  opacity: 0.35;
  border-radius: 50%;
  background: transparent;
}
.hero-visual .quote-card {
  position: absolute;
  z-index: 3;
  bottom: 2%;
  left: 0;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  max-width: 240px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--slate);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(4deg); }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--chalk); }
.section-dark {
  background: var(--slate);
  color: var(--chalk);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(244, 244, 249, 0.78); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark .eyebrow::before,
.section-dark .eyebrow::after { background: var(--teal); }

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Wave divider */
.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  color: var(--chalk);
}
.wave-divider path { fill: currentColor; }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.icon-teal { background: var(--teal-light); color: var(--teal-dark); }
.icon-gold { background: var(--gold-soft); color: #8a6a1f; }
.icon-slate { background: rgba(38,70,83,0.08); color: var(--slate); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tag-teal { background: var(--teal-light); color: var(--teal-dark); }
.tag-gold { background: var(--gold-soft); color: #8a6a1f; }
.tag-slate { background: rgba(38,70,83,0.08); color: var(--slate); }

/* ---------- Portfolio / expandable tiles ---------- */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(38,70,83,0.15);
  background: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--slate-soft);
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--teal); }
.filter-btn.active { background: var(--slate); border-color: var(--slate); color: var(--white); }

.tile-list { display: flex; flex-direction: column; gap: 16px; }
.tile {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.tile.hidden { display: none; }
.tile-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  cursor: pointer;
}
.tile-head .tile-badge {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.tile-head .tile-titles { flex: 1; }
.tile-head h3 { margin-bottom: 4px; }
.tile-meta { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; }
.tile-chevron {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--chalk);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.tile.open .tile-chevron { transform: rotate(45deg); background: var(--teal); color: var(--white); }
.tile-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.tile.open .tile-body { max-height: 300px; }
.tile-body-inner {
  padding: 0 26px 26px 90px;
}
.tile-body-inner a {
  color: var(--teal-dark);
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
}

/* ---------- Timeline (About) ---------- */
.about-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--teal-light), var(--gold-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-photo .placeholder-label {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--slate-soft);
  background: rgba(255,255,255,0.7);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  z-index: 2;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-caption {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--slate-soft);
}

/* ---------- Social callout (About page) ---------- */
.social-callout {
  background: linear-gradient(120deg, var(--teal-light), var(--gold-soft));
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.social-callout h2 { margin-bottom: 8px; }
.social-callout p { color: var(--slate-soft); margin-bottom: 26px; }
.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--white);
  border-radius: var(--radius-pill);
  font-weight: 700;
  color: var(--slate);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.social-links a:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

/* ---------- Portfolio buckets ---------- */
.portfolio-bucket { margin-bottom: 72px; }
.portfolio-bucket:last-child { margin-bottom: 0; }
.bucket-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(38,70,83,0.1);
}
.bucket-header h2 { margin-bottom: 0; }
.bucket-count {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.entry-list { display: flex; flex-direction: column; gap: 14px; }
.entry {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 20px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.entry:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.entry.hidden { display: none; }
.entry-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.entry-titles { flex: 1; min-width: 0; }
.entry-titles h3 { font-size: 1.1rem; margin-bottom: 2px; }
.entry-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
  flex-wrap: wrap;
}
.entry-year { color: var(--teal-dark); }
.entry-link {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--teal-dark);
  border-bottom: 2px solid var(--gold);
  white-space: nowrap;
}
.entry-link:hover { color: var(--teal); }
.entry-archived-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(38,70,83,0.08);
  color: var(--slate-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Archive detail pages ---------- */
.archive-notice {
  background: var(--gold-soft);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 40px;
  font-weight: 700;
  color: #6b5117;
}
.archive-notice a { color: var(--teal-dark); border-bottom: 2px solid var(--teal-dark); }
.archive-meta {
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 30px;
}
.archive-body p, .archive-body li { color: var(--text-muted); margin-bottom: 16px; }
.archive-body h3 { margin-top: 30px; }
.archive-body img { border-radius: var(--radius-sm); margin: 8px 0 4px; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 20px;
}
.form-grid > * { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-weight: 700; color: var(--slate); font-size: 0.92rem; }
.field input, .field textarea, .field select {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(38,70,83,0.15);
  background: var(--white);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--teal);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.form-status {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: none;
}
.form-status.visible { display: block; }
.form-status.success { background: var(--teal-light); color: var(--teal-dark); }
.form-status.error { background: #fbe3e0; color: #a3402f; }

.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;
}

/* ---------- Contact success panel ---------- */
.contact-success {
  text-align: center;
  padding: 20px 4px;
}
.contact-success[hidden] { display: none; }
.contact-success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-success p { margin: 10px 0 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate);
  color: rgba(244,244,249,0.75);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(244,244,249,0.12);
}
.footer-brand { font-family: var(--font-display); color: var(--white); font-size: 1.4rem; margin-bottom: 12px; }
.footer-heading {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--gold); }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(244,244,249,0.08);
  border-radius: var(--radius-pill);
  font-weight: 700;
  margin-top: 4px;
}
.footer-social:hover { background: var(--teal); color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--gold); }
.footer-credit { color: rgba(244,244,249,0.6); }
.footer-credit a { color: rgba(244,244,249,0.85); font-weight: 700; }
.footer-credit a:hover { color: var(--gold); }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { margin-top: 40px; margin-bottom: 14px; }
.legal-content p, .legal-content li { margin-bottom: 14px; color: var(--text-muted); }
.legal-content ul { padding-left: 22px; list-style: disc; }
.legal-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 30px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flex { display: flex; align-items: center; }
.gap-12 { gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(38,70,83,0.1);
    box-shadow: var(--shadow-soft);
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tile-body-inner { padding-left: 26px; }
  .section { padding: 60px 0; }
  .entry { flex-wrap: wrap; align-items: flex-start; }
  .entry-titles { flex-basis: 100%; }
  .entry-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .entry-meta > span:nth-child(2) { display: none; }
  .entry-link { flex-basis: 100%; margin-left: 62px; margin-top: 8px; }
  .social-callout { padding: 28px 20px; }
}
