@font-face {
  font-family: 'Pretendard';
  src: url('assets/fonts/Pretendard-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'SUIT';
  src: url('assets/fonts/SUIT-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+1100-11FF, U+3130-318F, U+A960-A97F, U+AC00-D7FF, U+FFA0-FFDC;
}
@font-face {
  font-family: 'Courier Prime';
  src: url('assets/fonts/courier-prime-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Courier Prime';
  src: url('assets/fonts/courier-prime-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'BIZ UDMincho';
  src: url('assets/fonts/BIZUDMincho-Intro-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'BIZ UDMincho';
  src: url('assets/fonts/BIZUDMincho-Intro-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #e7e8ea;
  --ink: #252525;
  --muted: #595958;
  --rule: #b7b8b8;
  --sans: 'SUIT', 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --text: 'Courier Prime', var(--sans);
  --typewriter: 'Courier Prime', 'Courier New', monospace;
  --gutter: clamp(1.25rem, 5.2vw, 4.5rem);
  --measure: min(calc(100% - 2 * var(--gutter)), 58rem);
  --index-col: clamp(7.15rem, 13vw, 8.2rem);
  --index-gap: .7rem;
  --slide-duration: .58s;
  --slide: cubic-bezier(.60, .05, .26, .99);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--text); }
a { color: inherit; text-underline-offset: .25em; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
:is(button, a, input, select, textarea):focus-visible { outline: 2px solid #565753; outline-offset: 3px; }
img { display: block; width: 100%; height: auto; }
h1, h2, p, figure { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: .5rem; left: .5rem; transform: translateY(-160%); background: var(--ink); color: white; padding: .5rem 1rem; z-index: 2; }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--paper);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 4.2rem;
  width: var(--measure);
  margin-inline: auto;
  padding: .5rem 0;
}
.site-header :is(h1, .wordmark) { font: 700 clamp(1.14rem, 1.9vw, 1.34rem)/1.25 var(--typewriter); }
.site-header :is(h1, .wordmark) a { text-decoration: none; }
.header-tools {
  display: flex;
  align-items: center;
  gap: clamp(.45rem, 1.25vw, .95rem);
}
.search-toggle { display: none; }
.instagram-link {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
}
:is(.instagram-link, .search-toggle, .journal-search button) {
  color: var(--muted);
}
:is(.instagram-link, .search-toggle, .journal-search button):is(:hover, :focus-visible) {
  color: var(--ink);
}
:is(.instagram-icon, .search-icon) {
  position: relative;
  display: block;
  width: .875rem;
  height: .875rem;
}
:is(.instagram-icon, .search-icon)::before,
:is(.instagram-icon, .search-icon)::after {
  position: absolute;
  box-sizing: border-box;
  content: "";
}
.instagram-icon {
  border: 1px solid currentColor;
  border-radius: .24rem;
}
.instagram-icon::before {
  width: .42rem;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.instagram-icon::after {
  top: 1.5px;
  right: 1.5px;
  width: 1.5px;
  height: 1.5px;
  border-radius: 50%;
  background: currentColor;
}
.journal-search {
  display: flex;
  align-items: center;
  width: clamp(7.1rem, 18vw, 10.5rem);
  border-bottom: 1px solid var(--rule);
}
.journal-search input {
  min-width: 0;
  padding: .3rem 0;
  border: 0;
  background: transparent;
  font: 400 .9rem/1.35 var(--typewriter);
}
.journal-search input::placeholder { color: var(--muted); opacity: 1; }
.journal-search button {
  flex: none;
  width: 1.65rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}
.search-icon::before {
  inset: 0 auto auto 0;
  width: .66rem;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.search-icon::after {
  top: .53rem;
  left: .55rem;
  width: .42rem;
  height: 1px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left;
}

.intro {
  display: grid;
  align-items: center;
  width: var(--measure);
  min-height: clamp(26rem, 64svh, 40rem);
  margin-inline: auto;
  margin-block-start: 3.25rem;
  padding-block: clamp(3.75rem, 8svh, 6.5rem);
  scroll-margin-top: 4.2rem;
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5.8vw, 4.75rem);
  width: 100%;
}
.intro-copy {
  --intro-line: clamp(1.6rem, 2.4vw, 1.85rem);
  --intro-paragraph: .58rem;
  min-width: 0;
  max-width: 26.5rem;
  margin-block-end: .75rem;
  font: 400 clamp(1.1rem, 1.9vw, 1.34rem)/var(--intro-line) var(--typewriter);
  letter-spacing: -.013em;
}
.intro-view {
  --view-height: 1.75rem;
  display: inline-block;
  padding-block: calc((var(--view-height) - 1em) / 2);
  margin-top: 2.4rem;
  color: var(--muted);
  font: 400 9pt/1 var(--typewriter);
  text-decoration: underline;
}
.intro-view:hover { color: var(--ink); }
.view-arrow {
  position: relative;
  display: inline-block;
  width: .62em;
  height: .65em;
  height: 1cap;
  margin-inline-start: .25em;
  vertical-align: baseline;
}
.view-arrow::before,
.view-arrow::after {
  position: absolute;
  left: 50%;
  content: "";
}
.view-arrow::before {
  top: 0;
  width: 1px;
  height: calc(100% - 1px);
  background: currentColor;
  transform: translateX(-50%);
}
.view-arrow::after {
  bottom: 1px;
  width: .36em;
  aspect-ratio: 1;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}
.journal-languages:not([hidden]) {
  display: flex;
  align-items: center;
  gap: .1rem;
  color: var(--muted);
  font: 400 .84rem/1 var(--typewriter);
}
.journal-languages :is(button, a) {
  min-width: 1.5rem;
  min-height: 1.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  letter-spacing: .035em;
  text-align: center;
}
.journal-languages a {
  display: grid;
  place-items: center;
  text-decoration: none;
}
.journal-languages :is(button, a):is(:hover, [aria-pressed="true"], [aria-current="page"]) {
  color: var(--ink);
}
.journal-languages .language-label {
  position: relative;
  display: inline-block;
}
.journal-languages :is([aria-pressed="true"], [aria-current="page"]) { font-weight: 700; }
.journal-languages :is([aria-pressed="true"], [aria-current="page"]) .language-label::before {
  position: absolute;
  inset-block-end: calc(100% + .08rem);
  inset-inline-start: 50%;
  width: .22rem;
  height: .22rem;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
  content: "";
}
.intro-photo {
  --bulb-top: 30.6%;
  --shade-rim: 36.7%;
  --light-center: 22.7%;
  --light-angle: 17deg;
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(90%, clamp(10.35rem, 18.9vw, 15.3rem));
  aspect-ratio: 1012 / 1554;
  background: var(--paper);
}
.lamp-bulb {
  position: absolute;
  z-index: 1;
  top: var(--bulb-top);
  left: var(--light-center);
  width: 10%;
  height: 3.7%;
  border: .75px solid #5b5c57;
  border-radius: 50%;
  /* The sloping front lip hides the top half of the glass. */
  clip-path: polygon(0 23%, 100% 57%, 100% 100%, 0 100%);
  transform: translateX(-50%);
  opacity: .85;
  pointer-events: none;
}
.lamp-glow {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  animation: lamp-warm-up 5s linear both;
}
.lamp-glow::before,
.lamp-glow::after {
  position: absolute;
  left: var(--light-center);
  content: "";
}
.lamp-glow::before {
  top: calc(var(--bulb-top) + 2.4%);
  width: 8.8%;
  height: 1.45%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse closest-side, #fffcea 18%, #fff5d4d1 57%, transparent);
}
.lamp-glow::after {
  top: var(--shade-rim);
  width: 128%;
  height: 43%;
  transform: translateX(-50%) rotate(var(--light-angle));
  transform-origin: top center;
  background:
    radial-gradient(ellipse 11% 34% at 50% 3%, #fffdf1e0, #fff6dc73 49%, transparent),
    radial-gradient(ellipse 28% 48% at 50% 28%, #fff8e098, #fff4d357 48%, transparent),
    radial-gradient(ellipse 50% 44% at 50% 56%, #fff3d19c, #fff2cb68 48%, #fff0c735 75%, transparent);
  mask-image: linear-gradient(transparent, #000 7%, #000 66%, transparent);
}
.lamp-switch[aria-checked="false"] + .lamp-glow {
  opacity: 0;
  animation: none;
}
.lamp-interacted .lamp-glow { animation: none; }
@keyframes lamp-warm-up {
  from { opacity: 0; }
  to { opacity: 1; }
}
.intro-photo img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lamp-switch:not([hidden]) {
  position: absolute;
  top: 98%;
  left: 48.5%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.5rem;
  min-height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
}
.lamp-switch::before,
.lamp-switch::after { grid-area: 1 / 1; content: ""; }
.lamp-switch::before {
  width: 1.65rem;
  height: .83rem;
  border: 1px solid #777775;
  border-radius: 1rem;
  background: #dededc;
}
.lamp-switch::after {
  width: .47rem;
  height: .47rem;
  border-radius: 50%;
  background: #71716e;
  transform: translateX(-.37rem);
}
.lamp-switch[aria-checked="true"]::before { background: #f9f3e6; }
.lamp-switch[aria-checked="true"]::after {
  background: #56585d;
  transform: translateX(.37rem);
}
.intro-ink-filters { position: absolute; pointer-events: none; }
.intro-copy > p {
  -webkit-mask: url("assets/intro-ink-grain.png?v=classic-lamp") 0 0 / 112px 80px repeat;
  mask: url("assets/intro-ink-grain.png?v=classic-lamp") 0 0 / 112px 80px repeat;
  filter: url("#intro-ink-edge");
}
.intro-copy > p:nth-of-type(even) {
  -webkit-mask-position: -27px -13px;
  mask-position: -27px -13px;
}
.intro-copy p > .visually-hidden { user-select: none; }
.intro-ink-grain {
  color: color-mix(in srgb, currentColor, var(--paper) var(--ink-wear));
}
.intro-ink-grain[data-wear="1"] { --ink-wear: 8%; }
.intro-ink-grain[data-wear="2"] { --ink-wear: 16%; }
.intro-ink-grain[data-wear="3"] { --ink-wear: 24%; }
.intro-ink-grain[data-wear="4"] { --ink-wear: 31%; }
.intro-copy p:first-child { font-weight: 700; }
.intro-copy p + p { margin-top: var(--intro-paragraph); }

.journal {
  width: var(--measure);
  margin: 0 auto clamp(4.75rem, 10vw, 8rem);
  scroll-margin-top: 5rem;
  overflow-anchor: none;
}
.journal-toolbar {
  display: grid;
  justify-items: start;
  margin-bottom: .8rem;
}
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: .12rem clamp(.6rem, 2vw, 1.5rem);
}
.topic {
  border: 0;
  padding: .4rem 0;
  background: transparent;
  color: var(--muted);
  font: 400 .94rem/1.45 var(--typewriter);
  -webkit-text-stroke: .18px currentColor;
  white-space: nowrap;
}
.topic:hover, .topic[aria-pressed="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: .35em;
}
@media (min-width: 601px) {
  .journal-toolbar {
    grid-template: "topics languages" auto / minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1rem;
  }
  .journal-toolbar .topics { grid-area: topics; }
  .journal-languages:not([hidden]) {
    grid-area: languages;
    justify-self: end;
    font-size: .8rem;
  }
  .journal-languages :is(button, a) { letter-spacing: .075em; }
}
.search-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: .88rem;
}
.search-results p {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .24em;
}
.search-results button {
  min-height: 2.3rem;
  padding: .32rem .65rem;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  white-space: nowrap;
}
.search-results button:hover {
  border-color: var(--muted);
  background: #dfe0e2;
}

.entry { margin-bottom: .43rem; }
.entry-trigger {
  display: grid;
  grid-template-columns: var(--index-col) minmax(0, 1fr);
  align-items: stretch;
  column-gap: var(--index-gap);
  width: 100%;
  min-height: 2.63rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: start;
}
.entry-meta, .entry-title {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  transition: color .18s ease, border-color .18s ease;
}
.entry-meta {
  padding: .45rem .63rem .43rem .42rem;
  border-right: 1px solid var(--rule);
  color: var(--muted);
  font: 400 .9rem/1.45 var(--typewriter);
  word-break: keep-all;
}
.entry-date { white-space: nowrap; }
.entry-title {
  padding: .48rem 0 .44rem .42rem;
  font-size: 1rem;
  line-height: 1.48;
  letter-spacing: -.018em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.entry-category {
  margin-inline-start: .25em;
  color: var(--muted);
  font: 400 .71em/1 var(--typewriter);
  white-space: nowrap;
}
.entry-trigger[aria-expanded="true"] .entry-title { border-bottom-color: #888c8f; }
.empty-list { padding: 1.15rem .42rem; border-top: 1px solid var(--rule); color: var(--muted); }

.entry-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows var(--slide-duration) var(--slide),
              visibility var(--slide-duration);
}
.entry.is-open .entry-panel {
  grid-template-rows: 1fr;
  visibility: visible;
}
.entry-clip { min-height: 0; overflow: hidden; }
.article {
  margin-left: var(--index-col);
  padding: 1.95rem clamp(.65rem, 2vw, 1.5rem) 2.4rem calc(var(--index-gap) + .42rem + 1px);
  border-bottom: 1px solid var(--rule);
}
.article > * { max-width: 42rem; }
.article .translation-status {
  margin-bottom: .65rem;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
}
.article .translation-status:empty { margin: 0; }
:is(.entry-title [lang="ja"], .article-copy[lang="ja"], .archive-row a[lang="ja"], html[lang="ja"] .read-page h1) {
  font-family: 'Courier Prime', 'Hiragino Sans', 'Yu Gothic', Meiryo, system-ui, sans-serif;
  line-break: strict;
  word-break: normal;
}
.article figure { margin-bottom: 1.65rem; }
.article figcaption { color: var(--muted); margin-top: .35rem; font-size: .875rem; }
.article p { margin-bottom: 1.1rem; line-height: 1.95; white-space: pre-line; overflow-wrap: anywhere; word-break: keep-all; }
.article-permalink { display: block; width: fit-content; font-size: .875em; color: var(--muted); }
.article-tags { display: flex; flex-wrap: wrap; gap: .3rem .75rem; margin-block: 1.45rem .65rem; }
.article-tags a { color: var(--muted); font-size: .875em; }
.article-copy strong { font-weight: 700; }
.article-copy[lang="ja"] p { word-break: normal; }

.read-page { width: var(--measure); margin-inline: auto; }
.read-page .article { max-width: 46rem; margin: 0 auto; padding: clamp(1rem, 3vw, 2.5rem) 0 3.5rem; }
.read-page .article h1 { font-size: clamp(1.2rem, 3vw, 2rem); line-height: 1.4; }
.read-page .article-header { margin-bottom: 1.85rem; }
.read-page .article-date { display: block; color: var(--muted); font: .875rem var(--typewriter); margin-top: .5rem; }
.read-page .archive-row { display: block; padding-block: .6rem; border-bottom: 1px solid var(--rule); }
.read-page .archive-row time { display: inline-block; min-width: 6.4rem; color: var(--muted); font: .875rem var(--typewriter); }
.close-entry {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-block: 1.25rem 0;
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #555553;
}
.close-entry::before {
  content: "";
  width: .55rem;
  height: .55rem;
  margin-top: .3rem;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: rotate(45deg);
}
.close-entry:hover { color: var(--ink); }

.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: .2rem .54rem;
  padding-top: 1.25rem;
  font: 400 .95rem/1.4 var(--typewriter);
}
.pagination[hidden] { display: none; }
.pagination button {
  display: block;
  min-width: 1.7rem;
  min-height: 1.85rem;
  padding: .15rem .28rem;
  border: 0;
  background: none;
}
.pagination button:hover,
.pagination button[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .22em;
}
.pagination button[aria-current="page"], .page-gap { color: var(--muted); }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.9rem;
  width: var(--measure);
  margin-inline: auto;
  border-top: 1px solid var(--rule);
  font-size: .875rem;
}
.site-footer div { display: flex; align-items: center; gap: 1rem; }
.site-footer a { text-decoration: none; }
.copyright { font: 400 .9rem/1.45 var(--typewriter); }
.site-footer a:hover, .site-footer button:hover { text-decoration: underline; }
.site-footer button, .editor-header button { border: 0; background: none; padding: .38rem 0; }

dialog { border: 1px solid var(--ink); background: var(--paper); color: var(--ink); width: min(38rem, 100% - 2rem); max-height: calc(100% - 2rem); padding: clamp(1rem, 3vw, 2rem); }
dialog::backdrop { background: #17181770; }
.editor-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.editor-header h2 { font: 600 1.5rem/1.2 var(--text); }
#post-form { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
#post-form label { display: grid; gap: .25rem; font-size: .9rem; min-width: 0; }
.full { grid-column: 1 / -1; }
:is(input, select, textarea) { border: 1px solid var(--rule); border-radius: 0; padding: .45rem .55rem; background: white; color: var(--ink); min-width: 0; width: 100%; }
input[type=file] { font-size: .9rem; }
textarea { resize: vertical; }
.editor-note, .editor-status, label small { color: var(--muted); font-size: .875rem; }
.editor-status:empty { display: none; }
.editor-actions { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: .5rem; align-items: center; }
.editor-actions button, .import-button { border: 1px solid var(--rule); background: transparent; padding: .45rem .65rem; font-size: .875rem; cursor: pointer; }
.editor-actions button[type=submit] { margin-left: auto; background: var(--ink); border-color: var(--ink); color: white; }
.file-input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; }
.import-button:has(+ .file-input:focus-visible) { outline: 2px solid var(--muted); outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3.25' fill='%23171717'/%3E%3C/svg%3E") 12 12, auto;
  }
  :is(a[href], button:not(:disabled), select, .import-button, input[type="file"]) {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cdefs%3E%3CradialGradient id='halo'%3E%3Cstop stop-color='%23ffbd5e' stop-opacity='.88'/%3E%3Cstop offset='1' stop-color='%23ffc66e' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='14' cy='14' r='13' fill='url(%23halo)'/%3E%3Ccircle cx='14' cy='14' r='3.4' fill='%23fff2ce' stroke='%23926230' stroke-width='.8'/%3E%3C/svg%3E") 14 14, pointer;
  }
  :is(input:not([type="file"]), textarea) { cursor: text; }
}
@media (min-width: 980px) {
  :root { --measure: min(calc(100% - 2 * var(--gutter)), 72.5rem); }
}
@media (max-width: 600px) {
  :root {
    --gutter: clamp(1rem, 5.2vw, 1.5rem);
    --sans: 'SUIT', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
    --phone-type-step: 1pt;
    --mobile-control-gap: 1rem;
  }
  body { font-size: calc(1rem - var(--phone-type-step)); }
  .header-inner { position: relative; min-height: 3.5rem; padding-block: .32rem; }
  .site-header :is(h1, .wordmark) { font-size: 10pt; }
  .site-header :is(h1, .wordmark) a { display: flex; align-items: center; min-height: 2.75rem; }
  .header-tools { flex: 0 1 auto; min-width: 0; gap: 0; }
  .instagram-link { width: 2.75rem; height: 2.75rem; }
  .instagram-icon { transform: translateX(.45rem); }
  .search-toggle:not([hidden]) {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .journal-search { min-width: 0; width: clamp(7rem, 29vw, 8rem); }
  .search-toggle:not([hidden]) + .journal-search {
    position: absolute;
    inset: 100% 0 auto;
    width: auto;
    padding-left: .3rem;
    background: var(--paper);
  }
  .search-toggle:not([hidden])[aria-expanded="false"] + .journal-search { display: none; }
  .journal-search input { padding-block: .45rem; font-size: 1rem; }
  .journal-search input::placeholder { font-size: calc(1rem - var(--phone-type-step)); }
  .journal-search button { width: 2.75rem; height: 2.75rem; }

  .intro { min-height: 0; margin-block-start: 2.25rem; padding-block: .9rem clamp(3.25rem, 14vw, 4rem); }
  .intro-grid { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .intro-copy { --intro-line: 1.42; max-width: none; margin: 0; }
  .intro-view {
    --view-height: 2.75rem;
    min-width: 2.75rem;
    margin-top: calc(1.9rem - var(--phone-type-step));
    -webkit-tap-highlight-color: transparent;
  }
  .journal-languages:not([hidden]) {
    gap: 0;
    font-size: calc(.84rem - var(--phone-type-step));
  }
  .journal-languages :is(button, a) {
    min-height: 2.75rem;
    padding-block-start: .5rem;
  }
  .language-punctuation { transform: translateY(.25rem); }
  .language-separator {
    display: flex;
    justify-content: center;
    inline-size: .31rem;
  }
  .intro-copy p {
    -webkit-mask-size: 84px 60px;
    mask-size: 84px 60px;
    filter: url("#intro-ink-edge-mobile");
    font-size: 9pt;
  }
  .intro-ink-grain[data-wear="1"] { --ink-wear: 4%; }
  .intro-ink-grain[data-wear="2"] { --ink-wear: 8%; }
  .intro-ink-grain[data-wear="3"] { --ink-wear: 14%; }
  .intro-ink-grain[data-wear="4"] { --ink-wear: 19%; }
  .intro-copy p:nth-child(3) { text-wrap: pretty; }
  .intro-photo {
    justify-self: end;
    width: clamp(8.75rem, 36.5vw, 10.4rem);
    margin: -2.75rem .55rem 1.5rem 0;
  }
  .lamp-switch:not([hidden]) { width: 2.75rem; min-height: 2.75rem; }

  .journal {
    width: min(calc(100% - 2 * (var(--gutter) + .4rem)), 34rem);
    margin-bottom: 2.8rem;
    scroll-margin-top: 4.2rem;
  }
  .journal:focus { outline: none; }
  .journal-toolbar { margin-bottom: .46rem; }
  .topics { column-gap: var(--mobile-control-gap); }
  .topic { min-height: 2.75rem; padding-block: .65rem; font-size: 9pt; }
  .search-results { font-size: calc(.88rem - var(--phone-type-step)); }
  .search-results button { min-height: 2.75rem; }
  .entry { margin-bottom: .22rem; }
  .entry-trigger {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    row-gap: .14rem;
    min-height: 3rem;
    padding: .34rem .15rem .36rem .7rem;
    border-bottom: 1px solid var(--rule);
  }
  .entry-trigger::before {
    position: absolute;
    inset-block: .39rem .42rem;
    inset-inline-start: 0;
    border-inline-start: 1px solid var(--rule);
    content: "";
  }
  .entry-trigger[aria-expanded="true"] { border-bottom-color: #888c8f; }
  .entry-meta, .entry-title { display: block; padding: 0; border: 0; }
  .entry-meta { font-size: 7pt; }
  .entry-title { font-size: calc(1.04rem - var(--phone-type-step)); }
  .entry-title [lang] { font-size: 9pt; }
  .entry-title .entry-category { font-size: 6pt; }
  .entry-panel.motion-panel {
    display: block;
    height: 0;
    overflow: hidden;
    transition: none;
  }
  .entry.is-open .entry-panel.motion-panel { height: auto; }
  .entry-panel.motion-panel.is-sliding { visibility: visible; }
  .article { margin: 0; padding: .85rem .15rem 1.25rem .7rem; }
  .article figure { margin-bottom: 1.2rem; }
  .article-copy p {
    font-size: 9pt;
    line-height: 1.78;
  }
  .article figcaption { font-size: calc(.875rem - var(--phone-type-step)); }
  .article .translation-status { font-size: calc(.85rem - var(--phone-type-step)); }
  .close-entry { width: 2.75rem; height: 2.75rem; margin-top: .75rem; }
  .pagination {
    justify-content: center;
    gap: .2rem 0;
    padding-top: .85rem;
    font-size: calc(.95rem - var(--phone-type-step));
  }
  .pagination button { min-width: 0; min-height: 2.75rem; }
  .pagination :is(button, .page-gap) { padding-inline: calc(var(--mobile-control-gap) / 2); }

  .site-footer { min-height: 3.5rem; font-size: calc(.875rem - var(--phone-type-step)); }
  .copyright { font-size: calc(.9rem - var(--phone-type-step)); }
  .site-footer :is(a, button), .editor-header button { display: flex; align-items: center; min-height: 2.75rem; }
  #editor { width: calc(100% - 1.25rem); max-height: calc(100dvh - 1.25rem); overscroll-behavior: contain; }
  #post-form { grid-template-columns: 1fr; }
  #editor :is(input, select, textarea) { font-size: 1rem; }
  .editor-actions :is(button, .import-button) { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .editor-actions button[type="submit"] { width: 100%; justify-content: center; margin-left: 0; }
}

@media (max-width: 380px) {
  .topics { column-gap: .3rem; }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .lamp-managed .lamp-glow { opacity: 0; animation: none; }
  .lamp-managed.lamp-lit .lamp-glow { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .intro-typing-line .untyped { opacity: 0; }
  .intro-typing-line .typing-caret { position: relative; }
  .intro-typing-line .typing-caret::after {
    position: absolute;
    inset: auto -.12em .1em auto;
    width: 1px;
    height: .78em;
    background: currentColor;
    content: "";
  }
}
@media (prefers-reduced-motion: reduce) {
  :root { --slide-duration: 0s; }
  html { scroll-behavior: auto; }
  .lamp-glow { animation: none; }
  .entry-meta, .entry-title { transition: none; }
}
