:root {
  /* kelasteknik.id tokens: navy / gold / cream */
  --ink: #0d2456;
  --ink-soft: #1b3a7a;
  --paper: #ede9d8;
  --surface: #ffffff;
  --steel: #3d4f7a;
  --mark: #0d2456;
  --mark-ink: #1b3a7a;
  --sun: #f5c400;
  --teal: #1b3a7a;
  --sky: #e8eeff;
  --clay: #fff0a8;
  --line: #d4cfc0;
  --white: #ffffff;
  --radius: 14px;
  --nav-h: 64px;
  --shadow: 0 10px 28px rgba(13, 36, 86, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: var(--font-display), Syne, sans-serif;
  --body: var(--font-sans), "Source Sans 3", system-ui, sans-serif;
  --mono: var(--font-mono), "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

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

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button, .filter { font: inherit; cursor: pointer; }

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

.wrap { width: min(1120px, calc(100% - 2.4rem)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white); padding: 0.6rem 1rem; z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}
.brand em { font-style: normal; color: var(--mark); }
.nav-links { display: flex; align-items: center; gap: 1.2rem; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--steel);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta {
  background: var(--mark);
  color: #fff !important;
  padding: 0 1rem;
  min-height: 40px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--mark-ink); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); position: relative;
  transition: transform 0.2s var(--ease), top 0.2s var(--ease), background 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* HERO */
.hero {
  min-height: calc(100dvh - var(--nav-h));
  padding: 2.4rem 0 4rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 22%, var(--sun) 0 140px, transparent 141px),
    radial-gradient(circle at 12% 80%, var(--clay) 0 90px, transparent 91px),
    radial-gradient(circle at 70% 88%, var(--teal) 0 70px, transparent 71px),
    var(--paper);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.2rem;
  align-items: center;
}
.halo {
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 800;
}
.halo span {
  color: var(--ink);
  background: var(--sun);
  display: inline-block;
  padding: 0 0.18em 0.06em;
  border-radius: 12px;
  transform: rotate(-4deg);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 1rem 0 1rem;
  max-width: 18ch;
}
.hero-sub {
  color: var(--steel);
  max-width: 42ch;
  margin-bottom: 1.6rem;
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.7rem 1.2rem;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--mark); color: #fff; }
.btn-primary:hover { background: var(--mark-ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.hero-photo {
  position: relative;
  justify-self: end;
  width: min(100%, 400px);
  transform: rotate(2.4deg);
  box-shadow: 16px 16px 0 var(--mark);
  border-radius: 18px;
  background: var(--sun);
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: 18px;
  background: #dfe3e8;
}
.hero-photo figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  color: var(--white);
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

/* STATS */
.stats {
  background: transparent;
  padding: 0 0 1.2rem;
  margin-top: -1.6rem;
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.stats-grid > div {
  border-radius: 16px;
  padding: 1.15rem 1.1rem 1.2rem;
  color: var(--ink);
}
.stats-grid > div:nth-child(1) { background: var(--mark); color: #fff; }
.stats-grid > div:nth-child(2) { background: var(--sun); }
.stats-grid > div:nth-child(3) { background: var(--ink-soft); color: #fff; }
.stats-grid > div:nth-child(4) { background: var(--ink); color: #fff; }
.stat-num {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: inherit;
  line-height: 1;
}
.stat-lbl { color: inherit; opacity: 0.86; font-size: 0.88rem; margin-top: 0.35rem; }

/* SECTIONS */
section { padding: 5rem 0; }
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--mark);
  font-weight: 500;
  margin-bottom: 0.55rem;
}
h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 0.7rem;
}
.lead { color: var(--steel); max-width: 58ch; }
.tight { padding-top: 0; }
.mt { margin-top: 1.6rem; }
.row-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.2rem; }
.chip-row { margin-top: 0.8rem; }

.offer {
  background: var(--sun);
  border: 0;
}
.offer-box {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
}
.verse {
  font-size: 0.95rem;
  color: var(--steel);
  border-left: 3px solid var(--mark);
  padding-left: 1rem;
  margin-top: 1.2rem;
}

/* ROLES */
.roles-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1rem;
}
.role {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.role:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.roles-grid .role:nth-child(1),
.role.featured {
  background: var(--mark);
  color: #fff;
  border-color: var(--mark);
}
.roles-grid .role:nth-child(1) p,
.role.featured p { color: rgba(255,255,255,.92); }
.roles-grid .role:nth-child(1) i,
.roles-grid .role:nth-child(1) .meta,
.role.featured i,
.role.featured .meta { color: var(--sun); }
.roles-grid .role:nth-child(2) {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--ink);
}
.roles-grid .role:nth-child(2) p { color: var(--ink-soft); }
.roles-grid .role:nth-child(2) i,
.roles-grid .role:nth-child(2) .meta { color: var(--mark-ink); }
.roles-grid .role:nth-child(3) {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.roles-grid .role:nth-child(3) p { color: rgba(255,255,255,.92); }
.roles-grid .role:nth-child(3) i,
.roles-grid .role:nth-child(3) .meta { color: var(--sun); }
.role i { font-size: 1.5rem; color: var(--mark); margin-bottom: 1rem; }
.role h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}
.role p { color: var(--steel); font-size: 0.95rem; }
.role .meta {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--mark);
}

