/*
 * SIKESRA landing theme — the design system in `design/` (repository root)
 * applied to the `landing` build profile.
 *
 * Served as `/sikesra.css` by `src/profil/landing/pages/sikesra.css.ts` and
 * linked by `BaseLayout.astro` through `GROUP_STYLESHEETS` (group `landing`),
 * so it exists, and is linked, only in a `landing` build: the `toko` and
 * `berita` builds never see it.
 *
 * 1. It re-points this app's own tokens (global.css) at SIKESRA's palette:
 *    teal `#0f766e` for actions and links, deep teal `#052522` for the
 *    inverse bands, amber `#f59e0b` as the accent on them, Public Sans as the
 *    face. `:root:root` outranks global.css's `:root`, and the dark values are
 *    declared both for the OS preference and for an explicit
 *    `[data-theme="dark"]` (the theme switch, `src/scripts/sikesra-tampilan.ts`);
 *    an explicit `[data-theme="light"]` wins over a dark OS.
 * 2. It styles the landing home page's sections (`.sk-*`).
 *
 * Contrast (WCAG 2.x, measured): text on every surface >= 4.5:1 in both
 * themes; link teal 5.47:1 on white / 9.30:1 dark; white on the teal button
 * 5.47:1; amber on deep teal 7.56:1; focus rings >= 3:1.
 */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/fonts/public-sans-latin.woff2") format("woff2");
}

:root:root {
  color-scheme: light;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg-primary: #f5f7fa;
  --bg-surface: #ffffff;
  --bg-subtle: #eef1f5;
  --text-primary: #141a21;
  --text-secondary: #3d4853;
  --text-muted: #5b6672;
  --border-color: #dde3ea;
  --border-focus: #0f766e;
  --accent-primary: #0f766e;
  --accent-hover: #115e59;
  --link-color: #0f766e;
  --link-hover: #115e59;
  --accent-on-inverse: #f59e0b;
  --bg-inverse: #052522;
  --bg-inverse-2: #0a332f;
  --text-on-inverse: #f0f7f6;
  --text-on-inverse-muted: #a9c1bd;
  --border-on-inverse: #164a44;
  --sk-brand-deep: #052522;
  --sk-accent: #f59e0b;
  --sk-on-accent: #1c1917;
  --sk-primary-strong: #0f766e;
  --sk-primary-hover: #115e59;
  --sk-primary-soft: #e3f3f0;
  --sk-primary-on-soft: #0b5d56;
  --sk-rail-active: #0f403b;
}

@media (prefers-color-scheme: dark) {
  :root:root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-primary: #0d1117;
    --bg-surface: #151b23;
    --bg-subtle: #1c232c;
    --text-primary: #e6edf3;
    --text-secondary: #c3ced8;
    --text-muted: #9aa7b2;
    --border-color: #2a323c;
    --border-focus: #2dd4bf;
    --link-color: #2dd4bf;
    --link-hover: #5eead4;
    --bg-inverse: #0a332f;
    --bg-inverse-2: #0f403b;
    --sk-primary-soft: #0e2a28;
    --sk-primary-on-soft: #5eead4;
  }
}

:root:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-primary: #0d1117;
  --bg-surface: #151b23;
  --bg-subtle: #1c232c;
  --text-primary: #e6edf3;
  --text-secondary: #c3ced8;
  --text-muted: #9aa7b2;
  --border-color: #2a323c;
  --border-focus: #2dd4bf;
  --link-color: #2dd4bf;
  --link-hover: #5eead4;
  --bg-inverse: #0a332f;
  --bg-inverse-2: #0f403b;
  --sk-primary-soft: #0e2a28;
  --sk-primary-on-soft: #5eead4;
}

a {
  color: var(--link-color);
}
a:hover {
  color: var(--link-hover);
}
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}
.site-footer :focus-visible,
.sk-hero :focus-visible {
  outline-color: var(--sk-accent);
}
.site-brand {
  letter-spacing: 0.04em;
}
.site-brand-tile {
  background: var(--sk-primary-strong);
  color: #ffffff;
}

