:root {
  --light: #fffce9;
  --dark: #000000;

  --gray100: #d3d7db;
  --gray200: #afb6bd;
  --gray300: #8e969e;
  --gray400: #6f777e;
  --gray500: #52595f;
  --gray600: #383c41;

  --primary100: #c0debe;
  --primary200: #8cc289;
  --primary300: #56a651;
  --primary400: #40843c;
  --primary500: #30632d;
  --primary600: #21441e;

  --secondary100: #f3cfb4;
  --secondary200: #eaa675;
  --secondary300: #d38144;
  --secondary400: #a86636;
  --secondary500: #7e4c28;
  --secondary600: #56341c;

  --blue100: #a8dcff;
  --blue200: #67bcff;
  --blue300: #3299ef;
  --blue400: #1279c7;
  --blue500: #005a99;
  --blue600: #003d6c;

  --green100: #93e99b;
  --green200: #51cc64;
  --green300: #2aaa46;
  --green400: #128831;
  --green500: #036620;
  --green600: #004612;

  --orange100: #ffd05e;
  --orange200: #f0a700;
  --orange300: #c88800;
  --orange400: #a16b00;
  --orange500: #7a4f00;
  --orange600: #553500;

  --red100: #ffcac3;
  --red200: #ff9991;
  --red300: #ff5e5c;
  --red400: #d9393d;
  --red500: #a92228;
  --red600: #781218;

  --purple100: #f6c6ff;
  --purple200: #e995ff;
  --purple300: #d368ef;
  --purple400: #b441d0;
  --purple500: #8c27a5;
  --purple600: #641476;
}

:root {
  --space-xxs: clamp(0.1875rem, 0.17rem + 0.10vw, 0.25rem);
  --space-xs: clamp(0.4375rem, 0.42rem + 0.10vw, 0.5rem);
  --space-s: clamp(0.875rem, 0.83rem + 0.20vw, 1rem);
  --space-m: clamp(1.3125rem, 1.25rem + 0.29vw, 1.5rem);
  --space-l: clamp(2.1875rem, 2.09rem + 0.49vw, 2.5rem);
  --space-xl: clamp(3.0625rem, 2.92rem + 0.69vw, 3.5rem);
  --space-2xl: clamp(3.5rem, 3.34rem + 0.78vw, 4rem);
  --space-3xl: clamp(4.375rem, 4.17rem + 0.98vw, 5rem);
  --space-4xl: clamp(6.5625rem, 6.26rem + 1.47vw, 7.5rem);
  --space-xs-l: clamp(0.4375rem, -0.23rem + 3.24vw, 2.5rem);
  --space-m-l: clamp(1.3125rem, 0.93rem + 1.86vw, 2.5rem);
  --space-2xl-4xl: clamp(3.5rem, 2.21rem + 6.27vw, 7.5rem);
}

:root {
  --size-step-00: clamp(0.9375rem, 0.8665rem + 0.3157vw, 1.1111rem);
  --size-step-0: clamp(1.125rem, 1.0739rem + 0.2273vw, 1.25rem);
  --size-step-1: clamp(1.35rem, 1.327rem + 0.1023vw, 1.4063rem);
  --size-step-2: clamp(1.582rem, 1.6355rem + -0.069vw, 1.62rem);
  --size-step-3: clamp(1.7798rem, 2.0112rem + -0.2986vw, 1.944rem);
  --size-step-4: clamp(2.0023rem, 2.468rem + -0.601vw, 2.3328rem);
  --size-step-5: clamp(2.2525rem, 3.0231rem + -0.9942vw, 2.7994rem);

  --leading-micro: 0.85;
  --leading-flat: 1;
  --leading-fine: 1.25;
  --leading-standard: 1.5;
  --leading-loose: 1.75;

  --font-base: system-ui,sans-serif;
  --font-brand: "Scripter", system-ui,serif;
  --font-mono: DM Mono,monospace;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-black: 900;
  
  --uppercase-kerning: 0.04ch;
}