/* COMPANIES */
.jobs { display: grid; gap: 0; }
.job {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.job:last-child { border-bottom: 1px solid var(--line); }
.job time {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--mark-ink);
  background: var(--sun);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  height: fit-content;
  width: fit-content;
}
.job:nth-child(2) time { background: var(--teal); color: #fff; }
.job:nth-child(3) time { background: var(--clay); color: var(--ink); }
.job h3 { font-family: var(--display); font-size: 1.15rem; letter-spacing: -0.03em; }
.job .place { color: var(--mark); font-weight: 600; font-size: 0.92rem; }
.job p { color: var(--steel); margin-top: 0.35rem; }

/* VISION */
.vision {
  background: var(--ink);
  color: #fff;
}
.vision .lead { color: #c5d0e8; }
.vision h2 { color: #fff; }

/* QUOTES / PRINCIPLES */
.principles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.principle {
  padding: 1.3rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: box-shadow 0.2s var(--ease);
}
.principle:hover { box-shadow: var(--shadow); }
.principles .principle:nth-child(1) { background: var(--clay); border-color: var(--clay); }
.principles .principle:nth-child(2) { background: var(--sun); border-color: var(--sun); }
.principles .principle:nth-child(3) { background: var(--sky); border-color: var(--sky); }
.principle strong {
  display: block;
  font-family: var(--display);
  margin-bottom: 0.4rem;
}
.principle p { color: var(--steel); font-size: 0.94rem; }

/* PAGE HEAD */
.page-head {
  padding: 3.2rem 0 2.2rem;
  background:
    radial-gradient(circle at 90% 0, var(--sun) 0 120px, transparent 121px),
    linear-gradient(180deg, #fff0a8, var(--paper));
}
.page-head h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 0.6rem;
}

/* PROJECTS */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.6rem 0 1.8rem; }
.filter {
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--steel);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  min-height: 44px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-on { background: var(--mark); color: #fff; border-color: var(--mark); }
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media {
  position: relative;
  height: 200px;
  background: #dfe3e8;
  overflow: hidden;
}
.card-media img { object-fit: cover; transition: transform 0.35s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .card:hover .card-media img { transform: none; }
}
.card-body { padding: 1.2rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-cat {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--mark);
  margin-bottom: 0.4rem;
}
.card h3 {
  font-family: var(--display);
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}
.card p { color: var(--steel); font-size: 0.92rem; }
.card-foot {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}
.card-val {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.86rem;
}
.wide { grid-column: 1 / -1; }
.band {
  background: var(--ink);
  color: var(--white);
  border-radius: 14px;
  padding: 1.6rem;
}
.band h3 { font-family: var(--display); font-size: 1.3rem; margin-bottom: 0.35rem; }
.band p { color: #c4ccd6; }
.band .btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.band .btn-ghost:hover { background: #fff; color: var(--ink); }
.band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}
.band-grid strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--sun);
}

/* CERTS / CONTACT */
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cert {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: box-shadow 0.2s var(--ease);
}
.cert:hover { box-shadow: var(--shadow); }
.certs .cert:nth-child(1),
.cert.featured { background: #fff8d6; border-color: var(--sun); }
.certs .cert:nth-child(2) { background: #e8eeff; border-color: #c5d0e8; }
.certs .cert:nth-child(3) { background: var(--sky); border-color: #c5d0e8; }
.certs .cert:nth-child(4) { background: var(--clay); border-color: var(--sun); }
.cert h3 { font-family: var(--display); font-size: 1.1rem; }
.cert .who { color: var(--steel); font-size: 0.9rem; margin: 0.3rem 0 0.7rem; }
.chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  background: #fff0a8;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin: 0 0.3rem 0.3rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.4rem;
}
.contact-list { display: grid; gap: 0.7rem; }
.contact-item {
  display: flex; gap: 0.85rem; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  min-height: 44px;
  transition: border-color 0.2s;
}
.contact-item:hover { border-color: color-mix(in srgb, var(--mark) 40%, var(--line)); }
.contact-item i { font-size: 1.25rem; color: var(--mark); }
.contact-item strong { display: block; font-size: 0.9rem; }
.contact-item a:hover { color: var(--mark); }
form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem;
  display: grid;
  gap: 0.85rem;
}
label { font-weight: 600; font-size: 0.9rem; display: grid; gap: 0.35rem; }
input, textarea {
  font: inherit;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: var(--white);
  color: var(--ink);
}
input:focus, textarea:focus {
  outline: 2px solid var(--mark);
  outline-offset: 1px;
  border-color: var(--mark);
}
.help { font-weight: 400; color: var(--steel); font-size: 0.82rem; }

/* FOOTER */
.foot {
  background: var(--ink);
  color: #c4ccd6;
  padding: 1.6rem 0;
}
.foot-inner {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.foot-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.foot-links a:hover { color: var(--sun); }
.foot strong { color: var(--white); }

/* MOTION */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: up 0.7s var(--ease) both;
  }
  .hero-photo { animation: up 0.8s 0.08s var(--ease) both; }
  @keyframes up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .offer-box,
  .roles-grid,
  .principles,
  .cards,
  .certs,
  .contact-grid,
  .job,
  .band-grid,
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    inset: var(--nav-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1.2rem 1.1rem;
    gap: 0.2rem;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 0.7rem 0.2rem; }
  .hero { min-height: auto; padding-top: 1.4rem; }
  .hero-photo { justify-self: start; width: min(300px, 88%); transform: rotate(1.4deg); }
  .halo { font-size: clamp(2.8rem, 16vw, 4.4rem); }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ede9d8;
    --ink-soft: #d4cfc0;
    --paper: #071840;
    --surface: #0d2456;
    --steel: #9aaccf;
    --line: #1b3a7a;
    --white: #071840;
    --sun: #f5c400;
    --teal: #1b3a7a;
    --sky: #1b3a7a;
    --clay: #d4a500;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  }
  body { background: var(--paper); color: var(--ink); }
  .nav { background: color-mix(in srgb, var(--paper) 86%, transparent); }
  .hero {
    background:
      radial-gradient(circle at 82% 22%, #1b3a7a 0 140px, transparent 141px),
      var(--paper);
  }
  .foot, .band { background: #071840; color: #c5d0e8; }
  .hero-photo figcaption { background: rgba(7, 24, 64, 0.78); }
  .btn-primary { color: #fff; }
  .nav-cta { background: var(--sun); color: #0d2456 !important; }
  input, textarea { background: #0a1a3d; color: var(--ink); }
  .chip { background: #1b3a7a; color: var(--sun); }
  .page-head { background: linear-gradient(180deg, #0d2456, var(--paper)); }
  .card-media, .article-thumb, .article-cover { background: #1b3a7a; }
  .roles-grid .role:nth-child(2) { color: #0d2456; }
  .roles-grid .role:nth-child(2) p { color: #1b3a7a; }
  .principles .principle:nth-child(1),
  .principles .principle:nth-child(2),
  .principles .principle:nth-child(3) { color: #0d2456; }
  .principles .principle p { color: #1b3a7a; }
}

/* ARTIKEL */
.flash-pub {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  background: #fff0a8;
  color: var(--ink);
  border-radius: 8px;
}
.article-list { display: grid; gap: 1rem; padding-bottom: 4rem; }
.article-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--mark);
  border-radius: 14px;
  padding: 1rem;
  align-items: center;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.article-list .article-row:nth-child(2n) { border-left-color: var(--sun); }
.article-list .article-row:nth-child(3n) { border-left-color: var(--sun); }
.article-row:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.article-thumb {
  position: relative;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  background: #dfe3e8;
}
.article-thumb img { object-fit: cover; }
.article-row:not(:has(.article-thumb)) { grid-template-columns: 1fr; }
.article-row time {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--mark);
}
.article-row h2 {
  font-size: 1.25rem;
  margin: 0.25rem 0 0.35rem;
}
.article-row p { color: var(--steel); font-size: 0.95rem; }
.article-page { padding: 2.4rem 0 4.4rem; }
.article-page h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0.4rem 0 1.2rem;
}
.article-cover {
  position: relative;
  width: 100%;
  height: min(380px, 50vw);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.6rem;
  background: #dfe3e8;
}
.article-cover img { object-fit: cover; }
.article-body { max-width: 66ch; }
.article-body p, .article-body li { color: var(--ink-soft); margin-bottom: 0.9rem; }
.article-body h2 { font-size: 1.25rem; margin: 1.6rem 0 0.6rem; }
.article-body ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.article-body a, .article-page .kicker a { color: var(--mark); }
.article-page .kicker a:hover { text-decoration: underline; }

/* ADMIN */
.admin-body {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100dvh;
  background: var(--paper);
}
.admin-side {
  background: var(--ink);
  color: #c4ccd6;
  padding: 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.admin-side .brand { color: #fff; margin-bottom: 1rem; }
.admin-side nav { display: grid; gap: 0.15rem; }
.admin-side nav a {
  color: #c4ccd6;
  padding: 0.55rem 0.6rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  font-size: 0.92rem;
}
.admin-side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-side form { margin-top: auto; }
.admin-side .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); width: 100%; justify-content: center; }
.admin-view { font-size: 0.82rem; color: var(--sun); margin-top: 0.6rem; }
.admin-main { padding: 2rem 2.2rem 3rem; }
.admin-main h1 { font-family: var(--display); font-size: 1.7rem; margin-bottom: 0.5rem; }
.admin-main h2 { font-size: 1.15rem; margin: 1.6rem 0 0.6rem; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8rem;
  margin: 1.4rem 0;
}
.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
}
.admin-card strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--mark);
}
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.admin-table th, .admin-table td {
  text-align: left; padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table a { font-weight: 700; }
.btn-text {
  background: none; border: 0; color: var(--mark); cursor: pointer; font-weight: 600;
}
.admin-form { max-width: 720px; }
.admin-form .check { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.admin-form .check input { width: auto; }
.admin-actions { display: flex; gap: 0.7rem; }
.admin-plain { list-style: none; color: var(--steel); }
.admin-plain li { padding: 0.35rem 0; }
.flash { background: #fff0a8; color: var(--ink); padding: 0.6rem 0.8rem; border-radius: 8px; margin-bottom: 1rem; }
.admin-login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
}
.login-box { width: min(380px, calc(100% - 2rem)); }
.login-box h1 { font-family: var(--display); margin-bottom: 0.35rem; }
.login-box .lead { margin-bottom: 1rem; }
.login-back { display: inline-block; margin-top: 0.8rem; font-size: 0.88rem; color: var(--steel); }
.login-back:hover { color: var(--mark); }

@media (max-width: 860px) {
  .admin-body { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 1fr; }
}
