:root {
  color: #1d2419;
  background: #f5f3eb;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.65;
  --surface: #fcfbf7;
  --surface-soft: rgba(255, 255, 255, 0.68);
  --ink-muted: #596251;
  --line: rgba(29, 36, 25, 0.14);
  --accent: #314526;
  --accent-soft: #dce7d1;
  --focus: #78935f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 16% 0%, rgba(178, 196, 153, 0.32), transparent 34rem),
    #f5f3eb;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.65rem 0.9rem;
  border-radius: 0.55rem;
  background: #182013;
  color: #fff;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 243, 235, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(72rem, calc(100% - 2rem));
  min-height: 4.5rem;
  margin: 0 auto;
  gap: 1.5rem;
}

.brand {
  flex: 0 0 auto;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.primary-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.primary-nav a,
.site-footer nav a {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  color: #3f4939;
  font-size: 0.92rem;
  font-weight: 720;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: #203318;
}

.page-shell {
  width: min(72rem, calc(100% - 2rem));
  min-height: calc(100vh - 12rem);
  margin: 0 auto;
  padding: 5.5rem 0 7rem;
}

.route-hero {
  max-width: 52rem;
  padding: 0 0 4.5rem;
}

.eyebrow,
.section-label {
  margin: 0 0 0.75rem;
  color: #536646;
  font-size: 0.76rem;
  font-weight: 830;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7.5vw, 6.3rem);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 1;
}

.intro {
  max-width: 40rem;
  margin: 1.8rem 0 0;
  color: #4d5747;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.route-status {
  min-height: 1.75rem;
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.route-status:empty {
  display: none;
}

.route-content {
  display: grid;
  gap: 4.5rem;
}

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

.content-heading {
  margin: 0 0 1.5rem;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.content-section-body {
  display: grid;
  gap: 1.25rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}

.post-card,
.category-card,
.prose-card,
.article-shell,
.notice-panel,
.auth-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--surface-soft);
  box-shadow: 0 1.5rem 4rem rgba(36, 47, 29, 0.055);
}

.post-card {
  min-height: 17rem;
  padding: 1.45rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 2.2rem;
  color: #65705d;
  font-size: 0.8rem;
}

.post-category {
  font-weight: 760;
}

.post-date {
  font-variant-numeric: tabular-nums;
}

.post-title {
  margin: 0;
  font-size: 1.38rem;
  line-height: 1.3;
}

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

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

.post-summary,
.category-description {
  margin: 0.9rem 0 0;
  color: #50594a;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
}

.category-card {
  padding: 1.6rem;
}

.category-card h2 {
  margin: 0;
  font-size: 1.5rem;
}

.category-card h2 a {
  text-decoration: none;
}

.category-card h2 a:hover {
  text-decoration: underline;
}

.article-shell,
.prose-card {
  padding: clamp(1.4rem, 4vw, 3.5rem);
}

.article-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 3rem;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.article-meta dt,
.account-summary dt {
  color: #65705d;
  font-size: 0.78rem;
  font-weight: 760;
}

.article-meta dd,
.account-summary dd {
  margin: 0.3rem 0 0;
  font-weight: 720;
}

.article-body {
  max-width: 45rem;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.85;
}

.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5 {
  margin: 2.5em 0 0.7em;
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  line-height: 1.3;
}

.article-body p,
.prose-card p {
  margin: 0 0 1.35em;
}

.article-body blockquote {
  margin: 1.8rem 0;
  padding: 0.2rem 0 0.2rem 1.25rem;
  border-left: 3px solid #8fa37c;
  color: #4e5947;
}

.article-body pre {
  overflow: auto;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #22291e;
  color: #f4f4ee;
  font-size: 0.88em;
}

.article-body :not(pre) > code {
  padding: 0.12em 0.35em;
  border-radius: 0.3em;
  background: #e8eadf;
  font-size: 0.9em;
}

.prose-card {
  max-width: 48rem;
  color: #46503f;
  font-size: 1.08rem;
}

.text-link {
  justify-self: start;
  font-weight: 780;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(24, 32, 19, 0.22);
  border-radius: 0.7rem;
  background: var(--surface);
  color: #182013;
  font: inherit;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button:hover:not(:disabled) {
  filter: brightness(0.96);
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.load-more {
  margin-top: 1.5rem;
}

.notice-panel,
.empty-state {
  padding: 1.5rem;
}

.notice-panel h2,
.notice-panel p,
.empty-state {
  margin-top: 0;
}

.notice-panel .notice-action {
  margin-top: 0.35rem;
}

.notice-error {
  border-color: rgba(137, 56, 43, 0.3);
  background: #fff5f1;
}

.auth-card {
  margin-top: 4.5rem;
  padding: 1.6rem;
}

.editor-root,
.editor-shell,
.author-dashboard {
  min-width: 0;
}

.editor-shell,
.author-dashboard {
  display: grid;
  gap: 1.25rem;
}

.editor-heading-row,
.editor-status-line,
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.editor-heading-row h2,
.editor-preview h3,
.author-post-card h3 {
  margin: 0;
}

.editor-metadata {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 720;
}

.editor-form,
.editor-preview,
.editor-media,
.author-post-card {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--surface-soft);
  box-shadow: 0 1.5rem 4rem rgba(36, 47, 29, 0.055);
}

.editor-form,
.editor-preview,
.editor-media {
  padding: clamp(1.2rem, 3vw, 2rem);
}

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

.editor-field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  color: #46503f;
  font-size: 0.9rem;
  font-weight: 760;
}

.editor-field:has(textarea),
.editor-field-full,
.editor-actions {
  grid-column: 1 / -1;
}

