/* =========================================================
   MENCARI MEDOK — ARCHIVE ROOM (NO GRADIENTS)
   - Solid background #F5D44D
   - Texture: speckle + small smudges (no big circles)
   - Old-book body (IM Fell English), typewriter headings (Special Elite)
   - No separators between header/body/footer
   - Only article previews are boxed (square corners)
   - Header/layout wide; body text max 55ch
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&family=Special+Elite&family=Courier+Prime:wght@400;700&display=swap');

:root{
  --accent: #F5D44D;
  --paper: #F5D44D;
  --card: #fffdf5;          /* SOLID: card tidak tembus tekstur */
  --ink: #151515;
  --muted: rgba(21,21,21,.62);
  --border: rgba(21,21,21,.32);

  --wrap-header: 92ch;      /* header + grid */
  --measure: 55ch;          /* body text max per line */

  --gutter: 24px;
  --gap: 18px;

  --base: 19px;
  --lh: 1.72;

  --h1: 42px;
  --h2: 26px;
  --h3: 20px;

  --track-title: 0.06em;
  --track-meta: 0.10em;

  --speckle-opacity: .22;   /* 0.12–0.28 */
  --smudge-opacity: .10;    /* 0.06–0.14 */
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
img{ max-width:100%; height:auto; display:block; }
a{ color: inherit; }

body{
  font-family: "IM Fell English", serif;
  font-size: var(--base);
  line-height: var(--lh);
  color: var(--ink);
  background: var(--paper); /* solid */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

::selection{ background: rgba(21,21,21,.18); color: var(--ink); }

/* Texture layer 1: fine dust */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: var(--speckle-opacity);
  mix-blend-mode: multiply;
  background-repeat: repeat;
  background-size: 180px 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg fill='%23000000' fill-opacity='.22'%3E%3Ccircle cx='14' cy='22' r='1'/%3E%3Ccircle cx='44' cy='63' r='1'/%3E%3Ccircle cx='86' cy='31' r='1'/%3E%3Ccircle cx='132' cy='54' r='1'/%3E%3Ccircle cx='162' cy='98' r='1'/%3E%3Ccircle cx='22' cy='144' r='1'/%3E%3Ccircle cx='70' cy='120' r='1'/%3E%3Ccircle cx='110' cy='150' r='1'/%3E%3Ccircle cx='150' cy='138' r='1'/%3E%3Ccircle cx='96' cy='96' r='1'/%3E%3C/g%3E%3Cg fill='%23000000' fill-opacity='.10'%3E%3Ccircle cx='28' cy='40' r='2'/%3E%3Ccircle cx='120' cy='116' r='2'/%3E%3Ccircle cx='156' cy='18' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

/* Texture layer 2: small smudges + faint scan marks */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: var(--smudge-opacity);
  mix-blend-mode: multiply;
  background-repeat: repeat;
  background-size: 760px 760px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='760' height='760'%3E%3Cg fill='%23000000' fill-opacity='.18'%3E%3Cpath d='M92 126c28-18 66-2 76 18 12 22-4 54-32 62-30 10-64-12-66-34-2-18 4-34 22-46z'/%3E%3Cpath d='M520 104c20-12 48 2 56 18 8 18-4 42-26 48-24 6-50-12-50-32 0-14 6-26 20-34z'/%3E%3Cpath d='M606 520c26-14 60 6 66 30 6 26-18 52-46 54-30 2-58-22-52-44 4-18 14-30 32-40z'/%3E%3Cpath d='M154 560c22-12 52 6 56 26 4 22-18 44-42 46-26 2-50-18-46-36 4-14 12-26 32-36z'/%3E%3C/g%3E%3Cg stroke='%23000000' stroke-opacity='.10' stroke-width='2' fill='none'%3E%3Cpath d='M60 300c80 20 140 20 220 0'/%3E%3Cpath d='M420 360c90-18 150-10 220 18'/%3E%3Cpath d='M120 700c110-26 220-18 320 14'/%3E%3C/g%3E%3Cg fill='%23000000' fill-opacity='.08'%3E%3Crect x='38' y='38' width='12' height='12'/%3E%3Crect x='710' y='94' width='14' height='14'/%3E%3Crect x='620' y='690' width='16' height='16'/%3E%3C/g%3E%3C/svg%3E");
}

