/* ===========================================================
   Author Site — editorial, minimal, book-like
   =========================================================== */

:root {
  /* Burgundy palette (deep, rich, editorial) */
  --burgundy-1:  #660033;
  --burgundy-2:  #4d0026;
  --burgundy-3:  #3a001c;
  --burgundy-nav:rgba(77, 0, 38, .92);

  /* Ivory text, kept semantic var names for continuity */
  --paper:       var(--burgundy-1);   /* primary bg reference */
  --paper-deep:  var(--burgundy-2);
  --ink:         #f5f2eb;             /* ivory (primary text) */
  --ink-soft:    #ebe4d2;             /* warm ivory */
  --ink-muted:   #b7a48a;             /* muted warm tone */

  /* Gold accents */
  --gold:        #c2a878;
  --gold-soft:   #d6bd8f;
  --gold-deep:   #9c8460;

  /* Hairlines / rules in faint gold */
  --rule:        rgba(194, 168, 120, .28);
  --rule-soft:   rgba(194, 168, 120, .16);

  --accent:      var(--gold);

  /* Ambient glow + subtle shadow used for depth */
  --glow-gold:   0 0 24px rgba(194, 168, 120, .18);
  --glow-soft:   0 1px 2px rgba(0, 0, 0, .25);
  --text-glow:   0 1px 24px rgba(0, 0, 0, .28);

  --serif: "Noto Serif Armenian", "EB Garamond", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Noto Sans Armenian", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;     /* book-width reading measure */
  --nav-h: 4.5rem;
  --page-x: clamp(1.25rem, 5vw, 3rem);

  --ease: cubic-bezier(.2, .6, .2, 1);
}

* { box-sizing: border-box; }

/* ---------- Ambient background video ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.03) brightness(.9) hue-rotate(-6deg);
  opacity: .9;
  transform: scale(1.04); /* slight bleed so gradient edges never show hard */
}
.bg__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 18% 0%,  rgba(194,168,120,.1), transparent 70%),
    radial-gradient(ellipse 55% 40% at 85% 100%, rgba(194,168,120,.07), transparent 70%),
    linear-gradient(165deg,
      rgba(102, 0, 51, .38) 0%,
      rgba(90,  0, 45, .45) 45%,
      rgba(77,  0, 38, .55) 75%,
      rgba(63,  0, 30, .7) 100%);
}
.bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.45) 100%);
  mix-blend-mode: multiply;
}

/* Նովելների էջ — ամբողջ էկրանի ֆոնային վիդեո (cover)։ */
.bg--archive .bg__video {
  filter: saturate(.9) contrast(1.05) brightness(.75) hue-rotate(-4deg);
  opacity: 1;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}
.bg--archive .bg__overlay {
  background:
    linear-gradient(180deg,
      rgba(30, 0, 14, .35) 0%,
      rgba(30, 0, 14, .2)  20%,
      rgba(30, 0, 14, .2)  80%,
      rgba(30, 0, 14, .45) 100%);
}
.bg--archive .bg__vignette {
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.5) 100%);
}

/* Put all real content above the bg layer. */
.nav, main { position: relative; z-index: 1; }
.nav { z-index: 50; }

@media (prefers-reduced-motion: reduce) {
  .bg__video { display: none; }
}

html { background: var(--burgundy-2); }

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Rich burgundy field: soft diagonal gradient + two warm highlights
     that give the background gentle depth instead of reading flat. */
  background:
    radial-gradient(ellipse 60% 40% at 18% 0%,  rgba(194,168,120,.09), transparent 70%),
    radial-gradient(ellipse 55% 40% at 85% 100%, rgba(194,168,120,.06), transparent 70%),
    linear-gradient(165deg, #660033 0%, #5a002d 45%, #4d0026 75%, #3f001e 100%);
  background-attachment: fixed;
}

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

/* ---------- Custom cursor (dot + trailing ring) ---------- */
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor,
  body.has-custom-cursor * {
    cursor: none;
  }
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  will-change: transform;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: opacity .25s var(--ease);
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: rgba(245, 242, 235, .9);
  box-shadow: 0 0 6px rgba(245, 242, 235, .35);
}

