@font-face {
  font-family: Jakarta;
  src: url('/fonts/jakarta.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #111310;
  --panel: #181b16;
  --surface: #20241b;
  --line: #32372d;
  --text: #f5f7ed;
  --muted: #b4baad;
  --accent: #c8f879;
  --on-accent: #192012;
  --radius: 1rem;
  font: 100%/1.6 Jakarta, system-ui, sans-serif;
}
[data-theme=sage] {
  --bg: #121411; --panel: #1b1e19; --surface: #232923; --line: #393e36;
  --text: #f7f8f3; --muted: #b9c0b5; --accent: #d6ecba; --on-accent: #20291b;
}
[data-theme=sky] {
  color-scheme: light;
  --bg: #f4f7fc; --panel: #fff; --surface: #edf2fc; --line: #d9e2ef;
  --text: #13203a; --muted: #4e5e77; --accent: #244fbd; --on-accent: #fff;
}
[data-theme=peach] {
  color-scheme: light;
  --bg: #f8f8fc; --panel: #fff; --surface: #eef0ff; --line: #dddff0;
  --text: #15152b; --muted: #575971; --accent: #4e3ce1; --on-accent: #fff;
}
[data-theme=lilac] {
  color-scheme: light;
  --bg: #faf8ff; --panel: #fff; --surface: #f0e9fc; --line: #e1d8ee;
  --text: #251b37; --muted: #62566f; --accent: #6342a6; --on-accent: #fff;
}
[data-theme=aqua] {
  --bg: #0c1017; --panel: #121924; --surface: #192332; --line: #29374a;
  --text: #f0f4fc; --muted: #abb9cb; --accent: #7de9d2; --on-accent: #112520;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); word-spacing: .025em; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 7vw, 5.8rem); letter-spacing: -.045em; font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.55rem); letter-spacing: -.045em; font-weight: 800; }
h3 { font-size: 1.12rem; letter-spacing: -.025em; font-weight: 750; }
p, small { color: var(--muted); }
p + p { margin-top: .85rem; }
small { font-size: .85rem; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1170px, calc(100% - 3rem)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; left: 1rem; top: .5rem; z-index: 5; background: var(--panel); padding: .7rem; }
.top { border-bottom: 1px solid var(--line); }
.nav, .foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.1rem; }
.nav { min-height: 4.3rem; padding-block: .65rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); font-size: 1.06rem; font-weight: 800; letter-spacing: -.035em; text-decoration: none; }
.brand img { width: 1.8rem; height: 1.8rem; border-radius: .55rem; }
.nav nav, .foot > div { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.nav nav a, .foot a { color: var(--muted); font-size: .875rem; font-weight: 680; padding: .4rem .65rem; border-radius: .5rem; text-decoration: none; }
.nav nav a:hover, .foot a:hover { color: var(--text); background: var(--surface); }
.foot { border-top: 1px solid var(--line); min-height: 6rem; padding-block: 1.1rem; }
.foot .footer-brand { display: grid; gap: .08rem; }
.section { display: grid; gap: 1.15rem; margin-block: clamp(2.5rem, 6vw, 5.3rem); scroll-margin-top: 1rem; }
.section-heading, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.section-heading { justify-content: space-between; }
.button, button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 42px;
  padding: .54rem .94rem; border: 1px solid transparent; border-radius: .68rem;
  background: var(--accent); color: var(--on-accent); font: inherit;
  font-size: .875rem; font-weight: 780; text-decoration: none; cursor: pointer;
}
.button:hover, button:hover { filter: brightness(.93); }
.text-action { display: inline-flex; align-items: center; min-height: 42px; padding-inline: .6rem; font-weight: 730; }
input, select, textarea { width: 100%; min-height: 42px; min-width: 0; padding: .55rem .72rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--panel); color: var(--text); font: inherit; font-size: .94rem; }
input::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; }
label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 670; }
.filters { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.filters .search-field { flex: 1 1 12rem; position: relative; }
.search-field::before {
  content: ''; position: absolute; width: .6rem; height: .6rem; border: 1.6px solid var(--muted);
  border-radius: 50%; left: .8rem; top: .92rem; pointer-events: none;
}
.search-field::after {
  content: ''; position: absolute; width: .33rem; height: 1.6px; background: var(--muted);
  rotate: 48deg; left: 1.4rem; top: 1.56rem; pointer-events: none;
}
.search-field input { padding-inline-start: 2rem; }
.filters select { min-width: 8.5rem; }
.result-count { font-size: .87rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: .85rem; }
.card, .panel, .prompt { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.card { overflow: hidden; }
.card:hover, .card:focus-within { border-color: color-mix(in srgb, var(--line), var(--accent) 52%); }
.card-body, .panel, .prompt { display: grid; align-content: start; justify-items: start; gap: .62rem; padding: 1rem; }
.card-body p { font-size: .94rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--accent); text-decoration: underline; }
.card-media { display: block; overflow: hidden; }
.card-media img, .card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tag { font-size: .825rem; color: var(--accent); font-weight: 750; }
.empty { padding: 1rem; border: 1px dashed var(--line); border-radius: .75rem; }

/* Directory and prompt workspace */
.tools-hero { padding-block: clamp(2.35rem, 6vw, 4.5rem) 2rem; }
.tools-hero h1 { max-width: 13ch; }
.tools-hero h1 em, .studio-hero h1 em { display: block; color: var(--accent); font-style: normal; }
.tools-hero p { font-size: 1.05rem; max-width: 47ch; margin-top: .75rem; }
.tools-layout { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr); align-items: start; gap: 1.25rem; margin-bottom: 4rem; }
.tools-layout .section { margin: 0; }
.tools-layout #tools .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool { position: relative; }
.tool .card-body { padding: .95rem; }
.tool h3 a::after { position: absolute; inset: 0; content: ''; }
.tool .tag { position: absolute; top: 1.05rem; right: 1rem; padding: .12rem .47rem; border-radius: .46rem; background: var(--surface); }
.tool-symbol { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .6rem; background: #293622; color: var(--accent); font-weight: 800; }
.tool:nth-child(3n + 2) .tool-symbol { color: #ffe4a2; background: #372f22; }
.tool:nth-child(3n) .tool-symbol { color: #d8c7ff; background: #302741; }
.tools-layout #prompt { background: var(--surface); padding: clamp(1rem, 2vw, 1.3rem); border: 1px solid var(--line); border-radius: var(--radius); }
.prompt-tabs { display: flex; flex-wrap: wrap; gap: .35rem; }
.prompt-tabs a { min-height: 34px; padding: .27rem .6rem; border: 1px solid var(--line); border-radius: .55rem; color: var(--text); font-size: .84rem; font-weight: 650; text-decoration: none; }
.prompt-tabs a[aria-current] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.prompt { gap: .75rem; }
.prompt [data-copy-text] { line-height: 1.65; }
[data-copy-status]:empty { display: none; }

/* Photography */
.photo-hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(25rem, 60vw, 36rem); margin-top: 1rem; overflow: hidden; border-radius: 1.25rem; }
.photo-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.photo-hero::before { position: absolute; inset: 0; z-index: -1; content: ''; background: linear-gradient(0deg, #090d09f2, #090d0960 58%, transparent 92%); }
.photo-hero .hero-copy { max-width: 50rem; padding: clamp(1.2rem, 5vw, 3.4rem); }
.photo-hero h1 { font-size: clamp(2.6rem, 7vw, 5.35rem); max-width: 12ch; }
.hero-copy { display: grid; justify-items: start; align-content: center; gap: .9rem; }
.hero-copy p { max-width: 49ch; font-size: 1.03rem; }
.photo-hero .hero-copy p { color: #e0e6dd; }
[data-theme=sage] #karya .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
[data-theme=sage] #karya .card { grid-column: span 2; background: transparent; }
[data-theme=sage] #karya .card:nth-child(-n + 2) { grid-column: span 3; }
[data-theme=sage] .card-media img { aspect-ratio: 3 / 2; }
.about { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: center; gap: 2rem; }
.about img { width: 100%; max-height: 19rem; object-fit: cover; border-radius: var(--radius); }
.about p { margin-block: .8rem; }

/* Studio and editorial */
.studio-hero, .reading-hero { display: grid; grid-template-columns: 1.18fr .82fr; align-items: stretch; gap: 1.4rem; margin-top: 1.15rem; }
.studio-hero { --accent: #bfb9ff; --on-accent: #191343; padding: clamp(1rem, 4vw, 2.8rem); border-radius: 1.25rem; color: #fff; background: #1a1739; }
.studio-hero h1, .reading-hero h1 { font-size: clamp(2.35rem, 5.6vw, 4.75rem); }
.studio-hero p { color: #ddd9ec; }
.hero-project { align-self: center; color: #fff; background: #2c274e; border: 1px solid #554d83; border-radius: 1rem; overflow: hidden; text-decoration: none; }
.hero-project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-project span { display: grid; padding: .7rem .85rem; font-weight: 750; }
.hero-project small { color: #d2cdea; font-weight: 500; }
[data-theme=peach] #layanan .card-body { height: 100%; grid-template-rows: auto auto 1fr auto; }
[data-theme=peach] #layanan .card .button { background: var(--surface); color: var(--accent); }
.consultation { padding: clamp(1rem, 4vw, 2rem); background: var(--surface); border-radius: 1.15rem; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1.5rem; align-items: start; }
.consultation h2 { margin-bottom: .7rem; }
.brief { display: grid; width: 100%; gap: .75rem; }
.brief button { justify-self: start; }
.reading-hero { align-items: center; gap: clamp(1rem, 4vw, 3rem); padding-block: clamp(1.15rem, 4vw, 2.4rem); }
.reading-hero .hero-copy { padding-block: .6rem; }
.lead-story { overflow: hidden; background: var(--surface); border-radius: 1.1rem; border: 1px solid var(--line); }
.lead-story a { color: var(--text); text-decoration: none; display: block; }
.lead-story a:hover h2 { text-decoration: underline; }
.lead-story img { aspect-ratio: 1.85; width: 100%; object-fit: cover; }
.lead-story a > div { display: grid; gap: .4rem; padding: 1rem; }
.lead-story h2 { font-size: clamp(1.45rem, 3vw, 2.2rem); }
.detail { max-width: 58rem; margin-inline: auto; }
.detail h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); }
.detail-image img { width: 100%; max-height: 36rem; object-fit: contain; background: var(--panel); border-radius: var(--radius); }
.detail-image figcaption { margin-top: .6rem; color: var(--muted); }
[data-theme=lilac] .detail-image img { object-fit: cover; max-height: 25rem; }
.article-copy { max-width: 65ch; margin-inline: auto; font-size: 1.08rem; }
.article-copy .prompt { margin-top: 1.5rem; }

/* Directory and status dashboards */
.dashboard-intro { padding-block: clamp(1.6rem, 4vw, 3rem) 1.1rem; display: grid; gap: .4rem; }
.dashboard-intro h1 { font-size: clamp(2.1rem, 5vw, 4.15rem); }
.dashboard { margin-top: 0; }
.dashboard-summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics > div { display: grid; gap: .22rem; padding: .8rem 1rem; }
.metrics > div + div { border-inline-start: 1px solid var(--line); }
.metrics strong { font-size: clamp(1.4rem, 4vw, 2.1rem); line-height: 1.25; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.status { display: inline-flex; align-items: center; gap: .35rem; color: var(--accent); font-size: .83rem; line-height: 1.25; font-weight: 740; }
.status::before { content: ''; width: .45rem; height: .45rem; flex: 0 0 .45rem; border-radius: 50%; background: currentColor; }
.status.down { color: #ffb0a9; }
.status.unknown { color: #e8c99b; }
[data-theme=sky] .status.up { color: #176746; }
[data-theme=sky] .status.down { color: #a22d38; }
[data-theme=sky] .status.unknown { color: #765216; }
.dashboard-time { border-top: 1px solid var(--line); padding: .42rem .9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .3rem; }
.dashboard-time p, .dashboard-note { font-size: .86rem; }
.dashboard-time .button { min-height: 36px; }
.dashboard-time .button, .dashboard .section-heading .button { border-color: var(--line); background: var(--surface); color: var(--accent); }
.service-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem; width: 100%; }
.service-meta .tag { color: var(--muted); }
.service-card small { font-size: .82rem; }
.table-scroll { border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; }
table { border-collapse: collapse; width: 100%; min-width: 41rem; text-align: left; background: var(--panel); font-variant-numeric: tabular-nums; }
th, td { padding: .72rem .9rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface); color: var(--muted); font-size: .85rem; }
tbody th a { color: var(--text); }
tbody th small { display: block; margin-top: .1rem; font-weight: 450; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--panel), var(--accent) 4%); }
.mobile-label { display: none; }

@media (max-width: 850px) {
  .tools-layout { grid-template-columns: 1fr; }
  .studio-hero, .reading-hero { grid-template-columns: 1fr; }
  .hero-project img, .lead-story img { aspect-ratio: 2.3; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 1.5rem); }
  .brand img { width: 1.6rem; height: 1.6rem; }
  .nav nav a { padding-inline: .35rem; }
  .section { gap: .85rem; }
  .tools-hero { padding-block: 1.7rem 1.5rem; }
  .tool .tag { top: .9rem; right: .75rem; }
  [data-theme=sage] #karya .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-theme=sage] #karya .card, [data-theme=sage] #karya .card:nth-child(-n + 2) { grid-column: auto; }
  [data-theme=sage] #karya .card:first-child { grid-column: 1 / -1; }
  .about, .consultation { grid-template-columns: 1fr; }
  .metrics > div { padding: .6rem; }
  .metrics .status::before { display: none; }
  .table-scroll { border: 0; overflow: visible; }
  table, tbody { display: block; min-width: 0; background: transparent; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); padding: .7rem; margin-bottom: .55rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--panel); }
  tbody tr > * { border: 0; padding: .2rem; }
  tbody th { grid-column: 1 / 3; overflow-wrap: anywhere; }
  tbody td:nth-child(2) { text-align: right; }
  .mobile-label { display: block; color: var(--muted); font-size: .8rem; }
}
@media (max-width: 370px) {
  .tools-layout #tools .grid { grid-template-columns: 1fr; }
  .about { gap: 1rem; }
  .metrics .status { font-size: .77rem; }
}
