/* ── Reset & Variables ── */
:root {
  --bg: #0d0b0a;
  --surface: #1a1614;
  --ink: #e8e0d6;
  --muted: #8a7e72;
  --accent: #c9a96e;
  --accent-dim: #a08050;
  --rule: #2a2420;
  --gutter: 1.5rem;
  --max-w: 1200px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f2eb;
    --surface: #ffffff;
    --ink: #1a1614;
    --muted: #6b6358;
    --accent: #8b6f3e;
    --accent-dim: #6b5530;
    --rule: #d9cfbf;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

/* ── Skip Link ── */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--accent); color: var(--bg);
  padding: 0.5rem 1rem; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── Navigation ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo {
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--accent); }
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
}
.hero-image {
  width: 100%;
  max-height: 85vh;
}
.hero-image img {
  width: 100%;
  height: 85vh;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem var(--gutter);
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}
.hero-title {
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  margin: 0.5rem 0 0;
  opacity: 0.85;
  max-width: 40ch;
}

/* ── Section Titles ── */
.section-title {
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  font-size: 1.8rem;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--accent);
  margin-top: 0.4rem;
}

/* ── Gallery ── */
.gallery-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem var(--gutter);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
}
.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(1.1);
}
.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.gallery-item:hover figcaption,
.gallery-item:focus-within figcaption {
  transform: translateY(0);
}

/* ── About ── */
.about-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem var(--gutter);
}
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text p {
  margin: 0 0 1rem;
  max-width: 55ch;
  font-size: 1.05rem;
}
.about-image {
  border-radius: 4px;
  overflow: hidden;
}
.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* ── Contact ── */
.contact-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem var(--gutter);
  text-align: center;
}
.contact-section p {
  max-width: 45ch;
  margin: 0 auto 1rem;
}
.contact-email a {
  font-size: 1.3rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.contact-email a:hover {
  border-bottom-color: var(--accent);
}

/* ── Footer ── */
footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem var(--gutter);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
}
footer .attribution { font-size: 0.75rem; opacity: 0.7; }
footer .attribution a { color: var(--muted); text-decoration: none; }
footer .attribution a:hover { color: var(--accent); }

/* ── Focus ── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .gallery-item img { transform: none !important; filter: none !important; }
  .gallery-item figcaption { transform: translateY(0) !important; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem var(--gutter);
  }
  .nav-links { gap: 1.25rem; }
  .hero-image img { height: 60vh; }
  .hero-overlay { padding: 2rem var(--gutter); }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item img { height: 280px; }
  .gallery-item figcaption { transform: translateY(0); }
  .about-content { grid-template-columns: 1fr; gap: 2rem; }
  .about-image img { height: 300px; }
  .about-section, .gallery-section, .contact-section { padding: 3rem var(--gutter); }
  footer { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-image img { height: 50vh; }
  .nav-links { gap: 0.9rem; font-size: 0.85rem; }
}
