/*
==============================================
CSS Table of Contents
==============================================
1. CSS Reset
2. Root Variables & Theme
   2.1 Typography
   2.2 Colors
   2.3 Spacing
   2.4 Effects
3. Base Styles
   3.1 Typography
   3.2 Links
   3.3 Forms
   3.4 Tables
   3.5 Code
4. Layout Components
   4.1 Wrapper
   4.2 Grid
   4.3 Sidebar
   4.4 Flow
   4.5 Switcher
   4.6 Reel
   4.7 Frame
   4.8 Cluster
   4.9 Repel
5. UI Components
   5.1 Buttons
   5.2 Cards
   5.3 Hero
   5.4 Callout
   5.5 Navigation
   5.6 Breadcrumb
   5.7 Details/Accordion
   5.8 Logo
6. Utilities
   6.1 Visually Hidden
   6.2 Spacing
   6.3 Text
   6.4 Width
   6.5 Skip Link
7. Dark Mode
8. Print Styles
9. Reduced Motion
==============================================
*/

/*
==============================================
1. CSS Reset
==============================================
*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
}

html:focus-within {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
    margin: 0;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

ul.layout,
ol.layout {
    list-style: none;
    margin: 0;
    padding: 0;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

img,
picture {
    max-width: 100%;
    display: block;
}

input,
button,
textarea,
select {
    font: inherit;
}

/*
==============================================
2. Root Variables & Theme
==============================================
*/

/* 2.1 Typography */
:root {
    /* Font Families */
    --font-base:
        Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans",
        source-sans-pro, sans-serif;
    --font-display:
        "Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif;
    --font-accent:
        "Menlo", "SF Mono", "Monaco", "Inconsolata", "Fira Mono",
        "Droid Sans Mono", "Source Code Pro", "Courier New", monospace;
    --font-navigation:
        Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial,
        sans-serif;

    /* Font Weights */
    --font-weight-regular: 400;
    --font-weight-bold: 700;

    /* Line Heights */
    --line-height-compact: 1.2;
    --line-height-base: 1.5;
    --line-height-loose: 1.7;

    /* Text Width Constraints */
    --width-compact: 35ch;
    --width-longform: 54ch;

    /* Letter Spacing */
    --tracking: 0ch;
    --tracking-s: -0.05ch;

    /* Font Sizes (Fluid Typography) */
    --step--2: clamp(0.52rem, calc(0.52rem + 0.29vw), 0.7rem);
    --step--1: clamp(0.83rem, calc(0.78rem + 0.29vw), 1rem);
    --step-0: clamp(1rem, calc(0.91rem + 0.43vw), 1.25rem);
    --step-1: clamp(1.2rem, calc(1.07rem + 0.63vw), 1.56rem);
    --step-2: clamp(1.44rem, calc(1.26rem + 0.89vw), 1.95rem);
    --step-3: clamp(1.73rem, calc(1.48rem + 1.24vw), 2.44rem);
    --step-4: clamp(2.07rem, calc(1.73rem + 1.7vw), 3.05rem);
}

/* 2.2 Colors */
:root {
    /* Colors - Light Mode */
    --color-text: #262e38;
    --color-text-mod-1: #241f21;
    --color-text-mod-2: #241f21;
    --color-bg: #f5f2ed;
    --color-bg-mod-1: #f8f8f8;
    --color-bg-mod-2: #ededed;
    --color-border: #1d1d1d;
    --color-brand: #d47b65;
    --color-accent: #9f2c5e;
    --color-highlight: #eefbc1;
    --color-bg-card: #e8dfd6;

    /* Button Colors */
    --button-primary-bg: #d47b65;
    --button-primary-border: #d47b65;
    --button-primary-color: #fff;
    --button-primary-hover: #d47b65;
    --button-positive-bg: #8b9b76;
    --button-positive-border: #8b9b76;
    --button-positive-hover: #8b9b76;
    --button-negative-bg: #b33c48;
    --button-negative-border: #a62f3d;
    --button-negative-hover: #c24a56;
}

