:root {
  --primary: #e6e600;
  --paper: #fff;
  --paper-soft: #f7f6ef;
  --ink: #171717;
  --muted: #686868;
  --line: #e9e9e0;
  --blue-line: #abced4;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.12);
  --display: "Spline Sans", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --scribble: "Gochi Hand", cursive;
  --type: "Special Elite", monospace;
}

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

html {
  font-size: 14px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--display);
  background: var(--paper-soft);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sketchbook-cover {
  background-color: #f7f6ef;
  background-image:
    linear-gradient(rgba(20, 20, 20, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 20, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
}

.site-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: 1.25rem 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid #deded7;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  color: var(--ink);
  cursor: pointer;
  font: 700 0.65rem/1 var(--display);
  letter-spacing: 0.12em;
  padding: 0.65rem 0.85rem;
  text-transform: uppercase;
}

.nav-links,
.assigned-menu .menu,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.assigned-menu .menu,
.assigned-menu .submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.assigned-menu li {
  position: relative;
}

.nav-links a,
.nav-links span,
.nav-dropdown button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 0.45rem 0;
}

.nav-links a:hover,
.nav-dropdown button:hover {
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 0.2rem;
  text-underline-offset: 0.3rem;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: uppercase;
}

.chevron {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
}

.nav-dropdown.is-open .chevron {
  transform: translateY(0.08rem) rotate(225deg);
}

.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  padding: 0.55rem 0;
  border: 1px solid #dfdfd6;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-panel a {
  display: block;
  padding: 0.6rem 0.9rem;
  color: #555;
}

.nav-dropdown-panel a:hover {
  background: rgba(242, 242, 13, 0.22);
  text-decoration: none;
}

.assigned-menu .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  padding: 0.55rem 0;
  border: 1px solid #dfdfd6;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.assigned-menu li:hover > .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.assigned-menu .submenu a,
.assigned-menu .submenu span {
  display: block;
  padding: 0.6rem 0.9rem;
}

.nav-links .assigned-menu a[href*="search"] {
  display: none;
}

.icon-link {
  display: inline-flex;
  align-items: center;
}

