@import url("https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@500,700,800,900&f[]=satoshi@400,500,700&display=swap");

:root {
  color-scheme: light;
  --red-50: #fdf0f1;
  --red-200: #f2aeb1;
  --red-400: #d94e54;
  --red-500: #c41f26;
  --red-600: #a1191e;
  --red-700: #7e1317;
  --blue-50: #eef5f9;
  --blue-300: #78b3c9;
  --blue-500: #0a6f90;
  --blue-700: #064a5f;
  --green-50: #f0f8f3;
  --green-300: #7bc28e;
  --green-500: #1e8a4c;
  --green-700: #125a31;
  --purple-50: #f4f0f3;
  --purple-300: #ad8ba4;
  --purple-500: #6b2d5c;
  --purple-700: #481f3e;
  --purple-900: #251020;
  --gold-50: #faf7ef;
  --gold-300: #dbc388;
  --gold-500: #b8992e;
  --gold-700: #7a641e;
  --grey-100: #ececed;
  --grey-200: #dbdcdd;
  --grey-600: #737779;
  --grey-700: #5a5d5f;
  --grey-950: #171818;
  --background: #faf8f5;
  --surface: #ffffff;
  --font-display: "Cabinet Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  --radius-control: 12px;
  --radius-card: 16px;
  --radius-pill: 9999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --focus: 0 0 0 3px rgba(196, 31, 38, 0.35);
  --gradient-hero: linear-gradient(155deg, #0a2a5c 0%, #3a1a5e 28%, #7a1a3e 56%, #c41f26 78%, #e85d2a 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--grey-950);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
select {
  font: inherit;
}

button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

:focus-visible {
  border-radius: var(--radius-control);
  outline: 0;
  box-shadow: var(--focus);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  translate: 0 -150%;
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--grey-950);
  padding: 10px 14px;
  font-weight: 700;
}

.skip-link:focus {
  translate: 0;
}

.diary-wrap {
  width: min(1160px, calc(100% - clamp(32px, 8vw, 108px)));
  margin-inline: auto;
}

.diary-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--grey-100);
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px);
}

.diary-nav-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.diary-logo,
.diary-nav-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.diary-logo img {
  width: 146px;
  height: auto;
}

.diary-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
}

.diary-nav-links a {
  color: var(--grey-700);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.diary-nav-links a:hover,
.diary-nav-links a[aria-current="page"] {
  color: var(--red-600);
}

.ledger-hero {
  position: relative;
  overflow: hidden;
  min-height: min(720px, calc(100svh - 72px));
  background: var(--gradient-hero);
  color: #fff;
}

.ledger-hero::after {
  position: absolute;
  inset: auto -8% -28% 42%;
  width: 62vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  content: "";
}

.ledger-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: inherit;
  align-items: center;
  gap: clamp(40px, 8vw, 92px);
  padding-block: clamp(72px, 10vw, 124px);
}

.ledger-intro {
  width: fit-content;
  margin: 0 0 24px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  font-weight: 700;
}

.ledger-hero h1 {
  max-width: 10ch;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.6vw, 5.75rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 0.96;
  text-wrap: balance;
}

.ledger-subtitle {
  max-width: 50ch;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-weight: 500;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-latest {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--purple-900);
  padding: 0 20px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms var(--ease-out);
}

.hero-latest:hover {
  transform: translateY(-2px);
}

.ledger-hero :focus-visible,
.entry-hero :focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.64);
}

.ledger-stack {
  position: relative;
  width: min(460px, 86vw);
  aspect-ratio: 1 / 0.9;
  margin-inline: auto;
  perspective: 1000px;
}

.abstract-card {
  position: absolute;
  display: block;
  width: 58%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: 0 22px 48px rgba(20, 4, 18, 0.28);
  transform-origin: 50% 85%;
}

.abstract-card::before,
.abstract-card::after,
.abstract-card i,
.abstract-card b {
  position: absolute;
  display: block;
  content: "";
}

.abstract-card::before {
  inset: 12% auto auto 12%;
  width: 52%;
  height: 7%;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.8);
}

.abstract-card::after {
  inset: auto 12% 12%;
  height: 29%;
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.17);
}

.abstract-card i {
  top: 29%;
  left: 12%;
  width: 76%;
  height: 4%;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 15px 0 rgba(255, 255, 255, 0.3), 0 30px 0 rgba(255, 255, 255, 0.2);
}