/* --- Display preferences in the header (PreferensiTampilan.astro) ----- */
.sk-pref {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.sk-lang {
  display: inline-flex;
  padding: 2px;
  border: 1px solid #858b92;
  border-radius: 999px;
}
.sk-lang button,
.sk-theme {
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: 700 0.75rem/1 var(--font-sans);
  cursor: pointer;
}
.sk-lang button {
  min-width: 36px;
  padding: 0 0.6rem;
  border-radius: 999px;
}
.sk-lang button[aria-pressed="true"] {
  background: var(--sk-primary-strong);
  color: #ffffff;
}
.sk-theme {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
.sk-theme:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}
.sk-theme svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sk-theme .sk-sun,
:root[data-theme="dark"] .sk-theme .sk-moon {
  display: none;
}
:root[data-theme="dark"] .sk-theme .sk-sun {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sk-theme .sk-moon {
    display: none;
  }
  :root:not([data-theme="light"]) .sk-theme .sk-sun {
    display: block;
  }
}

/* --- Landing home sections ------------------------------------------ */
.sk-hero {
  position: relative;
  overflow: hidden;
  margin-top: -2rem;
  padding: 3rem 0;
  background: var(--sk-brand-deep);
  color: var(--text-on-inverse-muted);
}
.sk-hero-inner {
  position: relative;
  z-index: 1;
}
.sk-eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sk-primary-on-soft);
}
.sk-hero .sk-eyebrow {
  color: var(--sk-accent);
}
.sk-hero h1 {
  max-width: 18ch;
  margin-top: 0.75rem;
  color: var(--text-on-inverse);
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.sk-hero-lead {
  color: var(--text-on-inverse-muted);
  max-width: 58ch;
  margin-top: 0.75rem;
  font-size: 1.0625rem;
}
.sk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.sk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 600 0.875rem/1.35 var(--font-sans);
  text-decoration: none;
}
.sk-btn:hover {
  text-decoration: none;
}
.sk-btn--accent {
  background: var(--sk-accent);
  color: var(--sk-on-accent);
}
.sk-btn--accent:hover {
  color: var(--sk-on-accent);
  filter: brightness(0.95);
}
.sk-btn--on-dark {
  border-color: var(--text-on-inverse-muted);
  color: var(--text-on-inverse);
}
.sk-btn--on-dark:hover {
  background: var(--sk-rail-active);
  color: var(--text-on-inverse);
}
.sk-hero-band {
  display: none;
}
.sk-hero-band span {
  position: absolute;
  display: block;
  border-radius: 16px;
}
.sk-band-disc {
  right: 120px;
  top: 48px;
  width: 160px;
  height: 160px;
  border-radius: 50% !important;
  background: var(--sk-accent);
}
.sk-band-slab {
  right: 40px;
  top: 150px;
  width: 220px;
  height: 120px;
  background: var(--sk-primary-strong);
}
.sk-band-tile {
  right: 200px;
  top: 250px;
  width: 96px;
  height: 96px;
  background: var(--sk-rail-active);
}

.sk-section {
  padding: 3rem 0;
}
.sk-section--tint {
  background: var(--bg-primary);
}
.sk-section-head {
  max-width: 60ch;
  margin-bottom: 1.5rem;
}
.sk-section-head h2 {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 700;
}
.sk-section-head p {
  margin-top: 0.5rem;
  color: var(--text-muted);
}
.sk-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sk-card {
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-surface);
}
.sk-card h3 {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}
.sk-card p {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.sk-tile {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--sk-primary-soft);
  color: var(--sk-primary-on-soft);
}
.sk-tile svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sk-flow {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sk-flow;
}
.sk-flow li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-surface);
}
.sk-flow li::before {
  counter-increment: sk-flow;
  content: counter(sk-flow);
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sk-primary-strong);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
}
.sk-flow b {
  display: block;
  font-size: 0.9375rem;
}
.sk-flow span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.sk-notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px dashed #858b92;
}
.sk-notice p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .sk-hero {
    padding: 4rem 0;
  }
  .sk-hero h1 {
    font-size: 2.5rem;
  }
  .sk-hero-band {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 38%;
  }
  .sk-section {
    padding: 4rem 0;
  }
  .sk-section-head h2 {
    font-size: 2rem;
  }
  .sk-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sk-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .sk-cards--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .sk-cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.sk-section-link {
  margin-top: 1rem;
  font-weight: 600;
}
