/* =========================================================
   Sistem dasar
   Palet: kertas putih, krem hangat, tinta hitam pekat.
   Tipografi: Instrument Serif (judul) + Instrument Sans (teks).
   ========================================================= */

:root {
  --paper: #ffffff;
  --cream: #EDE7E2;
  --cream-deep: #eae2d2;
  --ink: #000000;
  --ink-soft: #57524a;
  --ink-faint: #8b857b;
  --rule: #ded6c5;

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.32rem + 0.9vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.7rem, 1.9rem + 4vw, 5.6rem);

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --shell: 1200px;
  --measure: 66ch;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Elemen bertanda hidden harus selalu tersembunyi, termasuk yang
   punya display grid/flex seperti gerbang login dan panel admin. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  cursor: pointer;
}

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

::selection {
  background: var(--ink);
  color: var(--cream);
}

.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0; }

/* =========================================================
   Header
   ========================================================= */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
}

.wordmark i {
  font-style: italic;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.2rem);
}

.nav a {
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  padding-block: 0.35rem;
  position: relative;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.1rem;
  height: 1px;
  background: var(--ink);
  transition: right 0.35s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { right: 0; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: var(--step--1);
  color: var(--ink);
}

@media (max-width: 720px) {
  .nav__toggle { display: inline-block; }
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 60px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a {
    width: 100%;
    font-size: var(--step-1);
    font-family: var(--font-display);
    padding-block: 0.7rem;
    border-bottom: 1px solid var(--cream-deep);
    color: var(--ink);
  }
  .nav a::after { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 7vw, 6rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Sampul latar hero. Kalau tidak diisi dari panel admin, elemen ini
   tidak tampil apa-apa dan hero kembali polos seperti semula. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--cream-deep);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: grayscale(0.42) contrast(0.88) brightness(1.08);
}

/* Gambar dibuat memudar dari warna header agar sambungannya tidak terlihat
   seperti terpotong. Lapisan ini juga menjaga teks tetap mudah dibaca. */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--paper) 0,
    color-mix(in srgb, var(--paper) 88%, transparent) 3rem,
    color-mix(in srgb, var(--paper) 70%, transparent) 9rem,
    color-mix(in srgb, var(--paper) 66%, transparent) 100%
  );
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  max-width: 14ch;
}

.hero__title em {
  font-style: italic;
  position: relative;
  display: inline-block;
}

.hero__title em::after {
  content: "";
  position: absolute;
  left: 0.05em;
  right: 0.05em;
  bottom: 0.06em;
  height: 0.28em;
  background: var(--cream-deep);
  z-index: -1;
  transform: skewX(-12deg);
}

.hero__lede {
  max-width: 44ch;
  color: var(--ink);
  font-size: var(--step-1);
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 1px 1rem rgb(255 255 255 / 0.9);
}

/* Bingkai foto wajah. Ukurannya tetap: gambar sebesar apa pun
   yang diunggah akan dipotong rapi mengikuti bingkai ini. */
.portrait {
  margin: 0 0 0 auto;
  width: clamp(12rem, 22vw, 16rem);
  max-width: 100%;
  justify-self: end;
  align-self: end;
  aspect-ratio: 4 / 5;
  background: var(--cream);
  border: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
}

/* Blok krem di belakang bingkai, sedikit bergeser */
.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream-deep);
}

.portrait img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(1) contrast(1.03);
  transition: filter 0.6s var(--ease), transform 0.9s var(--ease);
}

.portrait:hover img {
  filter: grayscale(0);
  transform: scale(1.03);
}

