:root {
  color-scheme: dark;
  --ink: #f1f2ef;
  --muted: rgba(241, 242, 239, 0.68);
  --faint: rgba(241, 242, 239, 0.34);
  --line: rgba(241, 242, 239, 0.19);
  --accent: #f08a28;
  --surface: #080a09;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 300;
  letter-spacing: 0;
}

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

button {
  color: inherit;
  font: inherit;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #050706;
  overflow: hidden;
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 6, 5, 0.96) 0%, rgba(4, 6, 5, 0.75) 34%, rgba(4, 6, 5, 0.25) 59%, rgba(4, 6, 5, 0.72) 100%),
    linear-gradient(0deg, rgba(4, 6, 5, 0.96) 0%, rgba(4, 6, 5, 0.25) 57%, rgba(4, 6, 5, 0.68) 100%);
}

.site-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 45%;
  filter: saturate(0.58) brightness(0.7) contrast(1.08);
  transform: scale(1.045);
  animation: background-drift 18s ease-in-out infinite alternate;
}

.page-shell {
  display: flex;
  flex-direction: column;
  width: min(1440px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(24px, 3.6vw, 56px) clamp(24px, 4.2vw, 66px) 28px;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

.brand {
  width: max-content;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.15rem, 1.55vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.7vw, 56px);
}

.site-nav a {
  position: relative;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 220ms ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 22px;
}


main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.statement {
  margin-top: clamp(90px, 14vh, 160px);
  margin-left: 2%;
}

.statement h1 {
  margin: 0;
  font-size: clamp(2.25rem, 3.25vw, 3.65rem);
  font-weight: 300;
  line-height: 1.65;
}

.statement p {
  margin: 24px 0 0;
  color: rgba(241, 242, 239, 0.8);
  font-size: clamp(0.78rem, 1vw, 0.96rem);
  line-height: 2.05;
}

.content-columns {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 1.1fr;
  gap: clamp(34px, 5vw, 72px);
  margin-top: auto;
  padding-top: clamp(64px, 11vh, 124px);
}

.column {
  min-width: 0;
}

.column h2 {
  margin: 0 0 19px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

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

.note-list a {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  transition: padding 180ms ease, color 180ms ease;
}

.note-list a:hover {
  padding-left: 7px;
  color: var(--accent);
}

.note-list time {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.note-list i,
.more-link span,
.work-list a span {
  font-style: normal;
  transition: transform 180ms ease;
}

.note-list a:hover i,
.more-link:hover span,
.work-list a:hover span {
  transform: translateX(5px);
}

.work-list article {
  border-bottom: 1px solid var(--line);
  padding: 0 0 11px;
  margin-bottom: 12px;
}

.work-list h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 300;
}

.work-list p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

.work-list a,
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
}

.work-list a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.more-link {
  margin-top: 13px;
  transition: color 180ms ease;
}

.more-link:hover,
.work-list a:hover {
  color: var(--accent);
}

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

.photo-grid button {
  position: relative;
  display: block;
  aspect-ratio: 1.14;
  overflow: hidden;
  border: 1px solid rgba(241, 242, 239, 0.13);
  padding: 0;
  background: #101310;
  cursor: zoom-in;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.75);
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), filter 400ms ease;
}

.photo-grid button:nth-child(2) img {
  object-position: 48% 40%;
}

.photo-grid button:nth-child(4) img {
  object-position: 50% 38%;
}

.photo-grid button:hover img {
  transform: scale(1.075);
  filter: brightness(0.94) saturate(0.95);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 34px;
  color: var(--muted);
  font-size: 0.74rem;
}

.site-footer div {
  display: flex;
  gap: 15px;
}

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

.archive-bg img {
  object-position: 64% 46%;
  filter: saturate(0.42) brightness(0.43) contrast(1.15);
}

.archive-shell {
  min-height: 100svh;
}

.archive-page {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(64px, 11vw, 170px);
  align-items: start;
  margin: auto 0;
  padding: 90px 6% 70px;
}

.archive-heading p {
  margin: 0 0 30px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.archive-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 3.35vw, 3.6rem);
  font-weight: 300;
  line-height: 1.65;
}