/* 2.3 Spacing - Fluid Space Scale */
:root {
    --space-3xs: clamp(0.25rem, calc(0.23rem + 0.11vw), 0.31rem);
    --space-2xs: clamp(0.5rem, calc(0.46rem + 0.22vw), 0.63rem);
    --space-xs: clamp(0.75rem, calc(0.68rem + 0.33vw), 0.94rem);
    --space-s: clamp(1rem, calc(0.91rem + 0.43vw), 1.25rem);
    --space-m: clamp(1.5rem, calc(1.37rem + 0.65vw), 1.88rem);
    --space-l: clamp(2rem, calc(1.83rem + 0.87vw), 2.5rem);
    --space-xl: clamp(3rem, calc(2.74rem + 1.3vw), 3.75rem);
    --space-2xl: clamp(4rem, calc(3.65rem + 1.74vw), 5rem);
    --space-3xl: clamp(6rem, calc(5.48rem + 2.61vw), 7.5rem);

    /* One-up pairs */
    --space-3xs-2xs: clamp(0.25rem, calc(0.12rem + 0.65vw), 0.63rem);
    --space-2xs-xs: clamp(0.5rem, calc(0.35rem + 0.76vw), 0.94rem);
    --space-xs-s: clamp(0.75rem, calc(0.58rem + 0.87vw), 1.25rem);
    --space-s-m: clamp(1rem, calc(0.7rem + 1.52vw), 1.88rem);
    --space-m-l: clamp(1.5rem, calc(1.15rem + 1.74vw), 2.5rem);
    --space-l-xl: clamp(2rem, calc(1.39rem + 3.04vw), 3.75rem);
    --space-xl-2xl: clamp(3rem, calc(2.3rem + 3.48vw), 5rem);
    --space-2xl-3xl: clamp(4rem, calc(2.78rem + 6.09vw), 7.5rem);
    --space-s-l: clamp(1rem, calc(0.48rem + 2.61vw), 2.5rem);

    /* Layout */
    --gutter: var(--space-s-m);
    --region-space: var(--space-l-xl);
}

/* 2.4 Effects */
:root {
    --border-radius: 0rem;
    --border-radius-button: 3rem;
    --shadow: 0px 3px 7px rgba(0, 0, 0, 0.08), 0px 0px 1px rgba(0, 0, 0, 0.025);
    --logo-size: 0.85rem;
}

/*
==============================================
3. Base Styles
==============================================
*/

/* 3.1 Typography */
body {
    background: var(--color-bg);
    color: var(--color-text);
    font-size: var(--step-0);
    font-family: var(--font-base);
    letter-spacing: var(--tracking);
}

/* Headings */
h1,
.h1,
h2,
.h2,
h3,
.h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: var(--line-height-compact);
    letter-spacing: var(--tracking-s);
    max-width: var(--width-compact);
    text-wrap: balance;
}

h1,
.h1 {
    font-size: var(--step-4);
    max-width: 30ch;
}

h2,
.h2 {
    font-size: var(--step-2);
    max-width: 32ch;
}

h3,
.h3 {
    font-size: var(--step-2);
}

h4,
.h4 {
    font-size: var(--step-1);
}

h5,
.h5 {
    font-size: var(--step-0);
}

h6,
.h6 {
    font-size: var(--step--1);
}

/* Text elements */
p,
li,
blockquote:not([class]) {
    max-width: var(--width-longform);
}

small {
    font-size: var(--step--1);
}

blockquote:not([class]) {
    border-left: solid 3px var(--color-text);
    font-family: var(--font-display);
    font-size: var(--step-1);
    line-height: var(--line-height-base);
    padding-inline-start: var(--space-s);
}

blockquote:not([class]) p:last-of-type,
blockquote:not([class]) cite,
blockquote:not([class]) footer {
    font-family: var(--font-base);
    font-size: var(--step-0);
    font-weight: normal;
    margin-block-start: var(--space-2xs);
}

hr,
.hr,
.line {
    /* border: none; */
    border-top: 2px dotted;
    margin-block: var(--space-m);
    border-color: #8a8178;
}

kbd {
    background-color: var(--color-bg-mod-1);
    border: solid 1px var(--color-bg-mod-2);
    border-radius: var(--border-radius);
    font-family: var(--font-accent);
    font-size: 1rem;
    padding: 0.115rem 0.25rem;
}

