/* ============================================================
   Lunaire — The Notebook
   Editorial index and article pages layered onto the shared
   Today’s Sky shell. The foundation shelf stays quiet and
   practical; a later margin shelf can carry lighter stories.
   ============================================================ */

.blog-main,
.article-main {
  width: 100%;
}

.blog-page,
.article-page {
  --notebook-label: #8b6538;
  --ink-dim: rgba(31, 42, 68, 0.78);
}

.blog-hero {
  width: min(calc(100% - 64px), var(--page-width));
  margin: 0 auto;
  padding: 38px 0 58px;
  text-align: center;
  animation: notebook-arrival 560ms ease both;
}

.blog-title-lockup {
  width: min(100%, 620px);
  margin: 0 auto;
}

.section-kicker,
.article-series,
.article-meta,
.card-series,
.featured-series,
.future-kicker {
  color: var(--washed-indigo);
  font-family: var(--font-body);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1.5;
  text-transform: uppercase;
}

.blog-hero h1 {
  max-width: 100%;
  margin: 0;
  color: var(--washed-indigo);
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.6vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

.blog-intro {
  margin: 8px auto 0;
  color: var(--midnight-ink);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-style: italic;
  line-height: 1.2;
}

.notebook-categories {
  display: flex;
  width: min(100%, 720px);
  margin: 32px auto 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.notebook-category {
  position: relative;
  display: flex;
  width: 170px;
  height: 42px;
  padding: 0 14px;
  align-items: center;
  overflow: visible;
  border: 0;
  border-radius: 15px;
  background-color: transparent;
  background-image: url("/img/performance/ui/notebook-filter-notify-exact-v1.webp?h=c2f15c9ff166ecfa");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: none;
  color: var(--paper-ivory);
  cursor: pointer;
  filter: none;
  flex: 0 0 auto;
  justify-content: center;
  transition: filter 350ms ease, transform 350ms ease, box-shadow 200ms ease;
}

.category-name {
  position: relative;
  z-index: 1;
  color: var(--paper-ivory);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(31, 42, 68, 0.2);
}

.category-description {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  z-index: 3;
  width: max-content;
  max-width: 190px;
  padding: 5px 8px;
  border: 1px solid rgba(107, 131, 166, 0.2);
  border-radius: 7px;
  background: rgba(250, 247, 241, 0.96);
  color: var(--nav-indigo);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translate(-50%, -3px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.notebook-category:hover {
  filter: brightness(1.05);
  transform: scale(1.045);
}

.notebook-category:hover .category-description,
.notebook-category:focus-visible .category-description {
  opacity: 1;
  transform: translate(-50%, 0);
}

.notebook-category[aria-pressed="true"] {
  filter: brightness(0.97);
  box-shadow:
    0 0 0 1px rgba(250, 247, 241, 0.92),
    0 0 0 3px rgba(183, 146, 95, 0.82),
    0 6px 15px rgba(31, 42, 68, 0.08);
}

.notebook-category[aria-pressed="true"]:hover {
  filter: brightness(1.02);
}

.category-active-mark {
  position: relative;
  display: none;
  width: 15px;
  height: 16px;
  margin-left: 7px;
  background: url("/img/performance/ui/notebook-filter-selected-mark-v1.webp?h=e3d6e7638a73e3fd") center / contain no-repeat;
  filter: drop-shadow(0 0 2px rgba(210, 173, 100, 0.34));
  flex: 0 0 15px;
}

.notebook-category[aria-pressed="true"] .category-active-mark {
  display: inline-block;
}

.notebook-search-row {
  position: relative;
  z-index: 5;
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 22px auto 0;
  justify-content: center;
}

.notebook-search-toggle {
  display: inline-flex;
  min-height: 38px;
  max-width: min(300px, calc(100vw - 34px));
  padding: 4px 13px 4px 9px;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(107, 131, 166, 0.4);
  border-radius: 999px;
  background: rgba(252, 250, 245, 0.88);
  color: var(--midnight-ink);
  cursor: pointer;
  font: 400 0.67rem/1.3 var(--font-body);
  letter-spacing: 0.07em;
}

.notebook-search-toggle:hover {
  border-color: var(--washed-indigo);
  background: var(--paper-ivory);
}

.notebook-search-toggle[aria-expanded="true"],
.notebook-search-toggle.is-filtering {
  border-color: rgba(183, 146, 95, 0.58);
  background: var(--powder-blue);
}

.notebook-search-toggle img {
  width: 42px;
  height: 30px;
  flex: none;
}

.notebook-search-toggle span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notebook-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  box-sizing: border-box;
  width: min(344px, calc(100vw - 34px));
  padding: 16px;
  border: 1px solid rgba(183, 146, 95, 0.58);
  border-radius: 2px;
  background: var(--powder-blue);
  box-shadow: 0 12px 30px rgba(31, 42, 68, 0.14);
  text-align: left;
  transform: translateX(-50%);
}

.notebook-search-panel label {
  display: block;
  margin-bottom: 10px;
  color: var(--midnight-ink);
  font: 600 0.67rem/1.5 var(--font-body);
  letter-spacing: 0.09em;
}

.notebook-search-panel input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid rgba(107, 131, 166, 0.46);
  border-radius: 9px;
  background: var(--paper-ivory);
  color: var(--midnight-ink);
  font: 400 0.82rem/1.5 var(--font-body);
}

.notebook-search-panel input::placeholder {
  color: var(--ink-dim);
}

.notebook-search-toggle:focus-visible,
.notebook-search-panel input:focus-visible {
  outline: 2px solid var(--midnight-ink);
  outline-offset: 4px;
}

.notebook-empty {
  margin: 0 0 22px;
  color: var(--ink-dim);
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-align: center;
}

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

.filterable-note[hidden] {
  display: none;
}

.notebook-shelf,
.future-shelf,
.related-notes {
  width: min(calc(100% - 64px), var(--page-width));
  margin: 0 auto;
}

.notebook-shelf {
  scroll-margin-top: 28px;
}

.notebook-shelf + .notebook-shelf {
  margin-top: 82px;
}

.section-heading {
  display: flex;
  margin-bottom: 28px;
  gap: 18px;
  align-items: center;
}

.section-heading::after {
  height: 1px;
  background: linear-gradient(90deg, var(--border-gold), transparent);
  content: "";
  flex: 1;
}

.section-kicker {
  margin: 0;
  color: var(--notebook-label);
  white-space: nowrap;
}

.featured-note {
  overflow: hidden;
  border: 1px solid rgba(183, 146, 95, 0.35);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(247, 243, 234, 0.98), rgba(250, 247, 241, 0.87)),
    var(--warm-cream);
  box-shadow: 0 18px 48px rgba(31, 42, 68, 0.065);
}

.featured-note__link {
  position: relative;
  display: block;
  min-height: 380px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.featured-note__copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100%, 790px);
  min-height: 380px;
  padding: clamp(38px, 6vw, 74px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.featured-series {
  margin: 0 0 19px;
}

.featured-note h2 {
  max-width: 620px;
  margin: 0;
  color: var(--midnight-ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.02;
}

.featured-dek {
  max-width: 590px;
  margin: 23px 0 0;
  color: var(--ink-dim);
  font-size: 0.86rem;
  line-height: 1.74;
}

.read-note,
.article-back {
  display: inline-flex;
  margin-top: 30px;
  color: var(--washed-indigo);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  gap: 11px;
  align-items: center;
  text-transform: uppercase;
}

.read-note::after,
.article-back::after {
  color: var(--gold-deep);
  content: "→";
  font-size: 1rem;
  font-weight: 400;
  transition: transform 180ms ease;
}

.featured-note__art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.featured-note__art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 243, 234, 0.98) 0%, rgba(247, 243, 234, 0.8) 43%, rgba(247, 243, 234, 0.12) 78%);
  content: "";
}