.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.archive-list a {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
  transition: padding 220ms ease, color 180ms ease, background 180ms ease;
}

.archive-list a:hover {
  padding: 0 12px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.025);
}

.archive-list time {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.archive-list span,
.archive-list small,
.archive-list b {
  display: block;
}

.archive-list b {
  font-size: 0.96rem;
  font-weight: 300;
}

.archive-list small {
  margin-top: 7px;
  color: var(--faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  font-weight: 400;
}

.archive-list i {
  font-style: normal;
}

.article-shell {
  width: min(1080px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
}

.article-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.article-header > a:last-child {
  color: var(--muted);
  font-size: 0.76rem;
  transition: color 180ms ease;
}

.article-header > a:last-child:hover {
  color: var(--accent);
}

.article-main {
  display: block;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(76px, 10vw, 130px) 0 100px;
}

.article-meta {
  display: flex;
  gap: 22px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-title {
  margin: 24px 0 22px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 300;
  line-height: 1.35;
}

.article-lead {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 2;
}

.article-cover {
  margin: 60px 0 72px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.8);
}

.article-body {
  width: min(640px, 100%);
  margin: 0 auto;
}

.article-body section + section {
  margin-top: 56px;
}

.article-body h2 {
  margin: 0 0 18px;
  font-size: 1.3rem;
  font-weight: 400;
}

.article-body h2::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  margin: 0 14px 5px 0;
  background: var(--accent);
}

.article-body p {
  margin: 0;
  color: rgba(241, 242, 239, 0.78);
  font-size: 0.92rem;
  line-height: 2.2;
}

.article-body > * + * {
  margin-top: 28px;
}

.article-body h2,
.article-body h3 {
  margin-bottom: 18px;
  font-weight: 400;
}

.article-body h2 {
  margin-top: 56px;
  font-size: 1.3rem;
}

.article-body h3 {
  margin-top: 42px;
  font-size: 1.08rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4em;
  color: rgba(241, 242, 239, 0.78);
  font-size: 0.92rem;
  line-height: 2.1;
}

.article-body a,
.preview-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-body blockquote,
.preview-body blockquote {
  margin-left: 0;
  border-left: 1px solid var(--accent);
  padding-left: 22px;
  color: var(--muted);
}

.article-body code,
.preview-body code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.86em;
}

.article-body pre,
.preview-body pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  padding: 18px;
  background: #050706;
  line-height: 1.7;
}

.archive-empty {
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
  color: var(--muted);
  list-style: none;
}

.admin-body {
  background: #090b0a;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
}

.admin-header div,
.editor-toolbar > div {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-header a:not(.brand),
.admin-header button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--muted);
  font-size: 0.74rem;
  cursor: pointer;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 70px);
}

.admin-sidebar {
  border-right: 1px solid var(--line);
  padding: 26px 0;
}

.admin-sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 20px;
}

