/* Bianca Coppola — personal site */
:root {
  --bg: #faf7f2;
  --ink: #1f1b16;
  --muted: #6f675c;
  --accent: #c0532d;
  --accent-soft: #e9d8cc;
  --card: #ffffff;
  --line: #e5ddd2;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --content-max: min(3400px, 96vw);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 5vw;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-color: var(--line); }

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav { display: flex; gap: 1.75rem; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav a:hover { opacity: 1; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 5vw 5rem;
}
.hero-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.hero-photo {
  display: flex;
  justify-content: center;
}
.hero-portrait {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1rem;
}

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

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 9vw, 8rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { box-shadow: 0 8px 20px rgba(31, 27, 22, 0.25); }

.btn-ghost {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--accent-soft); }

/* Sections */
section {
  padding: 6rem 5vw;
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-head { margin-bottom: 3rem; }
.section-head h2,
.contact h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
  gap: 2.5rem;
}

.about-text p { margin-bottom: 1.25rem; }
.muted { color: var(--muted); }

.about-card { text-align: center; }
.portrait {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--accent-soft), #f0e3d5);
}
.caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Work grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1500px;
  margin: 0 auto;
}

.work-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  transition: transform 0.2s, box-shadow 0.25s;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(31, 27, 22, 0.1);
}

.thumb {
  aspect-ratio: 4 / 3;
  border-radius: 0.6rem;
  margin-bottom: 1rem;
}
.thumb-1 { background: linear-gradient(135deg, #d9a48f, #b46a4a); }
.thumb-2 { background: linear-gradient(135deg, #b8c4c9, #5f7c8a); }
.thumb-3 { background: linear-gradient(135deg, #e2c8a6, #a98252); }
.thumb-4 { background: linear-gradient(135deg, #a8bda0, #4e6e58); }
.thumb-5 { background: linear-gradient(135deg, #c9b4d4, #7d5f96); }
.thumb-6 { background: linear-gradient(135deg, #d4a3a8, #8e4a52); }

.work-cat {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.work-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}
.work-desc {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Contact */
.contact {
  text-align: center;
  padding-bottom: 8rem;
}
.contact .btn { margin-top: 1.75rem; }
.contact .muted { margin-top: 0.75rem; }

.socials {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.socials a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.socials a:hover { color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 5vw;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; }
  .nav { gap: 1rem; }
}

/* Large screens — scale type up so it reads well at 4K */
@media (min-width: 2200px) {
  html { font-size: 20px; }
}
@media (min-width: 3000px) {
  html { font-size: 24px; }
}
