:root {
  --ink: #f5f0e6;
  --muted: #bdb7aa;
  --paper: #fbf5e8;
  --night: #11100f;
  --coal: #1d1a18;
  --iron: #2d3234;
  --ice: #9fd0df;
  --frost: #d6edf0;
  --ember: #c78139;
  --wine: #772e35;
  --border: rgba(245, 240, 230, 0.18);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(119, 46, 53, 0.22), transparent 24rem),
    linear-gradient(180deg, #0b0c0d 0%, var(--coal) 48%, #171413 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(12, 12, 12, 0.42);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(12, 12, 12, 0.86);
  border-color: var(--border);
}

.brand,
.main-nav,
.hero-actions,
.social-links,
.contact-section,
.contact-actions,
.site-footer,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.brand-mark {
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid rgba(214, 237, 240, 0.55);
  color: var(--frost);
  background: rgba(17, 16, 15, 0.72);
}

.main-nav {
  gap: clamp(0.75rem, 2vw, 1.8rem);
  font-size: 0.92rem;
}

.main-nav a,
.inline-link,
.social-links a,
.site-footer a {
  text-decoration: none;
}

.main-nav a {
  color: rgba(245, 240, 230, 0.78);
}

.main-nav a:hover,
.inline-link:hover,
.social-links a:hover,
.site-footer a:hover {
  color: var(--frost);
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--border);
  background: rgba(17, 16, 15, 0.72);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 3px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 7rem clamp(1.25rem, 5vw, 5rem) 5rem;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 9, 10, 0.9) 0%, rgba(8, 9, 10, 0.66) 34%, rgba(8, 9, 10, 0.18) 68%),
    linear-gradient(180deg, rgba(8, 9, 10, 0.38) 0%, rgba(8, 9, 10, 0.06) 58%, rgba(17, 16, 15, 0.96) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 47rem;
}

.kicker,
.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--ice);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.05;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(4rem, 12vw, 9.5rem);
  text-wrap: balance;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  text-wrap: balance;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
}

h3 small {
  display: block;
  margin-top: 0.32rem;
  color: var(--ice);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-copy {
  max-width: 38rem;
  color: rgba(245, 240, 230, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: rgba(199, 129, 57, 0.72);
  background: var(--ember);
  color: #17100a;
}

.button.book-cta {
  min-height: 3.6rem;
  padding: 0.95rem 1.55rem;
  border-color: rgba(214, 237, 240, 0.45);
  background: linear-gradient(135deg, #f0c36a, var(--ember));
  box-shadow: 0 14px 34px rgba(199, 129, 57, 0.28);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.button.ghost {
  background: rgba(17, 16, 15, 0.52);
  color: var(--ink);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(245, 240, 230, 0.12);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.intro-band > div {
  padding: clamp(1.2rem, 3vw, 2.2rem);
  background: rgba(17, 16, 15, 0.74);
}

.intro-band strong {
  display: block;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.12;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 24rem;
}

.genre-tags span {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(214, 237, 240, 0.22);
  border-radius: 4px;
  color: rgba(245, 240, 230, 0.84);
  background: rgba(245, 240, 230, 0.055);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.book-section,
.author-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(17rem, 0.72fr);
  gap: clamp(2rem, 7vw, 5.5rem);
  align-items: center;
}

.section-copy p {
  max-width: 42rem;
  color: rgba(245, 240, 230, 0.76);
  font-size: 1.04rem;
}

.book-display {
  display: grid;
  place-items: center;
  min-height: 29rem;
}

.book-mockup {
  display: block;
  width: min(31rem, 90vw);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(245, 240, 230, 0.08);
  box-shadow: var(--shadow);
}

.book-mockup img {
  width: 100%;
  height: auto;
}

.author-section {
  grid-template-columns: minmax(14rem, 0.55fr) minmax(0, 1fr);
}

.author-photo {
  display: block;
  width: min(22rem, 78vw);
  aspect-ratio: 4 / 5;
  justify-self: center;
  border: 1px solid rgba(214, 237, 240, 0.35);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(17, 16, 15, 0.72);
  box-shadow: var(--shadow);
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 28%;
}

.inline-link {
  display: inline-flex;
  margin-top: 0.65rem;
  color: var(--ember);
  font-weight: 800;
}

.world-section,
.news-section {
  border-top: 1px solid var(--border);
}

.section-heading {
  max-width: 50rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.news-list article {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(245, 240, 230, 0.055);
}

.feature-card {
  min-height: 14rem;
  padding: 1.25rem;
}

.feature-card span {
  display: inline-block;
  margin-bottom: 1.6rem;
  color: var(--ember);
  font-weight: 900;
}

.feature-card p,
.news-list p {
  color: rgba(245, 240, 230, 0.7);
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.news-list article {
  padding: 1.35rem;
}

.news-list time {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--ice);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-section {
  width: min(1120px, calc(100% - 2rem));
  justify-content: space-between;
  gap: 2rem;
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(199, 129, 57, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(119, 46, 53, 0.55), rgba(17, 16, 15, 0.92)),
    url("assets/kingdom-of-ice-hero.png") center / cover;
}

.contact-section h2 {
  max-width: 46rem;
  margin-bottom: 1rem;
  font-size: clamp(1.85rem, 4vw, 3.4rem);
}

.contact-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.social-links,
.footer-links {
  flex-wrap: wrap;
  gap: 0.7rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(245, 240, 230, 0.2);
  border-radius: 4px;
  background: rgba(17, 16, 15, 0.48);
  color: rgba(245, 240, 230, 0.86);
  font-size: 0.9rem;
  font-weight: 800;
}

.social-links svg,
.footer-links svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.site-footer {
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 3.5rem);
  border-top: 1px solid var(--border);
  color: rgba(245, 240, 230, 0.68);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 240, 230, 0.72);
}

.footer-links a[aria-label] {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(245, 240, 230, 0.16);
  border-radius: 4px;
  background: rgba(245, 240, 230, 0.055);
}

.floating-cta {
  position: fixed;
  z-index: 30;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  display: inline-flex;
  min-height: 3.4rem;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border: 1px solid rgba(214, 237, 240, 0.48);
  border-radius: 4px;
  color: #17100a;
  background: linear-gradient(135deg, #f0c36a, var(--ember));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42), 0 10px 30px rgba(199, 129, 57, 0.32);
  font-size: 0.98rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.48), 0 12px 34px rgba(199, 129, 57, 0.38);
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.7rem 1rem 1rem;
    background: rgba(12, 12, 12, 0.94);
    border-bottom: 1px solid var(--border);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 0.72rem 0;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 9, 10, 0.88) 0%, rgba(8, 9, 10, 0.55) 100%),
      linear-gradient(180deg, rgba(8, 9, 10, 0.22) 0%, rgba(17, 16, 15, 0.95) 100%);
  }

  .intro-band,
  .book-section,
  .author-section,
  .feature-grid,
  .news-list {
    grid-template-columns: 1fr;
  }

  .author-section .author-photo {
    order: 2;
  }

  .book-display {
    min-height: 22rem;
  }

  .contact-section,
  .contact-actions,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .floating-cta {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
  }
}

@media (max-width: 520px) {
  .brand span:last-child {
    max-width: 9rem;
    line-height: 1.1;
  }

  h1 {
    font-size: clamp(3.25rem, 18vw, 5.3rem);
  }

  .hero-actions,
  .hero-actions .button,
  .contact-actions,
  .contact-actions .button,
  .contact-section .button {
    width: 100%;
  }

  .feature-card {
    min-height: auto;
  }

  .feature-card span {
    margin-bottom: 1.4rem;
  }
}