.editor-field input,
.editor-field textarea,
.editor-field select {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(29, 36, 25, 0.24);
  border-radius: 0.65rem;
  background: #fffefa;
  color: #1d2419;
  font: inherit;
  font-weight: 500;
}

.editor-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.editor-field .markdown-input {
  min-height: 28rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.55;
}

.editor-field input:disabled,
.editor-field textarea:disabled,
.editor-field select:disabled {
  background: #ecebe4;
  color: #646960;
}

.editor-preview {
  display: grid;
  gap: 1.25rem;
}

.editor-media {
  display: grid;
  gap: 1rem;
}

.editor-media h3,
.editor-media h4 {
  margin: 0;
}

.media-picker {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.media-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.media-picker.button-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.editor-media-help,
.editor-media-detail {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.55;
}

.editor-media-status {
  justify-self: start;
}

.editor-media-subheading {
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}

.editor-media-list {
  display: grid;
  gap: 0.9rem;
}

.editor-media-list:empty {
  display: none;
}

.editor-media-card {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fffefa;
}

.editor-media-preview,
.editor-media-placeholder {
  width: 100%;
  min-height: 8rem;
  max-height: 12rem;
  border-radius: 0.7rem;
  background: #e9e9e1;
}

.editor-media-preview {
  display: block;
  object-fit: contain;
}

.editor-media-placeholder {
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--ink-muted);
  text-align: center;
}

.editor-media-content {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-width: 0;
}

.editor-media-name {
  overflow-wrap: anywhere;
}

.editor-media-item-status {
  margin: 0;
  color: #634e0b;
  font-weight: 750;
}

.editor-media-item-status[data-state="ready"] {
  color: #214d28;
}

.editor-media-item-status[data-state="error"] {
  color: #792f24;
}

.editor-media-progress {
  width: 100%;
  accent-color: #587145;
}

.editor-media-alt {
  display: grid;
  gap: 0.35rem;
  color: #46503f;
  font-size: 0.86rem;
  font-weight: 740;
}

.editor-media-alt input {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(29, 36, 25, 0.24);
  border-radius: 0.6rem;
  background: #fffefa;
  font: inherit;
  font-weight: 500;
}

.editor-media-retry {
  justify-self: start;
}

.editor-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.protected-root,
.account-management {
  display: grid;
  gap: 1.25rem;
}

.account-list {
  display: grid;
  gap: 0.75rem;
}

.account-row {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) repeat(2, minmax(8rem, auto)) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.account-identity,
.account-nickname-field {
  display: grid;
  gap: 0.4rem;
}

.account-identity strong {
  overflow-wrap: anywhere;
}

.account-nickname-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.account-nickname-field input {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--cream-50, #fcfaf6);
  color: var(--ink);
  font: inherit;
}

.danger-zone {
  padding: 1.25rem;
  border: 1px solid #b64b45;
  border-radius: 1rem;
}

.button-danger {
  color: #fff;
  background: #8f2f2a;
  border-color: #8f2f2a;
}

@media (max-width: 760px) {
  .account-row {
    grid-template-columns: 1fr;
  }
}

.article-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 0.8rem;
}

.editor-preview-body {
  width: 100%;
  min-height: 10rem;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 42rem) {
  .editor-media-card {
    grid-template-columns: 1fr;
  }

  .editor-media-preview,
  .editor-media-placeholder {
    max-height: 18rem;
  }
}

.editor-recovery {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.editor-recovery p {
  flex: 1 1 24rem;
  margin: 0;
}

.author-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}

.author-post-card {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  min-height: 14rem;
  padding: 1.4rem;
}

.author-post-card .button {
  justify-self: start;
  margin-top: auto;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.15;
}

.auth-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.status {
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: #efe7cb;
  color: #634e0b;
  font-size: 0.9rem;
  font-weight: 750;
}

.status[data-state="ready"] {
  background: #dcebd2;
  color: #214d28;
}

.status[data-state="error"] {
  background: #f4d8d2;
  color: #792f24;
}

.account-summary {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

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

.account-help {
  margin: 1rem 0 0;
  color: #50594a;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(239, 237, 228, 0.8);
}

.site-footer p {
  margin: 0;
  font-weight: 820;
  letter-spacing: 0.08em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 44rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
    gap: 0.6rem;
  }

  .primary-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
  }

  .primary-nav a {
    white-space: nowrap;
  }

  .page-shell {
    padding-top: 3.5rem;
  }

  .route-hero {
    padding-bottom: 3rem;
  }

  .article-meta,
  .auth-heading,
	.account-summary dl,
	.editor-form {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.25rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* v1 visual language on the v2 static application. */
:root {
  --brown-950: #2f211a;
  --brown-800: #54392b;
  --brown-700: #684937;
  --brown-500: #9b755d;
  --cream-50: #fcfaf6;
  --cream-100: #f4eee4;
  --cream-200: #e9dfcf;
  --sage-100: #e8eedf;
  --sage-300: #cdd9bd;
  --sage-700: #52633f;
  --ink: #292522;
  --muted: #625d57;
  --line: rgba(84, 57, 43, 0.24);
  --positive: #386038;
  --positive-soft: #e5f0e2;
  --warning: #80541c;
  --warning-soft: #f7ead2;
  --danger: #7b3024;
  --danger-soft: #f8e7e2;
  --info: #425f70;
  --info-soft: #e7eff3;
  --surface: #fff;
  --surface-soft: #fff;
  --ink-muted: var(--muted);
  --accent: var(--brown-800);
  --accent-soft: var(--sage-100);
  --focus: var(--sage-700);
  --surface-shadow: 0 18px 48px rgba(84, 57, 43, 0.08);
  --shell: min(1120px, calc(100% - 40px));
  color: var(--ink);
  background: var(--cream-50);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream-50);
  color: var(--ink);
  text-rendering: optimizeLegibility;
}

