:root {
  color-scheme: light;
  --bg-top: rgba(253, 244, 226, 0.95);
  --bg-bottom: rgba(241, 228, 206, 0.94);
  --panel: rgba(255, 250, 243, 0.66);
  --panel-border: rgba(111, 76, 43, 0.14);
  --text-main: #2f261c;
  --text-soft: #786551;
  --accent: #7b2222;
  --button-bg: rgba(118, 34, 34, 0.92);
  --button-hover: rgba(97, 22, 22, 0.95);
  --shadow: 0 18px 48px rgba(70, 45, 28, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  color: var(--text-main);
  background:
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(197, 132, 98, 0.18), transparent 36%),
    radial-gradient(circle at bottom right, rgba(186, 127, 78, 0.12), transparent 30%);
  pointer-events: none;
}

.home-shell {
  width: min(1320px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 40px 0 24px;
  flex: 1;
}

.hero {
  min-height: calc(100vh - 144px);
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.art-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-copy {
  padding: 56px 44px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(163, 95, 62, 0.12), transparent 66%);
}

.hero-kicker {
  margin: 0 0 12px;
  letter-spacing: 0.28em;
  font-size: 13px;
  color: var(--text-soft);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-text {
  margin: 18px 0 0;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.85;
  color: var(--text-soft);
}

.art-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 24px;
  min-height: 0;
}

.art-card {
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.art-card-primary {
  transform: translateY(10px);
}

.art-card-secondary {
  transform: translateY(54px);
}

.art-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f5efe6;
}

.home-footer {
  padding: 0 24px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--button-bg);
  color: #fff7ee;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 28px rgba(90, 28, 28, 0.22);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.profile-link:hover,
.profile-link:focus-visible {
  background: var(--button-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(90, 28, 28, 0.26);
}

.site-record {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  color: var(--text-soft);
}

.site-record-name,
.site-record-meta {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.site-record-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
}

.site-record-link:hover,
.site-record-link:focus-visible {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .home-shell {
    width: min(100vw - 24px, 720px);
    padding-top: 16px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-copy {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 9vw, 54px);
  }

  .hero-text {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.7;
  }

  .art-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .art-card-primary,
  .art-card-secondary {
    transform: none;
  }

  .art-card img {
    height: auto;
    object-fit: contain;
  }

  .home-footer {
    padding: 0 12px 18px;
    gap: 12px;
  }

  .profile-link {
    width: min(100%, 520px);
    min-height: 48px;
    font-size: 16px;
  }

  .site-record-name,
  .site-record-meta,
  .site-record-link {
    font-size: 13px;
  }
}