:root {
  --stroke-color: light-dark(var(--secondary400), var(--secondary300));
  --stroke-color-focus: light-dark(var(--primary500), var(--primary200));
  
  --stroke-width: 2px;
  --stroke: var(--stroke-width) solid var(--stroke-color);
  
  --stroke-width-brand: 3px;
  --stroke-brand: var(--stroke-width-brand) dotted var(--stroke-color);

  --radius-s: 0.2rem;
  --radius-m: 0.75rem;
  --radius-l: 2.5rem;
  --radius-xl: 5rem;
}

@font-face {
    font-family: 'Scripter';
    src: url('../fonts/Scripter-Regular.eot');
    src: local('Scripter Regular'), local('Scripter-Regular'),
        url('../fonts/Scripter-Regular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Scripter-Regular.woff2') format('woff2'),
        url('../fonts/Scripter-Regular.woff') format('woff'),
        url('../fonts/Scripter-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
  --color-primary: var(--primary300);
  --color-secondary: var(--secondary300);

  --color-light: light-dark(var(--light), var(--dark));
  --color-dark: light-dark(var(--dark), var(--light));

  --gutter: var(--space-m-l);
  --transition-base: 250ms ease;
  --transition-movement: 200ms linear;
  --transition-fade: 300ms ease;
  --transition-bounce: 500ms cubic-bezier(0.5, 0.05, 0.2, 1.5);
}

body {
  background-image: linear-gradient(to bottom, var(--secondary200) 0%, var(--secondary200) 20em, var(--color-light) 20em);
  color: var(--color-dark);
  display: flex;
  flex-direction: column;
  font-size: var(--size-step-1);
  font-family: var(--font-base);
  line-height: var(--leading-standard);
  font-size-adjust: from-font;
  margin: 0;
  padding: 0;
}

main {
  flex-grow: 1;
  align-content: start;
  row-gap: var(--gutter);
}

:is(h1, h2, h3, h4) {
  line-height: var(--leading-fine);
  text-wrap: balance;
  font-family: var(--font-brand);
}

h1 {
  font-size: var(--size-step-5);
  font-weight: var(--font-regular);
}

h2 {
  --underline-color: var(--color-primary);
  font-size: var(--size-step-3);
  align-items: center;
  display: flex;
  gap: var(--space-s);
  justify-self: start;
  position: relative;
  scroll-margin-top: var(--space-xxs);
  width: 100%;
  
  &::after {
    background: var(--underline-color);
    border-radius: var(--radius-m);
    content: "";
    display: inline;
    height: 0.1em;
    flex-grow: 1;
    position: relative;
    top: 0.15em;
  }

  svg {
    color: var(--color-primary);
  }
}

h3 {
  font-family: var(--font-base);
  font-size: var(--size-step-1);
  font-weight: var(--font-bold);
  letter-spacing: 0.15ch;
  text-transform: uppercase;
}

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

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

ins {
  text-decoration: none;
  background: var(--color-primary);
  color: var(--color-dark);
  padding-inline: 0.3em;
}

:is(code, kbd, samp) {
  font-family: var(--font-mono);
  padding: 0.2em 0.2em 0.05em 0.2em;
  hyphens: none;
  tab-size: 2;
  text-align: left;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  box-decoration-break: clone;
}

address {
  font-style: normal;
}

/* This is quite a new property, so we want code styles to at least, not be huge or tiny */
@supports not (font-size-adjust: from-font) {
  :is(code, kbd, samp) {
    font-size: 0.8em;
  }
}

pre:has(code) {
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
}

pre code {
  border: none;
  background: none;
  padding: 0;
}

kbd {
  border: 1px solid;
  padding-block-end: 0.1em;
}

var {
  font-style: normal;
  font-weight: var(--font-medium);
}

q {
  font-style: italic;
}

ul:not([class]) {
  padding-inline-start: 1.7ch;
  list-style-type: disc;
}

ul:not([class]) > li {
  padding-inline-start: var(--space-xs);
}

ul ::marker {
  font-size: 0.8lh;
}

ol ::marker {
  font-size: 1em;
  font-weight: var(--font-bold);
}

/* Lists with classes and roles will be out of standard flow, so remove the default spacing */
[role='list'][class],
[role='tablist'][class] {
  margin-block: 0;
  padding: 0;
}

dt + dd {
  margin-block-start: var(--space-xs);
}

dd + dt {
  margin-block-start: var(--space-s);
}

dt {
  font-weight: 600;
}

dd {
  margin-inline-start: 1.5ch;
}

dl {
  font-size: var(--size-step-00);
}

dl > div {
  display: flex;
  align-items: center;
  gap: var(--space-xs);

  dt + dd {
    margin: 0;
  }
}

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

blockquote {
  margin-inline: 0;
  color: var(--color-light);
}

:is(video, iframe[src*='youtube'], iframe[src*='vimeo']) {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

img {
  height: auto;
  max-width: 100%;
  display: block;
}

figcaption {
  padding-block-start: 0.5em;
  font-size: var(--size-step-0);
  font-family: monospace;
}

caption {
  caption-side: bottom;
  margin-block-start: var(--space-s);
}

a[class] {
  color: currentColor;
  text-decoration: none;
}

.decorated {
  position: relative;

  &::after {
    content: "";
    display: block;
    background-color: var(--color-primary);
    height: 1ch;
    width: 0;
    position: absolute;
    left: 0;
    top: 50%;
    transition: var(--transition-base);
    z-index: -1;
  }

  &:hover::after {
    width: 100%;
  }
}

a:not([class]):hover {
  text-underline-offset: 0.2lh;
}

:is(h1, h2, h3, h4) a:not([class]) {
  color: var(--text-color);
  text-decoration-thickness: 0.1ex;
  text-underline-offset: 0.2ex;
}

:is(h1, h2, h3, h4) a:not([class]):hover {
  text-underline-offset: 0.3ex;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus-color, currentColor);
  outline-offset: var(--focus-offset, 0.2lh);
}

/* Firefox is the only browser that doesn't outline the whole element unless you make it display: inline-block. That in itself causes multiple flow issues so we can detect it, using its own vendor prefix and reduce focus offset
*/
@supports (-moz-appearance: none) {
  :root {
    --focus-offset: 0.08em;
  }
}

:target {
  scroll-margin-block: 5lh;
}

::selection {
  color: var(--color-light);
  background: var(--color-dark);
}

hr {
  border: none;
  border-block-start: var(--hr-stroke, var(--stroke));
  margin-block: var(--flow-space, var(--space-xl));
}

svg:not([class]) {
  width: auto;
  height: 1lh;
}

svg {
  flex-shrink: 0;
}

svg[role='img'][width][height] {
  width: revert;
  height: revert;
  background: var(--color-light);
  padding: var(--space-xs);
}

/* There's a .flow composition, but this prevents forms from having to have that applied where markup is harder to control in certain systems. It still uses the --flow-space variables though to make managing space easier */
form:not(.inline) > * + * {
  margin-top: var(--flow-space, 1rem);

  label + * {
    --flow-space: var(--space-xxs);
  }

  &:is([type=hidden] + *) {
    margin-block-start: 0;
  }
}

form > [type=hidden] + * {
  margin-block-start: 0;
}

form .cluster {
  --gutter: var(--space-s);
}

form .cluster:has(> [type=checkbox]) {
  --gutter: var(--space-xxs);
}

:is(input, select, textarea) {
  accent-color: var(--color-primary);
}

:is(input:not([class='button'], [type='checkbox'], [type='radio'], [type='color']), select, textarea) {
  --flow-space: var(--space-xxs);
  --input-font-size: var(--size-step-00);
  padding: 0.5em 0.8em;
  border-radius: var(--radius-s);
  border: var(--stroke);
  font-size: var(--input-font-size);
  width: 100%;

  &:is(.cluster > *) {
    width: auto;
  }

  &::placeholder {
    color: var(--color-light);
    opacity: 1;
  }
}

:is(input, select, textarea):is(.double) {
  width: 435px;
}

:is(select) {
  max-width: 435px;
}

label {
  line-height: var(--leading-fine);
  font-size: var(--size-step-00);
  font-weight: 600;
}

label::after {
  content: '\A';
  white-space: pre;
}

/* Usually label wraps checkbox and radio buttons, so we give ourselves more layout and text-flow control with flex */
label:has(input) {
  display: flex;
  align-items: center;
  gap: var(--space-xxs);
  font-weight: var(--font-normal);
}

label:has(input) + label:has(input) {
  --flow-space: var(--space-s-m);
}

/* Slightly adjusts the vertical position of the check/radio */
label:has(input) input {
  transform: translateY(-0.1ex);
}

input:disabled {
  background: var(--color-light);
}

input:disabled,
label input:disabled + * {
  cursor: not-allowed;
}

fieldset {
  border: var(--stroke);
  padding: var(--space-s);
}

legend {
  font-weight: var(--font-medium);
  padding-inline: var(--space-xs);
}

summary {
  font-weight: var(--font-bold);
  cursor: pointer;
}

details[open] summary {
  margin-block-end: var(--space-s);
}

.form-group {
  display: flex;
  gap: var(--space-s);
  width: 100%;

  .flow * + * {
    --flow-space: var(--space-xxs);
  }
}

.strong {
  font-weight: 600;
}

.nowrap {
  white-space: nowrap;
}

.min-content {
  width: min-content;
}

iframe {
  height: 50px;
  width: 100%;
  border: 0;

  &:focus-visible {
    outline: 0;
  }
}

.header {
  background-color: var(--primary200);
  z-index: 10;
  overflow-x: scroll;
}

.icon {
  height: 1ic;
}

.lists {
  --flow-space: var(--space-xl);

  ul {
    margin: 0;
  }
}

/* Modern reset: https://piccalil.li/blog/a-more-modern-css-reset/ */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}
/*
CLUSTER
More info: https://every-layout.dev/layouts/cluster/
A layout that lets you distribute items with consitent
spacing, regardless of their size

CUSTOM PROPERTIES AND CONFIGURATION
--gutter (var(--space-m)): This defines the space
between each item.

--cluster-horizontal-alignment (flex-start): How items should align
horizontally. Can be any acceptable flexbox aligmnent value.

--cluster-vertical-alignment (center): How items should align vertically.
Can be any acceptable flexbox alignment value.
*/

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter, var(--space-m));
  justify-content: var(--cluster-horizontal-alignment, flex-start);
  align-items: var(--cluster-vertical-alignment, center);
}

