:root {
  --accent: #C41E3A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  color: #FFFFFF;
  background: #0A0A0A;
  -webkit-font-smoothing: antialiased;
}

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

/* Hero — full-screen background, content anchored to lower third */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0 24px 72px;
  background-image:
    linear-gradient(to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.48) 42%,
      rgba(0, 0, 0, 0.08) 82%,
      rgba(0, 0, 0, 0) 100%),
    url('assets/bg.jpg');
  background-size: cover;
  background-position: center 28%;
}

.content {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Masthead */
.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}

.masthead h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 6vw, 44px);
  font-weight: 400;
  line-height: 1.1;
}

.subtitle {
  max-width: 460px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* Links */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.link:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.14); }

.link--primary {
  background: var(--accent);
  border-color: transparent;
}
.link--primary:hover { background: #d8213f; }

.link__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.link .ico { width: 24px; height: 24px; flex: none; color: #FFFFFF; }

.link__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link__label { font-size: 16px; font-weight: 600; }
.link__sub { font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.link--primary .link__sub { color: rgba(255, 255, 255, 0.8); }

.link .arrow { width: 18px; height: 18px; flex: none; color: rgba(255, 255, 255, 0.7); }
.link--primary .arrow { color: #FFFFFF; }

/* Narrow screens: the landscape photo zooms to fill a portrait viewport,
   putting the face mid-frame. Tighten the stack so text starts below the
   face, and deepen the gradient where text can still graze it. */
@media (max-width: 640px) {
  .hero {
    padding: 0 20px 40px;
    background-image:
      linear-gradient(to top,
        rgba(0, 0, 0, 0.94) 0%,
        rgba(0, 0, 0, 0.72) 34%,
        rgba(0, 0, 0, 0.30) 62%,
        rgba(0, 0, 0, 0) 100%),
      url('assets/bg.jpg');
  }
  .content { gap: 24px; }
  .links { gap: 12px; }
  .link { padding: 16px 20px; }
  .masthead { gap: 8px; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65); }
  .subtitle { font-size: 14px; }
}

/* Scroll cue */
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.15s ease;
}
.scroll-cue:hover { color: #FFFFFF; }
.scroll-cue svg { width: 16px; height: 16px; }

/* Library */
.library {
  background: #0A0A0A;
  padding: 96px 24px 64px;
  display: flex;
  justify-content: center;
}

.library__inner {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.library__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.library__head h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4.5vw, 34px);
  font-weight: 400;
  line-height: 1.15;
}

.library__sub {
  max-width: 520px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.book-list {
  width: 100%;
  list-style: none;
}

.book-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.15s ease;
}
.book-list li:first-child a { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.book-list a:hover { background: rgba(255, 255, 255, 0.05); }

.book__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.book__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.book__desc {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
}

.book-list .arrow {
  width: 18px;
  height: 18px;
  flex: none;
  color: rgba(255, 255, 255, 0.55);
  transition: transform 0.15s ease, color 0.15s ease;
}
.book-list a:hover .arrow { transform: translateX(3px); color: #FFFFFF; }

.library__cta {
  padding: 15px 38px;
  border-radius: 10px;
  background: var(--accent);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}
.library__cta:hover { background: #d8213f; transform: translateY(-2px); }

/* Footer */
.foot {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.6);
}
.foot a:hover { color: #FFFFFF; }