@media (max-width: 860px) {
  .portrait {
    margin: 2rem auto 0;
    justify-self: center;
    width: min(70vw, 15rem);
  }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Bagian umum
   ========================================================= */

.band {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.band--cream {
  background: var(--cream);
  border-block: 1px solid var(--rule);
}

.band__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.band__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0;
}

.band__note {
  color: var(--ink-faint);
  font-size: var(--step--1);
  margin: 0;
}

.prose-block {
  max-width: var(--measure);
  font-size: var(--step-1);
  line-height: 1.55;
}

.prose-block p { margin: 0 0 1.2em; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.chips li {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
  background: var(--paper);
}

/* Riwayat: ini memang urutan waktu, jadi pakai penanda periode */
.timeline {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.timeline li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem 2rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.timeline span {
  color: var(--ink-faint);
  font-size: var(--step--1);
  padding-top: 0.35rem;
}

.timeline h3 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  margin: 0 0 0.2rem;
}

.timeline p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

@media (max-width: 720px) {
  .timeline li { grid-template-columns: 1fr; gap: 0.3rem; }
  .timeline span { padding-top: 0; }
}

/* =========================================================
   Proyek
   ========================================================= */

.works {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.work {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.work:hover {
  border-color: #c8bdad;
  box-shadow: 0 1rem 2.75rem rgba(33, 25, 17, 0.08);
  transform: translateY(-3px);
}

/* Satu proyek tidak perlu melebar satu layar penuh. */
.works:has(.work:only-child) {
  grid-template-columns: minmax(0, 58rem);
}

.works:has(.work:only-child) .work {
  display: grid;
  grid-template-columns: minmax(16rem, 0.88fr) minmax(0, 1.12fr);
}

.works:has(.work:only-child) .work__media {
  height: 100%;
  min-height: 21rem;
}

.work__media {
  height: clamp(12rem, 20vw, 14rem);
  background: var(--cream-deep);
  overflow: hidden;
}

.work__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.work:hover .work__media img { transform: scale(1.04); }

.work__body {
  padding: clamp(1.25rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.work__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}

.work__year {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.work__summary {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.6;
}

.work__tags {
  margin: auto 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.work__tags li {
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.2;
  padding: 0.35rem 0.6rem;
}

@media (max-width: 720px) {
  .works:has(.work:only-child) .work {
    display: flex;
  }

  .works:has(.work:only-child) .work__media {
    height: 14rem;
    min-height: 0;
  }
}

/* =========================================================
   Indeks tulisan
   ========================================================= */

.index {
  border-top: 1px solid var(--rule);
}

.entry {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  gap: 0.5rem 2rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  isolation: isolate;
}

.entry::before {
  content: "";
  position: absolute;
  inset: 0 -1rem;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  z-index: -1;
}

.entry:hover::before,
.entry:focus-within::before { transform: scaleX(1); }

.entry__date {
  color: var(--ink-faint);
  font-size: var(--step--1);
}

.entry__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.entry__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 0;
}

/* Pratinjau gambar sampul. Lebar dan tingginya tetap,
   gambar besar otomatis dipotong mengikuti bingkai. */
.entry__thumb {
  flex: 0 0 12rem;
  width: 12rem;
  height: 8rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--cream-deep);
  border-radius: 4px;
  order: 2;
}

@media (max-width: 720px) {
  .entry__thumb {
    flex-basis: 5.5rem;
    width: 5.5rem;
    height: 4.125rem;
  }
}

.entry__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
}

.entry:hover .entry__thumb img {
  transform: scale(1.05);
}

.entry__excerpt {
  grid-column: 2;
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: var(--step--1);
  max-width: 58ch;
  line-height: 1.6;
}

.entry__meta {
  color: var(--ink-faint);
  font-size: var(--step--1);
  white-space: nowrap;
}

.entry__draft {
  border: 1px solid var(--ink);
  padding: 0.05rem 0.5rem;
  font-size: 0.72rem;
  margin-left: 0.5rem;
}

@media (max-width: 720px) {
  .entry {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-block: 1.25rem;
  }
  .entry__excerpt { grid-column: 1; }
  .entry__meta { order: 4; }
}

.tagbar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
}

.tagbar button {
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.tagbar button:hover { border-color: var(--ink); color: var(--ink); }

.tagbar button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.searchbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  max-width: 26rem;
}

.searchbox input {
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  width: 100%;
  padding: 0.25rem 0;
}

.searchbox input:focus { outline: none; }

/* =========================================================
   Artikel
   ========================================================= */

.article {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
}

.article__head {
  max-width: 22ch;
  margin-bottom: 2rem;
}

.article__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 0;
  max-width: 18ch;
}

.article__meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: var(--step--1);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.article__cover {
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  background: var(--cream);
  border: 1px solid var(--rule);
}

.article__cover img {
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
}

.prose {
  max-width: var(--measure);
  font-size: var(--step-1);
  line-height: 1.65;
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.15;
  margin-top: 2em;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  margin-top: 1.8em;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--ink-faint);
}

.prose a:hover { text-decoration-color: var(--ink); }

.prose img {
  width: 100%;
  border: 1px solid var(--rule);
  margin-block: 2rem;
}

.prose blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.3;
  font-style: italic;
}

.prose blockquote p { margin: 0; }

.prose ul,
.prose ol { padding-left: 1.2rem; }

.prose li + li { margin-top: 0.4em; }

.prose code {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 0.1em 0.35em;
  font-size: 0.85em;
}

.prose pre {
  background: var(--ink);
  color: var(--cream);
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}

.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin-block: 2.5rem;
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: clamp(3rem, 7vw, 5rem);
}

.pager a,
.pager span {
  background: var(--paper);
  padding: 1.5rem;
  display: block;
  min-height: 100%;
}

.pager a:hover { background: var(--cream); }

.pager small {
  display: block;
  color: var(--ink-faint);
  font-size: var(--step--1);
  margin-bottom: 0.35rem;
}

.pager strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-1);
  line-height: 1.2;
}

.pager :last-child { text-align: right; }

@media (max-width: 600px) {
  .pager { grid-template-columns: 1fr; }
  .pager :last-child { text-align: left; }
}

/* =========================================================
   Tombol & footer
   ========================================================= */