.cluster[data-type="50-50"] {
  --cluster-vertical-alignment: stretch;

  > * {
    flex-basis: calc((100% - var(--gutter)) / 2);
  }
}

.cluster[data-type="thirds"] {
  --cluster-vertical-alignment: stretch;
  --gutter: var(--space-s);

  > * {
    flex-basis: calc((100% - var(--gutter) * 2) / 3);
  }
}

.error-page main {
  align-items: start;
  text-align: center;
}

.error-page .flow {
  text-wrap: balance;
}

.error-page .error-icon {
  max-height: 15em;
}

/* 
FLOW COMPOSITION 
Like the Every Layout stack: https://every-layout.dev/layouts/stack/
Info about this implementation: https://piccalil.li/blog/my-favourite-3-lines-of-css/ 
*/
.flow > *:not([hidden], [type=hidden]) + *:not(template),
.flow > *:not([hidden], [type=hidden]) + turbo-frame > div {
  margin-block-start: var(--flow-space, 1.25em);
}
/* AUTO GRID
Related Every Layout: https://every-layout.dev/layouts/grid/
More info on the flexible nature: https://piccalil.li/tutorial/create-a-responsive-grid-layout-with-no-media-queries-using-css-grid/
A flexible layout that will create an auto-fill grid with
configurable grid item sizes

CUSTOM PROPERTIES AND CONFIGURATION
--gutter (var(--space-m)): This defines the space
between each item.

--grid-min-item-size (14rem): How large each item should be
ideally, as a minimum.

--grid-placement (auto-fill): Set either auto-fit or auto-fill
to change how empty grid tracks are handled */