.abstract-card b {
  right: -8%;
  bottom: 8%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.abstract-card-one {
  top: 2%;
  left: 8%;
  background: linear-gradient(145deg, var(--blue-500), var(--green-500));
  transform: rotate(-14deg) translate3d(0, 0, 0);
  animation: settle-one 800ms var(--ease-out) both;
}

.abstract-card-two {
  top: 8%;
  right: 3%;
  background: linear-gradient(145deg, var(--gold-500), var(--red-500));
  transform: rotate(13deg) translate3d(0, 0, 24px);
  animation: settle-two 880ms 80ms var(--ease-out) both;
}

.abstract-card-three {
  right: 20%;
  bottom: 2%;
  background: linear-gradient(145deg, var(--purple-500), var(--red-500));
  transform: rotate(4deg) translate3d(0, 0, 52px);
  animation: settle-three 920ms 150ms var(--ease-out) both;
}

.abstract-card-four {
  bottom: 8%;
  left: 0;
  width: 38%;
  background: linear-gradient(145deg, var(--green-500), var(--blue-700));
  transform: rotate(-7deg) translate3d(0, 0, 72px);
  animation: settle-four 940ms 220ms var(--ease-out) both;
}

.ledger-stamp {
  position: absolute;
  right: -1%;
  bottom: 2%;
  z-index: 4;
  display: grid;
  width: 116px;
  aspect-ratio: 1;
  place-content: center;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  color: #fff;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 0.8;
  text-align: center;
  transform: rotate(8deg);
}

.ledger-stamp small {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
}

@keyframes settle-one {
  from { opacity: 0; transform: rotate(-20deg) translate3d(-28px, 42px, 0); }
}

@keyframes settle-two {
  from { opacity: 0; transform: rotate(19deg) translate3d(34px, 30px, 24px); }
}

@keyframes settle-three {
  from { opacity: 0; transform: rotate(8deg) translate3d(0, 54px, 52px); }
}

@keyframes settle-four {
  from { opacity: 0; transform: rotate(-13deg) translate3d(-30px, 30px, 72px); }
}

.provenance-band {
  background: var(--purple-900);
  color: #fff;
}

.provenance-inner {
  display: grid;
  gap: 24px;
  padding-block: clamp(32px, 5vw, 52px);
}

.provenance-inner > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.provenance-mark,
.ai-note-mark {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  aspect-ratio: 1;
  place-content: center;
  border-radius: 50%;
  background: var(--gold-300);
  color: var(--purple-900);
  font-family: var(--font-display);
  font-weight: 900;
}

.provenance-inner h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.provenance-inner p {
  max-width: 58ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.archive {
  padding-block: clamp(64px, 9vw, 112px);
}

.archive-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.archive-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.archive-heading p {
  margin: 12px 0 0;
  color: var(--grey-700);
  font-size: 1.04rem;
}

.sort-control {
  display: grid;
  flex: 0 0 auto;
  gap: 6px;
  margin-right: 24px;
  color: var(--grey-700);
  font-size: 0.8rem;
  font-weight: 700;
}

.sort-control select {
  appearance: none;
  min-height: 44px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-control);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='m4 5.5 3 3 3-3' stroke='%23171818' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 14px;
  color: var(--grey-950);
  padding: 0 46px 0 12px;
  font-weight: 700;
}

.filter-block {
  margin-top: clamp(36px, 6vw, 60px);
}

.filter-block > p {
  margin: 0 0 12px;
  color: var(--grey-700);
  font-size: 0.88rem;
  font-weight: 700;
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--grey-950);
  padding: 0 14px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.filter-chip:hover {
  border-color: var(--red-500);
  transform: translateY(-1px);
}

.filter-chip[aria-pressed="true"] {
  border-color: var(--grey-950);
  background: var(--grey-950);
  color: #fff;
}

.filter-chip span {
  color: inherit;
  opacity: 0.7;
  font-size: 0.76rem;
}

.results-status {
  margin: 26px 0 12px;
  color: var(--grey-700);
  font-size: 0.9rem;
}

.story-list {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface);
}

.story-card {
  border-bottom: 1px solid var(--grey-100);
  background: var(--surface);
}

.story-card:last-child {
  border-bottom: 0;
}

.story-card[hidden] {
  display: none;
}

.story-card-link {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 44px;
  min-height: 148px;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  padding: clamp(18px, 3vw, 28px);
  text-decoration: none;
  transition: background-color 180ms var(--ease-out);
}

.story-card-link:hover {
  background: var(--purple-50);
}