.admin-sidebar-heading h1 {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.icon-command {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.admin-post-list button {
  display: block;
  width: 100%;
  min-height: 70px;
  border: 0;
  border-top: 1px solid rgba(241, 242, 239, 0.09);
  padding: 13px 22px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.admin-post-list button:last-child {
  border-bottom: 1px solid rgba(241, 242, 239, 0.09);
}

.admin-post-list button:hover,
.admin-post-list button.active {
  background: rgba(255, 255, 255, 0.035);
}

.admin-post-list button.active {
  box-shadow: inset 2px 0 var(--accent);
}

.admin-post-list b,
.admin-post-list span {
  display: block;
}

.admin-post-list b {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-post-list span {
  margin-top: 7px;
  color: var(--faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.admin-editor {
  min-width: 0;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  border-bottom: 1px solid var(--line);
  padding: 0 26px;
}

.editor-mode,
.editor-preview > p {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.save-state {
  color: var(--muted);
  font-size: 0.7rem;
}

.editor-toolbar button,
.editor-toolbar a {
  border: 0;
  background: none;
  font-size: 0.74rem;
  cursor: pointer;
}

.primary-command {
  min-width: 72px;
  min-height: 34px;
  background: var(--accent) !important;
  color: #080a09;
  font-weight: 500;
}

.danger-command {
  color: #e08076;
}

.preview-link {
  color: var(--muted);
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(380px, 1.1fr);
  min-height: calc(100vh - 136px);
}

.editor-fields,
.editor-preview {
  min-width: 0;
  padding: 28px;
}

.editor-fields {
  border-right: 1px solid var(--line);
}

.editor-fields label,
.login-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.68rem;
}

.editor-fields > label + label,
.editor-fields > .field-row + label,
.editor-fields > label + .field-row {
  margin-top: 22px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 22px;
}

.editor-fields input,
.editor-fields textarea,
.editor-fields select,
.login-form input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
}

.editor-fields input:focus,
.editor-fields textarea:focus,
.editor-fields select:focus,
.login-form input:focus {
  border-color: var(--accent);
}

.editor-fields select option {
  background: #0d100e;
}

.editor-fields textarea {
  resize: vertical;
  line-height: 1.8;
}

.body-field textarea {
  min-height: 390px;
  font-family: "IBM Plex Mono", "Noto Sans JP", monospace;
}

.editor-preview {
  overflow: auto;
  max-height: calc(100vh - 136px);
  background: #070908;
}

.editor-preview > p {
  margin: 0 0 34px;
}

.editor-preview article {
  width: min(620px, 100%);
  margin: 0 auto;
}

.editor-preview h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.4;
}

.editor-preview [data-preview-excerpt] {
  color: var(--muted);
  line-height: 1.9;
}

.editor-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 28px 0;
  object-fit: cover;
  filter: brightness(0.8) saturate(0.7);
}

.preview-body {
  color: rgba(241, 242, 239, 0.78);
  font-size: 0.86rem;
  line-height: 2;
}

.preview-body h2 {
  margin-top: 40px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 400;
}

.login-page {
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(100% - 40px, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0;
}

.login-form {
  display: grid;
  align-content: center;
  width: min(430px, 100%);
  margin: 0 auto;
}

.login-form > div p {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.login-form h1 {
  margin: 0 0 58px;
  font-size: clamp(2.2rem, 6vw, 3.7rem);
  font-weight: 300;
}

.login-form button {
  display: flex;
  justify-content: space-between;
  margin-top: 34px;
  border: 0;
  border-bottom: 1px solid var(--accent);
  padding: 12px 0;
  background: transparent;
  cursor: pointer;
}

.login-form button:disabled {
  opacity: 0.5;
}

.form-message {
  min-height: 22px;
  color: #e08076;
  font-size: 0.72rem;
}

.article-footer {
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.article-missing {
  min-height: 60vh;
}

.article-missing p {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
}

.article-missing h1 {
  margin: 26px 0;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
}

.article-missing a {
  color: var(--muted);
}

.lightbox {
  width: min(92vw, 1100px);
  max-width: none;
  border: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(2, 3, 3, 0.92);
  backdrop-filter: blur(16px);
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  right: 0;
  top: -44px;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  font-weight: 200;
  cursor: pointer;
}

.intro {
  display: none;
}

.play-intro {
  overflow: hidden;
}

.play-intro .intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.intro-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  background: #060807;
  will-change: transform;
}

.intro-panel-left {
  left: 0;
  border-right: 2px solid var(--accent);
  animation: shutter-left 920ms cubic-bezier(0.76, 0, 0.14, 1) 420ms forwards;
}

.intro-panel-right {
  right: 0;
  border-left: 2px solid var(--accent);
  animation: shutter-right 920ms cubic-bezier(0.76, 0, 0.14, 1) 420ms forwards;
}

.intro-word {
  z-index: 2;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1rem, 2vw, 1.45rem);
  letter-spacing: 0.08em;
  animation: intro-word 880ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro-streaks {
  position: absolute;
  z-index: 3;
  width: min(76vw, 980px);
  height: 160px;
  transform: skewX(-18deg);
}

.intro-streaks span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), var(--accent), transparent);
  transform: translateX(-120%) scaleX(0.3);
  animation: streak 760ms cubic-bezier(0.76, 0, 0.14, 1) forwards;
}

.intro-streaks span:nth-child(1) { top: 24px; animation-delay: 130ms; }
.intro-streaks span:nth-child(2) { top: 80px; animation-delay: 210ms; }
.intro-streaks span:nth-child(3) { top: 136px; animation-delay: 290ms; }

.play-intro .site-header,
.play-intro .statement,
.play-intro .content-columns,
.play-intro .site-footer {
  animation: reveal-page 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.play-intro .site-header { animation-delay: 900ms; }
.play-intro .statement { animation-delay: 1010ms; }
.play-intro .content-columns { animation-delay: 1120ms; }
.play-intro .site-footer { animation-delay: 1220ms; }

@keyframes shutter-left {
  0%, 18% { transform: translateX(0); }
  100% { transform: translateX(-103%); }
}

@keyframes shutter-right {
  0%, 18% { transform: translateX(0); }
  100% { transform: translateX(103%); }
}

@keyframes streak {
  0% { opacity: 0; transform: translateX(-120%) scaleX(0.3); filter: blur(8px); }
  22% { opacity: 1; }
  70% { opacity: 1; transform: translateX(18%) scaleX(1.1); filter: blur(0); }
  100% { opacity: 0; transform: translateX(126%) scaleX(0.25); filter: blur(5px); }
}

@keyframes intro-word {
  0% { opacity: 0; transform: translateX(-32px); filter: blur(12px); }
  35% { opacity: 1; transform: translateX(0); filter: blur(0); }
  100% { opacity: 0; transform: translateX(52px); filter: blur(8px); }
}

@keyframes reveal-page {
  from { opacity: 0; transform: translateX(-18px); filter: blur(9px); }
  to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

@keyframes background-drift {
  from { transform: scale(1.045) translate3d(-0.7%, -0.5%, 0); }
  to { transform: scale(1.085) translate3d(0.8%, 0.6%, 0); }
}

@media (max-width: 900px) {
  .page-shell {
    padding: 24px 20px 28px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    order: 3;
    padding-top: 10px;
  }

  .site-bg img {
    object-position: 62% 42%;
  }

  .site-bg::after {
    background:
      linear-gradient(180deg, rgba(4, 6, 5, 0.73), rgba(4, 6, 5, 0.28) 35%, rgba(4, 6, 5, 0.9) 62%, rgba(4, 6, 5, 0.98)),
      linear-gradient(90deg, rgba(4, 6, 5, 0.86), rgba(4, 6, 5, 0.3));
  }

  .statement {
    margin: 100px 0 0;
  }

  .statement h1 {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
    line-height: 1.55;
  }

  .statement p br {
    display: none;
  }

  .content-columns {
    grid-template-columns: 1fr;
    gap: 60px;
    margin-top: 110px;
    padding-top: 0;
  }

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

  .photo-grid button {
    aspect-ratio: 1;
  }

  .site-footer {
    margin-top: 72px;
  }

  .archive-page {
    grid-template-columns: 1fr;
    gap: 70px;
    margin: 0;
    padding: 110px 0 20px;
  }

  .archive-list a {
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 14px;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-post-list {
    display: flex;
    overflow-x: auto;
  }

  .admin-post-list button {
    min-width: 220px;
    border-bottom: 1px solid rgba(241, 242, 239, 0.09);
  }

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

  .editor-fields {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .editor-preview {
    max-height: none;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 1.05rem;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 0.78rem;
  }

  .note-list a {
    grid-template-columns: 82px minmax(0, 1fr) auto;
    font-size: 0.75rem;
  }

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

  .article-shell {
    width: min(100% - 32px, 760px);
  }

  .article-header {
    padding: 24px 0;
  }

  .article-main {
    padding-top: 72px;
  }

  .article-title {
    font-size: 2.45rem;
  }

  .article-cover {
    margin: 46px 0 56px;
    aspect-ratio: 4 / 3;
  }

  .admin-header {
    padding: 0 16px;
  }

  .admin-header div {
    gap: 12px;
  }

  .editor-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .editor-toolbar > div:last-child {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .editor-fields,
  .editor-preview {
    padding: 22px 16px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

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

  .intro {
    display: none !important;
  }
}
