/* Generated by ARKlight -- v0.0431 default stylesheet.
   Override any of this with `style={...}` or `class_name="..."` props
   on your components. */

:root {
  --ark-bg: #faf6f0;
  --ark-text: #1a1a2e;
  --ark-muted: #5b5b76;
  --ark-accent: #4f46e5;
  --ark-accent-hover: #4338ca;
  --ark-border: #e5e5f0;
  --ark-max-width: min(100% - 3rem, 75rem);
}

@property --ark-bg {
  syntax: "<color>";
  inherits: true;
  initial-value: #ffffff;
}

@property --ark-text {
  syntax: "<color>";
  inherits: true;
  initial-value: #1a1a2e;
}

@property --ark-muted {
  syntax: "<color>";
  inherits: true;
  initial-value: #5b5b76;
}

@property --ark-accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #4f46e5;
}

@property --ark-accent-hover {
  syntax: "<color>";
  inherits: true;
  initial-value: #4338ca;
}

@property --ark-border {
  syntax: "<color>";
  inherits: true;
  initial-value: #e5e5f0;
}

@property --ark-max-width {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: min(100% - 3rem, 75rem);
}

* {
  box-sizing: border-box;
}

/* `body` below carries `max-width` + centering, so its background only
   paints the centered content column, and neither `html` nor `body` is
   guaranteed to be as tall as the viewport when the page's content is
   shorter than the screen. Without this, a page with a short amount of
   content and a colored/imaged background (via `Site(bg=...)`, which
   sets `--ark-bg`) shows that background only behind the text, with
   the browser's default (usually white) showing everywhere else --
   both the gutters beside the content column and the empty space below
   a short page. `html` is unconstrained-width and always at least
   viewport-tall, so painting the same background there and stretching
   `body` to match makes any background color or image cover the whole
   browser window, edge to edge, regardless of content length. */
html {
  min-height: 100%;
  background: var(--ark-bg);
}

body {
  margin: 0;
  padding: 2.5rem 1.5rem 4rem;
  min-height: 100vh;
  background: var(--ark-bg);
  color: var(--ark-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.6;
  max-width: var(--ark-max-width);
  margin-left: auto;
  margin-right: auto;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  margin: 1.6em 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: 2.25rem; margin-top: 0; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ark-muted); }

p {
  margin: 0 0 1em;
  color: var(--ark-text);
  text-wrap: pretty;
}

a {
  color: var(--ark-accent);
  text-decoration: none;
}

a:hover {
  color: var(--ark-accent-hover);
  text-decoration: underline;
}

button {
  font: inherit;
  background: var(--ark-accent);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.65em 1.4em;
  cursor: pointer;
  transition: background 0.15s ease;
}

button:hover {
  background: var(--ark-accent-hover);
}

ul {
  padding-left: 1.25em;
  margin: 0 0 1em;
}

li {
  margin: 0.25em 0;
}

img {
  max-width: 100%;
  border-radius: 8px;
}

div {
  margin: 0;
}

/* Utility classes available to any component via class_name="..." */

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--ark-border);
}

.nav a {
  color: var(--ark-text);
  font-weight: 600;
}

.nav a:hover {
  color: var(--ark-accent);
}

.nav a.is-active {
  color: var(--ark-accent);
}

.page {
  padding: 0;
}

/* Pairs with the "toggle" behavior (see arklight.backend.js): start an
   element hidden with class_name="hidden", then toggle_class="hidden"
   on the button that reveals it. */
.hidden {
  display: none;
}

.muted {
  color: var(--ark-muted);
}