.story-card-featured {
  border-bottom: 0;
  box-shadow: 0 12px 28px rgba(54, 23, 47, 0.14);
}

.story-card-featured + .story-card {
  margin-top: 28px;
  border-top-left-radius: var(--radius-card);
  border-top-right-radius: var(--radius-card);
}

.story-card-featured .story-card-link {
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 0.58fr) 48px;
  min-height: 310px;
  padding: 0 24px 0 0;
}

.story-card-featured .story-copy {
  padding: clamp(26px, 5vw, 48px) 0;
}

.story-folio {
  position: relative;
  display: grid;
  width: 76px;
  aspect-ratio: 1;
  place-content: center;
  overflow: hidden;
  border-radius: var(--radius-control);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: normal;
  font-weight: 900;
  line-height: 0.85;
  text-align: center;
}

.story-folio small {
  margin-top: 7px;
  font-family: var(--font-body);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
}

.story-folio i {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 52px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.story-card-featured .story-folio {
  width: 100%;
  height: 100%;
  min-height: 310px;
  border-radius: var(--radius-card) 0 0 var(--radius-card);
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.story-card-featured .story-folio small {
  font-size: 0.9rem;
}

.story-card-featured .story-folio i {
  right: -6%;
  bottom: -22%;
  width: 68%;
}

.gradient-red { background: linear-gradient(145deg, var(--red-700), var(--red-500)); }
.gradient-blue { background: linear-gradient(145deg, #043746, var(--blue-500)); }
.gradient-green { background: linear-gradient(145deg, #0d4224, var(--green-500)); }
.gradient-purple { background: linear-gradient(145deg, var(--purple-700), var(--red-500)); }
.gradient-gold { background: linear-gradient(145deg, #5a4a16, var(--red-700)); }

.story-copy {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--grey-700);
  font-size: 0.8rem;
  font-weight: 700;
}

.story-meta strong {
  border-radius: var(--radius-pill);
  background: var(--red-50);
  color: var(--red-700);
  padding: 4px 8px;
  font-size: 0.72rem;
}

.story-title {
  color: var(--grey-950);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.08;
  text-wrap: balance;
}

.story-card-featured .story-title {
  max-width: 17ch;
  font-size: clamp(2rem, 4.3vw, 3.2rem);
}

.story-excerpt {
  max-width: 68ch;
  color: var(--grey-700);
  line-height: 1.55;
  text-wrap: pretty;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.tag {
  border-radius: var(--radius-pill);
  background: var(--blue-50);
  color: var(--blue-700);
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 700;
}

.story-arrow {
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-content: center;
  border-radius: 50%;
  background: var(--grey-950);
  color: #fff;
  font-size: 1.1rem;
  transition: transform 180ms var(--ease-out);
}

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

.story-card-featured .story-arrow {
  align-self: start;
  margin-top: clamp(26px, 5vw, 48px);
}

.empty-state {
  padding: 56px 24px;
  text-align: center;
}

.empty-state h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.empty-state p {
  margin: 8px 0 0;
  color: var(--grey-700);
}

.entry-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.entry-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 520px;
  align-content: center;
  padding-block: clamp(72px, 10vw, 120px);
}

.back-to-ledger {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  text-decoration: none;
}

.entry-hero time {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 700;
}

.entry-hero h1 {
  max-width: 15ch;
  margin: 14px 0 22px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.75rem);
  font-weight: 800;
  letter-spacing: -0.034em;
  line-height: 0.98;
  text-wrap: balance;
}

.entry-tags .tag {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.entry-shapes {
  position: absolute;
  top: 16%;
  right: 2%;
  width: min(36vw, 380px);
  aspect-ratio: 1;
  opacity: 0.7;
}

.entry-shapes i {
  position: absolute;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-card);
}

.entry-shapes i:first-child { inset: 4% 28% 28% 4%; transform: rotate(-12deg); }
.entry-shapes i:nth-child(2) { inset: 24% 4% 4% 28%; transform: rotate(10deg); }
.entry-shapes i:last-child { inset: 34%; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }

.entry-layout {
  display: grid;
  gap: clamp(44px, 7vw, 76px);
  padding-block: clamp(64px, 9vw, 112px);
}

.entry-prose {
  width: min(100%, 70ch);
  margin-inline: auto;
  color: #2c2d2e;
  font-size: clamp(1.04rem, 1.6vw, 1.16rem);
  line-height: 1.74;
}

.entry-prose p,
.entry-prose ul,
.entry-prose ol,
.entry-prose blockquote {
  margin: 0 0 1.45em;
}

.entry-prose h2,
.entry-prose h3,
.entry-prose h4 {
  margin: 2.2em 0 0.6em;
  color: var(--grey-950);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.08;
  text-wrap: balance;
}

.entry-prose h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.entry-prose h3 { font-size: clamp(1.4rem, 3vw, 1.85rem); }

.entry-prose li + li {
  margin-top: 0.65em;
}

.entry-prose strong {
  color: var(--grey-950);
}

.entry-prose code {
  border-radius: 5px;
  background: var(--grey-100);
  padding: 0.12em 0.36em;
  font-size: 0.92em;
}

.entry-prose blockquote {
  margin-inline: 0;
  border: 1px solid var(--purple-300);
  border-radius: var(--radius-card);
  background: var(--purple-50);
  padding: 22px;
  color: var(--purple-700);
  font-weight: 700;
}

.entry-prose hr {
  height: 1px;
  margin: 3em 0;
  border: 0;
  background: var(--grey-200);
}

.ai-note {
  display: flex;
  width: min(100%, 760px);
  align-items: flex-start;
  gap: 18px;
  margin-inline: auto;
  border-radius: var(--radius-card);
  background: var(--purple-50);
  padding: clamp(22px, 4vw, 32px);
  color: var(--purple-700);
}

.ai-note h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.018em;
}

.ai-note p {
  max-width: 64ch;
  margin: 0;
  line-height: 1.6;
}

.entry-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: clamp(64px, 9vw, 112px);
}

.entry-pagination a {
  display: grid;
  min-height: 120px;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 24px;
  text-decoration: none;
  transition: border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.entry-pagination a:hover {
  border-color: var(--red-500);
  transform: translateY(-2px);
}

.entry-pagination span {
  color: var(--grey-700);
  font-size: 0.8rem;
  font-weight: 700;
}

.entry-pagination strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.16;
}

.entry-pagination .next-entry {
  text-align: right;
}

.diary-footer {
  background: var(--grey-950);
  color: #fff;
}

.diary-footer-inner {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-block: 48px;
}

.diary-footer img {
  filter: brightness(0) invert(1);
}

.diary-footer p {
  max-width: 45ch;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.diary-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 24px;
}

.diary-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  text-decoration: none;
}

.diary-footer a:hover {
  color: #fff;
}

@media (min-width: 860px) {
  .ledger-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  }

  .provenance-inner {
    grid-template-columns: minmax(460px, 1fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .provenance-inner h2 {
    white-space: nowrap;
  }
}

@media (max-width: 759px) {
  .diary-nav-inner {
    min-height: 64px;
  }

  .diary-logo img {
    width: 124px;
  }

  .diary-nav-links a:not([aria-current="page"]) {
    display: none;
  }

  .ledger-hero {
    min-height: auto;
  }

  .ledger-stack {
    width: min(360px, 88vw);
  }

  .archive-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-control select {
    width: 100%;
  }

  .sort-control {
    margin-right: 0;
  }

  .story-card-link,
  .story-card-featured .story-card-link {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 0;
    gap: 16px;
    padding: 20px;
  }

  .story-card-featured .story-folio,
  .story-folio {
    width: 64px;
    height: 76px;
    min-height: 0;
    border-radius: var(--radius-control);
    font-size: 1.45rem;
  }

  .story-card-featured .story-folio small {
    font-size: 0.67rem;
  }

  .story-card-featured .story-copy {
    padding: 0;
  }

  .story-card-featured .story-title {
    font-size: 1.7rem;
  }

  .story-excerpt,
  .tag-list {
    grid-column: 1 / -1;
  }

  .story-arrow {
    display: none;
  }

  .entry-hero-inner {
    min-height: 470px;
  }

  .entry-shapes {
    top: auto;
    right: -12%;
    bottom: -18%;
    width: 64vw;
    opacity: 0.35;
  }

  .entry-pagination {
    grid-template-columns: 1fr;
  }

  .entry-pagination .next-entry {
    text-align: left;
  }

  .diary-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .diary-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .diary-wrap {
    width: min(100% - 28px, 1160px);
  }

  .ledger-hero h1 {
    font-size: clamp(2.65rem, 14vw, 3.55rem);
  }

  .ledger-hero-grid {
    padding-block: 58px 70px;
  }

  .abstract-card-four,
  .ledger-stamp {
    display: none;
  }

  .ai-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