.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-l));
}

/* A split 50/50 layout */
.grid[data-layout='50-50'] {
  --grid-placement: auto-fit;
  --grid-min-item-size: clamp(16rem, 50vw, 33rem);
}

/* Three column grid layout */
.grid[data-layout='thirds'] {
  --grid-placement: auto-fit;
  --grid-min-item-size: clamp(12rem, 33%, 15rem);
}
/*
REPEL
A little layout that pushes items away from each other where
there is space in the viewport and stacks on small viewports

CUSTOM PROPERTIES AND CONFIGURATION
--gutter (var(--space-m)): This defines the space
between each item.

--repel-vertical-alignment (center): How items should align vertically.
Can be any acceptable flexbox alignment value.
*/
.repel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: var(--repel-vertical-alignment, center);
  gap: var(--gutter, var(--space-m));
}

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

.repel[data-align="start"] {
  --repel-vertical-alignment: flex-start;
}

/*
SWITCHER
More info: https://every-layout.dev/layouts/switcher/
A layout that allows you to lay **2** items next to each other
until there is not enough horizontal space to allow that.

CUSTOM PROPERTIES AND CONFIGURATION
--gutter (var(--space-space-xxs)): This defines the space
between each item

--switcher-target-container-width (40rem): How large the container
needs to be to allow items to sit inline with each other

--switcher-vertical-alignment (flex-start): How items should align vertically.
Can be any acceptable flexbox alignment value.
*/
.switcher {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter, var(--space-l));
  align-items: var(--switcher-vertical-alignment, flex-start);
}

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

