/* Cetakan Wang: gold ink on near-black, printed like money. Square corners, rules over cards. */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/_astro/cormorantgaramond-600-latin.Co1r35X9.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/_astro/ibmplexmono-400-latin.DMJ8VG8y.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/_astro/ibmplexmono-500-latin.DSY6xOcd.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/_astro/publicsans-var-latin.DdeTHZLK.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/_astro/sourceserif4-var-latin.BpEBLj1O.woff2') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/_astro/sourceserif4-400-italic-latin.COu0lPwH.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  /* Ikmal's own tokens (mockup) */
  --ink: #12100C;
  --ink-raised: #1C1912;
  --cream: #F3EDDF;
  --muted: #CBC2AB;
  --gold: #C8A24A;
  --gold-light: #E0BE6A;
  --gold-deep: #7A5C14;
  --hair: #3A3322;
  --paper: #F3EDDF;
  --paper-ink: #1B1812;
  --paper-muted: #5B5444;
  --paper-hair: #CFC4A9;
  --hair-strong: #5A4E33;
  --placeholder: #8F866F;
  --prose: #E9E2D2;
  --lift: 0 18px 36px rgb(0 0 0 / .5); /* the second shadow recipe: objects lifted off the ink (book covers, cart bar) */
  --coin-shadow: drop-shadow(0 30px 34px rgb(0 0 0 / .8)); /* the one shadow recipe: a coin resting above the plate */

  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --text: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: max(16px, clamp(16px, 4vw, 56px));
  --measure: 66ch;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: var(--ink); color: var(--cream); font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
h1, h2, h3 { overflow-wrap: anywhere; min-width: 0; }
/* engraved images on paper: dark lines on white, multiplied onto the cream */
.print-in--paper { mix-blend-mode: multiply; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.eyebrow { font: 500 11px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.label { font: 400 11px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px;
  font: 600 15px/1 var(--sans); background: var(--gold); color: var(--ink); border: 0; cursor: pointer; }
.btn:hover { text-decoration: none; background: var(--gold-light); }
.btn:active { background: var(--gold-deep); color: var(--cream); }
.btn--quiet { background: transparent; color: var(--cream); padding: 0; min-height: 44px; }
.btn--quiet:hover { background: transparent; text-decoration: underline; }

/* Header */
.site-header { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: var(--header-h); padding-inline: var(--gutter); border-bottom: 1px solid var(--hair); background: var(--ink); }
.wordmark { display: grid; gap: 6px; }
.wordmark b { white-space: nowrap; font: 600 28px/1 var(--display); color: var(--gold-light); letter-spacing: .005em; }
.wordmark span { font: 400 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.wordmark:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 28px; font: 500 14px/1 var(--sans); color: var(--muted); }
.site-nav a { padding-block: 12px; }
.site-nav a[aria-current="page"] { color: var(--gold-light); }
.site-nav .pill { color: var(--ink); background: var(--gold); padding: 12px 16px; font-weight: 600; }
.site-nav .pill:hover { background: var(--gold-light); text-decoration: none; }
/* Phones: one Menu disclosure holds every destination */
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; cursor: pointer;
  border: 1px solid var(--hair-strong); font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cream); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: ""; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; rotate: 45deg; translate: 0 -2px; }
.nav-menu[open] summary { color: var(--gold-light); border-color: var(--gold); }
.nav-menu[open] summary::after { rotate: 225deg; translate: 0 2px; }
.nav-menu nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; display: grid; min-width: 220px; padding: 8px 0;
  background: var(--ink-raised); border: 1px solid var(--hair-strong); box-shadow: var(--lift); }
.nav-menu nav a { padding: 13px 20px; font: 500 16px/1.2 var(--sans); color: var(--cream); }
.nav-menu nav a[aria-current="page"] { color: var(--gold-light); }
.nav-menu nav .pill { margin: 8px 12px 4px; text-align: center; background: var(--gold); color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .site-nav { display: none; } .nav-menu { display: block; } }
@media (max-width: 480px) { .wordmark span { display: none; } .wordmark b { font-size: 25px; } }
/* On the home page the header sits on the montage's first screen, so the long line is in view at load. */
html.motion .site-header.is-overlay { position: absolute; inset: 0 0 auto; background: transparent; border-bottom-color: transparent; }