figcaption {
    font-size: var(--step--1);
    margin-block-start: 0.5rem;
    text-align: center;
}

/* Lists */
ul:not([class]),
ol:not([class]) {
    padding-inline-start: 1.7ch;
}

/* 3.2 Links */
a {
    color: var(--color-brand);
}

a:hover {
    color: var(--color-text);
}

a[data-variant="naked"] {
    color: var(--color-text);
}

a[data-variant="naked"]:hover,
a[data-variant="naked"]:focus {
    text-decoration: underline;
}

/* Focus styles */
:focus:not(:focus-visible) {
    outline: 0;
}

:focus-visible {
    outline: dotted 2px currentColor;
    outline-offset: 2px;
}

:target {
    scroll-margin-top: 2ex;
}

main:focus {
    outline: none;
}

/* Selection styles */
mark,
::selection {
    color: var(--color-text);
    background-color: #fff;
}

/* 3.3 Forms */
fieldset {
    border: solid 0.1rem var(--color-border);
}

legend {
    font-weight: var(--font-weight-bold);
}

label {
    display: block;
    margin-block: var(--space-3xs);
}

form button {
    display: block;
    margin-block-start: var(--space-xs);
}

:is(
    input:not([type="checkbox"], [type="radio"], [type="color"]),
    select,
    textarea
) {
    background: var(--color-bg);
    border: solid 0.1rem var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: none;
    color: var(--color-text);
    letter-spacing: -0.5px;
    padding: var(--space-3xs) var(--space-2xs);
}

:is(input[type="submit"], input[type="checkbox"], input[type="radio"]),
select {
    appearance: none;
    position: relative;
}

/* Chevron for select */
select:not([multiple]) {
    background-image:
        linear-gradient(45deg, transparent 49%, var(--color-text) 51%),
        linear-gradient(135deg, var(--color-text) 51%, transparent 49%);
    background-position: calc(100% - 16px), calc(100% - 11px);
    background-size:
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
    padding-inline-end: 2rem;
}

/* Checkbox and radio button style */
input[type="checkbox"],
input[type="radio"] {
    border: solid 0.1rem var(--color-border);
    padding: var(--space-2xs);
    vertical-align: middle;
    position: relative;
    width: min-content;
    margin-inline: 0 0.25rem;
    margin-block-end: 0.3rem;
}

input[type="checkbox"] {
    border-radius: var(--border-radius);
}

input[type="radio"] {
    border-radius: 100%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    border: solid 0.1rem var(--color-brand);
    background-color: var(--color-brand);
}

input[type="checkbox"]:checked::after {
    content: " ";
    width: 0.17em;
    height: 0.32em;
    border-radius: 0;
    position: absolute;
    top: 0.06em;
    left: 0.16em;
    background-color: transparent;
    border-right: solid var(--color-bg) 0.07em;
    border-bottom: solid var(--color-bg) 0.07em;
    font-size: 2em;
    transform: rotate(45deg);
}

input[type="radio"]:checked::after {
    content: " ";
    width: 0.25em;
    height: 0.25em;
    border-radius: 100%;
    position: absolute;
    top: 0.13em;
    background-color: var(--color-bg);
    left: 0.13em;
    font-size: 2em;
}

input:disabled,
label input:disabled + * {
    cursor: not-allowed;
    background: var(--color-bg-mod-2);
}

/* 3.4 Tables */
table {
    border-collapse: collapse;
    margin: 1.5rem 0;
    width: 100%;
}

td,
th {
    border: 0.1rem solid var(--color-border);
    padding: 0.5rem;
    text-align: left;
}

th {
    background: var(--color-bg-mod-1);
    font-weight: bold;
}

tr:nth-child(even) {
    background: var(--color-bg-mod-1);
}

table caption {
    padding: 0.5rem;
    caption-side: bottom;
}

/* 3.5 Code */
pre:has(code) {
    background: var(--color-bg-mod-1);
    overflow: auto;
    padding: var(--space-xs-s);
    margin: 0;
}

code {
    background: var(--color-bg-mod-1);
    color: var(--color-accent);
    font-size: 93%;
    box-decoration-break: clone;
}

pre code {
    color: var(--color-text);
}

