:root {
  color-scheme: light;
  --color-neutral-1: #f9f8f5;
  --color-neutral-2: #f0efeb;
  --color-neutral-3: #e3e1db;
  --color-neutral-4: #d0cec6;
  --color-neutral-5: #a8a69f;
  --color-neutral-6: #787670;
  --color-neutral-7: #5c5a55;
  --color-neutral-8: #403f3a;
  --color-neutral-9: #24231f;
  --color-neutral-10: #141312;
  --color-accent: #c56473;
  --color-info: #3d6896;
  --color-success: #5e9f7e;
  --color-warning: #a87a3d;
  --color-error: #a64953;

  --bg: var(--color-neutral-1);
  --ink: var(--color-neutral-9);
  --heading: var(--color-neutral-10);
  --muted: var(--color-neutral-7);
  --line: rgba(20, 19, 18, 0.12);
  --line-strong: rgba(20, 19, 18, 0.2);
  --paper: var(--color-neutral-2);
  --paper-strong: var(--color-neutral-3);
  --paper-muted: var(--color-neutral-3);
  --accent: var(--color-accent);
  --accent-2: var(--color-info);
  --soft: var(--color-neutral-3);
  --coal: var(--color-neutral-10);
  --shadow-whisper: 0 18px 44px rgba(20, 19, 18, 0.06);
  --chrome-width: 1080px;
  --content-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  font-size: 14px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP",
    sans-serif;
  font-size: 1rem;
  line-height: 1.57;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.shell {
  width: min(var(--chrome-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(249, 248, 245, 0.88);
  color: var(--ink);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav {
  display: grid;
  min-height: 60px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-weight: 600;
  letter-spacing: 0;
}

.mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent);
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 14px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  line-height: 1.4;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  color: white;
  background: var(--color-error);
}

.button.secondary {
  border-color: var(--line);
  background: var(--paper);
  color: var(--heading);
}

.button.secondary:hover {
  border-color: var(--line-strong);
  color: var(--heading);
  background: var(--paper-muted);
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--heading);
  font-size: 52px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.1;
}

.home-writing {
  padding-top: 52px;
}

.section .shell {
  width: min(var(--content-width), calc(100% - 40px));
}

.mini-feed {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.mini-post {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.mini-post:last-child {
  border-bottom: 0;
}

.mini-post:hover {
  color: inherit;
  background: var(--paper-muted);
}

.mini-post span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.mini-post strong {
  color: var(--heading);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.54;
}

.panel-link,
.section-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--heading);
  font-size: 13px;
  font-weight: 600;
}

.panel-link {
  margin-top: 14px;
}

.section {
  padding: 52px 0;
}

.section + .section {
  position: relative;
}

.section + .section::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--content-width), calc(100% - 40px));
  border-top: 1px solid var(--line-strong);
  content: "";
  transform: translateX(-50%);
}

.translation-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: middle;
  white-space: nowrap;
}

.section-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head h1,
.section-head h2 {
  margin-bottom: 0;
  color: var(--heading);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.29;
}

.section-head p {
  max-width: 470px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.post-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(20, 19, 18, 0.04);
}

.post-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 15px 18px;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.post-row:last-child {
  border-bottom: 0;
}

.post-row:hover {
  background: var(--paper-strong);
}

.post-row::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  content: "";
}

.post-row:hover::before {
  background: var(--accent);
}

.post-row-main {
  display: block;
  min-width: 0;
}

.post-row-copy {
  min-width: 0;
}

.post-row-title,
.post-row-summary {
  display: block;
}

