/* manrope-latin-wght-normal */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('assets/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* manrope-latin-ext-wght-normal */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('assets/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --paper: #111318;
  --surface: #191c23;
  --surface-raised: #20242c;
  --feature: #1b202e;
  --feature-art: #252e43;
  --ink: #eff0f4;
  --muted: #a0a5b1;
  --line: #2a2d36;
  --accent: #b1bfff;
  --accent-bright: #c7d1ff;
  --sans: "Manrope", Arial, sans-serif;
  --display: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #7089f2;
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
main,
footer {
  width: min(90%, 1220px);
  margin-inline: auto;
}

.site-header {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 56px;
  border-bottom: 1px solid var(--line);
}

.logo {
  font: 700 27px/1 var(--display);
  letter-spacing: -1.3px;
}

.logo span {
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--accent);
  color: transparent;
  overflow: hidden;
  vertical-align: baseline;
}

nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--muted);
  font-size: 14px;
}

nav a,
.quiet-link,
.footer-links a {
  transition: color 160ms ease;
}

nav a:hover,
.quiet-link:hover,
.footer-links a:hover {
  color: var(--ink);
}

nav .author-link {
  margin-left: auto;
  color: var(--ink);
}

.intro {
  padding: clamp(64px, 9vw, 116px) 0 42px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.9px;
  line-height: 1.3;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(3.2rem, 6.3vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.intro-copy {
  margin-bottom: 0;
  color: var(--muted);
}

.intro-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.intro-actions > span {
  color: var(--muted);
  font-size: 13px;
}

.search {
  width: min(100%, 340px);
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  background: var(--surface);
  border: 1px solid #333742;
  border-radius: 7px;
}

.search svg {
  width: 19px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
}

.search input {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
}

.search input::placeholder {
  color: #939baa;
}

.search button {
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
}

.feature {
  min-height: 354px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  overflow: hidden;
  background: var(--feature);
  border: 1px solid #30374b;
  border-radius: 10px;
}

.feature-copy {
  align-self: center;
  padding: clamp(32px, 5vw, 54px);
}

.feature h2 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.feature-copy > p:not(.eyebrow) {
  max-width: 430px;
  margin-bottom: 25px;
  color: #b4bac9;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease;
}

.primary-button {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #141925;
}

.primary-button:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

.secondary-button {
  background: transparent;
  border: 1px solid #3b4050;
  color: var(--ink);
}

.secondary-button:hover {
  border-color: var(--muted);
}

.feature-art {
  position: relative;
  min-height: 354px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  overflow: hidden;
  background: var(--feature-art);
}

.feature-art img {
  width: 184px;
  height: 276px;
  object-fit: cover;
  box-shadow: 12px 18px 28px rgb(0 0 0 / 0.42);
  transform: rotate(4deg);
  transition: transform 220ms ease;
}

.feature-art:hover img {
  transform: rotate(2deg) translateY(-5px);
}

.feature-art span {
  position: absolute;
  right: 21px;
  bottom: 24px;
  color: #b4bed4;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.shelf {
  padding: clamp(70px, 8vw, 106px) 0 clamp(78px, 9vw, 124px);
}

.shelf-heading {
  margin-bottom: 27px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.shelf-heading .eyebrow {
  margin-bottom: 10px;
}

.shelf h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.quiet-link {
  color: var(--muted);
  font-size: 14px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 34px);
}

.book-art {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface-raised);
  border: 1px solid #2c3039;
  border-radius: 8px;
  transition: background 180ms ease;
}

.book-art:hover {
  background: #292e38;
}

.book-art img {
  width: 150px;
  height: 225px;
  object-fit: cover;
  box-shadow: 8px 12px 20px rgb(0 0 0 / 0.36);
  transition: transform 200ms ease;
}

.book-art:hover img {
  transform: translateY(-5px) rotate(-2deg);
}

.art-train {
  background: #272328;
}

.art-wild {
  background: #222825;
}

.book-label {
  margin: 15px 0 0;
  color: #949aa9;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.book-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.book-meta h3 {
  margin: 10px 0 2px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.book-meta h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.book-meta p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.book-meta strong {
  font-size: 14px;
  font-weight: 600;
}

.author-panel {
  padding: clamp(64px, 8vw, 100px) 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 56px;
  border-top: 1px solid var(--line);
}

.author-panel h2 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

.author-copy > p {
  max-width: 480px;
  color: var(--muted);
}

.author-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

footer {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-logo {
  color: var(--ink);
  font-size: 23px;
}

footer p {
  margin-bottom: 0;
}

.footer-links {
  margin-left: auto;
  display: flex;
  gap: 24px;
}

@media (max-width: 800px) {
  .intro {
    display: block;
  }

  .search {
    width: 100%;
    margin-top: 28px;
  }

  .feature-copy {
    padding: 32px;
  }

  .book-art {
    min-height: 240px;
  }

  .book-art img {
    width: 126px;
    height: 189px;
  }

  .author-panel {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(90%, 1220px);
  }

  .site-header {
    min-height: 78px;
  }

  nav {
    gap: 0;
  }

  nav a:not(.author-link) {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .search button {
    display: none;
  }

  .intro-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .search {
    grid-template-columns: 20px 1fr;
  }

  .feature {
    grid-template-columns: 1fr;
  }

  .feature-art {
    min-height: 250px;
    grid-row: 1;
  }

  .feature-art img {
    width: 132px;
    height: 198px;
  }

  .feature h2 {
    font-size: 2.5rem;
  }

  .shelf-heading {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 12px;
  }

  .book-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 6px);
  }

  .book-art {
    min-height: 205px;
  }

  .book-art img {
    width: 108px;
    height: 162px;
  }

  .book-meta {
    display: block;
  }

  .book-meta h3 {
    font-size: 17px;
  }

  .book-meta strong {
    display: block;
    margin-top: 8px;
  }

  .author-actions {
    flex-direction: column;
  }

  footer {
    padding: 32px 0;
    align-items: start;
    flex-wrap: wrap;
  }

  footer p {
    flex-basis: 100%;
  }

  .footer-links {
    margin-left: 0;
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
