@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f7f4ee;
  --text: #0e0e10;
  --muted: #76767c;
  --faint: #a0a0a6;
  --line: #ececec;
  --accent: #0e0e10;
  --max: 1180px;
  --measure: 680px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: var(--measure); }

/* Header / nav */
.site-header { position: sticky; top: 0; background: rgba(247,244,238,0.9); backdrop-filter: saturate(180%) blur(12px); z-index: 30; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 24px; }
.brand { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 26px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.86rem; letter-spacing: 0.01em; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--text); }

/* Hero */
.hero { padding-top: 84px; padding-bottom: 64px; }
.eyebrow { color: var(--faint); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 20px; }
h1 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 22px; max-width: 17ch; }
.hero h1.quote { font-weight: 600; letter-spacing: -0.03em; line-height: 1.07; max-width: 20ch; }
.page-hero { padding-top: 76px; padding-bottom: 40px; }
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 16px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: var(--measure); font-weight: 400; }
.intro { font-size: 1.2rem; color: var(--text); max-width: var(--measure); font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }

.cta-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.btn { display: inline-block; font-weight: 600; font-size: 0.9rem; padding: 13px 26px; border-radius: 999px; transition: all 0.18s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { opacity: 0.82; }
.btn-ghost { color: var(--text); border: 1px solid #d6d6d6; background: transparent; }
.btn-ghost:hover { border-color: var(--text); }

/* Sections */
section.block { padding: 58px 0; }
section.block + section.block { padding-top: 0; }
.section-title { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 26px; }
.section-sub { color: var(--muted); margin: -16px 0 26px; max-width: var(--measure); }

/* Featured */
.feature { padding: 8px 0 0; }
.feature .wrap { padding: 0 32px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: center; }
.feature img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 4px; }
.feature .eyebrow { color: var(--faint); }
.feature h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.07; margin-bottom: 16px; }
.feature p { color: var(--muted); margin-bottom: 14px; font-size: 1rem; }
.feature .stars { color: var(--text); font-weight: 600; }

/* Work index links */
.index-list { list-style: none; }
.index-list li { border-top: 1px solid var(--line); }
.index-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 20px 0; font-size: clamp(1.4rem, 3.2vw, 2.1rem); font-weight: 600; letter-spacing: -0.03em; color: var(--text); transition: padding-left 0.2s ease, color 0.2s; }
.index-list a:hover { text-decoration: none; padding-left: 14px; }
.index-list .meta { font-size: 0.9rem; font-weight: 500; color: var(--faint); letter-spacing: 0; align-self: center; white-space: nowrap; }

/* Work items */
.work-item { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 52px 0; border-top: 1px solid var(--line); align-items: center; }
.work-item:first-of-type { border-top: none; padding-top: 12px; }
.work-item .thumb { overflow: hidden; border-radius: 4px; background: #efece5; }
.work-item .thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.5s ease; }
.work-item:hover .thumb img { transform: scale(1.03); }
.work-item h3 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.07; margin-bottom: 8px; }
.work-item .year { color: var(--faint); font-weight: 600; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.work-item .credits { color: var(--muted); font-size: 0.96rem; margin-top: 8px; }
.work-item .award { color: var(--text); font-weight: 600; font-size: 0.92rem; margin-top: 10px; }
.work-item .excerpt { color: var(--muted); margin-top: 12px; font-size: 1rem; }
.photo-credit { font-size: 0.72rem; color: var(--faint); letter-spacing: 0.02em; margin-top: 10px; }
.prose .photo-credit { margin-top: 0; margin-bottom: 24px; }
.work-item:nth-child(even) .thumb,
.work-item:nth-child(even) .gallery { order: 2; }

blockquote.pull { font-size: 1.18rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.32; color: var(--text); margin: 14px 0 0; }
blockquote.pull cite { display: block; font-style: normal; font-size: 0.82rem; font-weight: 600; color: var(--faint); margin-top: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Photo foursome gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery.duo { grid-template-columns: 1fr 1fr; }
.gthumb { padding: 0; border: 0; margin: 0; background: #efece5; cursor: zoom-in; overflow: hidden; border-radius: 3px; position: relative; display: block; }
.gthumb img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform 0.45s ease; display: block; }
.gthumb:hover img { transform: scale(1.06); }
.gthumb::after { content: "⤢"; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; display: grid; place-items: center; font-size: 13px; color: #fff; background: rgba(0,0,0,0.45); border-radius: 50%; opacity: 0; transition: opacity 0.2s; }
.gthumb:hover::after { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(12,12,14,0.94); display: none; z-index: 100; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 84vh; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 60px rgba(0,0,0,0.5); }
.lb-caption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #d7d7da; font-size: 0.85rem; letter-spacing: 0.02em; padding: 0 20px; }
.lb-btn { position: absolute; background: rgba(255,255,255,0.10); border: 0; color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 22px; cursor: pointer; display: grid; place-items: center; transition: background 0.2s; }
.lb-btn:hover { background: rgba(255,255,255,0.22); }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 20px; }

/* Plain link lists */
.linklist { list-style: none; }
.linklist li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 1rem; }
.linklist li:first-child { border-top: none; }
.group-title { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin: 36px 0 2px; }

.prose p { margin-bottom: 16px; font-size: 1rem; }
.prose p.muted { color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px; margin-top: 8px; }
.card { padding: 22px 0; border-top: 1px solid var(--line); color: inherit; display: block; }
.card:hover { text-decoration: none; }
a.card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.card h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.card p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 24px; color: var(--muted); font-size: 0.88rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }

/* Subtle reveal on load */
@media (prefers-reduced-motion: no-preference) {
  .work-item, .feature .wrap, .hero > * { animation: rise 0.7s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 760px) {
  .wrap { padding: 0 22px; }
  /* Mobile nav: stack brand above links so all sections are visible */
  .nav { flex-direction: column; align-items: flex-start; height: auto; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .nav-links { gap: 14px 18px; width: 100%; }
  .nav-links a { font-size: 0.92rem; }
  .hero { padding-top: 56px; padding-bottom: 40px; }
  .page-hero { padding-top: 56px; padding-bottom: 28px; }
  .feature .wrap { grid-template-columns: 1fr; gap: 22px; }
  .work-item { grid-template-columns: 1fr; gap: 18px; padding: 38px 0; }
  .work-item:nth-child(even) .thumb,
  .work-item:nth-child(even) .gallery { order: 0; }
  .work-item .thumb img { aspect-ratio: 16/10; }
  .index-list a { font-size: 1.5rem; }
  .lb-btn { width: 42px; height: 42px; }
}