.card {
  border: 1px solid var(--ark-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1em 0;
}

/* ------------------------------------------------------------------ */
/* v0.003 -- default styling for the extended tag vocabulary.          */
/* ------------------------------------------------------------------ */

header, footer, main, nav, section, article, aside {
  display: block;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
}

figure {
  margin: 1.5em 0;
}

figcaption {
  color: var(--ark-muted);
  font-size: 0.9rem;
  margin-top: 0.5em;
}

/* <details>/<summary>: a native disclosure widget -- no `toggle`
   behavior needed for a plain accordion. */
details {
  border: 1px solid var(--ark-border);
  border-radius: 8px;
  padding: 0.75em 1em;
  margin: 1em 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details[open] summary {
  margin-bottom: 0.5em;
}

strong { font-weight: 700; }
em { font-style: italic; }
small { font-size: 0.85em; color: var(--ark-muted); }
mark { background: #fef3c7; color: inherit; padding: 0.1em 0.2em; border-radius: 3px; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  background: var(--ark-border);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

pre {
  background: #1a1a2e;
  color: #e5e5f0;
  padding: 1em 1.25em;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1em 0;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

blockquote {
  border-left: 3px solid var(--ark-accent);
  margin: 1em 0;
  padding: 0.25em 0 0.25em 1.25em;
  color: var(--ark-muted);
}

hr {
  border: none;
  border-top: 1px solid var(--ark-border);
  margin: 2em 0;
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

time, cite {
  color: var(--ark-muted);
}

/* Forms. */

form {
  display: block;
  margin: 0;
}

fieldset {
  border: 1px solid var(--ark-border);
  border-radius: 8px;
  padding: 1em 1.25em;
  margin: 1em 0;
}

legend {
  font-weight: 600;
  padding: 0 0.4em;
}

label {
  display: block;
  font-weight: 600;
  margin: 0.75em 0 0.3em;
}

input, textarea, select {
  font: inherit;
  color: var(--ark-text);
  background: var(--ark-bg);
  border: 1px solid var(--ark-border);
  border-radius: 6px;
  padding: 0.55em 0.75em;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--ark-accent);
  outline-offset: 1px;
}

textarea {
  resize: vertical;
  min-height: 6em;
  field-sizing: content;
}

input[type="checkbox"], input[type="radio"] {
  width: auto;
  margin-right: 0.5em;
}

/* Tables. */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

caption {
  caption-side: top;
  text-align: left;
  color: var(--ark-muted);
  margin-bottom: 0.5em;
}

th, td {
  text-align: left;
  padding: 0.6em 0.9em;
  border-bottom: 1px solid var(--ark-border);
}

th {
  font-weight: 700;
  border-bottom-width: 2px;
}

/* Media. */

video, audio {
  max-width: 100%;
  border-radius: 8px;
}

audio {
  width: 100%;
}

picture img {
  max-width: 100%;
  border-radius: 8px;
}

/* ------------------------------------------------------------------ */
/* v0.003 -- default styling for the second vocabulary addendum.       */
/* ------------------------------------------------------------------ */

ol {
  padding-left: 1.25em;
  margin: 0 0 1em;
}

dl {
  margin: 0 0 1em;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 0 0.75em 1.25em;
  color: var(--ark-muted);
}

progress, meter {
  width: 100%;
  height: 0.6em;
  accent-color: var(--ark-accent);
}

output {
  font-weight: 600;
}

dialog {
  border: 1px solid var(--ark-border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  max-width: min(90vw, 32rem);
}

dialog::backdrop {
  background: rgba(26, 26, 46, 0.4);
}

kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.85em;
  background: var(--ark-bg);
  border: 1px solid var(--ark-border);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0.1em 0.4em;
}

samp, var {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

dfn {
  font-style: italic;
}

address {
  font-style: normal;
  color: var(--ark-muted);
}

ruby {
  ruby-position: over;
}

rt {
  color: var(--ark-muted);
  font-size: 0.65em;
}

colgroup col.highlight {
  background: var(--ark-border);
}

iframe {
  max-width: 100%;
  border: 1px solid var(--ark-border);
  border-radius: 8px;
}

map, area {
  display: none; /* invisible hotspot layer over an <img>, nothing to lay out */
}

/* ------------------------------------------------------------------ */
/* v0.003 -- intrinsic responsive layout utilities.                    */
/*                                                                      */
/* ARKlight's `Page` never gets a `<head>` hook (see                   */
/* docs/DESIGN-NOTES.md), so there is no `@media`/`@container` query    */
/* available to any generated site -- responsiveness has to come from  */
/* the browser reflowing content from available width alone, not from  */
/* a rule keyed to a width threshold. These utility classes are the    */
/* standard, well-established answer to that constraint (the pattern   */
/* is sometimes called "intrinsic web design"): layouts that adapt      */
/* using only flexbox/grid sizing keywords (`minmax`, `auto-fit`,       */
/* `flex-wrap`, `clamp`), with no breakpoint ever written down. Opt in  */
/* with `class_name="stack"`, `class_name="cluster"`, etc. -- same       */
/* mechanism as `.nav`/`.card` above. */

/* Stack: consistent vertical rhythm between block children, no margin
   collapsing surprises. */
.stack > * + * {
  margin-top: var(--ark-stack-space, 1.25rem);
}

/* Cluster: a row of items that wraps as a group once it runs out of
   width -- nav bars, tag lists, button groups. */
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ark-cluster-space, 0.75rem);
}

/* Sidebar: two panels that sit side-by-side once there's room for
   both, and stack vertically when there isn't -- no breakpoint, the
   flex-basis/grow math decides. */
.sidebar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ark-sidebar-space, 1.5rem);
}

.sidebar > :first-child {
  flex-basis: var(--ark-sidebar-width, 16rem);
  flex-grow: 1;
}

.sidebar > :last-child {
  flex-basis: 0;
  flex-grow: 999;
  min-width: 60%;
}

/* Switcher: children are stacked until the container is wide enough
   for all of them at a sensible minimum width, then they sit in a row
   -- a tab bar or a card row that becomes a stack on a narrow screen
   without ever checking the *screen's* width, only its own. */
.switcher {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ark-switcher-space, 1rem);
}

