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

:root {
  --ark-bg: #F7E8E6;
  --ark-text: #1a1a2e;
  --ark-muted: #5b5b76;
  --ark-accent: #4f46e5;
  --ark-accent-hover: #4338ca;
  --ark-border: #e5e5f0;
  --ark-button-text: #FFFFFF;
  --ark-max-width: 72rem;
  --ark-stack-space: 1.25rem;
  --ark-cluster-space: 0.75rem;
  --ark-sidebar-space: 1.5rem;
  --ark-sidebar-width: 14rem;
  --ark-switcher-space: 1rem;
  --ark-switcher-threshold: 30rem;
  --ark-grid-min: 16rem;
  --ark-grid-space: 1.25rem;
  --ark-center-gutter: 0;
  --ark-reel-space: 1rem;
  --ark-font-family: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
}

@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-button-text {
  syntax: "<color>";
  inherits: true;
  initial-value: #ffffff;
}

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

@property --ark-stack-space {
  syntax: "<length>";
  inherits: true;
  initial-value: 1.25rem;
}

@property --ark-cluster-space {
  syntax: "<length>";
  inherits: true;
  initial-value: 0.75rem;
}

@property --ark-sidebar-space {
  syntax: "<length>";
  inherits: true;
  initial-value: 1.5rem;
}

@property --ark-sidebar-width {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 16rem;
}

@property --ark-switcher-space {
  syntax: "<length>";
  inherits: true;
  initial-value: 1rem;
}

@property --ark-switcher-threshold {
  syntax: "<length>";
  inherits: true;
  initial-value: 30rem;
}

@property --ark-grid-min {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 16rem;
}

@property --ark-grid-space {
  syntax: "<length>";
  inherits: true;
  initial-value: 1.25rem;
}

@property --ark-center-gutter {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 0;
}

@property --ark-reel-space {
  syntax: "<length>";
  inherits: true;
  initial-value: 1rem;
}

@property --ark-font-family {
  syntax: "*";
  inherits: true;
  initial-value: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  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: var(--ark-font-family);
  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: var(--ark-button-text);
  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/Foundational/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);
}

/* Experimental: @media blocks -- registered via `site.media_query(...)`. See docs/Foundational/EXPERIMENTAL-APIS.md. */

@media (min-width: 72rem) {
  .site-nav {
    flex: 0 1 auto;
    order: 2;
  }
}

@media (min-width: 72rem) {
  .brand {
    flex: 0 1 auto;
  }
}

@media (min-width: 72rem) {
  .theme-toggle {
    order: 3;
  }
}

/* Structural CSS selectors -- registered via `site.style_selector(...)`. See docs/Foundational/DESIGN-NOTES.md ("CSS selector algebra + at-rule vocabulary"). */

:root {
  --ark-accent: #9A2340;
  --ark-accent-hover: #7A1C34;
  --ark-bg: #F7E8E6;
  --ark-border: #D8C2C5;
  --ark-button-text: #FFFFFF;
  --ark-grid-min: min(16rem, 100%);
  --ark-muted: #534347;
  --ark-text: #22191A;
  --md-elevation-1: 0 1px 2px rgba(0,0,0,.30), 0 1px 3px 1px rgba(0,0,0,.15);
  --md-elevation-2: 0 1px 2px rgba(0,0,0,.30), 0 2px 6px 2px rgba(0,0,0,.15);
  --md-elevation-3: 0 1px 3px rgba(0,0,0,.30), 0 4px 8px 3px rgba(0,0,0,.15);
  --md-error: #BA1A1A;
  --md-error-container: #FFDAD6;
  --md-on-error: #FFFFFF;
  --md-on-error-container: #410002;
  --md-on-primary: #FFFFFF;
  --md-on-primary-container: #40001A;
  --md-on-secondary: #FFFFFF;
  --md-on-secondary-container: #2B151A;
  --md-on-surface: #22191A;
  --md-on-surface-variant: #534347;
  --md-on-tertiary: #FFFFFF;
  --md-on-tertiary-container: #2E1500;
  --md-outline: #857377;
  --md-outline-variant: #D8C2C5;
  --md-primary: #9A2340;
  --md-primary-container: #FFD9DF;
  --md-secondary: #74565C;
  --md-secondary-container: #FFD9DF;
  --md-shape-full: 999px;
  --md-shape-lg: 16px;
  --md-shape-md: 12px;
  --md-shape-sm: 8px;
  --md-shape-xl: 28px;
  --md-shape-xs: 4px;
  --md-surface: #F7E8E6;
  --md-surface-bright: #F7E8E6;
  --md-surface-container: #FBEAEA;
  --md-surface-container-high: #F5E4E4;
  --md-surface-container-highest: #EFDEDE;
  --md-surface-container-low: #FFF1EF;
  --md-surface-container-lowest: #FFFFFF;
  --md-surface-dim: #E7D6D7;
  --md-tertiary: #7C5635;
  --md-tertiary-container: #FFDCBF;
  color-scheme: light;
}

