/* ═══════════════════════════════════════
   Halley Theodore — Portfolio Design System
   Inspired by hellococreative.com
   ═══════════════════════════════════════ */

:root {
  --bg: #FDFBF7;
  --text: #1D1D1F;
  --muted: #6B6B6B;
  --accent: #3D6B5E;
  --accent-hover: #2E5248;
  --warm: #8B6F5C;
  --surface: #F5F2EC;
  --border: #E5E0D8;
  --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.serif {
  font-family: Baskerville, 'Libre Baskerville', 'Times New Roman', serif;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Navigation ── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: Baskerville, 'Libre Baskerville', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.current { color: var(--text); }

/* ── Section Utilities ── */
.section { padding: 5rem 0; }
.section--surface { background: var(--surface); }
.section--bordered { border-top: 1px solid var(--border); }

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: Baskerville, 'Libre Baskerville', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: normal;
  font-style: italic;
  line-height: 1.25;
  text-wrap: balance;
  margin-bottom: 1.2rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 60ch;
}

/* ── Hero (Home) ── */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero .section-title {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  max-width: 18ch;
  margin: 0 auto 1.5rem;
}

.hero .section-subtitle {
  margin: 0 auto 2.5rem;
  max-width: 50ch;
}

.hero--split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
}

.hero--split .section-title {
  margin: 0 0 1.5rem;
  max-width: none;
}

.hero--split .section-subtitle {
  margin: 0 0 2.5rem;
}

.hero-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-cta {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--white);
  background: var(--accent);
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  transition: background 0.2s;
}

.hero-cta:hover {
  background: var(--accent-hover);
  color: var(--white);
}

/* ── Case Study Cards ── */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.case-card {
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: transform 0.2s;
}

.case-card:hover { transform: translateY(-4px); }

.case-card-image {
  aspect-ratio: 16 / 10;
  background: var(--surface);
  margin-bottom: 1.2rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card-image .placeholder {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--border);
}

.case-card-meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.case-card-title {
  font-family: Baskerville, 'Libre Baskerville', serif;
  font-size: 1.3rem;
  font-weight: normal;
  font-style: italic;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.case-card-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.case-card--featured {
  grid-column: 1 / -1;
}

.case-card--featured .case-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.case-card--featured .case-card-image {
  margin-bottom: 0;
  aspect-ratio: 4 / 3;
}

.case-card--featured .case-card-title {
  font-size: 1.6rem;
}

/* ── Case Study Interior ── */
.case-hero {
  padding: 4rem 0 3rem;
  max-width: 760px;
}

.case-hero-image {
  margin-bottom: 2rem;
  overflow: hidden;
}

.case-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.case-hero .section-eyebrow { margin-bottom: 0.8rem; }

.case-hero .section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1.5rem;
}

.case-hero .case-scope {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.case-hero .case-scope dt {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.case-hero .case-scope dd {
  font-size: 1rem;
  color: var(--muted);
}

.case-body {
  max-width: 760px;
  padding-bottom: 3rem;
}

.case-body h2 {
  font-family: Baskerville, 'Libre Baskerville', serif;
  font-size: 1.5rem;
  font-weight: normal;
  font-style: italic;
  line-height: 1.3;
  margin: 3rem 0 1rem;
}

.case-body h2:first-child { margin-top: 0; }

.case-body p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.2rem;
  max-width: 65ch;
}

.case-body p em { color: var(--accent); font-style: italic; }

.case-body .highlight {
  font-family: Baskerville, 'Libre Baskerville', serif;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2rem 0;
  max-width: 55ch;
}

/* ── Blockquote / Testimonial ── */
.testimonial {
  background: var(--surface);
  padding: 3rem;
  margin: 3rem 0;
  border-left: 3px solid var(--accent);
}

.testimonial blockquote {
  font-family: Baskerville, 'Libre Baskerville', serif;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.testimonial cite {
  font-style: normal;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ── Full-width image break ── */
.case-image {
  margin: 3rem 0;
}

.case-image--full {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
}

.case-image img {
  width: 100%;
}

.case-image .placeholder-wide {
  aspect-ratio: 21 / 6;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--border);
}

/* ── Results Grid ── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.result-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
}

.result-number {
  font-family: Baskerville, 'Libre Baskerville', serif;
  font-size: 2rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.result-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── Case Study Nav (prev/next) ── */
.case-nav {
  display: flex;
  justify-content: space-between;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  gap: 2rem;
}

.case-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
  transition: color 0.2s;
}

.case-nav a:hover { color: var(--accent); }

.case-nav .label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
  display: block;
}

.case-nav .name {
  font-family: Baskerville, 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 1.1rem;
}

/* ── About Page ── */
.about-hero {
  padding: 5rem 0 4rem;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-photo {
  aspect-ratio: 3 / 4;
  background: var(--surface);
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.about-intro h1 {
  font-family: Baskerville, 'Libre Baskerville', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: normal;
  font-style: italic;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.about-intro p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 50ch;
}

/* ── Experience Timeline ── */
.timeline {
  padding: 4rem 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  padding-top: 0.2rem;
}

.timeline-role {
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 0.15rem;
}

.timeline-company {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.timeline-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.timeline-clients {
  font-size: 0.82rem;
  color: var(--accent);
  margin-top: 0.5rem;
}

/* ── Skills Grid ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.skill-item {
  font-size: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* ── Contact Section ── */
.contact-section {
  padding: 5rem 0;
  text-align: center;
}

.contact-section .section-title {
  max-width: 16ch;
  margin: 0 auto 1rem;
}

.contact-section .section-subtitle {
  margin: 0 auto 2rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.contact-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border: 1px solid var(--text);
  color: var(--text);
  transition: all 0.2s;
}

.contact-links a:hover {
  background: var(--text);
  color: var(--bg);
}

/* ── Footer ── */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .page { padding: 0 1.25rem; }

  .hero--split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-photo { max-height: 420px; aspect-ratio: 4 / 3; }

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

  .case-card--featured .case-card-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }

  .about-photo { max-height: 400px; aspect-ratio: 4 / 3; }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

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

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

  .case-nav { flex-direction: column; }

  .nav-links { gap: 1.2rem; }
}

@media (max-width: 600px) {
  .skills-grid { grid-template-columns: 1fr; }
  .contact-links { flex-direction: column; gap: 0.8rem; }
  .contact-links a { text-align: center; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
