/* Sarah Andersen — sarahbatelier.com — Brand System */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,500&family=Josefin+Sans:wght@300;400&family=Pinyon+Script&display=swap');

:root {
  --ivory: #FCFAF3;
  --hero-bg: #F8F4E3;
  --garnet: #9B1B30;
  --gold: #C9A84C;
  --ink: #2b2420;
  --charcoal: #36454F;
  --charcoal-deep: #21292E;
  --border: rgba(155, 27, 48, 0.15);
}

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

body {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
}

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

.wrap { max-width: 960px; margin: 0 auto; padding: 0 10%; }

/* Header */
header.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  background: var(--ivory);
  position: relative;
  z-index: 5;
}

.logo-wordmark {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

nav.main-nav a:hover { color: var(--garnet); }

/* Hero — Alt A: split-screen, rotating photo panel */
.hero {
  display: flex;
  min-height: 74vh;
}

.hero-card {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 5% 56px 20%;
  background: var(--hero-bg);
}

.hero-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--charcoal-deep);
}

.hero-panel img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  width: auto;
  opacity: 0;
  animation: heroFade 24s infinite;
}

.hero-panel img:nth-child(1) { animation-delay: 0s; }
.hero-panel img:nth-child(2) { animation-delay: 6s; }
.hero-panel img:nth-child(3) { animation-delay: 12s; }
.hero-panel img:nth-child(4) { animation-delay: 18s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  21%  { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero-eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--charcoal);
}

.hero-eyebrow .dot { color: var(--garnet); }

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 46px;
  line-height: 1.15;
  margin-top: 10px;
  color: var(--ink);
}

.hero-sub {
  font-family: 'Pinyon Script', cursive;
  font-size: 25px;
  color: var(--garnet);
  margin-top: 12px;
}

.hero-desc {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.82;
  max-width: 40ch;
  margin-top: 18px;
}

.btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: 22px;
  border: 1px solid var(--ink);
  padding: 13px 32px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

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

/* Selected Work */
.section-label {
  text-align: center;
  padding: 56px 0 8px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ink);
  opacity: 0.6;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 0 64px;
}

.work-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.work-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  margin-top: 12px;
}

.work-tag {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--garnet);
  margin-top: 3px;
}

.view-all {
  text-align: center;
  padding-bottom: 40px;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 10%;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.6;
}

/* Portfolio page */
.page-header {
  text-align: center;
  padding: 56px 10% 12px;
}

.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 34px;
}

.page-sub {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--garnet);
  margin-top: 8px;
}

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 10% 8px;
}

.filter-btn {
  border: 1px solid var(--ink);
  background: transparent;
  padding: 8px 18px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}

.filter-btn:hover { background: rgba(155,27,48,0.08); }
.filter-btn.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 32px 0 72px;
}

.project-card { display: block; }

.project-card .thumb {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  background: #e9e2d0;
}

.project-card .thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.45;
  text-align: center;
  padding: 16px;
}

.project-card .p-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  margin-top: 12px;
}

.project-card .p-desc {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 4px;
  line-height: 1.5;
}

.project-card .p-tag {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--garnet);
  margin-top: 6px;
}

.project-card.hidden { display: none; }

@media (max-width: 700px) {
  .project-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  nav.main-nav ul { gap: 16px; font-size: 9px; }
  .hero { flex-direction: column; min-height: auto; }
  .hero-card { flex: none; padding: 32px 24px; }
  .hero-panel { height: 46vh; }
  .hero-title { font-size: 30px; }
  footer.site-footer { flex-direction: column; gap: 8px; text-align: center; }
}
