:root {
  --paper: #f7f4f1;
  --surface: #fffcf9;
  --ink: #211d1e;
  --muted: #756d6f;
  --line: #ded7d8;
  --wine: #722f45;
  --wine-hover: #552233;
  --brand: #722f45;
  --brand-hover: #552233;
  --wash: #f2e6ea;
  --code-surface: #272124;
  --code-text: #f2eeec;
  --white: #f2eeec;
  --shadow: 0 12px 40px rgb(33 29 30 / 4%);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #1e191c;
  --surface: #272124;
  --ink: #f2eeec;
  --muted: #beb1b6;
  --line: #49393f;
  --wine: #d89baf;
  --wine-hover: #edbacb;
  --wash: #34242c;
  --shadow: 0 12px 40px rgb(0 0 0 / 12%);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  border-top: 4px solid var(--brand);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--wine-hover);
}
button, input, textarea, select {
  font: inherit;
}
button, a, input, textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a, button, input, textarea {
  transition: color 0.18s, background-color 0.18s, border-color 0.18s;
}
button:disabled {
  cursor: default;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
::selection {
  background: var(--wine);
  color: var(--paper);
}
:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 5px;
}
h1, h2, h3, p {
  margin: 0;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.16;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(44px, 6.2vw, 78px);
  letter-spacing: -0.045em;
}
h1 em {
  color: var(--wine);
  font-weight: 400;
}
h2 {
  font-size: 34px;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 27px;
  letter-spacing: -0.025em;
}
main, section, article, aside, .intro-main, .post-row > div {
  min-width: 0;
}
.shell {
  max-width: 1320px;
  margin: auto;
  padding: 0 48px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 116px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--serif);
  font-size: 37px;
  letter-spacing: -1.5px;
  line-height: 1;
  white-space: nowrap;
}
.brand-mark {
  align-self: center;
  display: block;
  flex-shrink: 0;
  width: 39px;
  height: 39px;
  margin-right: 13px;
  object-fit: contain;
}
.wordmark-domain {
  color: var(--muted);
  font-size: 18px;
  letter-spacing: -0.6px;
}
.site-header nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 13px;
}
.site-header nav > a:not(.icon-button) {
  padding: 12px 0;
  position: relative;
}
.site-header [aria-current="page"] {
  color: var(--wine);
}
.site-header [aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--wine);
}
.nav-divider {
  height: 20px;
  width: 1px;
  background: var(--line);
}
.icon-button {
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
}
.icon-button:hover {
  color: var(--wine-hover);
  background: var(--wash);
}
.theme-sun, :root[data-theme="dark"] .theme-moon {
  display: none;
}
:root[data-theme="dark"] .theme-sun {
  display: block;
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 342px;
  align-items: center;
  gap: 72px;
  padding: 76px 0 68px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 64px;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--wine);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.dash {
  display: inline-block;
  flex-shrink: 0;
  width: 28px;
  height: 2px;
  background: var(--wine);
}
.comment-mark {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -1px;
}
.intro h1 {
  font-size: clamp(58px, 6.6vw, 94px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  margin: 27px 0 28px;
}
.intro h1 code {
  font-family: var(--mono);
  font-style: normal;
  color: var(--wine);
  font-size: 0.85em;
  letter-spacing: normal;
  white-space: nowrap;
}
.intro-copy {
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}
.text-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--wine);
  display: inline-flex;
  gap: 16px;
  align-items: center;
}
.text-link:hover, .text-button:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.intro-main > .text-link {
  margin-top: 24px;
}
.intro-note {
  margin-top: 40px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.3px;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.author-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 27px;
  background: var(--wash);
  color: var(--wine);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 67px;
  font-style: italic;
  line-height: 1;
  letter-spacing: -6px;
  padding: 0 7px 9px 0;
}
.about-card h2 {
  font-size: 29px;
  margin: 14px 0 17px;
  line-height: 1.2;
}
.wine {
  color: var(--wine);
}
.about-card > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.about-card > .text-link {
  margin-top: 22px;
  font-size: 12px;
}
.small-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.small-stack span::before {
  content: "↳";
  color: var(--wine);
  margin-right: 9px;
}
.intro-note,
.about-card .small-stack,
.featured-detail .post-meta,
.post-row .post-meta,
.post-date,
.filter-list .filter,
.content-grid .section-heading > .small,
.project-number,
.article-header .eyebrow,
.article-header .post-meta {
  font-family: var(--mono);
}
.featured-post {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 72px;
  box-shadow: var(--shadow);
}
.featured-title {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  background: var(--brand);
  color: var(--white);
  border-radius: 9px 0 0 9px;
  padding: 38px 40px;
}
.featured-title::after {
  content: "v.";
  position: absolute;
  z-index: -1;
  right: 28px;
  bottom: 10px;
  font-family: var(--serif);
  font-size: 150px;
  font-style: italic;
  line-height: 1;
  opacity: 0.08;
}
.featured-title .eyebrow {
  color: #f2e6ea;
  justify-content: space-between;
}
.featured-title h2 {
  font-size: clamp(30px, 3.3vw, 44px);
  line-height: 1.2;
}
.featured-title a:hover {
  color: #f2e6ea;
}
.featured-title :focus-visible {
  outline-color: var(--white);
}
.featured-title ::selection {
  background: var(--white);
  color: var(--brand);
}
.featured-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 40px;
}
.featured-detail > p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.featured-detail .post-meta {
  margin-top: 25px;
}
.featured-detail .text-link {
  align-self: flex-start;
  margin-top: 20px;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 72px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.section-heading h2 {
  font-size: 38px;
}
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
input::placeholder, textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}
.filter {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 13px;
  border-radius: 4px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.filter:hover {
  color: var(--wine-hover);
  background: var(--wash);
  border-color: var(--wine);
}
.filter.active {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand);
}
.filter.active:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--white);
}
.post-list {
  border-top: 1px solid var(--line);
}
.post-row {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 24px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.post-date {
  font-size: 11px;
  color: var(--muted);
  padding-top: 7px;
}
.post-row h3 {
  font-size: 29px;
  margin-bottom: 12px;
  line-height: 1.28;
}
.post-row h3 a {
  display: block;
  padding-right: 27px;
  position: relative;
}
.post-row h3 span {
  font-family: var(--sans);
  font-size: 19px;
  color: var(--wine);
  position: absolute;
  right: 0;
  top: 4px;
}
.post-row p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.post-row .post-meta a {
  background: var(--wash);
  color: var(--wine);
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.post-row .post-meta a:hover {
  color: var(--wine-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reading-time {
  margin-left: auto;
}
.sidebar {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.sidebar-projects .section-heading {
  align-items: flex-start;
  margin-bottom: 12px;
}
.sidebar-projects h2 {
  font-size: 26px;
  max-width: 180px;
}
.mini-project {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.mini-project > div {
  min-width: 0;
}
.project-mark {
  width: 43px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  background: var(--wash);
  color: var(--wine);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.mini-project h3 {
  font-size: 22px;
  margin-bottom: 5px;
}
.mini-project p {
  font-size: 11px;
  color: var(--muted);
}
.mini-project .arrow {
  margin-left: auto;
  color: var(--wine);
  font-size: 16px;
}
.sidebar-projects > .text-link {
  margin-top: 23px;
  font-size: 12px;
}
.elsewhere {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 23px;
  margin-top: 38px;
}
.elsewhere > p:not(.eyebrow) {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.45;
  margin: 18px 0 23px;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--wine);
}
.site-footer {
  margin-top: 88px;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
}
.footer-mark {
  display: block;
  flex-shrink: 0;
  width: 39px;
  height: 39px;
  object-fit: contain;
  margin-right: 2px;
}
.site-footer a {
  color: var(--wine);
  margin-left: auto;
}
.site-footer a:hover {
  color: var(--wine-hover);
}
.footer-note {
  font-family: var(--mono);
  font-size: 13px;
  margin: auto;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px 0;
  font-size: 13px;
  color: var(--wine);
}
.pagination span {
  color: var(--muted);
}
.empty {
  padding: 48px 15px;
  text-align: center;
}
.empty p {
  color: var(--muted);
  margin: 15px 0 22px;
}
.flash a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  padding: 10px 20px;
  background: var(--brand);
  color: var(--white);
  border-radius: 4px;
}
.skip-link:focus {
  top: 10px;
}
.skip-link:hover {
  background: var(--brand-hover);
  color: var(--white);
}
.page-shell {
  max-width: 780px;
  margin: 72px auto 90px;
}
.page-shell.wide {
  max-width: none;
}
.page-shell h1 {
  margin-top: 25px;
}
.page-lead {
  font-size: 18px;
  color: var(--muted);
  margin: 27px 0 48px;
  max-width: 610px;
  line-height: 1.85;
}
.about-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-items: center;
  margin-top: 40px;
}
.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}
.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 20px;
  margin-bottom: 35px;
}
.project-number {
  font-size: 12px;
  color: var(--muted);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.project-card h2 {
  font-size: 36px;
  margin: 16px 0;
}
.project-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 28px;
  overflow-wrap: anywhere;
}
.project-card > .text-link {
  margin-top: auto;
}
.project-mark.large {
  width: 66px;
  height: 70px;
  font-size: 34px;
}
.article-shell {
  max-width: 730px;
  margin: 48px auto 0;
}
.back-link {
  font-size: 12px;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 33px;
}
.article-header {
  padding: 12px 0 36px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
}
.article-header h1 {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.12;
  margin: 24px 0;
}
.article-deck {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 28px;
  overflow-wrap: anywhere;
}
.article-header .post-meta {
  font-size: 12px;
}
.prose {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.prose p, .prose ul, .prose ol, .prose pre, .prose blockquote, .prose table {
  margin: 0 0 28px;
}
.prose h2 {
  font-size: 36px;
  margin: 46px 0 20px;
  line-height: 1.25;
}
.prose h3 {
  font-size: 28px;
  margin: 32px 0 17px;
}
.prose h4, .prose h5, .prose h6 {
  font-size: 22px;
  margin: 27px 0 13px;
}
.prose a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.prose a:hover {
  color: var(--wine-hover);
}
.prose pre {
  max-width: 100%;
  overflow: auto;
  padding: 26px;
  border-radius: 8px;
  background: var(--code-surface);
  color: var(--code-text);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.8;
  tab-size: 4;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.8em;
  background: var(--wash);
  color: var(--ink);
  padding: 2px 5px;
  border-radius: 4px;
}
.prose pre code {
  font-size: inherit;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}
.prose blockquote {
  padding: 22px 28px;
  border-left: 3px solid var(--wine);
  border-radius: 0 8px 8px 0;
  background: var(--wash);
  font-style: italic;
  color: var(--ink);
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.prose table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow: auto;
  overflow-wrap: normal;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
}
.prose th, .prose td {
  padding: 12px 16px;
  border: 1px solid var(--line);
  text-align: left;
}
.prose th {
  background: var(--wash);
}
.prose td {
  background: var(--surface);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 38px 0;
}
.article-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.end-mark {
  font-size: 38px;
  color: var(--wine);
}
.article-footer > p {
  font-family: var(--serif);
  font-size: 29px;
  margin: 12px 0 28px;
}
.article-footer > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  color: var(--wine);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 13px 22px;
  background: var(--brand);
  color: var(--white);
  border: 1px solid var(--brand);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}
.button:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--white);
}
.text-button {
  color: var(--wine);
  border: 0;
  background: transparent;
  padding: 10px 0;
  font-size: 13px;
}
.text-button:hover {
  color: var(--wine-hover);
}
.flash {
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--wine);
  background: var(--wash);
  border-radius: 6px;
  margin: 24px 0;
  font-size: 13px;
}
.login-panel {
  max-width: 480px;
  margin: 72px auto 90px;
  padding: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.login-panel h1 {
  font-size: 48px;
  margin: 20px 0;
}
.login-panel > p {
  margin-bottom: 27px;
}
.form-row {
  margin-bottom: 24px;
}
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 9px;
}
.form-row input:not([type="checkbox"]), .form-row textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 13px 14px;
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--wine);
}
.form-row textarea {
  resize: vertical;
}
.form-help, .form-row .help-text {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.form-row ul, .form-error {
  color: var(--wine);
  font-size: 13px;
  list-style: none;
  padding: 0;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 11px;
}
.checkbox-row label {
  margin: 0;
}
.checkbox-row input {
  accent-color: var(--brand);
  width: 17px;
  height: 17px;
}
.admin-shell {
  margin: 64px 0;
}
.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.admin-heading h1 {
  font-size: 54px;
  margin: 16px 0 25px;
}
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 23px;
  margin: 15px 0 32px;
}
.admin-posts {
  display: grid;
  gap: 14px;
}
.admin-post {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.admin-post > div {
  min-width: 0;
}
.admin-post h2 {
  font-size: 29px;
  margin: 12px 0;
}
.admin-post > .text-link {
  flex-shrink: 0;
}
.status {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 10px;
  color: var(--muted);
}
.status.published {
  background: var(--wash);
  color: var(--wine);
}
.editor-shell {
  max-width: 860px;
  margin: 56px auto;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.editor-shell > .muted {
  margin: 0 0 32px;
}
.markdown-input {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  line-height: 1.8;
  tab-size: 4;
}
.visual-editor {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.writing-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.writing-toolbar button, .writing-toolbar select, .image-upload button {
  width: auto;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.writing-toolbar [aria-pressed="true"] {
  background: var(--ink);
  color: var(--surface);
}
.writing-toolbar button:disabled, .editor-actions button:disabled {
  opacity: .5;
  cursor: wait;
}
.writing-surface .tiptap {
  min-height: 440px;
  padding: 20px;
  outline: none;
  overflow-wrap: anywhere;
}
.writing-surface .tiptap:focus {
  box-shadow: inset 0 0 0 2px var(--line);
}
.writing-surface .tiptap > :first-child {
  margin-top: 0;
}
.writing-surface .ProseMirror-selectednode {
  outline: 2px solid var(--ink);
}
.writing-surface img {
  min-width: 24px;
  min-height: 24px;
  object-fit: contain;
  cursor: pointer;
}
.writing-surface ul[data-type="taskList"] {
  padding-left: 0;
  list-style: none;
}
.writing-surface li[data-type="taskItem"] {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.writing-surface li[data-type="taskItem"] > label {
  flex: 0 0 auto;
}
.writing-surface input[type="checkbox"] {
  width: auto;
}
.writing-status {
  padding: 10px 15px;
  margin: 0;
  border-top: 1px solid var(--line);
}
.image-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 15px;
  margin: 12px 0;
  border: 1px dashed var(--line);
}
.image-upload span {
  flex: 1 1 240px;
}
[hidden] { display: none !important; }
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.delete-form {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 20px;
}
.danger {
  color: var(--wine);
}

@media (max-width: 1100px) {
  .shell {
    padding: 0 36px;
  }
  .intro {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
  }
  .about-card {
    padding: 25px;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 38px;
  }
  .sidebar {
    padding-left: 24px;
  }
  .post-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .post-date {
    padding: 0;
  }
  .featured-title, .featured-detail {
    padding: 32px;
  }
  .project-card {
    padding: 25px;
  }
}
@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    gap: 18px;
    padding: 26px 0 18px;
  }
  .site-header nav {
    width: 100%;
  }
  .nav-divider {
    margin-left: auto;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 52px 0;
    margin-bottom: 48px;
  }
  .intro h1 {
    font-size: clamp(54px, 9vw, 78px);
  }
  .about-card {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    column-gap: 26px;
    padding: 28px;
  }
  .author-mark {
    grid-column: 1;
    grid-row: 1 / 6;
    margin-bottom: 0;
  }
  .about-card > :not(.author-mark) {
    grid-column: 2;
  }
  .about-card .small-stack {
    margin-top: 18px;
  }
  .featured-title, .featured-detail {
    padding: 28px;
  }
  .featured-detail > p {
    font-size: 21px;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 30px;
  }
  .sidebar {
    padding-left: 20px;
  }
  .elsewhere {
    padding: 18px;
  }
  .project-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .shell {
    padding: 0 24px;
  }
  .wordmark {
    font-size: 32px;
  }
  .wordmark-domain {
    font-size: 16px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    margin-right: 11px;
  }
  .site-header nav {
    gap: 18px;
    font-size: 12px;
  }
  .intro {
    padding: 42px 0;
    gap: 32px;
    margin-bottom: 40px;
  }
  .intro h1 {
    font-size: clamp(44px, 10.5vw, 70px);
    margin: 24px 0;
  }
  .intro-copy {
    font-size: 16px;
  }
  .intro-note {
    margin-top: 28px;
    max-width: 290px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.1px;
  }
  .about-card {
    display: block;
    padding: 25px;
  }
  .author-mark {
    width: 66px;
    height: 66px;
    font-size: 56px;
    margin-bottom: 23px;
  }
  .featured-post {
    grid-template-columns: 1fr;
    margin-bottom: 48px;
  }
  .featured-title {
    border-radius: 9px 9px 0 0;
    gap: 28px;
  }
  .featured-title h2 {
    font-size: 33px;
  }
  .featured-detail > p {
    font-size: 21px;
  }
  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .section-heading h2 {
    font-size: 34px;
  }
  .sidebar {
    border-left: 0;
    padding: 32px 0 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .sidebar-projects h2 {
    font-size: 25px;
  }
  .elsewhere {
    margin-top: 0;
    align-self: start;
    padding: 23px;
  }
  .post-row {
    padding: 29px 0;
  }
  .post-row h3 {
    font-size: 28px;
  }
  .post-row p {
    font-size: 14px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 56px;
    font-size: 10px;
  }
  .footer-note {
    order: 4;
    width: 100%;
    margin: 0;
    font-size: 12px;
  }
  .page-shell {
    margin: 46px 0 60px;
  }
  .page-shell h1 {
    font-size: clamp(40px, 7vw, 54px);
  }
  .page-lead {
    font-size: 16px;
    margin-bottom: 36px;
  }
  .project-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-card {
    padding: 28px;
  }
  .project-card-top {
    margin-bottom: 27px;
  }
  .project-card h2 {
    font-size: 35px;
  }
  .article-shell {
    margin-top: 30px;
  }
  .article-header h1 {
    font-size: clamp(38px, 7vw, 52px);
  }
  .article-deck {
    font-size: 22px;
  }
  .prose {
    font-size: 19px;
  }
  .prose h2 {
    font-size: 31px;
  }
  .prose h3 {
    font-size: 26px;
  }
  .prose pre {
    padding: 21px;
    font-size: 12px;
  }
  .prose blockquote {
    padding: 20px;
  }
  .article-footer > div {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 12px;
  }
  .login-panel {
    padding: 28px;
    margin: 46px auto 60px;
  }
  .login-panel h1 {
    font-size: 43px;
  }
  .admin-shell {
    margin-top: 44px;
  }
  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .admin-heading h1 {
    font-size: 42px;
  }
  .admin-post {
    padding: 22px;
    gap: 18px;
  }
  .admin-post h2 {
    font-size: 25px;
  }
  .editor-shell {
    padding: 25px;
    margin: 40px 0;
  }
  .editor-shell > .muted {
    margin-top: 18px;
  }
  .form-row input:not([type="checkbox"]), .form-row textarea {
    font-size: 16px;
  }
  .form-row .markdown-input {
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .site-header nav {
    gap: 12px;
  }
  .nav-divider {
    margin-right: 0;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar-projects h2 {
    max-width: none;
  }
  .elsewhere > p br {
    display: none;
  }
  .featured-title, .featured-detail {
    padding: 26px;
  }
  .featured-title h2 {
    font-size: 30px;
  }
  .reading-time {
    width: 100%;
    margin-left: 0;
    margin-top: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
  }
}