/* Container */
.wrap{
  max-width: var(--wrap-header);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header: flat, no separator */
.site-header{
  position: static;
  background: var(--accent);
  border-bottom: 0;
  backdrop-filter: none;
}
.brand{
  display:block;
  text-decoration:none;
  padding: 18px 0 14px;
}
.brand__title{
  font-family: "Special Elite", "Courier Prime", "Courier New", Courier, ui-monospace, monospace;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: var(--track-title);
  text-transform: uppercase;
  text-shadow: 0.55px 0 rgba(21,21,21,.32), -0.35px 0 rgba(21,21,21,.18);
}
.brand__tagline{
  margin-top: 8px;
  color: var(--muted);
  max-width: var(--measure);
}

/* Headings */
.h1,.h2,.h3{
  font-family: "Special Elite", "Courier Prime", "Courier New", Courier, ui-monospace, monospace;
  font-weight: 400;
  letter-spacing: var(--track-title);
  text-transform: uppercase;
  text-shadow: 0.55px 0 rgba(21,21,21,.28), -0.35px 0 rgba(21,21,21,.14);
}
.h1{ font-size: var(--h1); line-height: 1.08; margin: 0 0 12px; }
.h2{ font-size: var(--h2); line-height: 1.2; margin: 0 0 8px; }
.h3{ font-size: var(--h3); line-height: 1.3; margin: 0 0 8px; }

/* Hero */
.hero{ padding: 26px 0 10px; }
.lead{ margin: 0; color: var(--muted); max-width: var(--measure); }

/* Links */
a{
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(21,21,21,.30);
}
a:hover{ text-decoration-color: rgba(21,21,21,.55); }

/* Grid */
.grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  padding: 18px 0 44px;
}
@media (min-width: 880px){
  .grid{ grid-template-columns: 1fr 1fr; gap: 22px; }
}

/* Card (ONLY boxed element), square */
.card{
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--card);
  box-shadow: none;
}
.card__link{
  display:block;
  color: inherit;
  text-decoration: none;
}
.card__media{
  aspect-ratio: 1.618 / 1;
  background: rgba(21,21,21,.06);
}
.card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__body{ padding: 14px 14px 16px; }
.meta{
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-family: "Courier Prime", "Courier New", Courier, ui-monospace, monospace;
  font-weight: 700;
  letter-spacing: var(--track-meta);
  text-transform: uppercase;
}
.meta--archive{
  text-transform: uppercase;
  letter-spacing: calc(var(--track-meta) + 0.02em);
}

.meta__sep{ margin: 0 .55em; opacity: .7; }
.meta__author{ font-weight: 700; }
.meta__by{ opacity: .85; }

.meta--editor{
  margin-top: -6px;       /* rapat ala label arsip */
  font-size: 12px;
  opacity: .9;
}
.meta__editor{
  font-weight: 700;
}

.snippet{
  margin: 0;
  color: rgba(21,21,21,.86);
  max-width: var(--measure);
}

/* Post page */
.post{ padding: 12px 0 44px; }
.post__header{ padding: 12px 0 10px; }
.post__cover{ margin-top: 14px; border-radius: 0; }

/* BODY measure 55ch (split from header/layout) */
.post .prose{
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  padding-top: 10px;
}
.prose p{ margin: 0 0 16px; }
.prose h2, .prose h3{
  font-family: "Special Elite", "Courier Prime", "Courier New", Courier, ui-monospace, monospace;
  font-weight: 400;
  letter-spacing: var(--track-title);
  text-transform: uppercase;
  text-shadow: 0.55px 0 rgba(21,21,21,.24), -0.35px 0 rgba(21,21,21,.12);
  margin: 26px 0 10px;
}
.prose ul, .prose ol{ margin: 0 0 16px; padding-left: 1.2em; }
.prose li{ margin: 0 0 8px; }
blockquote{
  margin: 18px 0;
  padding-left: 14px;
  border-left: 3px solid rgba(21,21,21,.22);
  color: rgba(21,21,21,.84);
}
code{
  font-family: "Courier Prime", "Courier New", Courier, ui-monospace, monospace;
  font-size: 0.95em;
  background: rgba(21,21,21,.08);
  padding: 2px 6px;
}

/* Footer: flat, no separator */
.site-footer{
  border-top: 0;
  padding: 18px 0 26px;
  color: var(--muted);
  background: transparent;
}

.empty{ padding: 18px 0 44px; color: var(--muted); max-width: var(--measure); }

/* Mobile */
@media (max-width: 420px){
  :root{ --gutter: 18px; --base: 18px; }
  .h1{ font-size: 36px; }
}

.site-footer a{
  font-family: "Courier Prime", "Courier New", Courier, ui-monospace, monospace;
  letter-spacing: var(--track-meta);
  text-transform: uppercase;
  text-decoration-color: rgba(21,21,21,.30);
}
/* test */
