:root {
  --accent: #c9a45c;
  --accent-soft: #ead3a2;
  --accent-glow: rgba(201, 164, 92, 0.16);
  --bg: #111111;
  --bg-texture: radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.05), transparent 22rem);
  --button-bg: linear-gradient(135deg, var(--accent-soft), var(--accent));
  --button-text: #14110c;
  --panel-glow: rgba(0, 0, 0, 0.42);
  --panel: #1e1b17;
  --panel-2: #262119;
  --text: #f4efe7;
  --muted: #c9bfae;
  --gold: #c9a45c;
  --gold-soft: #ead3a2;
  --line: rgba(234, 211, 162, 0.22);
  --shadow: rgba(0, 0, 0, 0.42);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, var(--accent-glow), transparent 30rem),
    var(--bg-texture),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body[data-genre="fantasy"] {
  --accent: #c9a45c;
  --accent-soft: #ead3a2;
  --accent-glow: rgba(201, 164, 92, 0.28);
  --bg: #24170c;
  --bg-texture:
    radial-gradient(circle at 82% 16%, rgba(234, 211, 162, 0.15), transparent 22rem),
    radial-gradient(circle at 12% 88%, rgba(83, 48, 19, 0.34), transparent 24rem),
    linear-gradient(135deg, #2a1a0d 0%, #120d09 55%, #080706 100%);
  --button-bg: linear-gradient(135deg, #ead3a2, #c9a45c);
  --button-text: #14110c;
  --logo-color: #ead3a2;
  --panel: #2b1e12;
  --panel-2: #352516;
  --text: #f4efe7;
  --muted: #c9bfae;
  --line: rgba(234, 211, 162, 0.30);
  --shadow: rgba(0, 0, 0, 0.42);
}

body[data-genre="scifi"] {
  --accent: #1768a8;
  --accent-soft: #0b3e66;
  --accent-glow: rgba(23, 104, 168, 0.12);
  --bg: #f0f5f8;
  --bg-texture:
    linear-gradient(90deg, rgba(23, 104, 168, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 104, 168, 0.032) 1px, transparent 1px),
    radial-gradient(circle at 88% 12%, rgba(174, 217, 245, 0.55), transparent 28rem),
    linear-gradient(160deg, #f8fbfd 0%, #f0f5f8 52%, #e5edf3 100%);
  --button-bg: linear-gradient(135deg, #1768a8, #0b3e66);
  --button-text: #eef8ff;
  --logo-color: #1768a8;
  --panel: #ffffff;
  --panel-2: #e7eef4;
  --text: #0d2235;
  --muted: #3c5c78;
  --line: rgba(23, 104, 168, 0.18);
  --shadow: rgba(13, 34, 53, 0.12);
}

body[data-genre="thriller"] {
  --accent: #9d2418;
  --accent-soft: #2a120f;
  --accent-glow: rgba(157, 36, 24, 0.10);
  --bg: #ebe5dc;
  --bg-texture:
    linear-gradient(90deg, rgba(42, 18, 15, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 86% 14%, rgba(157, 36, 24, 0.10), transparent 24rem),
    linear-gradient(180deg, #f4efe7 0%, #ebe5dc 58%, #ddd5ca 100%);
  --button-bg: linear-gradient(135deg, #9d2418, #2a120f);
  --button-text: #fff3ee;
  --logo-color: #9d2418;
  --panel: #f9f5ee;
  --panel-2: #e1d8cc;
  --text: #1b120f;
  --muted: #4d3b35;
  --line: rgba(42, 18, 15, 0.18);
  --shadow: rgba(27, 18, 15, 0.13);
}

body[data-genre="dark"] {
  --accent: #a985d6;
  --accent-soft: #d4b8f8;
  --accent-glow: rgba(169, 133, 214, 0.30);
  --bg: #0e0916;
  --bg-texture:
    radial-gradient(circle at 80% 14%, rgba(169, 133, 214, 0.20), transparent 24rem),
    radial-gradient(circle at 16% 86%, rgba(100, 60, 150, 0.28), transparent 22rem),
    linear-gradient(145deg, #160d22 0%, #0a0612 56%, #060409 100%);
  --button-bg: linear-gradient(135deg, #d4b8f8, #a985d6);
  --button-text: #120b1c;
  --logo-color: #d4b8f8;
  --panel: #1c1228;
  --panel-2: #251838;
  --text: #f4efe7;
  --muted: #c6b5d9;
  --line: rgba(212, 184, 248, 0.22);
  --shadow: rgba(0, 0, 0, 0.55);
}

body[data-genre="literary"] {
  --accent: #8a6a2d;
  --accent-soft: #4f3d17;
  --accent-glow: rgba(138, 106, 45, 0.08);
  --bg: #fbfaf6;
  --bg-texture:
    radial-gradient(circle at 84% 10%, rgba(201, 180, 122, 0.16), transparent 28rem),
    linear-gradient(180deg, #fffefb 0%, #fbfaf6 58%, #f3efe6 100%);
  --button-bg: linear-gradient(135deg, #8a6a2d, #4f3d17);
  --button-text: #fff8e8;
  --logo-color: #8a6a2d;
  --panel: #fffdf8;
  --panel-2: #f2ecdf;
  --text: #1a160e;
  --muted: #6c604b;
  --line: rgba(26, 22, 14, 0.12);
  --shadow: rgba(26, 22, 14, 0.08);
}

body[data-genre="scifi"] {
  background-size: auto, 44px 44px, 44px 44px, auto, auto;
}

body[data-genre="thriller"] {
  background-size: auto, 36px 36px, auto, auto;
}

body[data-genre="scifi"] .site-header,
body[data-genre="thriller"] .site-header,
body[data-genre="literary"] .site-header {
  background: color-mix(in srgb, var(--bg) 88%, white);
}

body[data-genre="scifi"] footer,
body[data-genre="thriller"] footer,
body[data-genre="literary"] footer {
  color: color-mix(in srgb, var(--text) 45%, transparent);
}

body[data-genre="literary"] h1,
body[data-genre="literary"] h2,
body[data-genre="literary"] h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  letter-spacing: -0.02em;
}

body[data-genre="literary"] .eyebrow {
  letter-spacing: 0.18em;
}

button,
a {
  font: inherit;
}

.site-header {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
  font-family: Cinzel, Georgia, serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: 700;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
}

button {
  cursor: pointer;
}

.nav-button {
  background: none;
  border: 0;
  color: inherit;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

nav .nav-button {
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 999px;
}

nav .nav-button:hover,
nav .nav-button.active {
  color: var(--accent-soft);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

main {
  width: min(var(--max), calc(100% - 2rem));
  flex: 1;
  margin: 0 auto;
  padding-bottom: 90px;
}

.screen {
  display: none;
  min-height: 100%;
  padding: clamp(2.2rem, 6vw, 5rem) 0;
  animation: fadeIn 180ms ease-out;
}

.screen.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

#home.screen.active {
  grid-template-columns: minmax(0, 1.08fr) minmax(240px, 0.72fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.screen-copy {
  max-width: 850px;
}

.screen-copy.narrow {
  max-width: 760px;
  margin: 0 auto;
}

.screen-copy.wide {
  max-width: 1040px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  line-height: 1.08;
}

h1 {
  max-width: 900px;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  letter-spacing: -0.03em;
}

h3 {
  color: var(--accent-soft);
  font-size: 1.35rem;
}

p {
  color: var(--muted);
}

.lead {
  max-width: 760px;
  margin: 1.4rem 0 0;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.knife {
  color: var(--accent-soft);
  font-weight: 800;
}

.screen-mark {
  display: flex;
  justify-content: center;
  align-items: center;
}

.screen-mark img {
  width: min(100%, 410px);
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.5));
  transform: rotate(-4deg);
  opacity: 0.92;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}

.choice-card {
  min-height: 150px;
  padding: 1.1rem;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow:
    0 18px 48px var(--shadow),
    0 0 28px rgba(255, 255, 255, 0.018);
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
  box-shadow:
    0 22px 58px var(--shadow),
    0 0 38px var(--accent-glow);
}

.choice-card strong,
.choice-card span {
  display: block;
}

.choice-card strong {
  margin-bottom: 0.6rem;
  color: var(--accent-soft);
  font-family: Cinzel, Georgia, serif;
  font-size: 1.2rem;
}

.choice-card span {
  color: var(--muted);
}

.screen-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  color: var(--button-text);
  background: var(--button-bg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 18px 40px var(--shadow);
}

button.button {
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.text-link {
  color: var(--accent-soft);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(234, 211, 162, 0.35);
}

button.text-link {
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(234, 211, 162, 0.35);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2rem;
}

.service-list article,
.revision-note,
.contact-panel {
  padding: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow:
    0 20px 52px var(--shadow),
    0 0 30px rgba(255, 255, 255, 0.018);
}

.service-list article:hover {
  border-color: var(--accent-soft);
  box-shadow:
    0 22px 58px var(--shadow),
    0 0 38px var(--accent-glow);
}

.revision-note {
  margin-top: 1rem;
  background: var(--panel-2);
}

.fine-print {
  font-size: 0.92rem;
}

.price {
  color: var(--text);
  font-weight: 800;
}

.contact-panel {
  padding: clamp(1.5rem, 4vw, 2.4rem);
}

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  min-height: 74px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  padding: 1.2rem;
  color: var(--muted);
  text-align: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

footer strong,
footer em {
  display: inline;
  font-style: normal;
  font-weight: inherit;
}

.change-genre {
  padding: 0.45rem 0.85rem;
  color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.change-genre:hover {
  color: var(--text);
  border-color: var(--accent-soft);
  box-shadow: 0 0 18px var(--accent-glow);
  transform: translateY(-1px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

  nav {
    justify-content: flex-start;
  }

  #home.screen.active,
  .choice-grid,
  .service-list,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .screen-mark {
    order: -1;
  }

  .screen-mark img {
    width: min(66vw, 300px);
  }

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

.craft-panel {
  max-width: 820px;
}

.craft-panel .lead {
  margin-bottom: 1.6rem;
}

.craft-panel p {
  max-width: 760px;
}

.craft-panel .knife {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.craft-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 2rem;
}

.craft-blocks article {
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow:
    0 18px 46px var(--shadow),
    0 0 26px rgba(255, 255, 255, 0.016);
}

.craft-blocks h3 {
  margin-bottom: 0.7rem;
}

.craft-blocks p {
  margin: 0.7rem 0 0;
}

.craft-blocks .knife {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.notes-panel {
  max-width: 920px;
}

.notes-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 2rem;
}

.note-card {
  display: grid;
  grid-template-columns: minmax(140px, 0.28fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  padding: 1.35rem;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow:
    0 20px 52px var(--shadow),
    0 0 30px rgba(255, 255, 255, 0.018);
}

a.note-card:hover {
  border-color: var(--accent-soft);
  box-shadow:
    0 22px 58px var(--shadow),
    0 0 38px var(--accent-glow);
  transform: translateY(-2px);
}

.note-card.is-muted {
  opacity: 0.72;
}

.note-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.note-status {
  margin: 0;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.note-action {
  color: var(--accent-soft);
  font-size: 0.88rem;
  font-weight: 800;
}

.note-content h3 {
  margin: 0;
}

.note-content p {
  max-width: 680px;
  margin: 0.7rem 0 0;
}

.note-status {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.genre-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: start center;
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at top left, var(--accent-glow), transparent 28rem),
    var(--bg-texture),
    color-mix(in srgb, var(--bg) 92%, black);
  backdrop-filter: blur(18px);
}

.genre-gate.hidden {
  display: none;
}

.genre-gate-panel {
  width: min(760px, 100%);
  margin-block: auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 28px 80px var(--shadow);
  text-align: center;
}

.genre-gate-panel h2 {
  margin-bottom: 1rem;
}

.genre-gate-panel p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.genre-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}

.genre-option {
  min-height: 96px;
  padding: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: left;
}

.genre-option:hover {
  color: var(--accent-soft);
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}

.genre-option strong,
.genre-option span {
  display: block;
}

.genre-option strong {
  font-family: Cinzel, Georgia, serif;
  font-size: 1.05rem;
}

.genre-option span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 620px) {
  main {
    width: min(100% - 1.2rem, var(--max));
    padding-bottom: 0px;
  }

  .brand span {
    font-size: 0.82rem;
  }

  nav {
    gap: 0.3rem;
  }

  nav .nav-button {
    padding: 0.45rem 0.58rem;
    font-size: 0.88rem;
  }

  h1 {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  h2 {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }

  .button {
    width: 100%;
  }

  .screen-actions,
  .contact-links {
    justify-content: center;
    text-align: center;
  }

  .screen-actions .text-link,
  .contact-links .text-link {
    display: inline-block;
    margin-inline: auto;
    text-align: center;
  }

  .genre-gate {
    display: block;
    padding: 0.6rem;
  }

  .genre-gate-panel {
    width: 100%;
    min-height: auto;
    padding: 1rem;
    border-radius: 20px;
  }

  .genre-gate-panel h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
    margin-bottom: 0.6rem;
  }

  .genre-gate-panel p {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .genre-options {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.55rem;
    margin-top: 1rem;
  }

  .genre-option {
    width: 100%;
    min-height: auto;
    padding: 0.75rem 0.85rem;
  }

  .genre-option strong {
    font-size: 1rem;
  }

  .genre-option span {
    margin-top: 0.2rem;
    font-size: 0.84rem;
    line-height: 1.35;
  }

  footer {
    position: static;
    min-height: auto;
    gap: 0.55rem;
    flex-direction: column;
    padding: 1rem;
  }

  footer span {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.9rem 1rem;
  }
  .theme-logo-large {
    width: min(66vw, 300px);
  }

  .note-card {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .note-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .note-page {
    width: min(100% - 1.2rem, 920px);
    padding-bottom: 2rem;
  }

  .note-article {
    padding: 1.1rem;
    border-radius: 22px;
  }

  .note-callout,
  .note-cta {
    padding: 1rem;
  }
}

.theme-logo {
  display: block;
  color: var(--logo-color, var(--accent-soft));
  overflow: visible;
}

.theme-logo-small {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.theme-logo-large {
  width: min(100%, 410px);
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.5));
  transform: rotate(-4deg);
  opacity: 0.92;
}

/*Notes*/
.note-page {
  width: min(920px, calc(100% - 2rem));
  flex: 1;
  margin: 0 auto;
  padding: clamp(2.2rem, 6vw, 5rem) 0 7rem;
}

.note-article {
  padding: clamp(1.4rem, 4vw, 2.6rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow:
    0 20px 52px var(--shadow),
    0 0 30px rgba(255, 255, 255, 0.018);
}

.note-article h1 {
  margin-bottom: 1rem;
}

.note-article h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.note-article h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.note-article p {
  max-width: 760px;
}

.note-article em {
  color: var(--text);
}

.note-callout,
.note-cta {
  margin-top: 2rem;
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.note-callout ul {
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.note-callout li + li {
  margin-top: 0.35rem;
}

.note-cta {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
}

.note-cta h2 {
  margin-top: 0;
}

.note-cta .button,
.note-cta .text-link {
  margin-top: 1rem;
  margin-right: 1rem;
}

.brand {
  text-decoration: none;
}

nav a.nav-button {
  text-decoration: none;
}