.ink-transition-layer {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  contain: strict;
}

/* Same-origin pages reveal through overlapping, soft-edged ink blooms. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  .site-header {
    view-transition-name: seropda-header;
  }

  .ink-transition-layer {
    view-transition-name: seropda-ink-layer;
  }

  ::view-transition-group(root),
  ::view-transition-group(seropda-header),
  ::view-transition-group(seropda-ink-layer) {
    animation-duration: 640ms;
  }

  ::view-transition-group(root) {
    z-index: 0;
  }

  ::view-transition-group(seropda-ink-layer) {
    z-index: 1;
    animation: none;
  }

  ::view-transition-group(seropda-header) {
    z-index: 2;
    animation: none;
  }

  ::view-transition-old(seropda-header) {
    opacity: 1;
    mix-blend-mode: normal;
    animation: none;
  }

  ::view-transition-new(seropda-header) {
    opacity: 0;
    mix-blend-mode: normal;
    animation: none;
  }

  ::view-transition-old(seropda-ink-layer) {
    opacity: 0;
    animation: none;
  }

  ::view-transition-old(root) {
    mix-blend-mode: normal;
    animation: seropda-ink-hold 640ms linear both;
  }

  ::view-transition-new(root),
  ::view-transition-new(seropda-ink-layer) {
    -webkit-mask-position: 2% 8%, 82% 4%, 44% 38%, 8% 84%, 92% 72%, 58% 102%;
    mask-position: 2% 8%, 82% 4%, 44% 38%, 8% 84%, 92% 72%, 58% 102%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  ::view-transition-new(root) {
    mix-blend-mode: normal;
    -webkit-mask-image:
      radial-gradient(ellipse at 44% 52%, #000 0 57%, rgba(0, 0, 0, 0.96) 63%, transparent 71%),
      radial-gradient(ellipse at 56% 46%, #000 0 59%, rgba(0, 0, 0, 0.95) 65%, transparent 73%),
      radial-gradient(ellipse at 48% 58%, #000 0 55%, rgba(0, 0, 0, 0.94) 62%, transparent 71%),
      radial-gradient(ellipse at 54% 44%, #000 0 60%, rgba(0, 0, 0, 0.96) 66%, transparent 74%),
      radial-gradient(ellipse at 46% 50%, #000 0 56%, rgba(0, 0, 0, 0.95) 62%, transparent 70%),
      radial-gradient(ellipse at 52% 56%, #000 0 58%, rgba(0, 0, 0, 0.96) 64%, transparent 72%);
    mask-image:
      radial-gradient(ellipse at 44% 52%, #000 0 57%, rgba(0, 0, 0, 0.96) 63%, transparent 71%),
      radial-gradient(ellipse at 56% 46%, #000 0 59%, rgba(0, 0, 0, 0.95) 65%, transparent 73%),
      radial-gradient(ellipse at 48% 58%, #000 0 55%, rgba(0, 0, 0, 0.94) 62%, transparent 71%),
      radial-gradient(ellipse at 54% 44%, #000 0 60%, rgba(0, 0, 0, 0.96) 66%, transparent 74%),
      radial-gradient(ellipse at 46% 50%, #000 0 56%, rgba(0, 0, 0, 0.95) 62%, transparent 70%),
      radial-gradient(ellipse at 52% 56%, #000 0 58%, rgba(0, 0, 0, 0.96) 64%, transparent 72%);
    filter:
      drop-shadow(0 0 4px rgba(84, 57, 43, 0.58))
      drop-shadow(0 0 12px rgba(84, 57, 43, 0.24));
    animation: seropda-ink-reveal 640ms cubic-bezier(0.55, 0.05, 0.24, 1) both;
  }

  ::view-transition-new(seropda-ink-layer) {
    -webkit-mask-image:
      radial-gradient(ellipse at 44% 52%, transparent 0 53%, rgba(0, 0, 0, 0.38) 57%, #000 63%, transparent 71%),
      radial-gradient(ellipse at 56% 46%, transparent 0 55%, rgba(0, 0, 0, 0.36) 59%, #000 65%, transparent 73%),
      radial-gradient(ellipse at 48% 58%, transparent 0 51%, rgba(0, 0, 0, 0.4) 56%, #000 62%, transparent 71%),
      radial-gradient(ellipse at 54% 44%, transparent 0 56%, rgba(0, 0, 0, 0.36) 60%, #000 66%, transparent 74%),
      radial-gradient(ellipse at 46% 50%, transparent 0 52%, rgba(0, 0, 0, 0.4) 56%, #000 62%, transparent 70%),
      radial-gradient(ellipse at 52% 56%, transparent 0 54%, rgba(0, 0, 0, 0.38) 58%, #000 64%, transparent 72%);
    mask-image:
      radial-gradient(ellipse at 44% 52%, transparent 0 53%, rgba(0, 0, 0, 0.38) 57%, #000 63%, transparent 71%),
      radial-gradient(ellipse at 56% 46%, transparent 0 55%, rgba(0, 0, 0, 0.36) 59%, #000 65%, transparent 73%),
      radial-gradient(ellipse at 48% 58%, transparent 0 51%, rgba(0, 0, 0, 0.4) 56%, #000 62%, transparent 71%),
      radial-gradient(ellipse at 54% 44%, transparent 0 56%, rgba(0, 0, 0, 0.36) 60%, #000 66%, transparent 74%),
      radial-gradient(ellipse at 46% 50%, transparent 0 52%, rgba(0, 0, 0, 0.4) 56%, #000 62%, transparent 70%),
      radial-gradient(ellipse at 52% 56%, transparent 0 54%, rgba(0, 0, 0, 0.38) 58%, #000 64%, transparent 72%);
    background: rgba(84, 57, 43, 0.78);
    mix-blend-mode: multiply;
    animation: seropda-ink-stain 640ms cubic-bezier(0.5, 0.02, 0.22, 1) both;
  }
}

@keyframes seropda-ink-hold {
  0%,
  76% {
    opacity: 1;
  }

  100% {
    opacity: 0.86;
  }
}

@keyframes seropda-ink-reveal {
  0% {
    opacity: 0.96;
    -webkit-mask-size: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    mask-size: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  }

  24% {
    -webkit-mask-size: 44vmax 38vmax, 18vmax 24vmax, 12vmax 10vmax, 0 0, 8vmax 11vmax, 0 0;
    mask-size: 44vmax 38vmax, 18vmax 24vmax, 12vmax 10vmax, 0 0, 8vmax 11vmax, 0 0;
  }

  52% {
    -webkit-mask-size: 96vmax 82vmax, 72vmax 86vmax, 64vmax 56vmax, 46vmax 58vmax, 52vmax 44vmax, 30vmax 38vmax;
    mask-size: 96vmax 82vmax, 72vmax 86vmax, 64vmax 56vmax, 46vmax 58vmax, 52vmax 44vmax, 30vmax 38vmax;
  }

  78% {
    -webkit-mask-size: 164vmax 148vmax, 142vmax 158vmax, 138vmax 124vmax, 116vmax 134vmax, 128vmax 112vmax, 102vmax 118vmax;
    mask-size: 164vmax 148vmax, 142vmax 158vmax, 138vmax 124vmax, 116vmax 134vmax, 128vmax 112vmax, 102vmax 118vmax;
  }

  100% {
    opacity: 1;
    -webkit-mask-size: 270vmax 240vmax, 250vmax 270vmax, 240vmax 220vmax, 230vmax 250vmax, 236vmax 214vmax, 226vmax 246vmax;
    mask-size: 270vmax 240vmax, 250vmax 270vmax, 240vmax 220vmax, 230vmax 250vmax, 236vmax 214vmax, 226vmax 246vmax;
  }
}

@keyframes seropda-ink-stain {
  0% {
    opacity: 0.46;
    -webkit-mask-size: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    mask-size: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  }

  24% {
    opacity: 0.56;
    -webkit-mask-size: 52vmax 44vmax, 26vmax 34vmax, 18vmax 15vmax, 8vmax 11vmax, 14vmax 12vmax, 6vmax 9vmax;
    mask-size: 52vmax 44vmax, 26vmax 34vmax, 18vmax 15vmax, 8vmax 11vmax, 14vmax 12vmax, 6vmax 9vmax;
  }

  52% {
    opacity: 0.46;
    -webkit-mask-size: 108vmax 92vmax, 84vmax 98vmax, 76vmax 66vmax, 58vmax 72vmax, 64vmax 55vmax, 42vmax 52vmax;
    mask-size: 108vmax 92vmax, 84vmax 98vmax, 76vmax 66vmax, 58vmax 72vmax, 64vmax 55vmax, 42vmax 52vmax;
  }

  78% {
    opacity: 0.22;
    -webkit-mask-size: 180vmax 160vmax, 160vmax 178vmax, 154vmax 138vmax, 132vmax 150vmax, 142vmax 124vmax, 118vmax 136vmax;
    mask-size: 180vmax 160vmax, 160vmax 178vmax, 154vmax 138vmax, 132vmax 150vmax, 142vmax 124vmax, 118vmax 136vmax;
  }

  100% {
    opacity: 0;
    -webkit-mask-size: 282vmax 250vmax, 262vmax 282vmax, 252vmax 232vmax, 242vmax 264vmax, 248vmax 226vmax, 238vmax 258vmax;
    mask-size: 282vmax 250vmax, 262vmax 282vmax, 252vmax 232vmax, 242vmax 264vmax, 248vmax 226vmax, 238vmax 258vmax;
  }
}

main {
  flex: 1 0 auto;
}

a {
  text-decoration: none;
}

.site-header {
  position: relative;
  top: auto;
  z-index: 10;
  border-bottom: 0;
  background: var(--cream-50);
  backdrop-filter: none;
}

.header-inner,
.footer-inner {
  width: var(--shell);
}

.header-inner {
  min-height: 82px;
  gap: 32px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  color: var(--brown-800);
  line-height: 1;
  letter-spacing: normal;
}

.brand-primary {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-secondary {
  color: var(--sage-700);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
}

.site-navigation {
  margin-left: auto;
}

.menu-toggle {
  display: none;
}

.primary-nav {
  align-items: center;
  flex-wrap: nowrap;
  gap: 26px;
  color: var(--brown-800);
  font-size: 0.94rem;
  font-weight: 650;
}

.primary-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: transparent;
  color: var(--sage-700);
}

.primary-nav a[aria-current="page"] {
  background: transparent;
  color: var(--sage-700);
  font-weight: 800;
}

.primary-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  content: "";
}

.page-shell {
  width: var(--shell);
  min-height: 62vh;
  padding: 78px 0 112px;
}

.route-hero {
  max-width: 780px;
  margin-bottom: 58px;
  padding: 0 0 46px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--sage-700);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1 {
  max-width: 18ch;
  color: var(--brown-950);
  font-family: inherit;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.08;
  word-break: keep-all;
}

.intro {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  word-break: keep-all;
}

.route-content {
  gap: 48px;
}

.content-heading,
.section-heading h2 {
  margin: 0 0 42px;
  color: var(--brown-950);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.2;
  word-break: keep-all;
}

.content-section-body {
  gap: 20px;
}

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

.post-card,
.category-card,
.prose-card,
.article-shell,
.notice-panel,
.auth-card,
.empty-state,
.editor-form,
.editor-preview,
.editor-media,
.author-post-card {
  border: 1px solid var(--line);
  border-radius: 4px 28px 4px 4px;
  background: #fff;
  box-shadow: none;
}

.post-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(84, 57, 43, 0.1);
}

.post-meta {
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.post-category {
  color: var(--sage-700);
  font-weight: 800;
}

.post-category::after {
  width: 3px;
  height: 3px;
  display: inline-block;
  margin-left: 12px;
  vertical-align: middle;
  background: var(--brown-500);
  border-radius: 50%;
  content: "";
}

.visibility-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  color: var(--brown-800);
  background: var(--cream-200);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.post-title {
  margin: 30px 0 14px;
  color: var(--brown-950);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.post-summary,
.category-description {
  margin: 0 0 28px;
  color: var(--muted);
}

.post-card .post-read-link {
  margin-top: auto;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 20px;
}

.category-card {
  min-height: 180px;
  padding: 30px;
}

.category-card h2 {
  color: var(--brown-950);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.article-shell,
.prose-card {
  padding: clamp(28px, 5vw, 56px);
}

.article-meta {
  border-bottom-color: var(--line);
}

.article-meta dt,
.account-summary dt {
  color: var(--sage-700);
  font-weight: 800;
}

.article-body {
  max-width: 760px;
  color: var(--ink);
  font-family: inherit;
  line-height: 1.9;
}

.article-body blockquote {
  border-left-color: var(--sage-700);
  color: var(--muted);
}

.prose-card {
  max-width: 820px;
  color: var(--muted);
}

.text-link {
  position: relative;
  z-index: 1;
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--brown-800);
  font-size: 0.9rem;
  font-weight: 800;
  border-bottom: 1px solid var(--brown-500);
}

.text-link::after {
  margin-left: 8px;
  content: "→";
}

.button {
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid var(--brown-500);
  border-radius: 999px;
  background: transparent;
  color: var(--brown-800);
  font-weight: 750;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button-primary {
  border-color: var(--brown-800);
  background: var(--brown-800);
  color: #fff;
}

.button:hover:not(:disabled) {
  filter: none;
  transform: translateY(-2px);
}

.button-primary:hover:not(:disabled) {
  background: var(--brown-950);
}

.notice-panel,
.empty-state {
  padding: 30px;
  color: var(--muted);
}

.notice-error {
  border-color: rgba(123, 48, 36, 0.35);
  background: var(--danger-soft);
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 22px;
  margin-top: 48px;
  padding: 14px 22px;
}

.auth-card > .status,
.auth-card > .account-summary {
  grid-column: 1;
  grid-row: 1;
}

.auth-card .auth-actions {
  grid-column: 2;
  grid-row: 1;
  flex-wrap: nowrap;
  margin: 0;
}

.auth-card .auth-actions .button {
  min-height: 40px;
  padding: 8px 18px;
}

.auth-card .account-summary {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.auth-card .account-summary dl {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}

.auth-card .account-summary dl > div {
  min-width: 0;
  display: flex;
  align-items: center;
}

.auth-card .account-summary dl > div + div::before {
  margin-right: 12px;
  color: var(--brown-500);
  content: "·";
}

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

.auth-card .account-summary dd {
  max-width: 32ch;
  margin: 0;
  overflow: hidden;
  color: var(--brown-950);
  font-size: 0.9rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status {
  background: var(--warning-soft);
  color: var(--warning);
}

.status[data-state="ready"] {
  background: var(--positive-soft);
  color: var(--positive);
}

.status[data-state="error"] {
  background: var(--danger-soft);
  color: var(--danger);
}

.editor-form,
.editor-preview,
.editor-media,
.author-post-card {
  box-shadow: none;
}

.editor-field,
.editor-media-alt {
  color: var(--brown-800);
}

.editor-field input,
.editor-field textarea,
.editor-field select,
.editor-media-alt input {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--cream-50);
  color: var(--ink);
}

.editor-media-card,
.account-row {
  border-color: var(--line);
  border-radius: 4px 20px 4px 4px;
  background: #fff;
}

.editor-media-progress {
  accent-color: var(--sage-700);
}

.danger-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 18px;
  padding: 18px 20px;
  border-color: rgba(145, 52, 44, 0.38);
  border-radius: 4px 16px 4px 4px;
  background: #fff;
}

.danger-zone h2,
.danger-zone p {
  margin: 0;
}

.danger-zone h2 {
  color: var(--brown-950);
  font-size: 1rem;
}

.danger-zone p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.danger-zone .button-danger {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 38px;
  padding: 7px 14px;
  font-size: 0.84rem;
}

.button-danger {
  border-color: var(--danger);
  background: var(--danger);
}

.site-footer {
  flex-shrink: 0;
  border-top: 0;
  background: var(--brown-950);
  color: var(--cream-100);
}

.footer-inner {
  min-height: 220px;
  gap: 40px;
}

.footer-brand {
  width: fit-content;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.footer-brand small {
  color: var(--sage-300);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.2;
}

.footer-related {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.site-footer p.footer-related-label {
  margin: 0;
  color: var(--sage-300);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.footer-youtube-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 8px 12px 8px 9px;
  border: 1px solid rgba(244, 238, 228, 0.24);
  border-radius: 10px;
  color: var(--cream-100);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.footer-youtube-link:hover {
  border-color: rgba(244, 238, 228, 0.5);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.youtube-mark {
  width: 28px;
  height: 20px;
  display: inline-flex;
  flex: 0 0 auto;
}

.youtube-mark svg {
  width: 100%;
  height: 100%;
}

.youtube-mark rect {
  fill: #ff0033;
}

.youtube-mark path {
  fill: #fff;
}

.footer-related-copy {
  display: grid;
  gap: 1px;
  line-height: 1.25;
}

.footer-related-copy strong {
  font-size: 0.92rem;
  font-weight: 750;
}

.footer-related-copy span {
  color: rgba(244, 238, 228, 0.68);
  font-size: 0.78rem;
}

/* The home route keeps the v1 full-width section rhythm. */
body[data-route="home"] .page-shell {
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body[data-route="home"] .route-hero {
  order: 1;
  max-width: none;
  min-height: 228px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  grid-template-rows: auto 1fr;
  align-items: end;
  gap: 12px 64px;
  margin: 0;
  padding: 42px max(20px, calc((100vw - 1120px) / 2));
  border: 0;
  background: var(--cream-100);
}

body[data-route="home"] .route-hero .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}