/* Footer: printed like a banknote imprint */
.site-footer { border-top: 1px solid var(--hair); padding: 40px var(--gutter) 32px; display: grid; gap: 28px; }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: baseline; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.site-footer nav a { padding-block: 10px; }
.site-footer .copy { font-size: 13px; color: var(--muted); }
.imprint { display: flex; align-items: center; gap: 14px; font: 400 11px/1 var(--mono); letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); }
.imprint::before, .imprint::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.imprint a { color: var(--gold-light); padding-block: 10px; }

/* Grain on large ink grounds prevents banding behind gold line-work (declared exception). */
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
/* Motion: four printing gestures, all CSS scroll-driven. No loops, no rAF, nothing runs while the page is idle.
   The finished state is the default: browsers without scroll timelines and reduced-motion readers see it directly.
   print-in  plates ink up from their strongest strokes (the montage's print threshold, in CSS)
   engrave   guilloche cut in by a rotating lathe
   turn      a coin turns from obverse to reverse
   rise      a gold line grows with progress (the Zaman strip) */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .print-in {
      animation: print-in linear both; animation-timeline: view(); animation-range: entry 5% cover 42%;
      mask-image: linear-gradient(100deg, #000 42%, transparent 58%); mask-size: 260% 100%; mask-repeat: no-repeat;
    }
    .engrave { animation: engrave linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    .engrave-band { animation: engrave-band linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .turn-view .ct-inner { animation: turn linear both; animation-timeline: view(); animation-range: cover 15% cover 85%; }
    .turn-exit .ct-inner { animation: turn linear both; animation-timeline: view(); animation-range: exit 0% exit 90%; }
  }
}

/* Above the fold: the same gestures once, on arrival (1.6 s), so the page head is never caught half-inked. */
@media (prefers-reduced-motion: no-preference) {
  .print-load { animation: print-in 1.6s cubic-bezier(.3, .6, .2, 1) both;
    mask-image: linear-gradient(100deg, #000 42%, transparent 58%); mask-size: 260% 100%; mask-repeat: no-repeat; }
  .engrave-load { animation: engrave 1.8s .25s cubic-bezier(.3, .6, .2, 1) both; }
}

/* Images printed on paper keep their own filter: the on-paper duotone, or the cream portrait. */
.on-paper.print-in, .on-paper.print-load { animation-name: print-in-duotone; }
.print-in--paper.print-in, .print-in--paper.print-load { animation-name: print-in-paper; }

@keyframes print-in {
  from { mask-position: 100% 0; filter: brightness(.5) contrast(2.4); }
  55% { filter: brightness(.85) contrast(1.4); }
  to { mask-position: 0 0; filter: var(--ink-up, none); }
}
@keyframes print-in-duotone {
  from { mask-position: 100% 0; filter: invert(1) grayscale(1) contrast(.5) brightness(1.35); }
  to { mask-position: 0 0; filter: invert(1) grayscale(1) contrast(1.15); }
}
@keyframes print-in-paper {
  from { mask-position: 100% 0; filter: brightness(1.7); }
  to { mask-position: 0 0; filter: none; }
}
@keyframes engrave {
  from { clip-path: circle(0% at 50% 50%); transform: rotate(-50deg); }
  to { clip-path: circle(75% at 50% 50%); transform: rotate(0); }
}
@keyframes engrave-band { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes turn { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
@keyframes rise { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.guilloche.astro-3uphf6pj {
  display: block;
  color: var(--gold);
}

.guilloche.astro-3uphf6pj g.astro-3uphf6pj {
  stroke-width: .6px;
}

.guilloche--seal.astro-3uphf6pj {
  aspect-ratio: 1;
}

.seal-disc.astro-3uphf6pj {
  fill: var(--seal-bg, none);
}

.guilloche--band.astro-3uphf6pj {
  width: 100%;
  height: var(--band-h, 22px);
}