/* Max 2 items,
so anything greater than 2 is ful width */
.switcher > :nth-child(n + 3) {
  flex-basis: 100%;
}
/*
WRAPPER COMPOSITION 
A common wrapper/container
*/
.wrapper {
  --gap: clamp(1rem, 6vw, 3rem);
  --full: minmax(var(--gap), 1fr);
  --content: min(75ch, 100% - var(--gap) * 2);
  --popout: minmax(0, 8rem);
  --feature: minmax(0, 20rem);

  display: grid;
  grid-template-columns:
    [full-start] var(--full)
    [feature-start] var(--feature)
    [popout-start] var(--popout)
    [content-start] var(--content) [content-end]
    var(--popout) [popout-end]
    var(--feature) [feature-end]
    var(--full) [full-end];
}

.wrapper > * {
  grid-column: content;
}

.popout {
  grid-column: popout;
}

.feature {
  grid-column: feature;
}

.full {
  grid-column: full;
}

.button {
  --button-bg: var(--color-primary);
  --button-text: var(--color-dark);
  --button-x-padding: 2em;
  --button-y-padding: 1em;
  --button-gutter: 0.5ch;
  --button-radius: var(--radius-s);
  --focus-color: var(--color-primary);

  --flow-space: var(--space-m);

  display: inline-flex;
  gap: var(--button-gutter);
  align-items: center;
  line-height: var(--leading-flat);
  position: relative;
  border: none;
  cursor: pointer;
  background: var(--button-bg);
  color: var(--button-text);
  padding: var(--button-y-padding) var(--button-x-padding);
  text-transform: uppercase;
  letter-spacing: var(--uppercase-kerning);
  text-decoration: none;
  font-family: var(--font-base);
  font-size: var(--size-step-00);
  font-weight: var(--font-bold);
  border-radius: var(--button-radius);
}

.button:hover {
  filter: brightness(105%);
}

.button:hover .corner {
  --corner-offset: 60%;
}

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