.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(245, 242, 235, .28);
  background: rgba(245, 242, 235, .02);
  transition:
    width .35s var(--ease),
    height .35s var(--ease),
    border-color .35s var(--ease),
    background .35s var(--ease),
    box-shadow .35s var(--ease),
    opacity .25s var(--ease);
}

body.is-cursor-hover .cursor-ring {
  width: 52px;
  height: 52px;
  border-color: rgba(194, 168, 120, .6);
  background: rgba(194, 168, 120, .06);
  box-shadow: 0 0 22px rgba(194, 168, 120, .22);
}

body.is-cursor-hover .cursor-dot {
  background: rgba(214, 189, 143, 1);
  box-shadow: 0 0 10px rgba(194, 168, 120, .5);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-ring { transition: opacity .25s var(--ease); }
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color .35s var(--ease), color .35s var(--ease);
}
a:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

::selection { background: var(--gold); color: var(--burgundy-2); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-x);
  z-index: 50;
  background: linear-gradient(to bottom,
    rgba(77, 0, 38, .92) 0%,
    rgba(77, 0, 38, .75) 55%,
    rgba(77, 0, 38, 0) 100%);
  backdrop-filter: saturate(130%) blur(4px);
  -webkit-backdrop-filter: saturate(130%) blur(4px);
}

.nav__mark {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: none;
  text-shadow: var(--glow-soft);
}
.nav__mark:hover { color: var(--gold); border: none; }

.nav__links {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.nav__links a {
  border: none;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

/* ---------- Shared page frame ---------- */
.page {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 2rem) var(--page-x) 6rem;
}

.section-label {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.section-label::before,
.section-label::after {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .55;
}
.section-label::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--gold);
  padding: .95rem 1.75rem;
  box-shadow:
    inset 0 0 0 rgba(194,168,120,0),
    0 0 0 rgba(194,168,120,0);
  transition:
    background .4s var(--ease),
    color .4s var(--ease),
    border-color .4s var(--ease),
    box-shadow .55s var(--ease),
    letter-spacing .4s var(--ease);
}
.btn:hover {
  background: var(--gold);
  color: var(--burgundy-2);
  border-color: var(--gold-soft);
  box-shadow:
    inset 0 0 18px rgba(255, 240, 210, .15),
    0 0 26px rgba(194, 168, 120, .28);
  letter-spacing: .36em;
}

.btn--ghost {
  border: none;
  padding: 0;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--gold);
  color: var(--gold-soft);
  letter-spacing: .26em;
  box-shadow: none;
}
.btn--ghost:hover {
  background: transparent;
  color: var(--gold);
  border-bottom-color: var(--gold-soft);
  box-shadow: none;
  letter-spacing: .28em;
}

/* ===========================================================
   HOME — full-screen hero
   =========================================================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  padding: var(--nav-h) var(--page-x) 3rem;
  text-align: center;
}

.hero__inner {
  grid-row: 2;
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
}

.hero__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: .015em;
  margin: 0;
  font-style: italic;
  color: var(--ink);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, .35),
    0 0 48px rgba(194, 168, 120, .12);
}

.hero__rule {
  width: 4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .85;
  box-shadow: 0 0 8px rgba(194, 168, 120, .3);
}

.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-style: italic;
  color: var(--ink-soft);
  max-width: 28rem;
  line-height: 1.65;
  letter-spacing: .01em;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.hero__footer {
  grid-row: 3;
  align-self: end;
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .8;
}

/* ===========================================================
   ARCHIVE
   =========================================================== */
.archive {
  max-width: 46rem;
  margin: 0 auto;
}

.archive__header {
  margin-bottom: 6rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.archive__header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: .9;
}

.archive__title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  margin: .9rem 0 .5rem;
  line-height: 1.1;
  letter-spacing: .01em;
  color: var(--gold);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

