/* VARS */
:root {
  --base-size: 1rem;
  --size-300: calc( var(--base-size) * 0.8 );
  --size-400: var(--base-size);
  --size-500: calc( var(--base-size) * 1.33 );
  --size-600: calc( var(--base-size) * 1.77 );
  --size-700: calc( var(--base-size) * 2.36 );
  --size-800: calc( var(--base-size) * 3.15 );
  --size-900: calc( var(--base-size) * 4.2 );

  --primary: #231651;
  --secondary: #ff8484;
  --secondary-shade: #ff5151;
  --tertiary: #2c988c;
  --tertiary-glare: #d6fff6;
  --light: #fafafa;
  --light-shade: #eeeeee;
  --grey: #c4c4c4;
  --darkgrey: #222222;

  --border-radius: 0.3rem;
  --measure: 82rem;
}


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

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial, sans-serif;
    line-height: 1.3;
}

/* 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;
  padding-left: initial;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

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

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

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

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

/* Blur images when they have no alt attribute */
img:not([alt]) {
    filter: blur(10px);
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Global CSS starts */
body {
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: var(--size-600);

  font-weight: medium;
  
  background-color: white;
  color: var(--darkgrey);
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, Roboto, Helvetica Neue, sans-serif;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: var(--size-700);
}

h2 {
  font-size: var(--size-600);
  margin-bottom: var(--size-600);
}

h3 {
  font-size: var(--size-500);
  margin-bottom: var(--size-500);
}

a {
  color: currentColor;
}

table {
  border-collapse: collapse;
}

th {
  text-align: left;
}

:focus {
  outline: 2px dotted;
  outline-offset: 0.2rem;
}

button:hover {
  cursor: pointer;
}


/* Every-layout */
.stack, .stack-recursive {
  --space: var(--base-size);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.stack > *, .stack-recursive * {
  margin-top: 0;
  margin-bottom: 0;
} 

.stack > * + *, .stack-recursive * + * {
  margin-top: var(--space);
}

.container {
  box-sizing: content-box;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--measure);
  padding-left: var(--base-size);
  padding-right: var(--base-size);
}

.cluster {
  --justify: center;
  --align: center;
  --space: var(--base-size);
  overflow: hidden;
}

.cluster > * {
  display: flex;
  flex-wrap: wrap;
  justify-content: var(--justify);
  align-items: var(--align);
  margin: calc(var(--space) / 2 * -1);
}

.cluster > * > * {
  margin: calc(var(--space) / 2);
}

.with-sidebar {
  --side: left;
  --sideWidth: auto;
  --contentMin: 50%;
  --space: var(--base-size);
  overflow: hidden;
}

.with-sidebar > * {
  display: flex;
  flex-wrap: wrap;
  margin: calc(var(--size-500) / 2 * -1);
}

.with-sidebar > * > * {
  margin: calc(var(--size-500) / 2);
  flex-grow: 1;
}

.with-sidebar > * > :last-child {
  flex-basis: 0;
  flex-grow: 999;
  min-width: calc(50% - var(--size-500));
}

.grid {
  display: grid;
  grid-gap: 1rem;
}

@supports (width: min(250px, 100%)) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  }
}

.frame {
  --horizontal: 16;
  --vertical: 9;
  padding-bottom: calc(var(--vertical) / var(--horizontal) * 100%);
  position: relative;
}

.frame > * {
  overflow: hidden;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.frame > img,
.frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.imposter {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.imposter.contain {
  --margin: 1rem;
  overflow: auto;
  max-width: calc(100% - (var(--margin) * 2));
  max-height: calc(100% - (var(--margin) * 2));
}


.cover {
  --minHeight: 100vh;
  --space: var(--base-size);
  display: flex;
  flex-direction: column;
  min-height: var(--minHeight);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.cover > * {
  margin-top: var(--space);
  margin-bottom: var(--space);
}

.cover > :first-child:not(.centered) {
  margin-top: 0;
}

.cover > :last-child:not(.centered) {
  margin-bottom: 0;
}

.cover > .centered {
  margin-top: auto;
  margin-bottom: auto;
}

/* Utils */

.bg-primary {
  background-color: var(--primary);
}

.bg-secondary {
  background-color: var(--secondary);
}

.bg-base {
  background-color: var(--base);
}

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

.color-secondary {
  color: var(--secondary);
}

.color-base {
  color: var(--base);
}


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

.splitter > :last-child {
    margin-top: var(--size-500);
}

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

.wrapper {
    max-width: 82rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--size-500);
}

.radius {
    border-radius: var(--border-radius);
}

.button {
    border-radius: var(--border-radius);
  
    font: inherit;
    display: inline-block;
    line-height: 1;
    text-decoration: none;
    /* border: 1px solid var(--primary); */
    background-color: #bfbfbf;
    color: var(--darkgrey);
    padding: 0.8rem 1.5rem;
    position: relative;
    
    font-weight: bold;
}

.button[data-variant='ghost'] {
    border-color: currentColor;
    background: transparent;
}
  
.button:focus {
    outline-offset: -0.4rem;
    outline: 1px solid;
    background-color: #989898;
}
  
.button:hover {
    background-color: #989898;
}
  
.button:active {
    transform: scale(0.95);
}


/* BLOCK */
.header {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--grey);
}

.card a {
  display: inline-block;
  text-decoration: none;
}

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

.card .card_link::after {
  content: '>';
}

.searchbox {
  display: flex;
}

.searchbox > input {
  padding: 0.5em;
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
  flex-grow: 1;
  width: 50%;
  max-width: 40rem;
}

.searchbox > button {
  padding: 0.5em;
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  border-left: none;
}

.searchbox[data-state="large"] {
  font-size: 1.5rem;
}

.hero {
  background-color: var(--primary);
  color: white;
}

.content {
  padding-top: 2rem;
  padding-bottom: 2rem;
}