.featured-note__art .blog-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  mix-blend-mode: multiply;
  transition: opacity 300ms ease, transform 300ms ease;
}

.note-grid {
  display: grid;
  grid-auto-rows: 420px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.featured-note + .note-grid {
  margin-top: 22px;
}

.note-card {
  position: relative;
  min-width: 0;
}

.note-card__link,
.related-card {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid var(--border-blue);
  border-radius: 18px;
  background: rgba(247, 243, 234, 0.82);
  box-shadow: 0 10px 28px rgba(31, 42, 68, 0.04);
  color: inherit;
  flex-direction: column;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.note-card__link > :not(.card-art) {
  z-index: 1;
}

.card-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
  pointer-events: none;
}

.card-art .blog-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.note-card__link::before,
.related-card::before {
  position: absolute;
  top: -110px;
  right: -80px;
  width: 260px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-wash, rgba(183, 212, 232, 0.42)), transparent 68%);
  content: "";
  pointer-events: none;
  transform: rotate(-16deg);
}

.note-card:nth-child(2) {
  --card-wash: rgba(167, 207, 201, 0.35);
}

.note-card:nth-child(3) {
  --card-wash: rgba(246, 215, 213, 0.32);
}

.note-card:nth-child(4) {
  --card-wash: rgba(220, 234, 244, 0.64);
}