/* Variant exceptions */
.button[data-button-variant='secondary'] {
  --button-bg: var(--color-dark-glare);
  --button-text: var(--color-primary);
  --focus-color: var(--color-dark);
  --corner-secondary-color: var(--color-primary);
}

.button[data-button-variant='alert'] {
  --button-bg: var(--color-error);
  --button-text: var(--color-light);
}

.button[data-button-variant="naked"] {
  --button-bg: transparent;
  --button-x-padding: 0px;
  --button-y-padding: 0px;
  font-weight: 400;
  text-decoration: underline;
  text-transform: revert;
}

.button[data-button-size="small"] {
  --button-x-padding: 1em;
  --button-y-padding: 0.6em;
}

.button[data-button-size="large"] {
  --button-x-padding: 2em;
  --button-y-padding: 1.25em;
  font-size: var(--size-step-0);

  svg {
    height: 1.5em;
    width: 1.5em;
  }
}

/* .card:has([href]:hover) {
  background: rgb(from var(--color-light) r g b / 5%);
  transition: background var(--transition-fade);
} */

.button svg {
  height: 1em;
  width: 1em;
}

.footer {
  background: var(--color-primary);
  padding-block: var(--space-l);
  --flow-space: var(--space-xl);

  .contact {
    --gutter: var(--space-xs);
    display: inline-flex;
    margin: auto;
  }
}

.hero {
  --hero-height: 20em;
  border-radius: var(--radius-m);
  padding: var(--space-l);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: end;
  padding: 0;
  position: relative;
  overflow: hidden;

  .cover {
    height: var(--hero-height);
    grid-column: 1 / 1;
    grid-row: 1 / 1;
    
    img {
      object-fit: cover;
      height: 100%;
      width: 100%;
    }
  }
  
  h1 {
    color: var(--color-light);
    grid-column: 1 / 1;
    grid-row: 1 / 1;
    margin: var(--space-xl);
    text-shadow: 0 0 2em var(--color-dark);
  }
}

.list-item {
  --gutter: var(--space-xs);
  padding: 0 0 0 var(--space-l);
  position: relative;

  &::before {
    content: "✣";
    position: absolute;
    left: 0;
    top: var(--list-padding-block);
  }

  + .suite {
    margin-block-start: var(--space-xs);
  }

  .subtitle {
    font-style: italic;
    font-weight: var(--font-regular);
  }
}

.item-header {
  --gutter: var(--space-xs);
}

ul.list {
  padding: 0;
  margin-block-start: var(--space-s);

  li {
    --list-padding-block: var(--space-s);
    list-style-type: none;
    margin: 0;
    padding-block: var(--list-padding-block);
  }
}

.members {
  --grid-placement: auto-fit;
  --grid-min-item-size: clamp(8rem, 15%, 12rem);
  padding: 0;
}

.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;

  .picture {
    aspect-ratio: 1 / 1;
    width: 150px;
    border: var(--stroke);
    border-radius: var(--radius-m);
    background-color: var(--secondary100);
  }

  .title {
    font-size: var(--size-step-0);
    line-height: 1.25;
  }
}

/* Layouts are completely controlled by the layout compositions, flow and cluster. All we do in this component is configure their spacing and the visual appearance of links. */
.nav {
  --gutter: var(--space-m) var(--space-l);

  line-height: var(--leading-flat);
  padding: var(--space-m) var(--space-xl);
  color: var(--color-dark);
  flex-wrap: initial;
  margin: 0 auto;
}

/* The default behaviour for links is to have an underline. We remove that only if the item isn't being hovered or is the current active page */
.nav a {
  text-decoration: none;
  white-space: nowrap;
}
.post time {
  font-size: var(--size-step-1);
  font-style: italic;
}
.prose {
  --flow-space: var(--space-l);
}