html.theme-dark {
  --ark-accent: #FFB2C0;
  --ark-accent-hover: #FFD1DA;
  --ark-bg: #15100F;
  --ark-border: #4E4344;
  --ark-button-text: #5E1130;
  --ark-muted: #D3C2C2;
  --ark-text: #EDE0DF;
  --md-elevation-1: 0 1px 2px rgba(0,0,0,.30), 0 1px 3px 1px rgba(0,0,0,.15);
  --md-elevation-2: 0 1px 2px rgba(0,0,0,.30), 0 2px 6px 2px rgba(0,0,0,.15);
  --md-elevation-3: 0 1px 3px rgba(0,0,0,.30), 0 4px 8px 3px rgba(0,0,0,.15);
  --md-error: #FFB4AB;
  --md-error-container: #93000A;
  --md-on-error: #690005;
  --md-on-error-container: #FFDAD6;
  --md-on-primary: #5E1130;
  --md-on-primary-container: #FFD9DF;
  --md-on-secondary: #412A2F;
  --md-on-secondary-container: #FFD9DF;
  --md-on-surface: #EDE0DF;
  --md-on-surface-variant: #D3C2C2;
  --md-on-tertiary: #49290A;
  --md-on-tertiary-container: #FFDCBF;
  --md-outline: #9C8C8C;
  --md-outline-variant: #4E4344;
  --md-primary: #FFB2C0;
  --md-primary-container: #7A1C34;
  --md-secondary: #E2BDC2;
  --md-secondary-container: #5A3F44;
  --md-shape-full: 999px;
  --md-shape-lg: 16px;
  --md-shape-md: 12px;
  --md-shape-sm: 8px;
  --md-shape-xl: 28px;
  --md-shape-xs: 4px;
  --md-surface: #15100F;
  --md-surface-bright: #3A3132;
  --md-surface-container: #211B1B;
  --md-surface-container-high: #2C2525;
  --md-surface-container-highest: #372F30;
  --md-surface-container-low: #1D1717;
  --md-surface-container-lowest: #0F0A0A;
  --md-surface-dim: #15100F;
  --md-tertiary: #EFBD92;
  --md-tertiary-container: #5F3F1E;
  color-scheme: dark;
}

.nav {
  background: var(--md-surface-container-low);
  border-bottom: none;
  border-radius: 28px;
  gap: 0.25rem;
  padding: 0.375rem;
}

.nav a {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  min-height: 2.75rem;
  overflow-wrap: anywhere;
  padding: 0 1rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  background: var(--md-surface-container-high);
  text-decoration: none;
}

.nav a.is-active {
  background: var(--md-secondary-container);
  color: var(--md-on-secondary-container);
}

.card {
  background: var(--md-surface-container-low);
  border: 1px solid var(--md-outline-variant);
  border-radius: 16px;
  box-shadow: var(--md-elevation-1);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: transparent;
  box-shadow: var(--md-elevation-2);
}

