/* ============================================
   Audrey Buchner — Residential Design Portfolio
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --plaster:   #F6F2EA;
  --plaster-2: #EFE9DD;
  --ink:       #2A2723;
  --ink-soft:  #5B564E;
  --line:      #DBD3C3;
  --navy:      #232C36;
  --brass:     #A9824F;
  --brass-soft:#C7A575;

  --display: 'Cormorant Garamond', Georgia, serif;
  --sans: 'EB Garamond', Georgia, serif;

  --max: 1240px;
  --gutter: clamp(24px, 5vw, 72px);
}

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

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.18;
  margin: 0;
  letter-spacing: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 50;
  padding: 30px var(--gutter) 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.brand span {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  gap: 34px;
  align-items: center;
}

.main-nav a {
  font-size: 14.5px;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--brass);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 780px) {
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--plaster);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transform: translateY(-100%);
    transition: transform .35s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { font-size: 24px; font-family: var(--display); font-weight: 500; color: var(--ink); }
  .nav-toggle { display: flex; }
}

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ink);
  padding: 13px 26px;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: var(--ink); color: var(--plaster); }

.btn-ghost {
  border-color: rgba(246,242,234,0.5);
  color: inherit;
}

.text-link {
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  font-size: 14.5px;
}
.text-link:hover { color: var(--brass); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  margin: 6px var(--gutter) 0;
  height: 86vh;
  min-height: 560px;
  max-height: 880px;
  overflow: hidden;
}
.hero img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,18,15,.55) 0%, rgba(20,18,15,0) 45%);
}
.hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px clamp(20px, 4vw, 48px);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.hero-caption .loc {
  font-size: 13px;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

.hero-intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) var(--gutter) clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}
.hero-intro h1 {
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  max-width: 36ch;
}
.hero-intro .intro-body {
  font-size: 17px;
  color: var(--ink-soft);
  padding-top: 8px;
}
@media (max-width: 780px) {
  .hero-intro { grid-template-columns: 1fr; }
}

/* ---------- Section spacing ---------- */
section { padding: 0; }
.section-pad { padding: clamp(56px, 8vw, 100px) 0; }
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Project teaser grid (home) ---------- */
.teaser-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.teaser-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 400; }

.project-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
}

.project-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}
.project-list .project-row:last-child { border-bottom: 1px solid var(--line); }
.project-row:nth-child(even) { direction: rtl; }
.project-row:nth-child(even) > * { direction: ltr; }

.project-row .figure { overflow: hidden; }
.project-row .figure img {
  width: 100%; height: clamp(280px, 34vw, 460px); object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.project-row:hover .figure img { transform: scale(1.035); }

.project-row .meta .eyebrow { margin-bottom: 14px; }
.project-row h3 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  margin-bottom: 14px;
}
.project-row .desc {
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 46ch;
  margin-bottom: 22px;
}
.project-row .tags {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  margin-bottom: 26px;
}
.project-row .tags span {
  font-size: 12.5px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 5px 11px;
}

/* ---------- Capabilities strip ---------- */
.capstrip {
  background: var(--navy);
  color: var(--plaster);
  padding: clamp(48px, 7vw, 80px) 0;
}
.capstrip .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(30px, 6vw, 80px);
}
.capstrip h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 400;
  color: #fff;
}
.capstrip .cap-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
  padding: 0; margin: 0; list-style: none;
  align-content: start;
}
.capstrip .cap-list li {
  font-size: 14.5px;
  color: #D8D3C8;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.16);
}
@media (max-width: 780px) {
  .capstrip .wrap { grid-template-columns: 1fr; }
  .capstrip .cap-list { grid-template-columns: 1fr 1fr; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  padding: clamp(56px, 9vw, 110px) 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 400;
  max-width: 18ch;
  margin: 0 auto 26px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 46px 0 34px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer .brand { margin-bottom: 6px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 26px;
}

/* ---------- Page header (interior pages) ---------- */
.page-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 50px) var(--gutter) clamp(40px, 6vw, 64px);
}
.page-head h1 {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 400;
  max-width: 16ch;
}
.page-head .lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-top: 18px;
}