.btn {
  display: inline-block;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-size: var(--step--1);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:hover { background: transparent; color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn[disabled] { opacity: 0.45; pointer-events: none; }

.colophon {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(3rem, 8vw, 5.5rem) 2rem;
}

.colophon__mail {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  display: inline-block;
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 40%, transparent);
  padding-bottom: 0.1em;
  transition: border-color 0.3s var(--ease);
  word-break: break-word;
}

.colophon__mail:hover { border-color: var(--cream); }

.colophon__grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--cream) 22%, transparent);
  font-size: var(--step--1);
  color: color-mix(in srgb, var(--cream) 72%, transparent);
}

.colophon__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.colophon__links a { border-bottom: 1px solid transparent; }
.colophon__links a:hover { border-color: var(--cream); color: var(--cream); }

/* =========================================================
   Status kosong / memuat
   ========================================================= */

.empty {
  border: 1px dashed var(--rule);
  padding: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
  color: var(--ink-soft);
  background: var(--cream);
}

.empty h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.empty p { margin: 0 auto; max-width: 40ch; font-size: var(--step--1); }

.loading {
  color: var(--ink-faint);
  font-size: var(--step--1);
  padding-block: 2rem;
}

/* =========================================================
   Panel admin
   ========================================================= */

.gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: var(--cream);
}

.gate__card {
  width: min(100%, 24rem);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(1.75rem, 5vw, 2.5rem);
}

.gate__card h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1;
  margin: 0 0 0.4rem;
}

.gate__card > p {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0.65rem 0.8rem;
  transition: border-color 0.25s var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.6;
}

.field--mono textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  min-height: 26rem;
}

.field__hint {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin: 0.35rem 0 0;
}

.notice {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--ink);
  background: var(--cream);
  font-size: var(--step--1);
  margin-bottom: 1rem;
}

.notice[hidden] { display: none; }

.admin {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--cream);
}

.admin__bar {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 0.85rem;
}

.admin__tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.25rem;
}

.admin__tabs button {
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.admin__tabs button:hover { color: var(--ink); }

.admin__tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
}

/* Isian yang diisi otomatis browser tetap ikut warna situs */
input:-webkit-autofill,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 3rem var(--paper) inset;
}

.admin .band__title { font-size: var(--step-2); }

.admin__main .band__head { margin-bottom: 1.25rem; }

.admin__main { padding-block: clamp(1.5rem, 4vw, 2.5rem); }

.panel[hidden] { display: none; }

.editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}

.editor__main,
.editor__side {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(1.1rem, 3vw, 1.75rem);
}

.editor__side { position: sticky; top: 5rem; }

@media (max-width: 900px) {
  .editor { grid-template-columns: 1fr; }
  .editor__side { position: static; }
}

.toolbar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.toolbar button {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.toolbar button:hover { border-color: var(--ink); color: var(--ink); }

.dropzone {
  border: 1px dashed var(--rule);
  background: var(--cream);
  padding: 1.25rem;
  text-align: center;
  font-size: var(--step--1);
  color: var(--ink-soft);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.dropzone[data-drag="true"] {
  border-color: var(--ink);
  background: var(--cream-deep);
}

.dropzone input { display: none; }

.thumb {
  margin-top: 0.75rem;
  border: 1px solid var(--rule);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cream-deep);
}

/* Preview sampul proyek cukup besar untuk diperiksa, tanpa memenuhi panel. */
.thumb--project { max-width: 32rem; }

.thumb img { width: 100%; height: 100%; object-fit: cover; }

.bar {
  height: 2px;
  background: var(--cream-deep);
  margin-top: 0.75rem;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width 0.25s linear;
}

.rows { border-top: 1px solid var(--rule); }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}

.row__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  margin: 0;
}

.row__meta {
  color: var(--ink-faint);
  font-size: var(--step--1);
  margin: 0.15rem 0 0;
}

.row__actions { display: flex; gap: 0.5rem; }

.row__actions button {
  background: none;
  border: 1px solid var(--rule);
  padding: 0.3rem 0.8rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.row__actions button:hover { border-color: var(--ink); color: var(--ink); }

.pill {
  font-size: 0.72rem;
  border: 1px solid var(--rule);
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  color: var(--ink-soft);
}

.pill[data-status="published"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.card-list { display: grid; gap: 1rem; }

.card-list > fieldset {
  border: 1px solid var(--rule);
  padding: 1rem 1.1rem 1.25rem;
  margin: 0;
  background: var(--paper);
}

.card-list legend {
  font-size: var(--step--1);
  color: var(--ink-faint);
  padding-inline: 0.4rem;
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 200%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.4rem;
  font-size: var(--step--1);
  z-index: 90;
  transition: transform 0.4s var(--ease);
  max-width: calc(100% - 2rem);
  text-align: center;
}

.toast[data-show="true"] { transform: translate(-50%, 0); }