body[data-route="home"] .route-hero h1 {
  grid-column: 1;
  grid-row: 2;
  font-size: clamp(2.35rem, 3.8vw, 3.6rem);
}

body[data-route="home"] .route-hero .intro {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  margin: 0;
  font-size: 1rem;
}

@media (min-width: 901px) {
  body[data-route="home"] .route-hero.without-eyebrow {
    min-height: 0;
    grid-template-rows: auto;
    align-items: center;
  }

  body[data-route="home"] .route-hero.without-eyebrow h1,
  body[data-route="home"] .route-hero.without-eyebrow .intro {
    grid-row: 1;
  }

  body[data-route="home"] .route-hero.without-eyebrow .intro {
    align-self: center;
  }
}

body[data-route="home"] .route-status {
  order: 2;
  width: var(--shell);
  margin: 16px auto 0;
}

body[data-route="home"] .route-content {
  order: 3;
  display: block;
}

body[data-route="home"] .auth-card {
  order: 0;
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 24px;
  margin: 0;
  padding: 8px max(20px, calc((100vw - 1120px) / 2));
  border: 0;
  border-block: 1px solid var(--sage-300);
  border-radius: 0;
  background: var(--sage-100);
}

body[data-route="home"] .auth-actions {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

body[data-route="home"] .auth-actions .button {
  min-height: 40px;
  padding-block: 8px;
}

body[data-route="home"] #auth-sign-out {
  border: 0;
  border-radius: 0;
}