p code,
li code {
    padding: 0.125rem 0.35rem;
}

/* SVG handling */
svg:not([class]) {
    height: 2rem;
    width: auto;
}

svg:not([class]) path {
    fill: var(--color-text);
}

svg {
    flex-shrink: 0;
}

svg[role="img"][width][height] {
    width: revert;
    height: revert;
}

/*
==============================================
4. Layout Components
==============================================
*/

/* 4.1 Wrapper */
.wrapper {
    max-width: var(--wrapper-max-width, 73rem);
    margin-inline: auto;
    padding-inline: var(--gutter);
    position: relative;
}

/* 4.2 Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(
        var(--grid-placement, auto-fill),
        minmax(var(--grid-min-item-size, 16rem), 1fr)
    );
    gap: var(--gutter, var(--space-s-l));
}

.grid--one {
    --grid-placement: auto-fit;
    --grid-min-item-size: clamp(16rem, 100vw, 26rem);
}

.grid--half {
    --grid-placement: auto-fit;
    --grid-min-item-size: clamp(16rem, 50vw, 26rem);
}

.grid--third {
    --grid-placement: auto-fit;
    --grid-min-item-size: clamp(16rem, 33vw, 18rem);
}

.grid--third.grid--right > :nth-child(1) {
    grid-column: span 2;
}

.grid--third.grid--left > :nth-child(2) {
    grid-column: span 2;
}

/* 4.3 Sidebar */
.sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gutter, var(--space-s-l));
}

.sidebar:not([data-direction]) > :first-child {
    flex-basis: var(--sidebar-target-width, 15rem);
    flex-grow: 1;
}

.sidebar:not([data-direction]) > :last-child {
    flex-basis: 0;
    flex-grow: 999;
    min-width: var(--sidebar-content-min-width, 50%);
}

.sidebar[data-direction="rtl"] > :last-child {
    flex-basis: var(--sidebar-target-width, 20rem);
    flex-grow: 1;
}

.sidebar[data-direction="rtl"] > :first-child {
    flex-basis: 0;
    flex-grow: 999;
    min-width: var(--sidebar-content-min-width, 50%);
}

@media screen and (min-width: 960px) {
    .sidebar:not([data-direction])[data-variant="sticky"] > :first-child,
    .sidebar[data-direction][data-variant="sticky"] > :last-child {
        position: sticky;
        top: 2rem;
        overflow: auto;
        height: 100vh;
    }
}

/* 4.4 Flow */
.flow > * + * {
    margin-top: var(--flow-space, 1em);
}

.prose {
    --flow-space: var(--space-s-m);
    line-height: var(--line-height-loose);
}

.prose :is(p, ul:not([class]), ol:not([class])) {
    max-width: var(--width-longform);
    max-width: 54ch;
}

.prose :is(blockquote) {
    max-width: 52ch;
}

.prose :is(pre, pre + *, figure, figure + *, h2, h3, h4) {
    --flow-space: var(--space-l-xl);
}

/* 4.5 Switcher */
.switcher {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gutter, 1rem);
    align-items: var(--switcher-vertical-alignment, flex-start);
}

.switcher > * {
    flex-grow: 1;
    flex-basis: calc(
        (var(--switcher-target-container-width, 40rem) - 100%) * 999
    );
}

.switcher > :nth-last-child(n + 5),
.switcher > :nth-last-child(n + 5) ~ * {
    flex-basis: 100%;
}

/* 4.6 Reel */
.reel {
    --reel-space: 2rem;
    display: flex;
    height: auto;
    max-width: 100%;
    margin-inline: auto;
    padding: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.reel > * {
    flex-basis: var(--reel-item-width, calc(33.333% - var(--reel-space)));
    flex-shrink: 0;
}

.reel > * + * {
    margin-inline-start: var(--reel-space);
}

.reel[data-scroll="snap"] {
    scroll-snap-type: x mandatory;
}

.reel[data-scroll="snap"] > * {
    scroll-snap-align: start;
}

.reel[data-variant="img"] {
    block-size: var(--reel-height, 50vh);
}

.reel[data-variant="img"] > img {
    block-size: 100%;
    width: auto;
}

/* 4.7 Frame */
.frame {
    --n: 16;
    --d: 9;
    aspect-ratio: var(--n) / var(--d);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.frame > img,
.frame > video {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
}

/* 4.8 Cluster */
.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gutter, var(--space-s-l));
    justify-content: var(--cluster-horizontal-alignment, flex-start);
    align-items: var(--cluster-vertical-alignment, center);
}