.year-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.6rem;
  min-height: 1.9rem;
  border: 1px solid #000;
  border-radius: 0;
  background: #111;
  color: #fff;
  box-shadow: 3px 3px 0 var(--primary);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.paper-shell {
  width: min(95vw, 64rem);
  min-height: 80vh;
  margin: 0 auto 5rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.page-shell {
  width: min(95vw, 76rem);
  margin: 0 auto 5rem;
}

.about-layout {
  min-height: 70vh;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 0.35rem;
}

.about-document {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(17rem, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
}

.about-memo {
  position: relative;
  min-height: 46rem;
  padding: clamp(2rem, 5vw, 3.6rem);
  background-color: #fcfcfc;
  background-image: linear-gradient(#e5e7eb 1px, transparent 1px);
  background-size: 100% 2rem;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.06), 0 0 2px rgba(0, 0, 0, 0.12);
}

.paperclip {
  position: absolute;
  top: -1.2rem;
  left: 2.7rem;
  color: #8d8d86;
  font-size: 2.6rem;
  transform: rotate(45deg);
}

.memo-header {
  margin-bottom: 2.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid #ddd;
  font-family: var(--type);
  font-size: 0.86rem;
}

.memo-header p {
  margin: 0 0 1rem;
}

.memo-header dl,
.quick-facts dl {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 0.4rem 0.8rem;
  margin: 0;
}

.memo-header dt,
.quick-facts dt {
  color: #777;
}

.memo-header dd,
.quick-facts dd {
  margin: 0;
}

.memo-header dd span {
  background: linear-gradient(transparent 55%, rgba(230, 230, 0, 0.45) 0);
  font-weight: 700;
}

.about-content {
  font-size: 1rem;
  line-height: 2;
}

.about-content p {
  margin: 0 0 1.35rem;
}

.about-sidebar {
  display: grid;
  align-content: start;
  gap: 1.6rem;
}

.about-polaroid {
  position: relative;
  padding: 0.8rem 0.8rem 1.2rem;
  background: #fff;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.12);
  transform: rotate(2deg);
}

.about-polaroid img,
.portrait-fallback {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #ecece7;
  filter: grayscale(1);
}

.portrait-fallback {
  display: grid;
  place-items: center;
  color: #777;
  font: 800 2rem/1 var(--display);
}

.about-polaroid p {
  margin: 0.9rem 0 0;
  color: #777;
  font-family: var(--hand);
  font-size: 1.45rem;
  text-align: center;
}

.yellow-paper {
  background-color: #fefce8;
  background-image: linear-gradient(rgba(230, 230, 0, 0.12) 1px, transparent 1px);
  background-size: 100% 1.5rem;
}

.note-card {
  padding: 1.3rem;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.08);
}

.note-card h2 {
  margin: 0 0 1rem;
  border-bottom: 1px solid rgba(230, 230, 0, 0.45);
  font: 700 0.9rem/1.2 var(--type);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.note-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.note-card li {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.85rem;
}

.note-card strong {
  font-size: 0.95rem;
}

.note-card span,
.quick-facts dd,
.quick-facts dt {
  font-size: 0.78rem;
}

.quick-facts {
  border-left: 4px solid var(--primary);
  background: #fff;
}

.subscribe-shell {
  width: min(96vw, 82rem);
  margin: 0 auto 5rem;
}

.subscribe-board {
  min-height: 70vh;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 0.35rem;
  background-color: #e5e5da;
  background-image: radial-gradient(#d1d1c4 1px, transparent 0);
  background-size: 20px 20px;
}

.subscribe-header {
  position: relative;
  width: min(100%, 52rem);
  margin: 0 auto 4rem;
  padding: 1.4rem 2rem;
  border: 1px solid #e0e0d8;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  transform: rotate(-1deg);
}

.subscribe-tape {
  position: absolute;
  top: -0.95rem;
  left: 50%;
  width: 6rem;
  height: 1.8rem;
  border: 1px solid rgba(230, 230, 0, 0.2);
  background: rgba(230, 230, 0, 0.28);
  transform: translateX(-50%) rotate(2deg);
}

.subscribe-header h1 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.subscribe-header em {
  box-shadow: inset 0 -0.45em 0 rgba(230, 230, 0, 0.42);
}

.subscribe-header p {
  margin: 0.8rem 0 0;
  color: #666;
  font-weight: 700;
}

.subscribe-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.tier-card {
  transition: transform 180ms ease;
}

.tier-card:nth-child(1) {
  transform: rotate(1deg);
}

.tier-card:nth-child(3) {
  transform: rotate(2deg);
}

.tier-card:hover {
  transform: translateY(-0.35rem);
}

.featured-tier {
  transform: scale(1.04) rotate(-1deg);
  z-index: 2;
}

.legal-pad {
  display: flex;
  flex-direction: column;
  min-height: 35rem;
  padding: 2rem;
  border-top: 1.35rem solid #1f1f1f;
  border-radius: 0.45rem;
  background-color: #fefce8;
  background-image: linear-gradient(#e1e1d1 1px, transparent 1px);
  background-size: 100% 2.4rem;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.05);
}

.legal-pad h2,
.legal-pad .price,
.legal-pad ul {
  border-left: 2px solid rgba(220, 38, 38, 0.28);
  padding-left: 1.3rem;
}

.legal-pad h2 {
  margin: 0 0 0.4rem;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-pad .price {
  margin: 0 0 1.8rem;
  font: italic 900 2.5rem/1 "Newsreader", Georgia, serif;
}

.legal-pad .price span {
  color: #666;
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 500;
}

.legal-pad ul {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0 0 2rem;
  padding-top: 0;
}

.legal-pad li {
  position: relative;
  padding-left: 1.8rem;
}

.legal-pad li::before {
  content: "edit";
  position: absolute;
  left: 0;
  top: -0.1rem;
  color: #148a3b;
  font-family: "Material Icons";
  font-size: 1.1rem;
}

.legal-pad li.muted {
  color: #8a8a82;
  text-decoration: line-through;
}

.legal-pad li.muted::before {
  content: "close";
  color: #9a9a93;
}

.legal-pad button,
.launch-notice button {
  min-height: 3rem;
  margin-top: auto;
  border: 0;
  border-radius: 0.25rem;
  background: var(--primary);
  color: #181818;
  cursor: pointer;
  font: 900 0.82rem/1 var(--display);
  letter-spacing: 0.08em;
  padding: 0 1rem;
  text-transform: uppercase;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
}

.subscribe-credit {
  margin-top: 3.5rem;
  color: #666;
  text-align: center;
}

.subscribe-disclaimer {
  width: min(100%, 44rem);
  margin: 3rem auto 0;
  padding: 1.4rem 1.6rem;
  border: 1px solid #d8d8cc;
  border-left: 5px solid var(--primary);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.subscribe-disclaimer h2 {
  margin: 0 0 0.7rem;
  font: 900 0.82rem/1 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subscribe-disclaimer p {
  margin: 0.45rem 0 0;
  color: #555;
  line-height: 1.6;
}

.launch-notice {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.launch-notice.is-open {
  display: flex;
}

.launch-notice > div {
  width: min(100%, 36rem);
  padding: 2.5rem;
  border: 1px solid #ddd;
  border-radius: 0.75rem;
  background: #fff;
  text-align: center;
}

.launch-notice h2 {
  margin: 0 0 1rem;
  font-family: "Newsreader", Georgia, serif;
  font-size: 2rem;
  line-height: 1.1;
}

.launch-notice em {
  box-shadow: inset 0 -0.45em 0 rgba(230, 230, 0, 0.42);
}

.launch-notice p {
  color: #555;
  line-height: 1.65;
}

.ruled-paper {
  background-color: #fff;
  background-image:
    linear-gradient(90deg, transparent 79px, var(--blue-line) 79px, var(--blue-line) 81px, transparent 81px),
    linear-gradient(#eee 0.1em, transparent 0.1em);
  background-size: 100% 1.5rem;
}

.page-pad {
  min-height: 70vh;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 5vw, 3.5rem) 4rem;
}

.article-pad {
  min-height: 70vh;
  padding: clamp(2.25rem, 6vw, 4rem) clamp(1.25rem, 7vw, 6rem) 4rem;
}

.home-header {
  position: relative;
  margin: 0 0 4.5rem;
  text-align: center;
}

.home-header h1 {
  margin: 0 0 0.2rem;
  font-family: var(--hand);
  font-size: clamp(2.7rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 0.95;
  transform: rotate(-1deg);
}

.home-header p {
  margin: 0;
  color: #606060;
  font-size: clamp(0.55rem, 1.2vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.home-header span {
  position: absolute;
  top: -0.6rem;
  right: 8%;
  color: rgba(0, 0, 0, 0.32);
  font-family: var(--scribble);
  font-size: 1.25rem;
  transform: rotate(12deg);
}

.section-block {
  margin-bottom: 3.8rem;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.section-title-row h2,
.featured-note h2,
.docket-panel > h2,
.related-posts h2,
.subpages h2 {
  margin: 0;
  font-family: var(--hand);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1;
}

.section-title-row h2 {
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 0.25rem;
  text-underline-offset: 0.35rem;
}

.journal-link {
  border-bottom: 2px solid #000;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding-bottom: 0.2rem;
  text-transform: uppercase;
}

.journal-link:hover {
  background: var(--primary);
}

.polaroid-grid,
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 4vw, 3rem);
}

.polaroid-card {
  position: relative;
}

.polaroid-card:nth-child(3n + 1) {
  transform: rotate(-2deg);
}

.polaroid-card:nth-child(3n + 2) {
  transform: rotate(1deg);
}

.polaroid-card:nth-child(3n) {
  transform: rotate(3deg);
}

.polaroid-card a {
  position: relative;
  display: block;
  min-height: 100%;
  padding: 0.65rem 0.65rem 2.1rem;
  background: #fff;
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.13);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.polaroid-card a:hover {
  transform: scale(1.025);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.polaroid-card img,
.polaroid-fallback {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 0.9rem;
  background: #eeeeea;
  filter: grayscale(1);
  transition: filter 180ms ease;
}

.polaroid-card a:hover img {
  filter: grayscale(0);
}

.polaroid-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
}

.tape {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  z-index: 2;
  width: 5rem;
  height: 1.55rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(2px);
  transform: translateX(-50%) rotate(-2deg);
}

.polaroid-card h3 {
  margin: 0;
  font-family: var(--hand);
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  line-height: 1.02;
}

.polaroid-card time {
  display: block;
  margin-top: 0.5rem;
  color: #888;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.empty-note {
  grid-column: 1 / -1;
  color: #666;
  font-family: var(--hand);
  font-size: 1.55rem;
  text-align: center;
}

.archive-link-row {
  display: flex;
  justify-content: center;
  margin: 3.2rem 0 2rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(242, 242, 13, 0.45);
}

.archive-link-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.archive-link-row span:first-child {
  color: #777;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.archive-link-row i {
  display: block;
  width: 3rem;
  height: 1px;
  background: #d9d9d0;
  transition: width 180ms ease, background 180ms ease;
}

.archive-link-row a:hover i {
  width: 5rem;
  background: var(--primary);
}

.docket-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4rem);
  padding-top: 3.5rem;
  border-top: 2px solid #f0f0ea;
}

.featured-note {
  position: relative;
  padding: 2rem;
  border: 2px dashed rgba(242, 242, 13, 0.7);
  border-radius: 0.75rem;
  background: rgba(242, 242, 13, 0.07);
}

.label-tape {
  position: absolute;
  top: -1rem;
  left: 1.4rem;
  display: inline-block;
  background: var(--primary);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.6rem;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.featured-note ul,
.tag-grid,
.subpages ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.featured-note li {
  margin-top: 1.4rem;
}

.featured-note small {
  display: block;
  color: #888;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.featured-note strong {
  font-size: 1.05rem;
  line-height: 1.35;
}

.featured-note a:hover strong {
  background: var(--primary);
}

.docket-panel {
  display: grid;
  gap: 1.15rem;
}

.docket-panel article,
.status-card,
.author-bio {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem;
  border: 1px solid #e0e0d8;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.docket-panel article:nth-of-type(1) {
  transform: rotate(1deg);
}

.docket-panel article:nth-of-type(2) {
  transform: rotate(-1deg);
}

.docket-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  font-size: 1.35rem;
  font-weight: 800;
}

.docket-icon.code {
  background: #f0f0ea;
  font-size: 1.1rem;
}

.docket-panel small,
.status-card small,
.archive-header span,
.article-kicker {
  display: block;
  color: #888;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docket-panel h3,
.docket-panel p {
  margin: 0.1rem 0 0;
}

.docket-panel h3 {
  font-size: 1rem;
}

.docket-panel p {
  color: #666;
  font-size: 0.8rem;
}

.status-card {
  justify-content: space-between;
  align-items: center;
  border-color: rgba(242, 242, 13, 0.45);
  border-radius: 0.5rem;
  background: rgba(242, 242, 13, 0.16);
}

.status-card strong {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--hand);
  font-size: 1.25rem;
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem clamp(1.5rem, 5vw, 3.5rem);
  border-top: 1px solid #dfdfd6;
  background: #fafaf7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  color: #666;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: #000;
}

.footer-mark {
  text-align: right;
}

.footer-mark p {
  margin: 0;
  font-family: var(--hand);
  font-size: 1.3rem;
}

.footer-mark small {
  color: #888;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-page,
.archive-header {
  max-width: 46rem;
}

.article-header {
  margin-bottom: 2.3rem;
}

.article-header h1,
.archive-header h1,
.error-page h1 {
  margin: 0.25rem 0 0.8rem;
  font-family: var(--hand);
  font-size: clamp(2.25rem, 6vw, 3.8rem);
  line-height: 0.95;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  color: #666;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-meta a {
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 0.2rem;
  text-underline-offset: 0.25rem;
}

.featured-image {
  margin: 0 0 2.5rem;
  padding: 0.7rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.featured-image img {
  width: 100%;
}

.featured-image figcaption {
  color: #777;
  font-size: 0.8rem;
  padding: 0.7rem 0.4rem 0;
}

.content-body {
  font-size: 0.98rem;
  line-height: 1.85;
}

.content-body > *:first-child {
  margin-top: 0;
}

.content-body a {
  background: linear-gradient(transparent 62%, rgba(242, 242, 13, 0.55) 0);
  font-weight: 700;
}

.content-body h2,
.content-body h3 {
  line-height: 1.2;
  margin-top: 2.2rem;
}

.content-body blockquote {
  margin: 2rem 0;
  padding: 1rem 1.4rem;
  border-left: 0.25rem solid var(--primary);
  background: rgba(242, 242, 13, 0.12);
  font-family: var(--type);
}

.content-body img {
  border-radius: 0.5rem;
  margin: 1.6rem auto;
}

.author-bio {
  margin-top: 3rem;
  border-left: 0.35rem solid var(--primary);
}

.author-bio img {
  flex: 0 0 4rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
}

.author-bio h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 46rem;
  margin-top: 3rem;
  padding-top: 1.3rem;
  border-top: 1px solid #e3e3dc;
  font-family: var(--hand);
  font-size: 1.2rem;
}

.related-posts {
  margin-top: 4rem;
}

.mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.page-document .article-header {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #e7e7df;
}

.subpages {
  margin-top: 3rem;
  padding: 1.4rem;
  border: 2px dashed rgba(242, 242, 13, 0.7);
  background: rgba(255, 255, 255, 0.65);
}

.subpages li {
  margin-top: 0.65rem;
}

.subpages a {
  font-weight: 700;
}

.archive-header {
  margin-bottom: 2.5rem;
}

.archive-header p {
  color: #666;
  font-size: 1.05rem;
}

.author-header img {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tag-grid a {
  min-height: 7rem;
  padding: 1.2rem;
  border: 1px solid #e2e2da;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: rotate(-1deg);
}

.tag-grid a:nth-child(even) {
  transform: rotate(1deg);
}

.tag-grid strong {
  display: block;
  font-family: var(--hand);
  font-size: 1.55rem;
  line-height: 1;
}

.tag-grid span {
  display: block;
  margin-top: 0.7rem;
  color: #777;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  color: #666;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pagination a,
.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  background: var(--primary);
  color: #111;
  font-weight: 800;
}

.search-box input,
.search-box [type="search"] {
  width: 100%;
  min-height: 3.4rem;
  border: 0;
  border-bottom: 3px solid var(--primary);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  font: 700 1.1rem/1 var(--display);
  padding: 0.8rem 1rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.search-help {
  color: #666;
  font-size: 0.82rem;
  margin: 0.8rem 0 0;
}

.search-results {
  margin-top: 2rem;
}

.search-result {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #e1e1d8;
  background: rgba(255, 255, 255, 0.8);
}

.search-result h2 {
  margin: 0 0 0.35rem;
  font-family: var(--hand);
  font-size: 1.6rem;
  line-height: 1;
}

.search-result p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.55;
}

.error-page {
  text-align: center;
}

.error-page p {
  font-size: 1rem;
}

.custom-html {
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .polaroid-grid,
  .mini-grid,
  .tag-grid,
  .docket-grid,
  .about-document,
  .subscribe-tiers {
    grid-template-columns: 1fr;
  }

  .home-header span {
    display: none;
  }

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

  .footer-mark {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .site-nav {
    width: min(100% - 1rem, 72rem);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    border: 1px solid #e3e3dc;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  }

  .nav-links.is-open {
    display: flex;
  }

  .assigned-menu .menu {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
  }

  .assigned-menu .submenu {
    position: static;
    display: none;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    margin-top: 0.3rem;
    border-left: 2px solid rgba(242, 242, 13, 0.6);
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .assigned-menu li:hover > .submenu,
  .assigned-menu li:focus-within > .submenu {
    display: block;
  }

  .nav-dropdown-panel {
    position: static;
    display: none;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    margin-top: 0.3rem;
    border-left: 2px solid rgba(242, 242, 13, 0.6);
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .nav-dropdown.is-open .nav-dropdown-panel {
    display: block;
  }

  .icon-link {
    display: none;
  }

  .paper-shell {
    width: 95vw;
    margin-bottom: 2rem;
  }

  .section-title-row,
  .post-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .polaroid-card {
    transform: none !important;
  }
}