button {
  border-radius: 999px;
  box-shadow: var(--md-elevation-1);
  font-weight: 500;
  min-height: 2.75rem;
  padding: 0.7em 1.6em;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

button:hover {
  box-shadow: var(--md-elevation-2);
}

button:active {
  box-shadow: none;
}

code {
  background: var(--md-surface-container-high);
  border-radius: 4px;
  color: var(--md-on-surface-variant);
  overflow-wrap: anywhere;
}

pre {
  background: var(--md-on-surface);
  border-radius: 12px;
  color: var(--md-surface-container-lowest);
  font-size: clamp(0.8125rem, 0.76rem + 0.25vw, 0.95rem);
  line-height: 1.55;
  max-width: 100%;
  overscroll-behavior-x: contain;
  tab-size: 4;
}

pre code {
  background: none;
  color: inherit;
  overflow-wrap: normal;
  white-space: pre;
}

details, dialog, fieldset {
  border-color: var(--md-outline-variant);
  border-radius: 16px;
}

input, textarea, select {
  background: var(--md-surface-container-lowest);
  border-color: var(--md-outline);
  border-radius: 8px;
  color: var(--md-on-surface);
}

input:focus {
  outline-color: var(--md-primary);
}

textarea:focus {
  outline-color: var(--md-primary);
}

select:focus {
  outline-color: var(--md-primary);
}

blockquote {
  background: var(--md-surface-container-low);
  border-left-color: var(--md-primary);
  border-radius: 0 8px 8px 0;
  padding: 0.6em 0 0.6em 1.25em;
}

a:focus-visible {
  outline: 2px solid var(--md-primary);
  outline-offset: 2px;
}

button:focus-visible {
  outline: 2px solid var(--md-primary);
  outline-offset: 2px;
}

.site-header {
  background: var(--md-surface-container-low);
  border: 1px solid var(--md-outline-variant);
  border-radius: 16px;
  gap: 0.5rem 0.75rem;
  justify-content: space-between;
  margin: 0 0 clamp(1.25rem, 4vw, 2rem);
  padding: 0.625rem clamp(0.625rem, 2.5vw, 1.25rem);
}

.site-header .nav {
  margin: 0;
}

.brand {
  align-items: center;
  display: flex;
  gap: 0.6rem;
  min-width: 0;
}

:where(.brand) {
  flex: 1 1 auto;
  order: 1;
}

:where(.site-nav) {
  flex: 1 1 100%;
  order: 3;
}

.brand-mark {
  border-radius: 999px;
  box-shadow: var(--md-elevation-1);
  flex: none;
  height: 2.25rem;
  margin: 0;
  width: 2.25rem;
}

.brand-name {
  align-items: center;
  color: var(--md-on-surface);
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 700;
  min-height: 2.75rem;
}

.brand-name:hover {
  color: var(--md-primary);
  text-decoration: none;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--md-outline);
  box-shadow: none;
  color: var(--md-on-surface);
  flex: none;
  font-size: 0.9rem;
  padding: 0.5em 1.1em;
}

.theme-toggle:hover {
  background: var(--md-surface-container-high);
  box-shadow: none;
}

.hero {
  background: linear-gradient(135deg, var(--md-primary-container) 0%, var(--md-surface-container-low) 65%);
  border: 1px solid var(--md-outline-variant);
  border-radius: 28px;
  box-shadow: var(--md-elevation-1);
  margin-bottom: 2rem;
  padding: clamp(1.75rem, 4vw, 3rem);
}

.hero h1 {
  color: var(--md-on-primary-container);
}

.hero pre {
  margin-bottom: 0;
}

footer {
  background: var(--md-surface-container-low);
  border: 1px solid var(--md-outline-variant);
  border-radius: 16px;
  margin-top: 3rem;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(0.75rem, 2.5vw, 1.25rem);
}

footer .nav {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  padding: 1rem clamp(0.75rem, 0.25rem + 3.5vw, 1.5rem) 3rem;
  padding-left: max(clamp(0.75rem, 0.25rem + 3.5vw, 1.5rem), env(safe-area-inset-left));
  padding-right: max(clamp(0.75rem, 0.25rem + 3.5vw, 1.5rem), env(safe-area-inset-right));
}

h1 {
  font-size: clamp(2rem, 1.35rem + 3vw, 3.25rem);
  line-height: 1.1;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.45rem, 1.15rem + 1.4vw, 2rem);
  line-height: 1.2;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.4rem);
  line-height: 1.25;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

main {
  min-width: 0;
}

article {
  min-width: 0;
}

.prose {
  max-width: 42rem;
}

article > p {
  max-width: 42rem;
}

article > ul {
  max-width: 42rem;
}

article > ol {
  max-width: 42rem;
}

.switcher > div {
  min-width: 0;
}

.grid > div {
  min-width: 0;
}

.sidebar > :first-child {
  min-width: 0;
}

.table-scroll {
  margin: 1em 0;
  max-width: 100%;
  overflow-x: auto;
}

.sidebar nav {
  align-content: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 2px;
}

.sidebar nav > h3 {
  flex: 1 1 100%;
  margin: 0 0 0.25rem;
}

.sidebar nav > div {
  flex: 0 1 calc((17rem - 100%) * 999);
}

.sidebar nav a {
  align-items: center;
  border-radius: 999px;
  display: flex;
  min-height: 2.75rem;
  padding: 0 1rem;
  white-space: nowrap;
}

.sidebar nav a:hover {
  background: var(--md-surface-container-high);
  text-decoration: none;
}

.sidebar nav a.is-active {
  background: var(--md-secondary-container);
  color: var(--md-on-secondary-container);
  font-weight: 500;
}

:where(.theme-toggle) {
  order: 2;
}