/* 4.9 Repel */
.repel {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: var(--repel-vertical-alignment, center);
    gap: var(--gutter, var(--space-s-l));
}

.repel[data-nowrap] {
    flex-wrap: nowrap;
}

@media screen and (max-width: 38em) {
    .repel {
        justify-content: center;
    }
}

/* Region */
.region {
    padding-top: var(--region-space, var(--space-l-xl));
    padding-bottom: var(--region-space, var(--space-l-xl));
}

/*
==============================================
5. UI Components
==============================================
*/

/* 5.1 Buttons */
button,
.button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
    background-color: var(--color-brand);
    border: solid 0.1rem var(--color-brand);
    border-radius: var(--border-radius-button);
    color: var(--color-bg);
    cursor: pointer;
    padding: var(--space-3xs) var(--space-xs);
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

button:hover,
button:focus,
.button:hover,
.button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="reset"]:hover,
input[type="reset"]:focus,
input[type="button"]:hover,
input[type="button"]:focus {
    filter: brightness(1.2);
    background: var(--color-brand);
}

button:disabled,
.button[aria-disabled="true"],
input[type="submit"]:disabled,
input[type="reset"]:disabled,
input[type="button"]:disabled {
    background-color: var(--color-bg-mod-2);
    border: solid 0.1rem var(--color-bg-mod-2);
    color: var(--color-text-mod-2);
    cursor: not-allowed;
    transform: none;
    filter: none;
}

/* Button variants */
button[data-variant="outline"],
.button[data-variant="outline"],
input[type="submit"][data-variant="outline"],
input[type="reset"][data-variant="outline"],
input[type="button"][data-variant="outline"] {
    color: var(--color-brand);
    background: var(--color-bg);
    border: solid 0.1rem var(--color-brand);
}

button[data-variant="outline"]:hover,
.button[data-variant="outline"]:hover,
input[type="submit"][data-variant="outline"]:hover,
input[type="reset"][data-variant="outline"]:hover,
input[type="button"][data-variant="outline"]:hover {
    filter: brightness(1.2);
    border: solid 0.1rem var(--color-brand);
}

/* Modern button component */
.modern-button {
    --button-bg: #342a21;
    --button-color: #ffffff;
    --button-hover-bg: #4b4b4a;
    --button-hover-color: #ffffff;
    --button-border-width: 2px;
    --button-border-style: solid;
    --button-border-color: var(--button-bg);
    --button-radius: 3em;
    --button-font-size: 0.8rem;

    display: inline-flex;
    align-items: center;
    gap: var(--button-gap, 0.5em);
    padding: var(--button-padding, 0.7em 1.2em);
    background: var(--button-bg);
    border-width: var(--button-border-width);
    border-style: var(--button-border-style);
    border-color: var(--button-border-color);
    border-radius: var(--button-radius);
    text-decoration: none;
    font-weight: var(--button-font-weight, 700);
    font-size: var(--button-font-size, 1em);
    letter-spacing: 0.05ch;
    font-family: sans-serif;
    line-height: 1.1;
    cursor: pointer;
    color: var(--button-color);
}

.modern-button:hover {
    background: var(--button-hover-bg);
    color: var(--button-hover-color);
}

.modern-button:focus {
    outline-width: var(--button-outline-width, var(--button-border-width));
    outline-style: var(--button-outline-style, var(--button-border-style));
    outline-color: var(--button-outline-color, var(--button-border-color));
    outline-offset: var(
        --button-outline-offset,
        calc(var(--button-border-width) * 2)
    );
}

.modern-button:active {
    transform: scale(99%);
}

.modern-button svg {
    height: var(--button-icon-size, 1.2cap);
    width: auto;
    flex: none;
}

/* Button variants */
.modern-button[data-variant="primary"] {
    --button-bg: var(--button-primary-bg);
    --button-border-color: var(--button-primary-border);
    --button-hover-bg: var(--button-primary-hover);
}

