:root {
  --paper: #F2F4F1;
  --paper-2: #E6ECE8;
  --ink: #14302B;
  --ink-soft: #4A605B;
  --sea: #1F6F63;
  --sea-deep: #0F4A42;
  --glow: #C8E67A;
  --line: #CAD5D0;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: var(--serif);
  --side: minmax(0, 15rem);
  --gap: clamp(2rem, 6vw, 5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0F1E1B;
    --paper-2: #152824;
    --ink: #E6EEEA;
    --ink-soft: #A9BCB6;
    --sea: #7CCFBE;
    --sea-deep: #A3E0D3;
    --glow: #5E7F2A;
    --line: #2B413C;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--glow); color: #14302B; }

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

a { color: var(--sea); text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color .15s; }
a:hover { color: var(--sea-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--ink); color: var(--paper); padding: 0.5rem 0.9rem; z-index: 20;
}
.skip:focus { left: 1rem; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.9rem; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); text-decoration: none; }
nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 8vw, 6rem) 0; }
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--gap); align-items: center;
}
.title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 7.5vw, 6rem); line-height: 0.96; letter-spacing: -0.025em;
  margin: 0 0 1.25rem; text-wrap: balance;
}
.subtitle {
  font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.3; color: var(--ink-soft); max-width: 22ch; margin: 0 0 2rem; text-wrap: balance;
}
.byline { font-size: 1.15rem; font-weight: 600; margin: 0 0 0.5rem; }
.release { color: var(--ink-soft); margin: 0 0 2.25rem; line-height: 1.55; }


.button {
  display: inline-block; background: var(--sea-deep); color: #fff; text-decoration: none;
  padding: 0.85rem 1.6rem; border-radius: 999px; font-weight: 600;
  transition: background .15s, transform .15s;
}
.button:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
@media (prefers-color-scheme: dark) { .button, .button:hover { color: #0F1E1B; } .button:hover { background: var(--sea-deep); } }

.cover { margin: 0; position: relative; justify-self: center; width: min(100%, 380px); aspect-ratio: 2 / 3; }
.cover::before {
  content: ""; position: absolute; inset: -12% -18%; z-index: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 55%, transparent), transparent);
  filter: blur(8px);
}
.cover img, .cover-fallback {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover;
  border-radius: 2px 5px 5px 2px;
  box-shadow: 0 1px 2px rgba(20,48,43,.25), 0 24px 50px -18px rgba(20,48,43,.55);
}
/* spine shading */
.cover::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5%; z-index: 2; pointer-events: none;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.12) 55%, transparent);
}
.cover img { opacity: 0; transition: opacity .4s; }
.cover.loaded img { opacity: 1; }
.cover-fallback {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 2rem 1.6rem; background: var(--sea-deep); color: #EAF4F1;
}
.cf-title { font-family: var(--serif); font-size: 2.3rem; line-height: 1.02; }
.cf-author { font-weight: 600; }

.song { display: block; width: 100%; height: 70px; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.song path {
  fill: none; stroke: var(--sea); stroke-width: 1.25; opacity: 0.4;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
  animation: sing 3.2s ease-out 0.3s forwards;
}
@keyframes sing { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .song path { animation: none; stroke-dashoffset: 0; } }

/* Sections: heading on the left, content on the right */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section.alt { background: var(--paper-2); }
.split { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: 1.5rem var(--gap); align-items: start; }
.content { max-width: 40rem; }

h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.4rem);
  line-height: 1.1; margin: 0; text-wrap: balance;
}
h3 { font-size: 0.95rem; font-weight: 600; margin: 0 0 0.6rem; }
p { margin: 0 0 1.15rem; }
.content > :last-child { margin-bottom: 0; }

.lede { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; margin-bottom: 1.5rem; text-wrap: balance; }
.meta { font-size: 0.93rem; color: var(--ink-soft); margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }

.side { display: grid; gap: 1.75rem; }
.portrait { margin: 0; }
.portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }

.stores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.stores ul { list-style: none; padding: 0; margin: 0; }
.stores li { border-top: 1px solid var(--line); }
.stores li:last-child { border-bottom: 1px solid var(--line); }
.stores a {
  display: block; padding: 0.7rem 0.5rem; margin-inline: -0.5rem; border-radius: 3px;
  text-decoration: none; font-weight: 600; color: var(--ink);
  transition: background .15s, color .15s;
}
.stores a:hover { background: color-mix(in srgb, var(--sea) 10%, transparent); color: var(--sea-deep); }

.email { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.2; margin-bottom: 1.75rem; overflow-wrap: anywhere; }
.email a { color: var(--ink); text-decoration-color: var(--sea); }
.email a:hover { color: var(--sea-deep); }

/* Footer */
.site-foot { padding-block: 2rem 2.5rem; font-size: 0.88rem; color: var(--ink-soft); }
.foot-row { display: flex; justify-content: space-between; gap: 0.5rem 2rem; flex-wrap: wrap; }
.foot-row p { margin: 0; }

/* Tablet and phone */
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .stores { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
  .side { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 15rem; }
}
@media (max-width: 700px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .cover { width: min(66%, 260px); order: -1; }
  nav { gap: 1rem; }
}
.nowrap { white-space: nowrap; }

.isbns { margin: 2rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); display: grid; gap: 0.3rem; font-size: 0.93rem; color: var(--ink-soft); }
.isbns div { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.isbns dt { min-width: 9.5rem; }
.isbns dd { margin: 0; font-variant-numeric: tabular-nums; }
