:root {
  color-scheme: light;
  --ink: #242622;
  --muted: #777970;
  --paper: #f8f6f1;
  --accent: #bd6656;
  --line: #e7e3da;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; min-height: 100%; background: var(--paper); }

body {
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 7vw, 104px);
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

a { color: inherit; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header { min-height: 92px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 1.35rem; font-weight: 750; letter-spacing: -.06em; text-decoration: none; }
.wordmark span { color: var(--accent); }
.header-link, .site-footer a { color: var(--muted); font-size: .88rem; text-decoration: none; }
.header-link:hover, .site-footer a:hover, .credit-card a:hover { color: var(--accent); }

.hero {
  flex: 1;
  min-height: 590px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 48px 0 68px;
}

.hero-copy { position: relative; z-index: 1; padding-bottom: 12px; }
.eyebrow { margin: 0 0 24px; color: var(--accent); font-size: .73rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.6rem, 7.2vw, 6.5rem); font-weight: 400; letter-spacing: -.065em; line-height: .99; }
h1 span { color: var(--accent); font-style: italic; }
.intro { max-width: 340px; margin: 30px 0 32px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; }
.text-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 5px; border-bottom: 1px solid var(--accent); color: var(--ink); font-size: .9rem; font-weight: 650; text-decoration: none; }
.text-link span { color: var(--accent); font-size: 1.15rem; }

.hero-art { position: relative; width: min(100%, 510px); aspect-ratio: 1 / .88; justify-self: end; }
.art-orbit { position: absolute; inset: 8% 7%; border: 1px solid #e6c7b9; border-radius: 50%; transform: rotate(-28deg); }
.orbit-two { inset: 17% 0; transform: rotate(33deg); border-color: #d9d8c8; }
.art-sun { position: absolute; top: 9%; right: 12%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: #e8c5a5; opacity: .8; }
.art-card { position: absolute; top: 20%; left: 28%; width: 42%; height: 64%; border-radius: 5px; box-shadow: 0 24px 70px #4a37241c; }
.card-back { background: #c98370; transform: rotate(11deg) translate(14%, 0); }
.card-front { display: flex; flex-direction: column; justify-content: space-between; padding: 10% 9%; background: #ede8dc; transform: rotate(-8deg); }
.card-spark { align-self: flex-end; color: var(--accent); font-size: clamp(1.5rem, 4vw, 3rem); }
.card-caption { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.6rem, 3.6vw, 3rem); letter-spacing: -.06em; line-height: .95; }
.art-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #758276; }
.dot-one { top: 14%; left: 16%; }
.dot-two { right: 10%; bottom: 18%; width: 8px; height: 8px; background: var(--accent); }

.site-footer { min-height: 78px; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

.credits-page { flex: 1; width: min(100%, 760px); margin: 0 auto; padding: clamp(72px, 12vh, 130px) 0 100px; }
.credits-page h1 { margin-bottom: 54px; font-size: clamp(3rem, 7vw, 5.2rem); }
.credit-card { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 20px; padding: 26px; border: 1px solid var(--line); border-radius: 6px; background: #fffdf8; }
.credit-mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: #f0e5dc; color: var(--accent); font-size: 1.6rem; }
.credit-card h2 { margin: 0 0 8px; font-size: 1rem; }
.credit-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.credit-card a { color: var(--ink); font-weight: 650; text-underline-offset: 3px; }
.credit-arrow { color: var(--accent); font-size: 1.2rem; }
.back-link { margin-top: 36px; }

@media (max-width: 720px) {
  body { padding: 0 24px; }
  .site-header { min-height: 72px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 24px; padding: 78px 0 48px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(3.5rem, 15vw, 5rem); }
  .intro { margin: 24px 0; }
  .hero-art { width: min(90%, 390px); justify-self: center; margin: 4px auto 0; }
  .site-footer { min-height: 72px; font-size: .72rem; }
  .credits-page { padding: 78px 0 92px; }
  .credits-page h1 { margin-bottom: 38px; }
  .credit-card { grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 16px; }
  .credit-mark { width: 42px; height: 42px; }
  .credit-arrow { display: none; }
}