.modern-button[data-variant="positive"] {
    --button-bg: var(--button-positive-bg);
    --button-border-color: var(--button-positive-border);
    --button-hover-bg: var(--button-positive-hover);
}

.modern-button[data-variant="negative"] {
    --button-bg: var(--button-negative-bg);
    --button-border-color: var(--button-negative-border);
    --button-hover-bg: var(--button-negative-hover);
}

.modern-button[data-ghost-button] {
    --button-bg: transparent;
    --button-border-color: currentColor;
    --button-color: currentColor;
}

.modern-button[data-radius="hard"] {
    --button-radius: 0;
}

/* 5.2 Cards */
.card {
    --img-ratio: 3/2;
    display: flex;
    flex-direction: column;
    position: relative;
    border: solid 0.1rem transparent;
    border-radius: 1rem;
    background: var(--color-bg-card);
}

.card :is(h2, h3, h4) {
    font-size: var(--step-1);
}

.card > :not(h2, h3, h4) {
    font-size: var(--step--1);
}

/* Make entire card clickable */
.card :is(h2, h3, h4) > a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.card p,
.card button,
.card .button {
    position: relative;
    z-index: 1;
}

.card a:focus {
    text-decoration: underline;
}

.card:focus-within {
    box-shadow: 0 0 0 0.1rem;
}

.card:focus-within a:focus {
    text-decoration: none;
}

.card > img {
    aspect-ratio: var(--img-ratio);
    object-fit: cover;
    width: 100%;
}

.card > div {
    --flow-space: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1rem;
    max-width: 60ch;
}

.card > div :last-child {
    margin-top: auto;
}

.card > div :nth-last-child(2) {
    margin-bottom: var(--space-xs-s);
}

.card[data-state="reversed"] {
    display: flex;
    flex-direction: column-reverse;
}

/* 5.3 Hero */
.hero {
    --region-space: var(--space-l-xl);
    background-image:
        radial-gradient(var(--color-text) 7%, transparent 20%),
        radial-gradient(var(--color-bg) 20%, transparent 20%);
    background-color: var(--color-bg);
    background-position:
        0 0,
        50px 50px;
    background-size: 3px 3px;
    padding-inline: var(--space-s-m);
    text-align: left;
}

.hero > * {
    --flow-space: 1rem;
    margin-inline: auto;
}

.hero h2 {
    position: relative;
    display: inline-grid;
    font-size: var(--logo-size);
    font-family: var(--font-base);
    font-weight: 400;
    grid-gap: var(--space-2xs);
    grid-template-columns: 1fr auto 1fr;
    text-transform: uppercase;
    width: 100%;
    align-items: center;
    color: var(--color-text-mod-1);
}

.hero h2::after,
.hero h2::before {
    background: var(--color-text-mod-1);
    content: "";
    height: 0.1rem;
    opacity: 0.3;
}

.hero a:hover h2 {
    color: var(--color-brand);
    transition: color 0.3s ease;
}

.hero h3,
.hero h2,
.hero .h2,
.hero .h3 {
    font-family: var(--font-navigation);
    font-size: var(--step--2);
    text-transform: uppercase;
    letter-spacing: 0;
    font-weight: 400;
    background: #fff;
    max-width: fit-content;
    color: var(--color-text-mod-1);
    padding: var(--space-3xs) var(--space-2xs);
    border-radius: var(--border-radius-button);
    line-height: 1.4;
    margin-bottom: var(--space-xs);
    border: 1px solid var(--color-text-mod-2);
}

.hero p {
    font-family: var(--font-display);
}

/* 5.4 Callout */
.callout {
    padding: var(--space-xs-s);
    border: dotted 2px var(--color-text-mod-2);
    max-width: var(--width-longform);
    border-radius: var(--border-radius);
}

.callout > * {
    line-height: var(--line-height-base);
}

.callout[data-variant="brand"] {
    color: var(--color-brand);
    border: dotted 1px var(--color-brand);
}

.callout[data-variant="brand"] > * {
    color: var(--color-brand);
}

/* 5.5 Navigation */
nav[data-variant="main"] a[data-state="active"] {
    text-decoration: underline;
}