.archive__subtitle {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-muted);
  margin: 0;
  max-width: 34rem;
}

.archive__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.entry {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: clamp(9rem, 22vw, 16rem) 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}
.entry:last-child { border-bottom: none; }

.entry__date {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .85;
  padding-top: .55rem;
}

.entry__body { min-width: 0; }

.entry__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2rem);
  margin: 0 0 .85rem;
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--gold);
}
.entry__title a { border: none; color: var(--gold); transition: color .4s var(--ease); }
.entry__title a:hover { color: var(--gold-soft); }

.entry__excerpt {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  max-width: 36rem;
  opacity: .95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

.entry__read {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: none;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--gold);
  display: inline-block;
  transition: color .35s var(--ease), border-color .35s var(--ease), letter-spacing .35s var(--ease);
}
.entry__read:hover {
  color: var(--gold);
  border-bottom-color: var(--gold-soft);
  letter-spacing: .36em;
}

/* ===========================================================
   STORY (reading page)
   =========================================================== */
.story {
  max-width: var(--measure);
  margin: 0 auto;
  scroll-behavior: smooth;
}

.story__back {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: none;
  display: inline-block;
  margin-bottom: 3.5rem;
  opacity: .85;
}
.story__back:hover { color: var(--gold); opacity: 1; }

.story__date {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  opacity: .88;
}

.story__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 5.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: .005em;
  margin: 0 0 1.25rem;
}

.story__kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  letter-spacing: .08em;
  color: var(--ink-muted);
  margin: 0 0 2rem;
}

.story__rule {
  width: 4.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .85;
  margin: 3rem 0 3rem;
  box-shadow: 0 0 6px rgba(194, 168, 120, .25);
}

.story__body {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.82;
  color: var(--ink);
  letter-spacing: .008em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.story__body p {
  margin: 0 0 1.4em;
  text-align: left;
  hyphens: auto;
}

.story__body p:first-of-type::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 3.8em;
  line-height: .88;
  padding: .06em .14em 0 0;
  font-style: italic;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(194, 168, 120, .25);
}

.story__body h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.55rem;
  margin: 2.5em 0 1em;
  color: var(--ink);
  letter-spacing: .01em;
  position: relative;
  padding-left: 1.5rem;
}
.story__body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .9em;
  width: .85rem;
  height: 1px;
  background: var(--gold);
  opacity: .8;
}

.story__body blockquote {
  border-left: 1px solid var(--gold);
  padding: .5em 0 .5em 1.5em;
  margin: 2.2em 0;
  font-style: italic;
  color: var(--ink-soft);
  box-shadow: -1px 0 8px -4px rgba(194, 168, 120, .35);
}

.story__body em { font-style: italic; color: var(--gold-soft); }

.story__footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}
.story__footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  transform: translateX(-50%);
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .7;
}
.story__footer a { border: none; color: var(--gold-soft); }
.story__footer a:hover { color: var(--gold); }

/* ===========================================================
   ABOUT
   =========================================================== */
.about {
  max-width: 46rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about__portrait {
  margin: 0;
  width: 100%;
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow:
    0 2px 18px rgba(0, 0, 0, .35),
    0 0 0 1px rgba(194, 168, 120, .12);
  background: var(--burgundy-3);
}
.about__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.9) contrast(1.02);
}
.about__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(102,0,51,.0) 55%, rgba(58,0,28,.45) 100%),
    radial-gradient(120% 80% at 30% 20%, rgba(194,168,120,.08), transparent 60%);
}

.about__text { min-width: 0; }

.about__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.25rem, 5.5vw, 3rem);
  margin: .9rem 0 0;
  line-height: 1.15;
  letter-spacing: .015em;
  color: var(--ink);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 0 36px rgba(194, 168, 120, .1);
}

.about__rule {
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: .9;
  margin: 2rem 0 2.25rem;
  box-shadow: 0 0 6px rgba(194, 168, 120, .3);
}

