:root {
  --paper: #f7efe2;
  --cream: #fffaf0;
  --ink: #181614;
  --muted: #746b60;
  --gold: #c9943a;
  --gold-soft: #f2d79d;
  --fur: #deb46c;
  --gray: #d9d8d3;
  --line: rgba(24, 22, 20, 0.12);
  --shadow: rgba(82, 61, 34, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(24, 22, 20, 0.045) 1px, transparent 1px) 0 0 / 46px 46px,
    radial-gradient(circle at 84% 14%, rgba(201, 148, 58, 0.18), transparent 24rem),
    radial-gradient(circle at 10% 34%, rgba(217, 216, 211, 0.65), transparent 22rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: rgba(247, 239, 226, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  font-weight: 950;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  color: var(--cream);
  background: var(--ink);
  border-radius: 8px;
  box-shadow: inset 0 -5px 0 var(--gold);
}

.nav {
  gap: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--ink);
}

.cover {
  width: min(100%, 1660px);
  margin: 1rem auto 0;
  padding: 0 1rem;
}

.cover img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--cream);
  box-shadow: 0 24px 70px var(--shadow);
}

.magazine-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 29rem);
  gap: 1rem;
  width: min(100% - 2rem, 1200px);
  margin: 3rem auto 0;
}

.title-panel,
.portrait-panel,
.vibe-list div,
.copy-band {
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 18px 48px var(--shadow);
}

.title-panel {
  min-height: 31rem;
  padding: 3rem;
  background:
    linear-gradient(135deg, rgba(242, 215, 157, 0.65), rgba(255, 250, 240, 0.78) 48%, rgba(217, 216, 211, 0.45)),
    var(--cream);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: #8d631c;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: 5.4rem;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 42rem;
  color: #463e36;
  font-size: 1.14rem;
  line-height: 1.65;
}

.actions {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1.08rem;
  border: 1px solid rgba(24, 22, 20, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: var(--cream);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button:hover,
.copy-button:hover {
  border-color: rgba(201, 148, 58, 0.55);
  transform: translateY(-1px);
}

.button.primary {
  color: var(--cream);
  background: linear-gradient(135deg, var(--gold), var(--ink));
}

.portrait-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 1rem;
}

.portrait-panel img {
  width: 100%;
  height: 26rem;
  object-fit: cover;
  object-position: center 42%;
  background: var(--gray);
}

.portrait-panel figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.15rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.portrait-panel span {
  color: #8d631c;
  font-weight: 950;
}

.fortune-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100% - 2rem, 1200px);
  margin: 1rem auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.75);
}

.fortune-line span {
  min-height: 4.25rem;
  padding: 1.2rem;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.fortune-line span:nth-child(2) {
  color: var(--ink);
  background: rgba(242, 215, 157, 0.65);
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  width: min(100% - 2rem, 1200px);
  margin: 5rem auto;
}

.story article {
  align-self: center;
}

.story article p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.vibe-list {
  display: grid;
  gap: 0.85rem;
}

.vibe-list div {
  display: grid;
  grid-template-columns: 3rem minmax(8rem, 0.4fr) 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 6rem;
  padding: 1rem 1.15rem;
}

.vibe-list span {
  color: #8d631c;
  font-weight: 950;
}

.vibe-list strong {
  text-transform: uppercase;
}

.vibe-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.copy-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, 1200px);
  margin: 0 auto 4rem;
  padding: 1.35rem;
  background:
    linear-gradient(90deg, rgba(242, 215, 157, 0.72), rgba(255, 250, 240, 0.9)),
    var(--cream);
}

.copy-band h2 {
  margin: 0;
  font-size: 2rem;
}

.copy-band .eyebrow {
  margin-bottom: 0.35rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 920px) {
  .magazine-hero,
  .story {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .fortune-line {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .cover {
    padding: 0;
  }

  .cover img {
    aspect-ratio: 16 / 9;
  }

  .magazine-hero,
  .story,
  .fortune-line,
  .copy-band {
    width: min(100% - 1rem, 1200px);
  }

  .title-panel {
    min-height: auto;
    padding: 2rem 1.2rem;
  }

  .portrait-panel img {
    height: 22rem;
  }

  h1 {
    font-size: 3.2rem;
  }

  .lead {
    font-size: 1rem;
  }

  .fortune-line,
  .vibe-list div {
    grid-template-columns: 1fr;
  }

  .copy-band,
  .footer,
  .portrait-panel figcaption {
    align-items: flex-start;
    flex-direction: column;
  }
}