nav[data-variant="main"] li a {
    display: flex;
    text-decoration: none;
    font-family: var(--font-navigation);
    color: var(--color-text-mod-1);
    font-size: var(--step--1);
    font-weight: 600;
    position: relative;
}

nav[data-variant="main"] li a span {
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
}

nav[data-variant="main"] li a:not(.button):hover {
    background-color: transparent;
    color: var(--color-brand);
    transition: color 0.3s ease;
}

nav[data-variant="main"] li a:not(.button):after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--color-brand);
    opacity: 0.6;
    transition:
        width 0.3s ease,
        opacity 0.3s ease;
}

nav[data-variant="main"] li a:hover:after,
nav[data-variant="main"] li a.active:after {
    width: 100%;
    opacity: 0.9;
}

nav[data-variant="sidebar"] a[data-state="active"] {
    text-decoration: line-through;
}

nav[data-variant="sidebar"] li {
    max-width: unset;
}

nav[data-variant="sidebar"] li[data-children="true"] {
    position: relative;
}

nav[data-variant="sidebar"] li[data-children="true"]::before {
    content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDE1LjM3NUw2IDkuMzc0OTlMNy4wNzUgOC4yOTk5OUwxMiAxMy4yNUwxNi45MjUgOC4zMjQ5OUwxOCA5LjM5OTk5TDEyIDE1LjM3NVoiIGZpbGw9IiMxRDFEMUQiLz4KPC9zdmc+Cg==");
    height: 1.2rem;
    pointer-events: none;
    position: absolute;
    right: 1rem;
    top: 0.6rem;
    transform: rotate(180deg);
}

nav[data-variant="sidebar"]
    li[data-children="true"][data-state="active"]::before {
    top: 0.2rem;
    transform: rotate(0deg);
}

nav[data-variant="sidebar"] li[data-state="active"] + ul,
nav[data-variant="sidebar"] ul[data-state="visible"] {
    display: block;
    padding-inline: 1rem;
    width: 100%;
    height: auto;
    clip: auto;
}

nav[data-variant="sidebar"] ul > li ul {
    display: none;
}

/* 5.6 Breadcrumb */
.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    font-size: var(--step--1);
    font-family: var(--font-navigation);
    padding-block: var(--space-3xs);
    padding-inline: var(--space-xs);
    border: 1px solid transparent;
    margin-block: var(--space-2xs);
    border-radius: var(--border-radius-button);
    background: var(--color-bg-card);
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin: 0 var(--space-2xs);
}

.breadcrumb a {
    text-decoration: none;
    color: var(--color-text);
}

.breadcrumb a:hover {
    text-decoration: underline;
    background: transparent;
}

/* 5.7 Details/Accordion */
details {
    background: var(--color-bg-mod-1);
    border-radius: var(--border-radius);
}

summary {
    cursor: pointer;
    font-weight: var(--font-weight-bold);
    padding: 0.5rem 1rem;
}

details[open] {
    padding: 0.5rem 1rem 0.75rem 1rem;
}

details[open] summary {
    margin-bottom: 0.5rem;
    padding: 0;
}

details[open] > *:last-child {
    margin-bottom: 0;
}

details[data-variant="fancy"] {
    position: relative;
}

details[data-variant="fancy"] summary::-webkit-details-marker,
details[data-variant="fancy"] summary::marker {
    content: "";
    display: none;
}

details[data-variant="fancy"] summary:after {
    content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDE1LjM3NUw2IDkuMzc0OTlMNy4wNzUgOC4yOTk5OUwxMiAxMy4yNUwxNi45MjUgOC4zMjQ5OUwxOCA5LjM5OTk5TDEyIDE1LjM3NVoiIGZpbGw9IiMxRDFEMUQiLz4KPC9zdmc+Cg==");
    height: 1.5rem;
    pointer-events: none;
    position: absolute;
    right: 1rem;
    top: 0.7rem;
    transform: rotate(180deg);
}

details[open][data-variant="fancy"] summary:after {
    top: 0.7rem;
    transform: rotate(0deg);
}

div[data-type="one"] > div {
    margin: 0 auto;
    max-width: fit-content;
}
/* 5.8 Logo */
.logo {
    border-color: transparent;
}