.about__bio {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.82;
  color: var(--ink);
  letter-spacing: .008em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.about__bio p { margin: 0 0 1.15em; }
.about__bio p:last-child { margin-bottom: 0; }
.about__bio em { color: var(--gold-soft); font-style: italic; }

.about__signature {
  margin-top: 2.5rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  letter-spacing: .1em;
  opacity: .9;
}

/* ===========================================================
   NOVEL — table of contents style parts list
   =========================================================== */
.novel__description {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 3rem;
  max-width: 34rem;
  letter-spacing: .008em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

.novel__cover {
  margin: 1.5rem 0 2rem;
  max-width: 34rem;
}
.novel__read {
  margin-top: 2rem;
}
.novel__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  mix-blend-mode: multiply;
  filter: saturate(.7) contrast(1.05);
}

.entry__meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

/* When the entry has a cover, center the title/read column vertically
   and horizontally so the title sits alongside the artwork. */
.entry:has(.entry__cover) { align-items: center; }
.entry:has(.entry__cover) .entry__body {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.entry__cover {
  display: block;
  width: 100%;
  border: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.entry__cover:hover { opacity: .85; transform: translateY(-2px); }
.entry__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  mix-blend-mode: multiply;
  filter: saturate(.7) contrast(1.05);
}

.novel__list-label {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2rem 0 1.25rem;
  opacity: .9;
}

.novel__parts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.novel__part {
  border-bottom: 1px solid var(--rule);
}

.novel__part-link {
  display: grid;
  grid-template-columns: minmax(6rem, max-content) 1fr auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: baseline;
  padding: 1.6rem 0;
  border: none;
  color: var(--ink);
  transition: color .35s var(--ease), padding-left .35s var(--ease);
}
.novel__part-link:hover {
  color: var(--gold-soft);
  border: none;
  padding-left: .4rem;
}
.novel__part-link:hover .novel__part-title { color: var(--gold-soft); }
.novel__part-link:hover .novel__part-num   { color: var(--gold); }

.novel__part-num {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .88;
  white-space: nowrap;
  transition: color .35s var(--ease);
}

.novel__part-title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: .008em;
  transition: color .35s var(--ease);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.novel__part-date {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* ===========================================================
   Fade-in
   =========================================================== */
.fade {
  opacity: 0;
  transform: translateY(6px);
  animation: fade-in .9s var(--ease) forwards;
}
.fade--d1 { animation-delay: .08s; }
.fade--d2 { animation-delay: .18s; }
.fade--d3 { animation-delay: .3s; }
.fade--d4 { animation-delay: .42s; }

@keyframes fade-in {
  to { opacity: 1; transform: none; }
}

/* ===========================================================
   Responsive — keep composition; only tune type & spacing.
   The archive entry keeps its date-left / body-right grid on
   all widths. We just shrink the date column to preserve it.
   =========================================================== */
@media (max-width: 640px) {
  html, body { font-size: 17px; }

  .nav__links {
    font-size: .72rem;
    gap: 1.1rem;
    letter-spacing: .18em;
  }
  .nav__mark {
    font-size: .92rem;
    letter-spacing: .12em;
  }

  .entry {
    grid-template-columns: 4.5rem 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }
  .entry__date { font-size: .62rem; letter-spacing: .2em; }

  .about {
    grid-template-columns: 9rem 1fr;
    gap: 1.5rem;
  }

  .novel__part-link {
    grid-template-columns: 3.6rem 1fr auto;
    gap: .85rem;
    padding: 1.35rem 0;
  }
  .novel__part-num { font-size: .6rem; letter-spacing: .2em; }
  .novel__part-date { font-size: .6rem; letter-spacing: .18em; }
}

@media (max-width: 420px) {
  .nav { padding: 0 1rem; }
  .nav__links { gap: .85rem; font-size: .66rem; }
  .entry { grid-template-columns: 3.8rem 1fr; }
  .about { grid-template-columns: 7rem 1fr; gap: 1.15rem; }
  .novel__part-link { grid-template-columns: 3rem 1fr auto; gap: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fade { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
