:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #595959;
  --line: #111111;
  --hair: #d9d9d6;
  --soft: #f0f0ed;
  --accent: #0a7a5a;
  --vor-mark-color: #B8860B;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Arial, sans-serif;
  --black: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --text: #f2f2f2;
    --muted: #a6a6a6;
    --line: #f2f2f2;
    --hair: #333333;
    --soft: #1b1b1b;
    --accent: #4fd1a5;
    --vor-mark-color: #FFC107;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.65;
  font-size: 17px;
  border: 6px solid var(--line);
  min-height: 100vh;
  text-align: left;
}

a {
  color: inherit;
}

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

.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: .6rem 1rem;
  font-family: var(--sans);
  font-size: .85rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Wordmark VOr ---------- */
.vor {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  font-size: var(--vor-size, 1.6rem);
  color: var(--text);
  user-select: none;
}

.vor-v {
  font-family: var(--black);
  font-weight: 900;
  letter-spacing: -0.06em;
  margin-right: .02em;
}

.vor-o {
  width: .8em;
  height: .8em;
  margin: 0 .03em -.045em;
  align-self: baseline;
  flex: none;
}

.vor-mark {
  stroke: var(--vor-mark-color);
}

.vor-r {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  margin-left: .01em;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 3px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: .85rem;
}

.menu-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: .5rem .5rem .5rem 0;
  min-height: 44px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .85rem;
}

.menu-btn:hover .menu-label {
  text-decoration: underline;
}

.menu-label {
  display: none;
}

@media (min-width: 640px) {
  .menu-label {
    display: inline;
  }
}

.brand {
  --vor-size: 2.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  text-decoration: none;
  color: var(--text);
}

.brand-sub {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--muted);
  border-top: 1px solid var(--hair);
  padding-top: .3rem;
}

@media (min-width: 640px) {
  .brand {
    --vor-size: 3.6rem;
  }
}

/* ---------- Drawer ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .2s;
}

.scrim.is-open {
  opacity: 1;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  width: min(340px, 88vw);
  background: var(--bg);
  border-right: 3px solid var(--line);
  padding: 1rem 1.5rem 1.5rem;
  overflow-y: auto;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}

.drawer.is-open {
  transform: none;
  visibility: visible;
  transition: transform .25s ease, visibility 0s;
}

.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.drawer-brand {
  --vor-size: 2rem;
}

.drawer-close {
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-right: -.6rem;
}

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

.drawer-list li {
  border-bottom: 1px solid var(--hair);
}

.drawer-list a {
  display: block;
  text-decoration: none;
  padding: .9rem 0 .9rem .9rem;
  border-left: 4px solid transparent;
}

.drawer-list a:hover .drawer-title {
  text-decoration: underline;
}

.drawer-list a.is-active {
  border-left-color: var(--accent);
}

.drawer-title {
  display: block;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
}

.drawer-desc {
  display: block;
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--muted);
  margin-top: .15rem;
}

.drawer-note {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--muted);
  margin-top: 1.5rem;
  line-height: 1.5;
}

/* ---------- Main ---------- */
main.wrapper {
  padding-top: 2rem;
  padding-bottom: 4rem;
  min-height: 50vh;
}

.strap {
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--muted);
  max-width: 46rem;
  margin: 0 0 1.5rem;
}

.kicker {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--accent);
  margin: 0 0 .5rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 0;
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.meta>*+* {
  margin-left: .75rem;
  padding-left: .75rem;
  border-left: 1px solid var(--hair);
}

/* ---------- Kartu tulisan ---------- */
.post-list {
  border-top: 3px solid var(--line);
}

.card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 210px);
  gap: 1.25rem 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--hair);
}

.card-lead {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.5rem 2.5rem;
  padding: 2rem 0 2.25rem;
  border-bottom: 1px solid var(--line);
}

.card-text {
  min-width: 0;
}

.card h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.2;
  margin: 0 0 .6rem;
}

.card-lead h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -.01em;
}

.card h2 a {
  text-decoration: none;
}

.card h2 a:hover {
  text-decoration: underline;
}

.card-excerpt p,
.card-full p {
  margin: 0 0 1em;
}

.card-excerpt {
  font-size: 1rem;
}

.card-lead .card-excerpt {
  font-size: 1.05rem;
}