body[data-route="home"] .account-summary {
  grid-column: 1;
  grid-row: 1;
  margin-top: 0;
  padding: 0;
}

body[data-route="home"] .account-summary dl > div:nth-child(2) {
  display: none;
}

.home-previews-section {
  padding: 64px max(20px, calc((100vw - 1120px) / 2)) 96px;
}

.home-preview-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home-preview-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px 28px 4px 4px;
  background: var(--surface-soft);
}

.home-preview-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.home-preview-group-header h3 {
  margin: 0;
  color: var(--brown-950);
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.home-preview-group-header .text-link {
  flex: 0 0 auto;
  font-size: 0.82rem;
}

.home-preview-list {
  flex: 1;
  display: grid;
  gap: 14px;
}

.home-preview-list > * {
  height: 100%;
}

.home-preview-card {
  min-height: 260px;
  padding: 24px;
}

.home-preview-card .post-title {
  margin: 20px 0 10px;
  font-size: 1.35rem;
}

.home-preview-card .post-summary {
  margin-bottom: 20px;
}

.home-preview-empty {
  min-height: 260px;
  margin: 0;
}

.home-about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
  align-items: center;
  gap: clamp(56px, 9vw, 128px);
  padding: 52px max(20px, calc((100vw - 1120px) / 2));
  background: var(--sage-100);
}

