:root {
  --bg: #0f1014;
  --bg-soft: #181a22;
  --text: #b6b4ac;
  --muted: #b6b4ac;
  --line: #2a2d39;
  --accent: #c8a976;
  --accent-strong: #e0bb7f;
  --max-width: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(140deg, #0b0c10, #141722 48%, #1a1f2c);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
}

.landing-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero {
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 16vh 1rem 0.5rem;
  flex: 0 0 auto;
}

.brand-word {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  font-size: clamp(1.6rem, 8.4vw, 4.8rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: lowercase;
  color: var(--muted);
  transform: none;
}

.brand-letter {
  display: inline-block;
}

.letter-topic {
  position: relative;
  color: #4b4f5a;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.vertical-topic {
  position: absolute;
  left: 50%;
  top: calc(100% - 0.2em);
  transform: translateX(-50%);
  display: grid;
  grid-auto-flow: row;
  gap: 0.01em;
  font-size: 1em;
  letter-spacing: 0.02em;
  line-height: 0.82;
  text-transform: lowercase;
  text-decoration: none;
  color: #4b4f5a;
  opacity: 0.88;
  transition: color 180ms ease, opacity 180ms ease, text-shadow 180ms ease;
}

.vertical-topic span {
  display: block;
}

.vertical-topic span:nth-child(3) {
  margin-top: 0.035em;
}

.vertical-topic span:last-child {
  transform: translateY(-0.15em);
}

.letter-topic:hover .vertical-topic,
.letter-topic:focus-within .vertical-topic,
.vertical-topic:hover,
.vertical-topic:focus-visible {
  color: var(--muted);
  opacity: 1;
  text-shadow: 0 0 8px rgba(182, 180, 172, 0.28);
}

.letter-topic:hover,
.letter-topic:focus-within {
  color: var(--muted);
  text-shadow: 0 0 8px rgba(182, 180, 172, 0.28);
}

.launch-note {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
  padding: 1.5rem 0;
}

.site-logo {
  text-decoration: none;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-strong);
}

.content-wrap {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
  padding-bottom: 3rem;
}

.intro {
  background: rgba(24, 26, 34, 0.85);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
}

.intro h1 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.intro p {
  margin-top: 0;
  color: var(--muted);
  max-width: 70ch;
}

.meta-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.affiliate-note {
  font-size: 0.78rem;
  color: #8a887f;
  margin-top: 0.8rem;
  line-height: 1.4;
}

.affiliate-note-footer {
  margin-top: 0.45rem;
  margin-bottom: 0.1rem;
}

.format-note {
  font-size: 0.86rem;
  color: #8f8d86 !important;
}

.genre-section {
  margin-top: 2.1rem;
}

.genre-section h2 {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.book-card {
  background: rgba(24, 26, 34, 0.8);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.book-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.book-card p {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: var(--muted);
}

.pen-name {
  color: var(--muted) !important;
  font-size: 0.9rem;
}

.book-card a {
  text-decoration: none;
}

.buy-button {
  display: inline-block;
  color: #151516;
  background: var(--accent);
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  font-weight: 700;
  transition: background 170ms ease, transform 170ms ease;
}

.buy-button:hover,
.buy-button:focus-visible {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.site-footer {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
  padding: 0.6rem 0 2.2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent-strong);
}

.landing-footer {
  text-align: center;
  border-top: none;
  padding-top: 0;
  margin-top: auto;
}

@media (max-width: 680px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