.card-full {
  font-size: 1rem;
}

.card-full h2 {
  font-size: 1.15rem;
  margin: 1.8rem 0 .5rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--hair);
}

.card-full ul,
.card-full ol {
  padding-left: 1.3rem;
}

.card-full li {
  margin-bottom: .5rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  margin-top: .5rem;
}

.more-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: none;
  border: 0;
  padding: .4rem 0;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .85rem;
  color: var(--text);
  border-bottom: 2px solid var(--text);
}

.more-btn::after {
  content: "";
  width: .45em;
  height: .45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}

.more-btn[aria-expanded="true"]::after {
  transform: rotate(-135deg) translate(-2px, -1px);
}

.open-link {
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--muted);
}

.open-link:hover {
  color: var(--text);
}

.card-media {
  margin: 0;
  align-self: start;
  position: sticky;
  top: 1rem;
}

.card-media img,
.ph {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

.card-lead .card-media img,
.card-lead .ph {
  aspect-ratio: 3 / 2;
}

.ph {
  display: grid;
  place-items: center;
  color: var(--muted);
  --vor-size: 2.4rem;
}

.ph .vor {
  color: var(--muted);
}

.card-lead .ph {
  --vor-size: 4rem;
}

@media (max-width: 720px) {

  .card,
  .card-lead {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .card-media {
    order: -1;
    position: static;
  }

  .card-media img,
  .ph,
  .card-lead .card-media img,
  .card-lead .ph {
    aspect-ratio: 16 / 9;
  }
}

/* ---------- Tulisan tunggal ---------- */
.post-header,
.post-content,
.post-sources,
.post-footer,
.page-header,
.page-content {
  max-width: 42rem;
}

.post-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 1rem;
}

.post-header {
  padding-bottom: .5rem;
}

.post-media {
  margin: 1rem 0 2rem;
  max-width: none;
}

.post-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 34rem;
  object-fit: cover;
}

.post-media figcaption {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--muted);
  margin-top: .5rem;
}

.post-content {
  font-size: 1.1rem;
}

.post-content h2 {
  margin-top: 2.5rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
  border-bottom: 2px solid var(--line);
  padding-bottom: .4rem;
}

.post-content pre {
  background: var(--text);
  color: var(--bg);
  padding: 1rem;
  overflow-x: auto;
  font-size: .85rem;
}

.post-content code {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: .85em;
}

.post-content ul,
.post-content ol {
  padding-left: 1.3rem;
}

.post-content li {
  margin-bottom: .5rem;
}

.post-sources {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--line);
  font-family: var(--sans);
  font-size: .9rem;
}

.post-sources h3 {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 .5rem;
}

.post-footer {
  margin-top: 2.5rem;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 700;
}

.post-footer a {
  text-decoration: none;
}

.post-footer a:hover {
  text-decoration: underline;
}

/* ---------- Halaman umum, topik, arsip ---------- */
.page-header h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1.1;
  border-bottom: 3px solid var(--line);
  padding-bottom: 1rem;
  margin: 0 0 1.5rem;
}

.page-content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 .5rem;
}

.page-content a {
  text-decoration: underline;
}

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

.chips a {
  display: inline-block;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--line);
  padding: .3rem .8rem;
}

.chips a:hover {
  background: var(--text);
  color: var(--bg);
}

.chips span {
  color: var(--muted);
  font-weight: 400;
  margin-left: .25rem;
}

.chips a:hover span {
  color: inherit;
}

.list-group h2 {
  font-size: 1.35rem;
  margin: 2rem 0 .5rem;
  border-bottom: 2px solid var(--line);
  padding-bottom: .3rem;
}

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

.entry-list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--hair);
}

.entry-list time {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--muted);
  padding-top: .2rem;
}

.entry-list a {
  font-weight: 700;
  text-decoration: none;
}

.entry-list a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .entry-list li {
    grid-template-columns: 1fr;
    gap: .1rem;
  }
}

/* ---------- Paginasi & footer ---------- */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 700;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--line);
}

.pagination a {
  text-decoration: none;
}

.pagination a:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 6px solid var(--line);
  padding: 1.5rem 0;
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
    border-width: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .drawer,
  .drawer.is-open,
  .scrim,
  .more-btn::after {
    transition: none;
  }
}