.home-about-heading h2 {
  max-width: 14ch;
  margin: 0;
  color: var(--brown-950);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.12;
  word-break: keep-all;
}

.home-about-copy {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.home-about-copy p {
  max-width: 52ch;
  margin: 0;
  color: #4e4a45;
  font-size: 0.98rem;
  line-height: 1.75;
  word-break: keep-all;
}

body[data-route="notices"] .route-hero .intro,
body[data-route="posts"] .route-hero .intro,
body[data-route="resources"] .route-hero .intro {
  display: none;
}

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

body[data-route="about"] .page-shell {
  width: 100%;
  padding: 68px 0 0;
}

body[data-route="about"] .route-hero,
body[data-route="about"] .route-status,
.about-topic-section,
.about-principles-grid {
  width: min(1000px, calc(100% - 40px));
  margin-inline: auto;
}

body[data-route="about"] .route-hero {
  max-width: 860px;
  margin-bottom: 0;
  padding: 0;
  border: 0;
}

body[data-route="about"] .route-hero h1 {
  max-width: none;
  font-size: clamp(3rem, 4.2vw, 3.75rem);
  font-weight: 650;
}

body[data-route="about"] .route-hero .intro {
  max-width: 62ch;
  margin-top: 24px;
  font-size: 1.04rem;
  line-height: 1.85;
}

body[data-route="about"] .route-content {
  gap: 0;
}

.about-topic-section {
  margin-top: 34px;
}

.about-topic-list {
  display: grid;
  gap: 4px;
}

.about-topic-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: start;
  gap: 38px;
  padding: 24px 40px;
  transition: background-color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .about-topic-row:hover {
    background: var(--sage-100);
  }
}

.about-topic-index {
  color: var(--sage-700);
  font-size: clamp(3.2rem, 5vw, 4.4rem);
  font-weight: 300;
  letter-spacing: -0.07em;
  line-height: 1;
}

