:root {
  color-scheme: light;
  --paper: #f4f4f1;
  --ink: #232323;
  --muted: #626260;
  --rule: #ccccca;
  --subtle-bg: #ecece8;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

p, h1, h2, h3, figure, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

::selection {
  background: #d4d4cf;
  color: #171717;
}

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

.skip-link {
  position: absolute;
  left: 20px;
  top: -100px;
  background: var(--ink);
  color: white;
  padding: 14px;
  z-index: 10;
}

.skip-link:focus {
  top: 10px;
}

.page {
  max-width: 1600px;
  padding: 0 clamp(22px, 5.5vw, 88px);
  margin: auto;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 40px;
  min-height: 100px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
  padding: 15px 0;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.masthead nav {
  display: flex;
  gap: clamp(20px, 3vw, 46px);
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.masthead nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 5%;
  padding: 76px 0 84px;
}

.hero-copy {
  min-width: 0;
}

.author-name {
  font-size: 1rem;
  font-family: var(--serif);
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 20px;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.8vw, 5.75rem);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -0.048em;
  overflow-wrap: anywhere;
}

h1 span, h1 em {
  display: block;
}

h1 em {
  font-weight: 400;
}

.status-tag {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-top: 24px;
  color: var(--muted);
  font-style: italic;
}

.hero-logline {
  max-width: 520px;
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-key-line {
  font-family: var(--serif);
  font-size: 1.0625rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  margin-top: 32px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-art {
  justify-self: center;
  width: 100%;
  max-width: 420px;
  min-width: 0;
}

.hero-art img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Generic Section Grid */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 2.1fr;
  gap: 7%;
  border-top: 1px solid var(--rule);
  padding: 65px 0 72px;
}

.section-label {
  font-size: 0.875rem;
  color: var(--muted);
  padding-top: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-body {
  min-width: 0;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

/* The Novel Section */
.book-description {
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 680px;
  margin-top: 27px;
}

.book-description p + p {
  margin-top: 20px;
}

.book-tagline {
  font: italic 1.125rem/1.7 var(--serif);
  color: var(--ink);
  margin-top: 28px;
  border-left: 2px solid var(--ink);
  padding-left: 18px;
}

/* Notes Section */
.notes-intro {
  font-size: 1.125rem;
  color: var(--muted);
  margin-top: 16px;
  max-width: 620px;
}

.notes-container {
  margin-top: 36px;
  max-width: 680px;
}

.notes-prelaunch {
  border: 1px solid var(--rule);
  padding: 32px;
  background: rgba(255, 255, 255, 0.4);
}

.status-badge, .notice-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 1px solid var(--ink);
  font-weight: 600;
  margin-bottom: 14px;
}

.prelaunch-desc {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
}

.upcoming-notes {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--rule);
}

.upcoming-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}

.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.0625rem;
}

.upcoming-list .bullet {
  color: var(--muted);
  margin-right: 6px;
}

/* Published Note Cards with Illustrations */
.notes-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4.5vw, 54px);
}

.note-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.note-illustration {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.note-illustration img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  transition: transform 0.3s ease;
}

.note-item:hover .note-illustration img {
  transform: scale(1.018);
}

.note-card {
  border: 1px solid var(--rule);
  padding: 32px;
  background: rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

/* Desktop layout: Place illustrations in the left free space, keeping cards in original horizontal position */
@media (min-width: 960px) {
  :root {
    --note-ill-width: clamp(240px, 18vw, 320px);
    --note-ill-gap: clamp(24px, 2.5vw, 44px);
  }

  .notes-container {
    max-width: 680px;
    position: relative;
  }

  .note-item {
    display: grid;
    grid-template-columns: var(--note-ill-width) 1fr;
    align-items: center;
    gap: var(--note-ill-gap);
    margin-left: calc(-1 * (var(--note-ill-width) + var(--note-ill-gap)));
    width: calc(100% + var(--note-ill-width) + var(--note-ill-gap));
  }

  .note-illustration {
    width: var(--note-ill-width);
    max-width: none;
    margin: 0;
    justify-content: flex-end;
  }

  .note-card {
    width: 100%;
    max-width: 680px;
  }
}

.note-card:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.note-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.note-status {
  color: var(--ink);
  padding: 2px 8px;
  border: 1px solid var(--ink);
}

.note-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
}

.note-title a {
  text-decoration: none;
}

.note-title a:hover {
  text-decoration: underline;
}

.note-summary {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 14px;
}

.note-action {
  margin-top: 20px;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  padding-bottom: 2px;
}

/* Standalone Essay Page */
.essay-main {
  padding: 40px 0 80px;
}

.essay-nav-back {
  max-width: 680px;
  margin: 0 auto 36px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.essay-article {
  max-width: 680px;
  margin: 0 auto;
}

.essay-header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 28px;
  margin-bottom: 36px;
}

.essay-meta-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.essay-meta-sep {
  color: var(--muted);
}

.essay-status-badge {
  color: var(--ink);
  padding: 2px 8px;
  border: 1px solid var(--ink);
}

.essay-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}

.essay-subtitle {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.45;
  font-style: italic;
  color: var(--muted);
  margin-top: 14px;
}

.essay-author {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--muted);
  margin-top: 14px;
}

.essay-body {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.85;
  color: var(--ink);
}

.essay-body p {
  margin: 0;
}

.essay-body p + p {
  margin-top: 22px;
}