.switcher > * {
  flex-grow: 1;
  flex-basis: calc((var(--ark-switcher-threshold, 30rem) - 100%) * 999);
}

/* Grid: an auto-filling card/tile grid with no explicit column count
   and no breakpoint -- the browser fits as many `minmax()`-wide
   columns as the available width allows. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--ark-grid-min, 16rem), 1fr));
  gap: var(--ark-grid-space, 1.25rem);
}

/* Center: constrains and horizontally centers content, with optional
   inner gutters -- the "column" every `Page` already gets, available
   for use inside nested sections too. */
.center {
  max-width: var(--ark-center-width, 60ch);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ark-center-gutter, 0);
  padding-right: var(--ark-center-gutter, 0);
}

/* Reel: a horizontally-scrolling row (image strips, card carousels)
   that never wraps or overflows the page -- an intrinsic alternative
   to a JS carousel. */
.reel {
  display: flex;
  gap: var(--ark-reel-space, 1rem);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 0.5rem;
}

.reel > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

/* Fluid heading: scales smoothly between a minimum and maximum size
   across the available width using `clamp()`, instead of jumping at a
   fixed breakpoint. */
.fluid-heading {
  font-size: clamp(1.75rem, 1.1rem + 2.5vw, 3rem);
  line-height: 1.15;
}

/* Pairs with the "dismiss" behavior (see arklight.backend.js): a
   banner/alert that a `Button` can permanently hide via
   `on_click="dismiss"`. */
.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--ark-border);
  border-left: 4px solid var(--ark-accent);
  border-radius: 8px;
  padding: 0.9em 1.1em;
  margin: 1em 0;
  background: var(--ark-border);
}

/* Custom classes -- registered via `site.style(...)`. */

.bento-hero {
  grid-column: span 2;
}

.hero {
  border-bottom: 2px solid var(--ark-accent);
  margin-bottom: 1.5rem;
  padding: 2.5rem 0;
}

.kpi-value {
  color: var(--ark-accent);
  font-size: 2rem;
  font-weight: 700;
}

.nav-brand {
  color: var(--ark-accent);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.playground-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.playground-panel-open {
  max-height: 400px;
  opacity: 1;
}

.source-note {
  color: #666;
  font-size: 0.85rem;
}

.status-done {
  color: #3f6212;
  font-weight: 600;
}

.status-in-progress {
  color: var(--ark-accent);
  font-weight: 600;
}

.status-planned {
  color: var(--ark-muted);
}
