/* Dewmarrow: token dan komponen bersama untuk index dan tiga support page. */
:root {
  /* warna */
  --peach: #FBE3CF;
  --paper: #FFF4EA;
  --peach-deep: #F4D0B6;
  --fern: #2F6B4E;
  --fern-deep: #1E4A35;
  --fern-soft: #4F8468;
  --plum: #5B2A4E;
  --plum-deep: #40193A;
  --plum-soft: #E6C3D4;
  --dew: #7FCFD6;
  --dew-pale: #DDF1EF;
  --ember: #E4572E;
  --ember-ink: #2B0F24;
  --ember-deep: #B23C18;
  --glint: #FFFFFF;
  /* peran */
  --bg: var(--peach);
  --ink: var(--fern-deep);
  --ink-2: var(--fern);
  --rule: color-mix(in srgb, var(--fern) 28%, transparent);
  --focus: var(--fern-deep);
  /* tipe */
  --display: 'Gabarito', 'Trebuchet MS', sans-serif;
  --body: 'Lexend', 'Segoe UI', sans-serif;
  --fs-00: .8125rem;
  --fs-0: .9375rem;
  --fs-1: 1.0625rem;
  --fs-2: 1.3125rem;
  --fs-3: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  --fs-4: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
  --fs-5: clamp(2.6rem, 1rem + 6.2vw, 5.5rem);
  /* ruang */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1240px;
  --band: clamp(72px, 9vw, 136px);
  /* bentuk */
  --r1: 10px; --r2: 20px; --r3: 36px; --r-pill: 999px;
  --r-drop: 6% 50% 50% 50%;
  --r-leaf: 10% 54% 10% 54% / 8% 42% 8% 42%;
  --line: 3px;
  --line-heavy: 5px;
  --shadow: 0 22px 44px -28px color-mix(in srgb, var(--plum-deep) 55%, transparent);
  /* gerak */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-fall: cubic-bezier(.55, 0, 1, .45);
  --t1: 160ms; --t2: 320ms; --t3: 620ms;
  /* lapis */
  --z-head: 20; --z-pop: 40; --z-dialog: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s5); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: var(--fs-1); font-weight: 350; line-height: 1.62; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: -.012em; }
h2 { font-size: var(--fs-4); }
h3 { font-size: var(--fs-3); font-weight: 700; }
h4 { font-size: var(--fs-2); font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: var(--s4); }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--r1); }
::selection { background: var(--fern); color: var(--paper); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: var(--s4); z-index: var(--z-dialog); padding: var(--s3) var(--s5); background: var(--fern-deep); color: var(--paper); border-radius: var(--r-pill); transform: translateY(-200%); }
.skip:focus { transform: none; }
.on-plum { background: var(--plum); color: var(--peach); --ink: var(--peach); --ink-2: var(--plum-soft); --focus: var(--paper); --rule: color-mix(in srgb, var(--plum-soft) 34%, transparent); }
.lead { font-size: var(--fs-2); line-height: 1.5; font-weight: 300; }
.note { color: var(--ink-2); font-size: var(--fs-0); }
.band { padding-block: var(--band); }

/* Dewkin tetes */
.kin-body { fill: var(--dew); stroke: var(--fern-deep); stroke-width: 4; stroke-linejoin: round; }
.kin-glint { fill: none; stroke: var(--glint); stroke-width: 3; stroke-linecap: round; }
.kin-eyes { fill: var(--fern-deep); }
.on-plum .kin-body { stroke: var(--plum-deep); }
.on-plum .kin-eyes { fill: var(--plum-deep); }

/* tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 52px; padding: var(--s3) var(--s6); border: var(--line) solid currentColor; border-radius: var(--r-pill); background: transparent; color: inherit; font-family: var(--display); font-weight: 700; font-size: var(--fs-1); line-height: 1.1; text-decoration: none; text-align: center; transition: transform var(--t1) var(--ease), background-color var(--t1), color var(--t1); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-ember { background: var(--ember); color: var(--ember-ink); border-color: var(--ember-ink); }
.btn-ember:hover { background: color-mix(in srgb, var(--ember) 88%, var(--glint)); }
.btn-fern { background: var(--fern-deep); color: var(--paper); border-color: var(--fern-deep); }
.btn-s { min-height: 44px; padding: var(--s2) var(--s5); font-size: var(--fs-0); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.link { font-family: var(--display); font-weight: 700; color: var(--ink-2); }
.link:hover { color: var(--ink); }

/* kepala situs */
.site-head { position: relative; z-index: var(--z-head); padding-block: var(--s4); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.brand { display: inline-flex; align-items: center; gap: var(--s2); font-family: var(--display); font-weight: 800; font-size: 1.375rem; text-decoration: none; letter-spacing: -.01em; min-height: 44px; }
.brand svg { width: 22px; height: 28px; }
.menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: var(--s2) var(--s5); border: var(--line) solid var(--ink); border-radius: var(--r-pill); background: var(--paper); font-family: var(--display); font-weight: 700; }
.site-nav { display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: 100%; z-index: var(--z-pop); padding: var(--s5); background: var(--paper); color: var(--fern-deep); border: var(--line) solid var(--fern-deep); border-radius: var(--r2); box-shadow: var(--shadow); }
.site-nav.is-open { display: block; }
.site-nav ul { display: grid; gap: var(--s1); margin-bottom: var(--s4); }
.site-nav li a { display: flex; align-items: center; min-height: 44px; padding: var(--s2) var(--s3); border-radius: var(--r-pill); font-family: var(--display); font-weight: 600; text-decoration: none; }
.site-nav li a:hover { background: color-mix(in srgb, var(--fern) 12%, transparent); }
.site-nav li a[aria-current="page"] { background: var(--fern-deep); color: var(--paper); }
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .site-nav { display: flex; align-items: center; gap: var(--s5); position: static; padding: 0; background: none; border: 0; box-shadow: none; color: inherit; }
  .site-nav ul { display: flex; gap: var(--s1); margin: 0; }
  .site-nav li a { padding-inline: var(--s4); }
}

/* kepala halaman support */
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: var(--fs-0); color: var(--ink-2); }
.crumbs li + li::before { content: '/'; margin-right: var(--s2); color: var(--rule); }
.crumbs a { display: inline-block; padding-block: var(--s2); }
.crumbs [aria-current] { display: inline-block; padding-block: var(--s2); color: var(--ink); font-weight: 500; }
.page-head h1 { font-size: var(--fs-5); font-weight: 900; letter-spacing: -.02em; }

/* bingkai gambar */
.frame { overflow: hidden; border: var(--line-heavy) solid var(--fern-deep); border-radius: var(--r3); background: var(--peach-deep); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-drop { border-radius: var(--r-drop); }
.frame-leaf { border-radius: var(--r-leaf); }
.on-plum .frame { border-color: var(--peach); background: var(--plum-deep); }
figcaption { margin-top: var(--s3); font-size: var(--fs-0); color: var(--ink-2); }

/* kaki situs */
.site-foot { padding-block: var(--s8) var(--s6); border-radius: var(--r3) var(--r3) 0 0; }
.foot-grid { display: grid; gap: var(--s7); }
.foot-brand .brand { font-size: 2rem; }
.foot-brand .brand svg { width: 30px; height: 38px; }
.foot-brand p { max-width: 34ch; color: var(--plum-soft); margin-top: var(--s3); }
.site-foot h2 { font-size: var(--fs-1); font-weight: 700; letter-spacing: 0; margin-bottom: var(--s3); color: var(--plum-soft); }
.site-foot li a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.site-foot li a:hover { text-decoration: underline; }
.plat { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-top: var(--s5); font-family: var(--display); font-weight: 700; font-size: var(--fs-0); }
.plat li { display: inline-flex; align-items: center; gap: var(--s2); }
.plat svg { height: 18px; width: auto; fill: currentColor; }
.plat .ps svg { height: 30px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s4); margin-top: var(--s7); padding-top: var(--s5); border-top: 2px solid var(--rule); font-size: var(--fs-0); color: var(--plum-soft); }
.foot-base a { display: inline-flex; align-items: center; min-height: 44px; color: var(--peach); font-family: var(--display); font-weight: 700; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; } }

/* blok kutipan menuju halaman lain */
.cite { display: grid; gap: var(--s5); align-items: center; padding: clamp(24px, 4vw, 56px); border: var(--line) solid var(--fern-deep); border-radius: var(--r3); background: var(--paper); }
.cite blockquote { margin: 0; font-family: var(--display); font-weight: 600; font-size: var(--fs-3); line-height: 1.22; text-wrap: balance; }
.cite cite { display: block; margin-top: var(--s3); font-family: var(--body); font-style: normal; font-size: var(--fs-0); color: var(--ink-2); font-weight: 400; }
@media (min-width: 900px) { .cite { grid-template-columns: 1fr auto; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