.card-topline {
  position: relative;
  display: flex;
  margin-bottom: 30px;
  align-items: center;
  justify-content: flex-start;
}

.card-series {
  margin: 0;
}

.note-card h2,
.related-card h3 {
  position: relative;
  max-width: 540px;
  margin: 0;
  color: var(--midnight-ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.02;
}

.card-dek {
  position: relative;
  margin: 20px 0 0;
  color: var(--ink-dim);
  font-size: 0.79rem;
  line-height: 1.72;
}

.card-read-time {
  position: relative;
  margin: auto 0 0;
  padding-top: 28px;
  color: var(--washed-indigo);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-note__link:hover .read-note::after,
.article-back:hover::after {
  transform: translateX(4px);
}

.featured-note__link:hover .featured-note__art .blog-illustration {
  opacity: 0.5;
  transform: scale(1.008);
}

.note-card__link:hover,
.related-card:hover {
  border-color: rgba(183, 146, 95, 0.52);
  box-shadow: 0 15px 34px rgba(31, 42, 68, 0.075);
  transform: translateY(-3px);
}

.future-shelf {
  margin-top: 92px;
}

.future-note {
  position: relative;
  width: min(100%, 890px);
  margin: 0 auto;
  padding: 38px 44px;
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  text-align: center;
}

.future-kicker {
  margin: 0 0 13px;
  color: var(--notebook-label);
}

.future-note p:last-child {
  max-width: 730px;
  margin: 0 auto;
  color: var(--midnight-ink);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-style: italic;
  line-height: 1.25;
}

/* ---------- Article pages ---------- */

.article-head {
  width: min(calc(100% - 48px), 900px);
  margin: 0 auto;
  padding: 60px 0 34px;
  text-align: center;
  animation: notebook-arrival 520ms ease both;
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 46px;
  color: var(--washed-indigo);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  text-transform: uppercase;
}

.breadcrumb::before {
  color: var(--gold-deep);
  content: "←";
  font-size: 0.95rem;
  font-weight: 400;
}

.article-series {
  margin: 0 0 18px;
}

.article-head h1 {
  margin: 0;
  color: var(--midnight-ink);
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.article-dek {
  width: min(100%, 730px);
  margin: 27px auto 0;
  color: var(--ink-dim);
  font-family: var(--font-display);
  font-size: clamp(1.42rem, 2.8vw, 1.9rem);
  font-style: italic;
  line-height: 1.32;
}

.article-meta {
  display: flex;
  margin: 27px 0 0;
  color: var(--notebook-label);
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.article-meta .meta-dot {
  font-size: 0.5rem;
}

.article-concept-art {
  position: relative;
  width: min(calc(100% - 48px), 820px);
  aspect-ratio: 3 / 1;
  margin: 0 auto 30px;
  overflow: hidden;
}

.article-concept-art .blog-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.article-rule {
  display: flex;
  width: min(calc(100% - 48px), 980px);
  margin: 0 auto 62px;
  color: var(--gold-deep);
  font-size: 0.52rem;
  gap: 14px;
  align-items: center;
}

.article-rule::before,
.article-rule::after {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold));
  content: "";
  flex: 1;
}

.article-rule::after {
  transform: scaleX(-1);
}

.article-body {
  width: min(calc(100% - 48px), 710px);
  margin: 0 auto;
}

.article-body > p,
.article-body li,
.signal-row dd,
.term-row dd {
  color: var(--midnight-ink);
  font-size: 0.94rem;
  line-height: 1.88;
}

.article-body > p {
  margin: 0 0 25px;
}

.retrograde-live-note {
  margin: 32px 0 38px;
  padding: 18px 22px;
  border-left: 2px solid var(--washed-indigo);
  background: rgba(220, 234, 244, 0.34);
  color: var(--midnight-ink);
  font-size: 0.94rem;
  line-height: 1.75;
}

.retrograde-live-note p { margin: 0; }

.article-body > p:first-child::first-letter {
  float: left;
  margin: 0.05em 0.1em 0 0;
  color: var(--washed-indigo);
  font-family: var(--font-display);
  font-size: 4.1rem;
  font-weight: 500;
  line-height: 0.72;
}

.article-body h2 {
  margin: 66px 0 21px;
  color: var(--midnight-ink);
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4.6vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  scroll-margin-top: 30px;
}

.article-body h3 {
  margin: 38px 0 13px;
  color: var(--washed-indigo);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.15;
}

.article-body ul {
  margin: 0 0 28px;
  padding-left: 1.35rem;
}

.article-body li {
  margin-bottom: 12px;
  padding-left: 0.25rem;
}

.article-body strong {
  font-weight: 600;
}

.article-body a {
  color: var(--washed-indigo);
  text-decoration-color: rgba(183, 146, 95, 0.72);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article-body a:hover {
  color: var(--midnight-ink);
}

.short-version,
.orb-note {
  position: relative;
  margin: 42px -34px 48px;
  padding: 34px 38px 36px;
  border: 1px solid rgba(183, 146, 95, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at 93% 12%, rgba(183, 212, 232, 0.38), transparent 34%),
    rgba(247, 243, 234, 0.84);
}

.short-version__label,
.orb-note__label {
  margin: 0 0 13px;
  color: var(--notebook-label);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.short-version p:last-child {
  margin: 0;
  color: var(--midnight-ink);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2rem);
  font-style: italic;
  line-height: 1.32;
}

.orb-note p:last-child {
  margin: 0;
  color: var(--midnight-ink);
  font-size: 0.84rem;
  line-height: 1.77;
}

.article-pullquote {
  margin: 58px -50px;
  padding: 4px 48px;
  border-left: 1px solid var(--border-gold);
  color: var(--washed-indigo);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-style: italic;
  line-height: 1.25;
}

.term-list,
.signal-list {
  margin: 30px 0 44px;
}

.term-row,
.signal-row {
  display: grid;
  padding: 25px 0;
  border-top: 1px solid rgba(107, 131, 166, 0.18);
  grid-template-columns: minmax(135px, 0.36fr) minmax(0, 1fr);
  gap: 24px;
}

.term-row:last-child,
.signal-row:last-child {
  border-bottom: 1px solid rgba(107, 131, 166, 0.18);
}

.term-row dt,
.signal-row dt {
  color: var(--washed-indigo);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
}

.term-row dd,
.signal-row dd {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.75;
}

.reader-feedback {
  width: min(calc(100% - 48px), 710px);
  margin: 76px auto 0;
  padding: clamp(34px, 5vw, 52px);
  border: 1px solid rgba(107, 131, 166, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 8%, rgba(183, 212, 232, 0.42), transparent 34%),
    radial-gradient(circle at 7% 96%, rgba(167, 207, 201, 0.25), transparent 30%),
    rgba(247, 243, 234, 0.9);
  box-shadow: 0 14px 38px rgba(31, 42, 68, 0.05);
}

.reader-feedback__kicker {
  margin: 0 0 14px;
  color: var(--notebook-label);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reader-feedback h2 {
  margin: 0;
  color: var(--midnight-ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.reader-feedback__intro {
  margin: 20px 0 30px;
  color: var(--midnight-ink);
  font-size: 0.84rem;
  line-height: 1.78;
}

.reader-feedback__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.reader-feedback label {
  display: grid;
  color: var(--washed-indigo);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  gap: 9px;
  text-transform: uppercase;
}

.reader-feedback label span {
  color: var(--ink-dim);
  font-size: 0.59rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.reader-feedback input,
.reader-feedback textarea {
  width: 100%;
  border: 1px solid rgba(107, 131, 166, 0.36);
  border-radius: 10px;
  background: rgba(250, 247, 241, 0.9);
  color: var(--midnight-ink);
  font: inherit;
  font-size: 0.83rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
  text-transform: none;
}

.reader-feedback input {
  min-height: 46px;
  padding: 9px 12px;
}

.reader-feedback textarea {
  min-height: 156px;
  padding: 12px;
  resize: vertical;
}

.reader-feedback__message {
  margin-top: 22px;
}

.reader-feedback input:focus-visible,
.reader-feedback textarea:focus-visible,
.reader-feedback__submit:focus-visible {
  outline: 2px solid var(--midnight-ink);
  outline-offset: 3px;
}

.reader-feedback__help {
  margin: 12px 0 0;
  color: var(--ink-dim);
  font-size: 0.66rem;
  line-height: 1.6;
}

.reader-feedback__honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.reader-feedback__challenge {
  margin-top: 20px;
}

.reader-feedback__submit-row {
  display: flex;
  margin-top: 22px;
  gap: 18px;
  align-items: center;
}

.reader-feedback__submit {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--washed-indigo);
  border-radius: 10px;
  background: var(--washed-indigo);
  color: var(--paper-ivory);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reader-feedback__submit:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.reader-feedback__status {
  min-height: 1.5em;
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.68rem;
  line-height: 1.5;
}

.reader-feedback__status[data-state="success"] {
  color: #35685d;
}

.reader-feedback__status[data-state="error"] {
  color: #783f39;
}

.article-end {
  width: min(calc(100% - 48px), 710px);
  margin: 72px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--border-gold);
}

.article-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.copy-link {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(183, 146, 95, 0.52);
  border-radius: 10px;
  background: rgba(250, 247, 241, 0.82);
  color: var(--washed-indigo);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.copy-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: var(--ink-dim);
  font-size: 0.65rem;
  text-align: right;
}

.related-notes {
  margin-top: 90px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.related-card {
  min-height: 220px;
}

.related-card h3 {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
}

.related-card p {
  position: relative;
  margin: 17px 0 0;
  color: var(--ink-dim);
  font-size: 0.75rem;
  line-height: 1.65;
}

.blog-page .site-footer,
.article-page .site-footer {
  margin-top: 104px;
}

.featured-note__link:focus-visible,
.note-card__link:focus-visible,
.related-card:focus-visible,
.notebook-category:focus-visible,
.breadcrumb:focus-visible,
.article-back:focus-visible,
.copy-link:focus-visible {
  outline: 2px solid var(--midnight-ink);
  outline-offset: 5px;
}

@keyframes notebook-arrival {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .featured-note__link,
  .featured-note__copy {
    min-height: 340px;
  }

  .featured-note__art {
    min-height: 0;
    border: 0;
  }

  .note-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .note-card__link {
    min-height: 240px;
    padding: 28px 30px;
  }

  .card-topline {
    margin-bottom: 22px;
  }

  .card-dek {
    margin-top: 15px;
    line-height: 1.6;
  }

  .card-read-time {
    padding-top: 20px;
  }
}

@media (max-width: 700px) {
  .blog-hero {
    width: min(calc(100% - 24px), 800px);
    padding: 30px 0 50px;
  }

  .blog-hero h1 {
    font-size: clamp(2rem, 10.5vw, 2.75rem);
  }

  .blog-intro {
    margin-top: 7px;
    font-size: 1.25rem;
  }

  .notebook-categories {
    width: min(100%, 610px);
    margin-top: 28px;
    gap: 10px;
  }

  .notebook-category {
    width: 138px;
    height: 43px;
    padding: 0 10px;
  }

  .category-name {
    font-size: 0.73rem;
  }

  .category-description {
    font-size: 0.52rem;
  }

  .notebook-shelf,
  .future-shelf,
  .related-notes {
    width: min(calc(100% - 34px), var(--page-width));
  }

  .featured-note__copy {
    width: 92%;
    min-height: 0;
    padding: 30px 26px 32px;
  }

  .featured-note__link {
    min-height: 0;
  }

  .featured-series {
    margin-bottom: 12px;
  }

  .featured-note h2 {
    font-size: clamp(1.8rem, 8.8vw, 2.25rem);
    line-height: 1.02;
  }

  .featured-dek {
    margin-top: 16px;
    font-size: 0.8rem;
    line-height: 1.58;
  }

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

  .featured-note__art {
    min-height: 0;
  }

  .featured-note__art::after {
    background: linear-gradient(90deg, rgba(247, 243, 234, 0.98) 0%, rgba(247, 243, 234, 0.82) 60%, rgba(247, 243, 234, 0.18) 100%);
  }

  .featured-note__art .blog-illustration {
    object-position: 58% center;
    opacity: 0.42;
  }

  .note-card__link {
    min-height: 0;
    padding: 24px 22px;
  }

  .card-topline {
    margin-bottom: 16px;
  }

  .note-card h2 {
    font-size: clamp(1.8rem, 8.8vw, 2.25rem);
  }

  .card-dek {
    margin-top: 12px;
    font-size: 0.76rem;
    line-height: 1.55;
  }

  .card-read-time {
    padding-top: 18px;
  }

  .future-shelf {
    margin-top: 70px;
  }

  .future-note {
    padding: 32px 12px;
  }

  .article-head {
    width: min(calc(100% - 34px), 900px);
    padding: 46px 0 26px;
  }

  .breadcrumb {
    margin-bottom: 34px;
  }

  .article-head h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .article-dek {
    font-size: 1.35rem;
  }

  .article-rule {
    width: calc(100% - 34px);
    margin-bottom: 44px;
  }

  .article-concept-art {
    width: calc(100% - 34px);
    margin-bottom: 22px;
  }

  .article-body,
  .reader-feedback,
  .article-end {
    width: min(calc(100% - 36px), 710px);
  }

  .article-body > p,
  .article-body li {
    font-size: 0.89rem;
    line-height: 1.82;
  }

  .short-version,
  .orb-note {
    margin-right: 0;
    margin-left: 0;
    padding: 29px 25px 31px;
  }

  .article-pullquote {
    margin: 50px 0;
    padding: 4px 24px;
  }

  .term-row,
  .signal-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .reader-feedback {
    padding: 30px 24px;
  }

  .reader-feedback__row {
    grid-template-columns: 1fr;
  }

  .reader-feedback__submit-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-back {
    margin-top: 0;
  }

  .copy-status {
    text-align: left;
  }

  .related-notes {
    margin-top: 72px;
  }
}

@media (max-width: 430px) {
  .notebook-shelf {
    width: min(calc(100% - 24px), var(--page-width));
  }

  .notebook-categories {
    width: min(100%, 300px);
  }

  .category-description {
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .notebook-category {
    width: 136px;
    height: 41px;
  }

  .category-name {
    font-size: 0.7rem;
  }

  .featured-note__copy {
    width: 96%;
    padding: 24px 20px 26px;
  }

  .featured-note h2 {
    font-size: clamp(1.72rem, 8.5vw, 2rem);
  }

  .featured-dek {
    font-size: 0.76rem;
  }

  .note-card__link {
    padding: 20px 18px;
  }

  .card-topline {
    margin-bottom: 14px;
  }

  .note-card h2 {
    font-size: clamp(1.72rem, 8.5vw, 2rem);
  }

  .card-read-time {
    padding-top: 14px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .blog-hero,
  .article-head {
    animation: none;
  }

  .featured-note__art .blog-illustration,
  .note-card__link,
  .related-card,
  .read-note::after,
  .article-back::after {
    transition-duration: 1ms;
  }
}

@media print {
  .corner-art,
  .site-header,
  .article-actions,
  .reader-feedback,
  .related-notes,
  .site-footer {
    display: none !important;
  }

  .lunaire-page {
    background: #fff;
  }

  .article-head,
  .article-body,
  .article-end {
    width: 100%;
  }
}