/* ---------- Portfolio index cards ---------- */
.portfolio-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(60px, 8vw, 100px);
}

/* ---------- Project page ---------- */
.project-hero {
  margin: 0 var(--gutter);
  height: 72vh;
  min-height: 420px;
  max-height: 760px;
  overflow: hidden;
}
.project-hero img { width: 100%; height: 100%; object-fit: cover; }

.project-intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) var(--gutter);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 6vw, 90px);
}
.project-intro .col-label .eyebrow { margin-bottom: 18px; }
.project-intro dl {
  margin: 0; padding: 0;
}
.project-intro dl div {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
}
.project-intro dl dt { color: var(--ink-soft); }
.project-intro dl dt, .project-intro dl dd { margin: 0; }

.project-intro .summary { font-size: 18px; color: var(--ink); margin-bottom: 26px; }
.role-list {
  columns: 2;
  column-gap: 36px;
  padding: 0; margin: 0; list-style: none;
}
.role-list li {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 9px 0 9px 18px;
  position: relative;
  break-inside: avoid;
  border-top: 1px solid var(--line);
}
.role-list li::before {
  content: '';
  position: absolute; left: 0; top: 18px;
  width: 6px; height: 1px;
  background: var(--brass);
}
@media (max-width: 780px) {
  .project-intro { grid-template-columns: 1fr; }
  .role-list { columns: 1; }
}

/* ---------- Gallery (horizontal scroll, one photo at a time) ---------- */
.gallery-hint {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-size: 12.5px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.gallery-hint::after {
  content: '→';
  color: var(--brass);
}
.gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 0 var(--gutter) clamp(60px, 8vw, 100px);
  margin: 0;
  gap: clamp(14px, 1.6vw, 22px);
}
.gallery figure {
  flex: 0 0 min(760px, 88vw);
  scroll-snap-align: start;
  margin: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--plaster-2);
}
.gallery img {
  width: 100%;
  height: min(70vh, 640px);
  object-fit: contain;
  display: block;
  transition: transform .5s ease;
}
.gallery figure:hover img { transform: scale(1.015); }
.gallery figcaption {
  font-size: 12.5px;
  color: var(--ink-soft);
  padding-top: 9px;
}
@media (max-width: 700px) {
  .gallery figure { flex-basis: 92vw; }
  .gallery img { height: 62vh; }
}

.project-nav {
  border-top: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 0;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.project-nav a { color: var(--ink-soft); }
.project-nav a:hover { color: var(--ink); }
.project-nav .lbl { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; }
.project-nav .name { font-family: var(--display); font-weight: 500; font-size: 19px; color: var(--ink); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20,18,15,.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 26px; right: 30px;
  color: #fff; background: none; border: none;
  font-size: 15px; cursor: pointer; letter-spacing: 0.05em;
}

/* ---------- About page ---------- */
.about-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(60px, 8vw, 100px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 6vw, 90px);
}
.about-layout .sticky-col { position: sticky; top: 100px; align-self: start; }
.about-body p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 1.4em;
}
.about-body p:first-child { color: var(--ink); font-size: 19px; }
@media (max-width: 780px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-layout .sticky-col { position: static; }
}

.timeline {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.timeline .row {
  display: flex; gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.timeline .row .yr { color: var(--ink-soft); width: 90px; flex-shrink: 0; }

/* ---------- Contact page ---------- */
.contact-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(70px, 9vw, 120px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
}
.contact-layout h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 400; margin-bottom: 22px; }
.contact-card { padding-top: 4px; }
.contact-card a.big {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 32px);
  display: block;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.contact-card a.big:hover { color: var(--brass); }
.contact-card .row {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.contact-card .row strong { color: var(--ink); display: block; margin-bottom: 4px; font-weight: 500; }
@media (max-width: 780px) { .contact-layout { grid-template-columns: 1fr; } }

/* misc */
.mono-note {
  font-size: 12.5px;
  color: var(--ink-soft);
}