.about-topic-copy h3 {
  margin: 0 0 8px;
  color: var(--brown-950);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.35;
  word-break: keep-all;
}

.about-topic-copy p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
  word-break: keep-all;
}

.about-principles {
  margin-top: 64px;
  padding-bottom: 96px;
}

.about-principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-principle {
  min-width: 0;
  padding: 48px;
}

.about-principle-approach {
  background: var(--cream-100);
}

.about-principle-mission {
  background: var(--sage-100);
}

.about-principle h2 {
  margin: 0 0 20px;
  color: var(--brown-950);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.35;
  word-break: keep-all;
}

.about-principle p {
  margin: 0;
  color: #4e4a45;
  font-size: 1rem;
  line-height: 1.82;
  word-break: keep-all;
}

@media (max-width: 900px) {
  .primary-nav {
    gap: 17px;
    font-size: 0.9rem;
  }

  body[data-route="home"] .route-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 18px;
    padding-block: 38px;
  }

  body[data-route="home"] .route-hero .eyebrow,
  body[data-route="home"] .route-hero h1,
  body[data-route="home"] .route-hero .intro {
    grid-column: 1;
    grid-row: auto;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-preview-groups {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .home-preview-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-about-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-about-heading h2 {
    max-width: 16ch;
  }

  .home-about-copy p {
    max-width: 62ch;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(1120px, calc(100% - 28px));
  }

  .header-inner {
    min-height: 72px;
    align-items: center;
    flex-direction: row;
    gap: 18px;
    padding: 10px 0;
  }

  .brand {
    min-height: 48px;
  }

  .brand-primary {
    font-size: 1.35rem;
  }

  .brand-secondary {
    font-size: 0.54rem;
  }

  .site-navigation {
    margin-left: auto;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--brown-800);
    cursor: pointer;
  }

  .menu-toggle-icon {
    width: 20px;
    display: grid;
    gap: 4px;
  }

  .menu-toggle-icon span {
    width: 100%;
    height: 2px;
    display: block;
    background: currentColor;
    border-radius: 999px;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .site-navigation.is-open .menu-toggle-icon span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .site-navigation.is-open .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
  }

  .site-navigation.is-open .menu-toggle-icon span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 60%;
    padding: 10px 14px 18px;
    background: var(--cream-50);
    box-shadow: 0 20px 36px rgba(84, 57, 43, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .site-navigation.is-open .nav-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .primary-nav {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    overflow: visible;
    font-size: 1rem;
  }

  .primary-nav a {
    width: 100%;
    justify-content: flex-start;
    padding: 11px 12px;
    border-radius: 8px;
    white-space: normal;
  }

  .primary-nav a:hover,
  .primary-nav a:focus-visible,
  .primary-nav a[aria-current="page"] {
    background: var(--sage-100);
  }

  .primary-nav a[aria-current="page"]::after {
    top: 11px;
    right: auto;
    bottom: 11px;
    left: 0;
    width: 3px;
    height: auto;
  }

  .page-shell {
    padding: 66px 0 94px;
  }

  .danger-zone {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 16px;
  }

  .danger-zone .button-danger {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 8px;
  }

  .route-hero {
    margin-bottom: 52px;
    padding-bottom: 42px;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .intro {
    font-size: 1rem;
    line-height: 1.78;
  }

  .content-heading,
  .section-heading h2 {
    margin-bottom: 30px;
    font-size: clamp(2rem, 9.5vw, 2.55rem);
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-card {
    min-height: 0;
    padding: 26px;
  }

  .post-title {
    font-size: 1.55rem;
  }

  .article-meta,
  .editor-form {
    grid-template-columns: 1fr;
  }

  body[data-route="home"] .route-hero {
    min-height: 0;
    padding: 28px 14px 32px;
  }

  body[data-route="home"] .route-hero h1 {
    font-size: clamp(2.15rem, 10.5vw, 3rem);
    line-height: 1.12;
  }

  body[data-route="home"] .auth-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 12px 14px;
  }

  body[data-route="home"] .auth-actions {
    grid-column: 2;
    grid-row: 1;
  }

  body[data-route="home"] .auth-actions .button {
    width: auto;
    min-height: 36px;
    padding: 7px 13px;
  }

  .auth-card .account-summary dl {
    gap: 2px 7px;
  }

  .auth-card .account-summary dl > div + div::before {
    margin-right: 7px;
  }

  .auth-card .account-summary dd {
    max-width: 16ch;
    font-size: 0.78rem;
  }

  .home-previews-section {
    padding: 48px 14px 78px;
  }

  .home-preview-list {
    grid-template-columns: 1fr;
  }

  .home-preview-card {
    min-height: 0;
  }

  .home-preview-empty {
    min-height: 128px;
  }

  .home-about-section {
    gap: 18px;
    padding: 38px 14px;
  }

  .home-about-heading h2 {
    font-size: clamp(2rem, 9.5vw, 2.55rem);
  }

  body[data-route="about"] .page-shell {
    padding-top: 54px;
  }

  body[data-route="about"] .route-hero,
  body[data-route="about"] .route-status,
  .about-topic-section,
  .about-principles-grid {
    width: var(--shell);
  }

  body[data-route="about"] .route-hero h1 {
    font-size: clamp(2.6rem, 12vw, 3.7rem);
  }

  body[data-route="about"] .route-hero .intro {
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.78;
  }

  .about-topic-section {
    margin-top: 28px;
  }

  .about-topic-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 0;
  }

  .about-topic-index {
    padding-top: 2px;
    font-size: 2.35rem;
  }

  .about-topic-copy h3 {
    font-size: 1.2rem;
  }

  .about-topic-copy p {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .about-principles {
    margin-top: 52px;
    padding-bottom: 72px;
  }

  .about-principles-grid {
    grid-template-columns: 1fr;
  }

  .about-principle {
    padding: 36px 26px;
  }

  .about-principle h2 {
    font-size: 1.35rem;
  }

  .footer-inner {
    min-height: 240px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    padding: 0;
  }

  .footer-youtube-link {
    min-width: min(100%, 220px);
  }

}

/* Author editor: compact command bar and focused writing workspace. */
body[data-route="write"][data-author-view="editor"] .page-shell {
  width: min(88rem, calc(100% - 2rem));
  padding-top: 2rem;
}

body[data-route="write"][data-author-view="editor"] .route-hero,
body[data-route="write"][data-author-view="editor"] .site-footer {
  display: none;
}

.editor-command-bar {
  position: sticky;
  top: 0.75rem;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4px 20px 4px 4px;
  background: rgba(255, 254, 250, 0.94);
  box-shadow: 0 14px 36px rgba(84, 57, 43, 0.09);
  backdrop-filter: blur(12px);
}

.editor-command-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.editor-command-heading h2 {
  margin: 0;
  font-size: 1.25rem;
  white-space: nowrap;
}

.editor-back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--brown-800);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.editor-back-link:hover {
  color: var(--sage-700);
}

.editor-status-line {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.5rem;
}

.editor-status-line .status {
  margin: 0;
  white-space: nowrap;
}

.editor-state {
  padding-right: 0.5rem;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.editor-actions {
  grid-column: auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.editor-actions .button,
.editor-more-actions > summary {
  min-height: 42px;
  padding: 8px 16px;
  white-space: nowrap;
}

.editor-workspace {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 0.85fr);
  align-items: start;
  gap: 1.25rem;
}

.editor-content-form {
  grid-template-columns: 1fr;
}

.editor-content-form .markdown-input {
  min-height: 32rem;
}

.editor-sidebar {
  display: grid;
  align-self: start;
  gap: 1.25rem;
}

.editor-settings {
  display: grid;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 4px 28px 4px 4px;
  background: #fff;
}

.editor-settings h3 {
  margin: 0;
}

.editor-settings .editor-field {
  width: 100%;
}

.editor-media {
  padding: 1.2rem;
}

.editor-media .editor-heading-row {
  align-items: center;
}

.editor-media .button {
  min-height: 42px;
  padding: 8px 14px;
}

.editor-media-card {
  grid-template-columns: 72px minmax(0, 1fr);
}

.editor-media-preview,
.editor-media-placeholder {
  width: 72px;
  height: 72px;
}

.editor-more-actions {
  position: relative;
}

.editor-more-actions[hidden] {
  display: none;
}

.editor-more-actions > summary {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--brown-500);
  border-radius: 999px;
  color: var(--brown-950);
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.editor-more-actions > summary::-webkit-details-marker {
  display: none;
}

.editor-more-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 11rem;
  gap: 0.5rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 4px 16px 4px 4px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(84, 57, 43, 0.14);
}

.editor-more-menu .button {
  width: 100%;
  justify-content: flex-start;
}

.editor-more-menu .button-danger {
  color: #fff;
}

.editor-recovery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
}

