@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap");

:root {
  color-scheme: dark;
  --background: #101310;
  --surface: #181c18;
  --text: #f0eee7;
  --muted: #a2a69c;
  --accent: #d2a86a;
  --line: #30352f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 7vw, 7rem);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand-stone {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 3px rgb(240 238 231 / 12%);
}

.brand-period {
  color: var(--accent);
}

nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  color: var(--muted);
  font-size: 0.9rem;
}

nav a {
  transition: color 180ms ease;
}

nav a:hover {
  color: var(--accent);
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(1.8rem, 4.5vw, 4rem) 1.5rem clamp(2.25rem, 5.4vw, 4rem);
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
.panel-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
}

h1 {
  margin: 0;
  font-size: clamp(2.9rem, 8vw, 6.3rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h1 span {
  color: var(--accent);
}

.hero-copy {
  max-width: 33rem;
  margin: 1.55rem auto 1.35rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.explore {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 clamp(1.25rem, 7vw, 7rem);
}

.panel {
  position: relative;
  display: flex;
  min-height: 20rem;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 80% 15%, rgb(210 168 106 / 8%), transparent 45%),
    var(--surface);
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.panel:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.panel-number {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.panel-content {
  position: relative;
  z-index: 1;
  display: grid;
  width: 52%;
  align-self: flex-start;
  justify-items: start;
  gap: 0.55rem;
}

.panel-art {
  position: absolute;
  right: 0.5rem;
  bottom: 1.25rem;
  width: 66%;
  height: 78%;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.72;
  filter: blur(1.6px);
  mask-image: linear-gradient(to right, transparent 0%, transparent 34%, #000 68%);
  pointer-events: none;
}

.panel-title {
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1.2;
}

.panel-description {
  max-width: 18rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.panel-arrow {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  color: var(--accent);
  font-size: 1.25rem;
  transition: transform 180ms ease;
}

.panel:hover .panel-arrow {
  transform: translate(3px, -3px);
}

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 7vw, 7rem);
}

.details article {
  scroll-margin-top: 6rem;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.details article > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.details a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.details a:hover {
  color: var(--text);
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

footer .brand {
  color: var(--text);
}

footer p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

@media (max-width: 760px) {
  .explore,
  .details {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: 17rem;
  }

  .panel-content {
    width: 56%;
  }

  .panel-art {
    width: 66%;
    height: 78%;
  }

  .details {
    gap: 3rem;
  }
}

@media (max-width: 480px) {
  .site-header,
  footer {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  nav {
    gap: 0.8rem;
    font-size: 0.8rem;
  }

  .hero {
    padding-top: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
