:root {
  color-scheme: dark;
  --bg: #120f13;
  --bg-soft: #1c171d;
  --panel: #262028;
  --panel-strong: #332934;
  --text: #fff8f1;
  --muted: #c9bfb9;
  --line: rgba(255, 248, 241, 0.14);
  --gold: #e5bd75;
  --rose: #d98786;
  --jade: #79b4a8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(229, 189, 117, 0.16), transparent 28rem),
    linear-gradient(135deg, #120f13 0%, #18131a 45%, #101716 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(229, 189, 117, 0.55);
  text-underline-offset: 0.22em;
}

button,
input {
  font: inherit;
}

.site-header,
.section,
.site-footer {
  padding-inline: clamp(1rem, 4vw, 4rem);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  max-width: 1180px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  min-height: min(760px, calc(100svh - 4.5rem));
  max-width: 1180px;
  margin: 0 auto;
  padding-block: clamp(2rem, 7vw, 5.5rem);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 5.7rem);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.hero p:not(.eyebrow) {
  max-width: 39rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-art {
  position: relative;
  display: inline-grid;
  width: fit-content;
  max-width: min(100%, 500px);
  justify-self: end;
  padding: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
}

.hero-art img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(70svh, 680px);
  object-fit: cover;
  background: #080708;
}

.hero-art span {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: var(--text);
  font-weight: 700;
  text-align: left;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.collection-grid {
  display: grid;
  gap: 1.25rem;
}

.collection {
  min-width: 0;
  padding-block: 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
}

.collection h3 {
  margin: 0 0 0.85rem;
  color: var(--jade);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 0.8rem;
}

.art-card {
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.art-card:hover,
.art-card:focus-visible {
  outline: none;
}

.art-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 180ms ease;
}

.art-card:hover img,
.art-card:focus-visible img {
  transform: scale(1.04);
}

.art-card span {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.4rem 0.55rem 0.55rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding-block: 2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-art {
    justify-self: stretch;
    width: fit-content;
    max-width: 100%;
  }

  .hero-art img {
    max-height: 68svh;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(134px, 1fr));
  }
}

@media (max-width: 640px) {
  .top-nav,
  .section-heading,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .top-nav {
    justify-content: center;
    padding-block: 1rem;
  }

  .nav-links {
    justify-content: flex-start;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}