.editor-recovery[hidden] {
  display: none;
}

.editor-recovery p {
  margin: 0;
}

.editor-recovery .button {
  min-height: 42px;
  padding: 8px 14px;
}

@media (max-width: 1040px) {
  .editor-command-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .editor-status-line {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .editor-actions {
    grid-row: 1;
    grid-column: 2;
  }

  .editor-workspace {
    grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.8fr);
  }
}

@media (max-width: 820px) {
  body[data-route="write"][data-author-view="editor"] .page-shell {
    width: var(--shell);
    padding-top: 1.25rem;
  }

  .editor-command-bar {
    position: static;
    grid-template-columns: 1fr;
  }

  .editor-actions,
  .editor-status-line {
    grid-row: auto;
    grid-column: 1;
    justify-content: flex-start;
  }

  .editor-actions {
    flex-wrap: wrap;
  }

  .editor-workspace {
    grid-template-columns: 1fr;
  }

  .editor-content-form .markdown-input {
    min-height: 24rem;
  }

  .editor-recovery {
    grid-template-columns: 1fr;
  }

  .editor-recovery .button {
    justify-self: start;
  }

  .editor-more-menu {
    right: auto;
    left: 0;
  }
}

.author-filter-panel {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 4px 24px 4px 4px;
  background: #fff;
}

.author-filter-panel h3 {
  margin: 0;
  font-size: 1.05rem;
}

.author-filter-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 0.9rem;
}

.author-filter-controls .editor-field {
  width: 100%;
}

.author-filter-reset {
  min-height: 46px;
  padding: 8px 16px;
  white-space: nowrap;
}

.author-filter-result {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.author-filter-results {
  min-width: 0;
}

.author-post-card .editor-metadata {
  color: var(--sage-700);
}

@media (max-width: 900px) {
  .author-filter-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-filter-reset {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .author-filter-controls {
    grid-template-columns: 1fr;
  }
}

.member-list-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.member-visibility-filter {
  display: grid;
  gap: 0.55rem;
}

.member-filter-label,
.member-filter-count {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 750;
}

.member-filter-options {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.member-filter-option {
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--brown-500);
  border-radius: 999px;
  background: transparent;
  color: var(--brown-950);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.member-filter-option:hover,
.member-filter-option[aria-pressed="true"] {
  border-color: var(--brown-800);
  background: var(--brown-800);
  color: #fff;
}

.member-filter-option:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.member-filter-results {
  min-width: 0;
}

@media (max-width: 600px) {
  .member-list-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
