@import url("https://fonts.googleapis.com/css2?family=Italiana&family=JetBrains+Mono:wght@400;600&family=Open+Sans:wght@400;600;800&display=swap");

/* Akropora — component styles. Every value comes from tokens.css custom properties. */
body { margin: 0; font-family: var(--font-sans); background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; }
.ak-pad { padding: var(--space-6); }
.ak-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }

/* Wordmark: the name set in the display face. There is no drawn logo. */
.ak-wordmark { font-family: var(--font-display); font-weight: 400; line-height: 1; letter-spacing: -0.01em; color: var(--ink); margin: 0; }

/* Callout: the black box. */
.ak-callout { display: inline-block; background: var(--surface-inverse); color: var(--ink-inverse); padding: var(--space-4) var(--space-6); font-size: 20px; line-height: 1.4; font-weight: 400; max-width: 34ch; }

/* Grain panel: the blurred bloom gradient with film grain. */
.ak-grain { position: relative; isolation: isolate; overflow: hidden; border: var(--stroke-hairline) solid var(--line);
  background:
    radial-gradient(38% 55% at 8% 18%, rgba(218,196,187,.42), transparent 70%),
    radial-gradient(30% 70% at 72% 92%, rgba(218,196,187,.38), transparent 70%),
    radial-gradient(40% 60% at 92% 10%, rgba(153,123,205,.40), transparent 70%),
    radial-gradient(35% 55% at 28% 88%, rgba(108,133,129,.40), transparent 70%),
    var(--akr-cobalt); }
.ak-grain::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: var(--grain-opacity); mix-blend-mode: soft-light; pointer-events: none; }
.ak-grain, .ak-grain * { color: var(--akr-white); }

/* Lists: lettered "a.)" lists with round bullets nested inside. */
.ak-list { list-style: none; counter-reset: ak; margin: 0; padding: 0; font-weight: 800; font-size: 20px; line-height: 1.4; }
.ak-list > li { counter-increment: ak; padding-left: 2.2em; position: relative; margin: 0 0 var(--space-2); }
.ak-list > li::before { content: counter(ak, lower-alpha) ".)"; position: absolute; left: 0; }
.ak-list ul { list-style: disc; margin: var(--space-2) 0 0; padding-left: 1.2em; }
.ak-list ul li { margin-bottom: var(--space-1); }

/* Tile: hairline-framed square for motifs and images. */
.ak-tile { border: var(--stroke-hairline) solid var(--line); display: grid; place-items: center; overflow: hidden; background: var(--akr-ground); aspect-ratio: 1; }
.ak-tile--wide { aspect-ratio: 5 / 2; }
.ak-tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ak-tile--bleed img { width: 190%; height: auto; max-width: none; object-fit: contain; justify-self: end; }
.ak-tile--bleed-start img { justify-self: start; }

/* Tag: light brand fills with black ink. */
.ak-tag { display: inline-block; font: 600 12px/20px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; padding: 0 var(--space-2); border-radius: var(--radius-none); color: var(--ink-on-fill); background: var(--akr-blush); }
.ak-tag--rose { background: var(--akr-rose); } .ak-tag--lavender { background: var(--akr-lavender); } .ak-tag--sage { background: var(--akr-sage); }
.ak-tag--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* Button */
.ak-btn { font: 800 15px/1 var(--font-sans); letter-spacing: .01em; height: 44px; padding: 0 var(--space-6); display: inline-flex; align-items: center; gap: var(--space-2);
  border-radius: var(--radius-none); border: var(--stroke-hairline) solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.ak-btn:hover { background: var(--line-subtle); }
.ak-btn--primary { background: var(--ink); color: var(--surface); }
.ak-btn--primary:hover { background: var(--accent); border-color: var(--accent); }
.ak-btn--ghost { border-color: transparent; text-decoration: underline; text-underline-offset: 4px; }
.ak-btn:disabled { opacity: .45; cursor: not-allowed; }
.ak-btn:focus-visible, .ak-link:focus-visible, .ak-input:focus-visible, .ak-nav a:focus-visible { outline: var(--stroke-focus) solid var(--focus); outline-offset: 3px; }

/* Link */
.ak-link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ak-link:hover { text-decoration-thickness: 2px; }

/* Input */
.ak-field { display: grid; gap: var(--space-1); font-size: 14px; color: var(--ink-muted); max-width: 320px; }
.ak-input { font: 400 16px/24px var(--font-sans); color: var(--ink); background: transparent; border: var(--stroke-hairline) solid var(--line-subtle); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); }
.ak-input:hover { border-color: var(--line); }
.ak-input::placeholder { color: var(--ink-muted); }

/* Nav */
.ak-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-4) var(--space-6); border-bottom: var(--stroke-hairline) solid var(--line-subtle); }
.ak-nav .ak-wordmark { font-size: 30px; }
.ak-nav ul { display: flex; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.ak-nav a { font: 600 14px/20px var(--font-sans); color: var(--ink-muted); text-decoration: none; }
.ak-nav a:hover, .ak-nav a[aria-current="page"] { color: var(--ink); }
.ak-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* Card */
.ak-card { border: var(--stroke-hairline) solid var(--line); background: var(--surface); display: grid; grid-template-rows: auto 1fr; max-width: 320px; }
.ak-card__media { border-bottom: var(--stroke-hairline) solid var(--line); background: var(--akr-ground); aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.ak-card__media img { height: 86%; }
.ak-card__body { padding: var(--space-6); display: grid; gap: var(--space-2); align-content: start; }
.ak-card__title { font: 800 20px/1.3 var(--font-sans); margin: 0; }
.ak-card__text { font: 400 15px/24px var(--font-sans); color: var(--ink-muted); margin: 0; }

/* Code block */
.ak-code { background: var(--surface-inverse); color: var(--ink-inverse); font: 400 14px/22px var(--font-mono); padding: var(--space-4) var(--space-6); margin: 0; overflow-x: auto; border: var(--stroke-hairline) solid var(--line-subtle); }
.ak-code .k { color: var(--akr-lavender); } .ak-code .s { color: var(--akr-blush); } .ak-code .c { color: #9fb3af; } .ak-code .n { color: var(--akr-rose); }
code.ak-inline { font: 400 .9em var(--font-mono); background: var(--line-subtle); padding: 1px 5px; border-radius: var(--radius-sm); }

/* Table */
.ak-table { border-collapse: collapse; font: 400 15px/22px var(--font-sans); min-width: 420px; }
.ak-table th { text-align: left; font-weight: 800; padding: var(--space-2) var(--space-4); border-bottom: var(--stroke-hairline) solid var(--line); }
.ak-table td { padding: var(--space-2) var(--space-4); border-bottom: var(--stroke-hairline) solid var(--line-subtle); }
.ak-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Slides: author at 1920 x 1080 with slide-* type styles, then scale the frame. */
.ak-slide-frame { width: 960px; height: 540px; overflow: hidden; }
.ak-slide { width: 1920px; height: 1080px; box-sizing: border-box; padding: var(--space-24); background: var(--surface); color: var(--ink); position: relative; transform: scale(.5); transform-origin: 0 0; font-family: var(--font-sans); }
.ak-slide .ak-list { font-size: 52px; line-height: 1.35; }
.ak-slide .ak-callout { font-size: 48px; padding: var(--space-8) var(--space-12); }