.post-row-title {
  color: var(--heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

.post-row-summary {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.54;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-row-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

.post-row-meta span {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  background: var(--paper-muted);
}

.compact-list {
  margin-bottom: 14px;
}

.post-row.compact .post-row-title {
  font-size: 15px;
  line-height: 1.55;
}

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

.work-list {
  display: grid;
  gap: 10px;
}

.work-card,
.post-card,
.note-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.work-card:hover,
.post-card:hover,
.note-row:hover {
  border-color: var(--line-strong);
  color: inherit;
  background: var(--paper-muted);
  box-shadow: var(--shadow-whisper);
  transform: translateY(-2px);
}

.work-card {
  display: flex;
  min-height: 256px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.work-list .work-card {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 18px;
  padding: 16px 18px;
}

.work-list .work-card > div:last-child {
  align-self: end;
}

.work-list .chips {
  margin: 0 0 10px;
}

.eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.work-card h3 {
  margin: 8px 0 10px;
  color: var(--heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.work-card p,
.post-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.54;
}

.work-card p {
  margin-bottom: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 12px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  color: var(--muted);
  background: var(--paper-muted);
  font-size: 12px;
  line-height: 1.5;
}

.status {
  color: var(--color-success);
  font-size: 12px;
  font-weight: 600;
}

.post-card {
  overflow: hidden;
}

.post-card-cover {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper-muted);
  color: var(--accent);
}

.post-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-cover.is-empty span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--accent);
  font-size: 24px;
  font-weight: 500;
}

.post-card-body {
  padding: 18px;
}

.date {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 600;
}

.post-card h3 {
  margin: 8px 0 10px;
  color: var(--heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.post-card p {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.notes-list {
  display: grid;
  gap: 10px;
}

.note-row {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
}

.note-row span:first-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.note-row strong {
  color: var(--heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.57;
}

.note-row small,
.note-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.note-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-meta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.arrow {
  color: var(--accent);
  font-weight: 600;
}

.footer {
  position: relative;
  margin-top: 28px;
  padding: 26px 0 38px;
  background: var(--paper);
  color: var(--muted);
}

.footer-inner {
  display: grid;
  width: min(var(--content-width), calc(100% - 40px));
  grid-template-columns: auto minmax(0, 520px);
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.footer-language {
  display: grid;
  gap: 6px;
}

.footer-language > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.footer-language {
  justify-items: start;
}

.footer-language-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  color: var(--heading);
  font-size: 13px;
  font-weight: 500;
}

.footer-language-links a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
}

.footer-language-links a:hover,
.footer-language-links a[aria-current="page"] {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.footer-quote {
  justify-self: end;
  width: min(500px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

.archive-shell {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0;
}

.archive-header {
  max-width: 680px;
  margin-bottom: 30px;
}

.archive-header h1 {
  margin-bottom: 12px;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.16;
}

.archive-header p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 24px;
  align-items: start;
}

.archive-panel,
.article-sidebar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.archive-panel {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 3px;
  padding: 16px;
}

.archive-panel span,
.archive-panel small,
.article-sidebar-label {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.archive-panel strong {
  color: var(--heading);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.18;
}

.article-shell {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
}

.article-shell-wide {
  width: min(var(--content-width), calc(100% - 40px));
}

.article-header {
  margin-bottom: 28px;
}

.article-header .date {
  display: flex;
  align-items: center;
  gap: 11px;
}

.article-header .date-text {
  display: inline-flex;
  height: 24px;
  align-items: center;
  line-height: 1.5;
}

.article-header h1 {
  max-width: 780px;
  margin-bottom: 14px;
  color: var(--heading);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.24;
}

.article-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 740px) 240px;
  gap: 48px;
  align-items: start;
}

.article {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
}

.article h2 {
  margin: 34px 0 12px;
  color: var(--heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.article p,
.article div {
  max-width: 740px;
}

.article p,
.article div {
  margin-top: 0;
}

.article p + p,
.article p + div,
.article div + p {
  margin-top: 18px;
}

.article [style*="font-family"] {
  font-family: inherit !important;
}

.article [style*="font-size"] {
  font-size: inherit !important;
}

.article [style*="line-height"] {
  line-height: inherit !important;
}

.article img {
  display: block;
  width: auto;
  max-width: min(100%, 760px);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px auto 10px;
}

.article-gallery {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.article .gallery {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px !important;
  justify-content: initial !important;
}

.article .gallery a {
  flex: initial !important;
}

.article .gallery img {
  width: 100% !important;
  max-width: 100%;
  margin: 0;
}

.article .separator a {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article sup a {
  display: inline;
  margin-left: 2px;
  padding: 0 1px;
  color: var(--accent-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}

.article sup a:hover {
  color: var(--heading);
}

.article sup {
  position: relative;
  top: -0.35em;
  vertical-align: baseline;
}

.article [data-reference-list] {
  list-style: none;
  padding-left: 0;
}

.article [data-reference-list] li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
}

.article [data-reference-number] {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.article blockquote {
  max-width: 720px;
  margin: 24px 0;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  color: var(--heading);
}

.article blockquote p {
  max-width: 680px;
  margin: 0;
}

.article strong {
  color: var(--heading);
  font-weight: 680;
}

.article code {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  background: var(--paper);
  color: var(--heading);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.article pre {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px 18px;
  background: var(--paper);
  line-height: 1.6;
}

.article pre code {
  border: 0;
  padding: 0;
  background: transparent;
}

.article ol,
.article ul {
  margin: 18px 0 24px;
  padding-left: 24px;
}

.article li + li {
  margin-top: 7px;
}

.article table {
  width: 100%;
  margin: 22px 0 28px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.55;
}

.article th,
.article td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.article th {
  background: var(--paper);
  color: var(--heading);
  font-weight: 650;
}

.callkit-calculator {
  max-width: 740px !important;
  margin: 28px 0 34px !important;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-whisper);
}

.callkit-calculator-head {
  max-width: none !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--line);
  padding: 22px 24px 18px;
}

.callkit-calculator-head h3 {
  margin: 3px 0 6px;
  color: var(--heading);
  font-size: 22px;
  font-weight: 580;
  line-height: 1.35;
}

.callkit-calculator-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.callkit-calculator-head .calculator-kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.calculator-fields {
  display: grid;
  max-width: none !important;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  margin: 0 !important;
  padding: 20px 24px 10px;
}

.calculator-fields label {
  display: grid;
  gap: 7px;
}

.calculator-fields label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.calculator-fields input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 9px 12px;
  background: var(--bg);
  color: var(--heading);
  font: inherit;
  font-size: 17px;
}

.calculator-fields input:focus {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 20%, transparent);
}

.calculator-note,
.calculator-footnote,
.calculator-warning {
  margin: 0 !important;
  padding: 0 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.calculator-equation {
  display: flex;
  max-width: none !important;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 18px 24px !important;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  padding: 14px;
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
}

.calculator-equation b {
  color: var(--color-neutral-5);
  font-weight: 400;
}

.calculator-equation strong {
  color: var(--accent);
  font-size: 18px;
  white-space: nowrap;
}

.calculator-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calculator-results div {
  min-width: 0;
  margin: 0 !important;
  border-right: 1px solid var(--line);
  padding: 16px;
}

.calculator-results div:last-child {
  border-right: 0;
}

.calculator-results dt {
  min-height: 36px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.calculator-results dd {
  overflow-wrap: anywhere;
  margin: 4px 0 2px;
  color: var(--heading);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
}

.calculator-results small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.calculator-warning {
  padding-top: 14px;
  color: var(--color-error);
}

.calculator-footnote {
  padding-top: 14px;
  padding-bottom: 18px;
}

.article .separator,
.article [style*="text-align: center"] {
  max-width: 100%;
}

.article-sidebar {
  position: sticky;
  top: 84px;
  padding: 14px;
}

.article-sidebar-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.article-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.article-switcher.single {
  grid-template-columns: 1fr;
}

.switch-card {
  display: grid;
  gap: 5px;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--paper);
}

.switch-card:not(.is-empty):hover {
  border-color: var(--line-strong);
  color: inherit;
  background: var(--paper-muted);
}

.switch-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.switch-card strong {
  color: var(--heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.57;
}

.switch-card.is-empty {
  color: var(--muted);
  background: transparent;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 20;
  border-radius: 6px;
  background: var(--heading);
  color: white;
  padding: 8px 12px;
}

.skip-link:focus {
  left: 12px;
}

@media (max-width: 980px) {
  .work-grid,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-layout,
  .article-content-grid {
    grid-template-columns: 1fr;
  }

  .archive-panel,
  .article-sidebar {
    position: static;
  }

}

@media (max-width: 760px) {
  .shell,
  .section .shell,
  .article-shell,
  .archive-shell {
    width: min(100% - 28px, var(--chrome-width));
  }

  .nav {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .nav-links {
    display: flex;
    justify-self: end;
    gap: 10px;
    font-size: 12px;
  }

  .nav-links .button {
    display: none;
  }

  h1 {
    font-size: 38px;
    line-height: 1.12;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 38px 0;
  }

  .section + .section::before {
    width: min(100% - 28px, var(--chrome-width));
  }

  .section-head {
    display: block;
  }

  .section-head h1,
  .section-head h2 {
    font-size: 24px;
    line-height: 1.33;
  }

  .section-head p {
    margin-top: 10px;
  }

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

  .work-list .work-card {
    grid-template-columns: 1fr;
  }

  .post-row,
  .post-row.compact {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 14px;
  }

  .post-row-main {
    display: block;
  }

  .post-row-summary {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .post-row-meta {
    justify-content: flex-start;
  }

  .note-row {
    display: grid;
    min-height: 0;
    gap: 10px;
  }

  .note-row small {
    white-space: normal;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-content: stretch;
    align-items: start;
    gap: 12px;
  }

  .footer-quote {
    justify-self: stretch;
    width: 100%;
    text-align: left;
  }

  .article {
    min-width: 0;
    font-size: 15px;
    line-height: 1.74;
    overflow-wrap: anywhere;
  }

  .article h2 {
    margin-top: 30px;
    font-size: 19px;
  }

  .article pre {
    max-width: 100%;
    padding: 14px;
    font-size: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .article table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .article th,
  .article td {
    padding: 9px 10px;
  }

  .article [data-reference-list] li {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 7px;
  }

  .article [data-reference-list] a {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .article-header h1 {
    font-size: 28px;
    line-height: 1.29;
  }

  .archive-header {
    margin-bottom: 22px;
  }

  .archive-header h1 {
    font-size: 34px;
    line-height: 1.2;
  }

  .article-switcher {
    grid-template-columns: 1fr;
  }

  .article .gallery {
    grid-template-columns: 1fr;
  }

  .calculator-fields,
  .calculator-results {
    grid-template-columns: 1fr;
  }

  .calculator-fields {
    gap: 10px;
    padding: 16px 16px 8px;
  }

  .calculator-note,
  .calculator-warning {
    padding-right: 16px;
    padding-left: 16px;
  }

  .calculator-equation {
    gap: 7px;
    margin: 14px 16px !important;
    padding: 12px 8px;
    text-align: center;
  }

  .calculator-equation strong {
    font-size: 16px;
  }

  .calculator-results div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .calculator-results div:last-child {
    border-bottom: 0;
  }

  .calculator-results dt {
    min-height: 0;
  }

  .calculator-equation {
    flex-wrap: wrap;
  }
}

@media (max-width: 460px) {
  .brand span:last-child {
    display: none;
  }
}
