/* Base */
:root {
  color-scheme: light;
  --bg: #fffaf2;
  --surface: #fffdf9;
  --text: #211813;
  --muted: #6c5c54;
  --border: rgba(33, 24, 19, 0.12);
  --line: rgba(33, 24, 19, 0.08);
  --radius: 24px;
  --accent: #8a513a;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji",
    "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(138, 81, 58, 0.28);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  z-index: 999;
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* Hero */
.hero {
  padding: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0;
  border-radius: 999px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 34rem;
}

.micro {
  margin: 18px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.main-overlap-wrap {
  margin-top: -24px;
  position: relative;
  z-index: 2;
}

.main-card {
  background: rgba(255, 253, 249, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px 0;
  box-shadow: 0 16px 40px rgba(33, 24, 19, 0.06);
}

.hero-copy {
  padding-bottom: 8px;
}

.hero-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.text-link {
  position: relative;
  font-weight: 700;
  padding-bottom: 4px;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.hero-media {
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  background: #dac3b7;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 80% center;
}

/* Details */
.details {
  padding: 16px 0 32px;
}

.details-grid {
  border-top: 1px solid var(--line);
}

.detail-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.detail-item h2 {
  margin: 0;
  font-size: 1.45rem;
}

.detail-item p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 42rem;
}

.detail-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

/* Footer */
.footer {
  padding: 0 0 28px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.footer-inner p,
.footer-actions a {
  color: var(--muted);
}

.footer-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Responsive */
@media (min-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 56px));
  }

  .hero-media {
    border-radius: 0 0 34px 34px;
  }

  .hero-media img {
    height: 70vh;
    min-height: 540px;
    max-height: 800px;
    object-position: center;
    aspect-ratio: unset;
  }

  .main-overlap-wrap {
    margin-top: -18rem;
  }

  .main-card {
    max-width: 50rem;
    padding: 36px 36px 0;
  }

  .hero-copy {
    max-width: 42rem;
  }

  .details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    border-top: 1px solid var(--line);
  }

  .detail-item {
    padding: 24px 0 0;
    border-bottom: 0;
  }

  .footer-inner {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
