/* Ana Creates — shared site styles */

:root {
  --ivory: #f7f3ec;
  --paper: #efe7d8;
  --ink: #26211d;
  --ink-soft: #6f665c;
  --ink-faint: #a89e90;
  --line: #ddd2bd;
  --card-bg: #fffdf9;
  --accent: #9c5a34;
  --accent-soft: #c68a56;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

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

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 243, 236, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-nav.scrolled {
  border-bottom-color: var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  text-transform: uppercase;
}

.wordmark span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

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

.nav-cta {
  border: 1px solid var(--ink);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--ivory);
}

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  min-height: 82vh;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 64px 60px 32px;
  max-width: 640px;
}

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

.hero-text h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.05;
}

.hero-text .role {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  font-family: "Fraunces", serif;
  font-style: italic;
}

.hero-text p.lede {
  margin-top: 24px;
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  border: 1px solid var(--ink);
}

.btn-primary {
  background: var(--ink);
  color: var(--ivory);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--ivory);
}

.hero-image {
  position: relative;
  overflow: hidden;
  background: #1c1815;
}

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

.hero-image .cap {
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: #f2ece1;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ---------- Sections ---------- */

section { padding: 108px 0; }

.section-alt { background: var(--paper); }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head .eyebrow { margin-bottom: 16px; }

.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.section-head p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 56ch;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 64px;
  align-items: start;
}

.about-body p {
  color: var(--ink-soft);
  font-size: 1.06rem;
  margin: 0 0 20px;
  max-width: 62ch;
}

.about-body p:last-child { margin-bottom: 0; }

.fact-list {
  border-top: 1px solid var(--line);
}

.fact-list dl {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
}

.fact-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.fact-row dt {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.fact-row dd {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink);
}

/* ---------- Work cards ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.work-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--card-bg);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -20px rgba(38, 33, 29, 0.28);
}

.work-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1c1815;
}

.work-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-card:hover .thumb img { transform: scale(1.05); }

.work-card .body { padding: 28px 30px 32px; }

.work-card .tag {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.work-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.work-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 18px;
}

.work-card .link {
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.work-card .link .arrow { transition: transform 0.25s ease; }
.work-card:hover .link .arrow { transform: translateX(4px); }

/* ---------- Mosaic strip ---------- */

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 64px;
}

.mosaic figure {
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  position: relative;
  background: #1c1815;
}

.mosaic figure:nth-child(1) { grid-row: span 2; }
.mosaic figure:nth-child(3) { grid-row: span 2; }

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.mosaic figure:hover img { transform: scale(1.06); }

.mosaic figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f2ece1;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}

/* ---------- Experience ---------- */

.exp-list {
  border-top: 1px solid var(--line);
}

.exp-row {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.exp-row .firm {
  font-family: "Fraunces", serif;
  font-size: 1.18rem;
  margin-bottom: 4px;
}

.exp-row .role {
  font-size: 0.88rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.exp-row .detail {
  color: var(--ink-soft);
  font-size: 0.93rem;
  max-width: 62ch;
}

.tag-cloud {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span {
  font-size: 0.8rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--card-bg);
}

.tag-cloud-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 56px;
  margin-bottom: 0;
}

/* ---------- Recognition ---------- */

.press-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
}

.press-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.press-grid li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.press-grid li strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
}

/* ---------- Contact / Footer ---------- */

.contact {
  text-align: center;
  padding-top: 120px;
  padding-bottom: 120px;
}

.contact h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  max-width: 18ch;
  margin: 0 auto 26px;
}

.contact p {
  color: var(--ink-soft);
  margin-bottom: 38px;
}

.contact .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

.contact .btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
}

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

footer p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

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

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

/* ---------- Gallery pages ---------- */

.gallery-header {
  padding: 64px 0 40px;
}

.gallery-header .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 30px;
}

.gallery-header .back:hover { color: var(--accent); }

.gallery-header h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
}

.gallery-header p {
  margin-top: 16px;
  color: var(--ink-soft);
  max-width: 62ch;
  font-size: 1.02rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-bottom: 110px;
}

.gallery-grid .tile {
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 3px;
  background: #1c1815;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  position: relative;
}

.gallery-grid .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-grid .tile:hover img { transform: scale(1.045); }

.gallery-grid .tile .idx {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #f2ece1;
  background: rgba(20, 17, 14, 0.55);
  padding: 4px 9px;
  border-radius: 999px;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 15, 13, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.lightbox .lb-close,
.lightbox .lb-prev,
.lightbox .lb-next {
  position: fixed;
  background: transparent;
  border: none;
  color: #f2ece1;
  cursor: pointer;
  font-size: 1.6rem;
  padding: 14px;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.lightbox .lb-close:hover,
.lightbox .lb-prev:hover,
.lightbox .lb-next:hover { opacity: 1; }

.lightbox .lb-close { top: 18px; right: 24px; font-size: 1.9rem; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); font-size: 2.4rem; }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); font-size: 2.4rem; }

.lightbox .lb-count {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-faint);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-image { height: 46vh; order: -1; }
  .hero-text { padding: 48px 24px; max-width: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .work-grid { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .mosaic figure:nth-child(1), .mosaic figure:nth-child(3) { grid-row: span 1; }
  .press-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  section { padding: 76px 0; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