.prose :is(h1, h2, h3) {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.prose :is(p, li, dl, figcaption, blockquote) {
  max-width: 60ch;
  text-wrap: pretty;
}

.prose :is(h1, h2, h3, h4) + *:not([class]) {
  --flow-space: var(--space-m);
}

/* Add more space on and around figures and tables */
.prose :is(figure, table),
.prose :is(figure, table) + * {
  --flow-space: var(--space-2xl);
}

/* Add more space to headings on block start */
.prose * + :is(h1, h2, h3, h4):not([class]) {
  --flow-space: var(--space-xl);
}

.prose :is(ul, ol):not([class]) li + li,
.prose :is(ul, ol):not([class]) li > :is(ol, ul) {
  --flow-space: var(--space-xs);
}

.prose hr {
  --flow-space: var(--space-2xl);
}

.prose :is(img, picture, video) {
  border: var(--stroke-solid);
}

@media screen(md) {
  .prose :is(h1, h2, h3) {
    overflow-wrap: unset;
    hyphens: unset;
  }
}

table {
  border: var(--stroke);
  border-collapse: collapse;
  border-spacing: 0;
  font-size: var(--size-step-0);
  margin-block-start: var(--space-s);
  text-align: left;
  width: 100%;
  word-break: keep-all;
}

thead, tfoot {
  vertical-align: top;
}

td, th {
  border-bottom: var(--stroke);
  word-break: break-word;
  padding: var(--space-xs);

  [data-button-style="naked"] {
    height: auto;

    svg {
      height: auto;
    }
  }

  .button {
    --button-x-padding: 1em;
    --button-y-padding: 0.6em;
    font-size: var(--size-step-00);
  }
}

:is(th, td) ~ :is(th, td) {
  border-inline-start: var(--stroke);
}

tr + tr :is(th, td) {
  border-block-start: var(--stroke);
}

th {
  text-align: left;
  font-weight: 600;
  line-height: var(--leading-fine);
  background-color: var(--color-mint);
  color: var(--color-dark);
  padding: var(--space-xs);
  word-break: initial;

  &:where(.panel *) {
    background-color: var(--color-light);
  }

  a {
    display: flex;
    align-items: center;
    gap: var(--space-xxs);
  }

  svg {
    width: var(--space-s);
  }
}

thead th:not(:only-of-type) {
  border-block-end: var(--stroke);
}

thead th:only-of-type {
  border-inline-end: var(--stroke);
}

tr {
  &.confirmed {
    background-color: color-mix(in srgb, var(--color-success), transparent 80%);
  }

  &.optional {
    background-color: color-mix(in srgb, var(--color-warning), transparent 80%);
  }

  &.overpaid {
    background-color: color-mix(in srgb, var(--color-secondary), transparent 80%);
  }

  &[data-action] {
    cursor: pointer;

    &:hover {
      background-color: color-mix(in srgb, var(--color-secondary), transparent 80%);
    }
  }
}

tbody {
  vertical-align: top;
}

tfoot {
  th {
    border-block-start: var(--stroke);
    font-weight: 600;
  }
}

.cell-options,
.cell-amount {
  text-align: right;

  input:is([type=text], [type=number]) {
    width: 5em;
  }
}

.tag {
  --tag-bg-color: var(--color-primary);
  background-color: var(--tag-bg-color);
  border-radius: var(--radius-s);
  display: inline-flex;
  font-family: var(--font-base);
  font-size: var(--size-step-00);
  font-weight: 600;
  padding: var(--space-xxs) var(--space-xs);
  text-decoration: none;
  transition: all ease-out 0.2s;

  &:hover {
    background-color: color-mix(in srgb, var(--tag-bg-color), transparent 20%);
  }

  &:where([data-tag-color="light"]) {
    --tag-bg-color: var(--color-light);
  }

  &:where([data-tag-color="dark"]) {
    --tag-bg-color: var(--color-dark);
  }

  &:where([data-tag-color="secondary"]) {
    --tag-bg-color: var(--color-secondary);
  }

  > span {
    color: var(--tag-bg-color);
    filter: 
      invert(1)
      grayscale(1)
      contrast(9000)
    ;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    mix-blend-mode: luminosity;
  }
}

.tag-list {
  --gutter: var(--space-xs);

  &:empty {
    display: none;
  }
}

.dual-tag {
  display: flex;

  .tag {
    &:first-child {
      border-radius: var(--radius-s) 0 0 var(--radius-s);
    }

    &:last-child {
      border-radius: 0 var(--radius-s) var(--radius-s) 0;
    }
  }
}

.events {
  margin: auto;

  .event {
    --cluster-vertical-alignment: start;
    --list-padding-block: var(--space-m);

    time {
      background-color: var(--secondary300);
      border-radius: var(--radius-m);
      color: var(--color-light);
      display: flex;
      justify-content: center;
      font-family: var(--font-brand);
      font-size: var(--size-step-1);
      height: fit-content;
      line-height: 1.2;
      padding: var(--space-xs);
      text-align: center;
      vertical-align: middle;
      width: var(--space-2xl);
    }

    .event-header {
      --gutter: var(--space-s);
      align-items: center;
      flex-wrap: initial;
      width: 100%;

      h2 {
        width: initial;

        &::after {
          content: none;
        }
      }

      address {
        color: var(--gray400);
        font-size: var(--size-step-0);
        font-weight: var(--font-regular);
        letter-spacing: 0.15ch;
        text-transform: uppercase;
      }
    }

    .event-content {
      --flow-space: var(--space-xxs);
    }
  }
}

.home {
  display: grid;
  align-content: start;

  :is(main) {
    margin-block-start: 0 !important;
  }

  .hero {
    --hero-height: 25em;
    height: var(--hero-height);
    background: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    position: relative;

    .cover {
      height: var(--hero-height);
      border-radius: 0 0 0 var(--radius-xl);
      overflow: hidden;
      max-width: calc(100% - (100% - var(--content)) / 2);
      width: 100%;
      right: 0;
      position: absolute;
      bottom: 0;
      top: 0;

      img {
        height: 100%;
        width: 100%;
      }
    }

    .title {
      margin: auto;
      width: calc(var(--space-4xl) * 3);
      max-width: 80%;
      z-index: 1;

      .logo {
        aspect-ratio: 1 / 1;
        background-color: color-mix(in oklch, var(--color-light), transparent 20%);
        border-radius: 50%;
        box-shadow: 0 0 10px var(--color-dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        padding: var(--gap);

        img {
          height: 100%;
        }
      }

      span {
        color: transparent;
        position: absolute;
      }
    }
  }

  .prose {
    margin-inline: auto;
  }

  .description {
    padding-block: var(--space-3xl);
    padding-inline-end: calc(var(--gap) * 2);
    position: relative;

    &::before {
      content: "";
      display: block;
      background-color: var(--primary200);
      position: absolute;
      top: 0;
      bottom: 0;
      right: 0;
      left: -100%;
      border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
      z-index: -1;
    }
  }

  .team {
    --flow-space: var(--space-xl);
  }

  .leads {
    --gutter: 0;
    margin-block-start: var(--space-xs);
    padding: 0;

    li {
      display: inline;
      border: 0;
      padding: 0;

      & + li::before {
        content: ", ";
      }
    }
  }

  .panels {
    --gutter: var(--space-2xl);
    background-color: var(--secondary200);
    padding-block: var(--space-3xl);
  }

  .more {
    grid-column: 1 / 3;

    .cluster {
      --gutter: var(--space-s);
    }

    img {
      height: 1ic;
    }
  }

  .footer {
    --flow-space: 0;
  }
}

.genres {
  padding-inline-start: var(--space-s);
}

.suite {
  --gutter: var(--space-xs);

  &::before {
    content: "✣";
  }

  + .suite {
    margin-block-start: var(--space-xs);
  }
}

.tune {
  --gutter: var(--space-xxs);

  + .tune::before {
    content: "/ ";
    color: var(--color-secondary);
  }
}

.tune-name {
  font-weight: var(--font-regular);
}

.tone {
  color: var(--color-primary);
}