:root {
  color-scheme: dark;
  --bg: #18280c;
  --bg-deep: #131f09;
  --text: #f2ede4;
  --muted: #d4c0a1;
  --accent: #c2a373;
  --line: rgba(194, 163, 115, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

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

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

.wrap {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
}

header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}

header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.brand:hover { opacity: 0.9; }

.brand img {
  width: auto;
  height: 3.5rem;
  object-fit: contain;
}

.brand span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover { color: var(--text); }

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover::after { width: 100%; }

main { padding: 3rem 0 4rem; }

h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 1.75rem;
  margin: 2.5rem 0 0.75rem;
}

.lead { font-size: 1.125rem; color: var(--muted); max-width: 42rem; }

.cta {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--accent);
  color: var(--bg-deep);
  text-decoration: none;
  font-weight: 700;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cta:hover {
  background: #d4c0a1;
  color: var(--bg-deep);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

figure {
  margin: 0;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 1s ease;
}

figure:hover img { transform: scale(1.05); }

figcaption { padding: 0.85rem 1rem 1rem; color: var(--muted); }

@keyframes rise {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

h1,
.lead,
.cta,
figure {
  animation: rise 1s ease both;
}

.lead { animation-delay: 0.12s; }
.cta { animation-delay: 0.22s; }
figure { animation-delay: 0.28s; }
.grid figure:nth-child(2),
.pair figure:nth-child(2) { animation-delay: 0.42s; }
.grid figure:nth-child(3) { animation-delay: 0.54s; }

footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
}

footer .wrap {
  text-align: center;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-actions .cta {
  margin-top: 0;
}

.cta-quiet {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.cta-quiet:hover {
  background: var(--accent);
  color: var(--bg-deep);
}

@media (max-width: 700px) {
  header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  nav a:first-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