.logo a {
    display: grid;
    text-decoration: none;
    gap: 0.25rem;
}

.logo a:hover {
    background-color: transparent;
}

.logo h1 {
    position: relative;
    display: inline-grid;
    font-size: var(--logo-size);
    font-family: var(--font-base);
    font-weight: 400;
    grid-gap: var(--space-2xs);
    grid-template-columns: 1fr auto 1fr;
    text-transform: uppercase;
    width: 100%;
    align-items: center;
    color: var(--color-text-mod-1);
}

.logo h1::after,
.logo h1::before {
    background: var(--color-text-mod-1);
    content: "";
    height: 0.1rem;
    opacity: 0.3;
}

.logo a:hover h1 {
    color: var(--color-brand);
    transition: color 0.3s ease;
}

/* Footer styles */
footer {
    text-decoration: none;
    font-family: var(--font-navigation);
    color: var(--color-text-mod-1);
    font-size: var(--step--1);
    font-weight: 400;
}

.copyright {
    text-decoration: none;
    font-family: var(--font-navigation);
    color: var(--color-text);
}

/*
==============================================
6. Utilities
==============================================
*/

/* 6.1 Visually Hidden */
.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: auto;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

/* 6.2 Spacing */
.region {
    padding-top: var(--region-space, var(--space-l-xl));
    padding-bottom: var(--region-space, var(--space-l-xl));
}

/* 6.3 Text */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-white {
    color: #ffffff !important;
}

/* 6.4 Width */
.w-full {
    width: 100%;
    max-width: unset;
}

/* 6.5 Skip Link */
.skip-link {
    clip: rect(1px, 1px, 1px, 1px);
    display: block;
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
    top: 1rem;
    left: 1rem;
    z-index: 999;
}

.skip-link:focus {
    clip: auto;
    height: auto;
    overflow: visible;
    width: auto;
    background-color: var(--color-bg);
    color: var(--color-text);
    padding: var(--space-xs);
    line-height: 1;
}

/*
==============================================
7. Dark Mode
==============================================
*/

@media (prefers-color-scheme: dark) {
    :root {
        --color-text: #ced3e8;
        --color-text-mod-1: #c4cae3;
        --color-text-mod-2: #8995c8;
        --color-bg: #0d101a;
        --color-bg-mod-1: #121626;
        --color-bg-mod-2: #212845;
        --color-border: #ced3e8;
        --color-brand: #a08aff;
        --color-accent: #ff70ae;
        --color-bg-card: #c4bcb0;
    }

    mark,
    ::selection {
        color: var(--color-bg);
    }

    img,
    picture {
        filter: brightness(0.8) contrast(1.2);
    }

    nav[data-variant="sidebar"] li[data-children="true"]::before {
        content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDE1LjM3NUw2IDkuMzc0OTlMNy4wNzUgOC4yOTk5OUwxMiAxMy4yNUwxNi45MjUgOC4zMjQ5OUwxOCA5LjM5OTk5TDEyIDE1LjM3NVoiIGZpbGw9IiNDRUQzRTgiLz4KPC9zdmc+Cg==");
    }

    details[data-variant="fancy"] summary:after {
        content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDE1LjM3NUw2IDkuMzc0OTlMNy4wNzUgOC4yOTk5OUwxMiAxMy4yNUwxNi45MjUgOC4zMjQ5OUwxOCA5LjM5OTk5TDEyIDE1LjM3NVoiIGZpbGw9IiNDRUQzRTgiLz4KPC9zdmc+Cg==");
    }
}

.small-line {
    margin-block: var(--space-s-m);
    height: 1px;
}
.medium-line {
    margin-block: var(--space-m-l);
    height: 1px;
}
.large-line {
    margin-block: var(--space-l-xl);
    height: 1px;
}
/*
==============================================
8. Print Styles
==============================================
*/

@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    nav,
    .button,
    button,
    .skip-link {
        display: none;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }

    h1,
    h2,
    h3,
    h4 {
        page-break-after: avoid;
    }

    p,
    li {
        page-break-inside: avoid;
    }

    @page {
        margin: 2cm;
    }
}

/*
==============================================
9. Reduced Motion
==============================================
*/

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