.essay-body p.essay-dialogue {
  margin-top: 8px;
  padding-left: 20px;
  font-style: italic;
}

.essay-body p.essay-dialogue + p:not(.essay-dialogue) {
  margin-top: 22px;
}

.essay-body p.essay-emphasis {
  font-style: italic;
  border-left: 2px solid var(--ink);
  padding-left: 18px;
  margin-top: 24px;
}

.essay-end-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.essay-end-mark {
  font-size: 1.5rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.essay-end-nav {
  display: flex;
  justify-content: center;
}

/* Subscribe Section */
.subscribe-card {
  max-width: 680px;
}

.subscribe-copy {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-top: 20px;
}

.subscribe-subcopy {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 12px;
}

.subscribe-form {
  margin-top: 28px;
}

.field-group {
  display: flex;
  gap: 12px;
  max-width: 520px;
  flex-wrap: wrap;
}

.field-group input {
  flex: 1;
  min-width: 240px;
  height: 48px;
  padding: 0 16px;
  font-family: var(--sans);
  font-size: 1rem;
  border: 1px solid var(--rule);
  background: white;
  color: var(--ink);
}

.field-group input:disabled {
  background: var(--subtle-bg);
  color: var(--muted);
  cursor: not-allowed;
}

.btn-subscribe {
  height: 48px;
  padding: 0 28px;
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
}

.btn-subscribe:disabled {
  background: var(--muted);
  border-color: var(--muted);
  opacity: 0.7;
  cursor: not-allowed;
}

.subscribe-footnote {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 12px;
}

.subscribe-notice {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--subtle-bg);
  border-left: 3px solid var(--ink);
  line-height: 1.5;
}

.subscribe-notice .notice-badge {
  margin-bottom: 0;
  margin-right: 8px;
}

/* About & Contact */
.bio {
  max-width: 670px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.15vw, 1.9rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
  margin-top: 25px;
}

.bio a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s ease;
}

.bio a:hover {
  opacity: 0.7;
}

.connect-intro {
  max-width: 670px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  margin-top: 18px;
}

.connect-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  margin-top: 26px;
}

.connect-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--serif);
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  min-height: 44px;
  transition: opacity 0.2s ease;
}

.connect-link:hover {
  opacity: 0.65;
  text-decoration: none;
}

.connect-link .external-arrow {
  font-size: 0.85em;
  line-height: 1;
  transition: transform 0.2s ease;
}

.connect-link:hover .external-arrow {
  transform: translate(2px, -2px);
}

.connect-inquiries {
  margin-top: clamp(40px, 6vw, 60px);
  padding-top: clamp(30px, 5vw, 44px);
  border-top: 1px solid var(--rule);
}

.inquiries {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 25px;
}

.email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
  margin-top: 5px;
}

/* Footer */
footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 30px;
  border-top: 1px solid var(--rule);
  padding: 28px 0 34px;
  font-size: 0.75rem;
  color: var(--muted);
}

footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-author {
  font: 1.1rem var(--serif);
  letter-spacing: 0.03em;
  color: var(--ink);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
}

.footer-social a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-sep {
  color: var(--rule);
  user-select: none;
}

/* Responsive Styles */
@media (min-width: 821px) {
  .hero {
    min-height: 720px;
  }
  .hero-art {
    padding: 8px 0;
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 45px 0 50px;
    gap: 36px;
  }
  .hero h1 {
    font-size: clamp(2.6rem, 9vw, 5rem);
  }
  .hero-logline {
    max-width: 600px;
  }
  .hero-art {
    max-width: 382px;
  }
  .section-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 36px 0 44px;
  }
  .section-label {
    padding: 0;
  }
  .book-description {
    font-size: 1.0625rem;
  }
  .bio {
    font-size: 1.5rem;
  }
  .essay-main {
    padding: 24px 0 60px;
  }
  .essay-body {
    font-size: 1.1rem;
    line-height: 1.75;
  }
}

@media (max-width: 480px) {
  .note-illustration {
    max-width: 270px;
  }
  .note-card {
    padding: 24px 18px;
  }
  .essay-title {
    font-size: 2.2rem;
  }
  .essay-body {
    font-size: 1.05rem;
    line-height: 1.7;
  }
  .essay-body p.essay-dialogue {
    padding-left: 12px;
  }
  .masthead {
    min-height: 102px;
    gap: 0;
    padding: 17px 0 10px;
    align-items: flex-start;
  }
  .masthead nav {
    width: 100%;
    gap: 24px;
    margin-top: 5px;
  }
  .wordmark {
    font-size: 1.25rem;
  }
  .hero {
    padding-top: 37px;
  }
  h2 {
    font-size: 2rem;
  }
  .hero-logline {
    font-size: 1rem;
  }
  .hero h1 {
    font-size: clamp(2.35rem, 10vw, 3rem);
  }
  .field-group {
    flex-direction: column;
  }
  .field-group input, .btn-subscribe {
    width: 100%;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  footer p {
    order: 1;
  }
  .footer-social {
    order: 2;
    margin: 4px 0;
  }
  .footer-email {
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Reading entry points */
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }

/* LV-WEB-04: six-link public navigation. */
.masthead nav{gap:8px clamp(16px,2vw,30px)}.masthead nav a{white-space:nowrap}
@media(max-width:600px){.masthead nav{width:100%;display:grid;grid-template-columns:repeat(3,max-content);justify-content:space-between;gap:0 12px;font-size:.8rem}}
