@import 'vars.css';

@font-face {
  font-family: "AmarnaRegular";
  src: url("../fonts/Amarna-Regular.ttf");
}

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

* {
  margin: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  font-family: AmarnaRegular, Helvetica, sans-serif;
}

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

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

button {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
  margin-bottom: 0.25rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  margin-bottom: 0.25rem;
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    interpolate-size: allow-keywords;
  }
}

ul {
  text-indent: 0;
  list-style-type: none;
}

ul.reset,
ul.reset li,
ul.reset ul li {
  margin: 0;
  padding: 0;
}

/*** Go ****/
body {
  background-color: var(--color-surface);
  color: var(--color-main);
  font-size: 18px;
  line-height: 1.3em;
  overflow: auto;
}

body.accent {
  background-color: var(--color-accent);
}

body.menu-open {
  overflow: hidden;
}

#body-backdrop {
  background-color: #FFFFFF;
  opacity: 0.6;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: none;
}

.menu-open #body-backdrop {
  display: block;
}

#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: none;
  overflow: auto;
}

.menu-open #main-nav {
  display: block;
}

#btn-close-burger {
  position: fixed;
  top: 20px;
  right: 16px;
  font-size: 64px;
  cursor: pointer;
  width: 32px;
  height: auto;
  display: none;
  z-index: 3;
}

.menu-open #btn-close-burger {
  display: inline-block;
}

#main-nav-inner {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  right: 8px;
}


@media (min-width: 600px) {
  #btn-close-burger {
    right: calc(100%/2 - 300px);
  }

  #main-nav-inner {
    left: calc(100%/2 - 300px);
    right: calc(100%/2 - 300px);
  }
}


/***** Header *****/
header {
  display: flex;
  gap: 32px;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-contrast);
}

.menu-open header {
  filter: blur(0.25rem);
}

#header-nav {
  display: none;
  padding-right: 8px;
  color: #FFFFFF;
}

@media (min-width: 600px) {
  #header-nav {
    display: block;
  }
}

#btn-burger {
  width: 30px;
  height: auto;
  cursor: pointer;
  user-select: none;
}

header .logo {
  font-size: 24px;
  font-weight: 600;
  color: #FFFFFF;
}

nav>ul {
  text-align: center;
  list-style-type: none;
  padding: 0;
  margin-top: 32px !important;
}

nav li {
  font-size: 22px;
  line-height: 1.8em;
}

img.author {
  display: block;
  width: 100%;
  border-radius: 50%;
  max-width: 200px;
}

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

a:link,
a:visited,
a:focus,
a:active {
  color: inherit;
}

a.inert,
a:visited.inert,
a:focus.inert,
a:active.inert {
  text-decoration: none;
}

main {
  margin-top: 16px;
}

.menu-open main {
  filter: blur(0.25rem);
}

section+section {
  margin-top: 32px;
}

h1,
h2 {
  font-weight: normal;
  line-height: 1.1em;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 26px;
}

/*** Utils ***/
.larger {
  font-size: 22px;
}

ol.workshop {
  list-style-type: decimal;
}

ol.workshop>li {
  padding-left: 16px;
}

ol.workshop>li::marker {
  content: counter(list-item) " ";
}

.quote {
  position: relative;
  margin: 3rem 0;
  padding: 2rem 2rem 2rem 4rem;
  border-left: 4px solid #d5a84b;
  background: #f8f6f0;
  font-style: italic;
}

.quote::before {
  content: "\201D";
  position: absolute;
  top: -0.2rem;
  left: 0.5rem;

  display: block;
  width: 3rem;
  height: 4rem;

  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;

  color: #d5a84b;
  opacity: 0.8;
  pointer-events: none;
}

.quote cite {
  display: block;
  margin-top: 1rem;
  color: #000;
}

.workshop-quote {
  display: block;
  font-size: 16px;
  font-style: italic;
  margin: 12px 12px 12px 0;
  background-color: #ffeea1;
  padding: 8px;

}

@media (min-width: 600px) {
  .workshop-quote {
    float: left;
    width: 300px;
  }
}

.shadow-light {
  box-shadow: var(--shadow-light);
}

.round {
  border-radius: 50%;
}

.p-m,
.px-m,
.pl-m {
  padding-left: 4px;
}

.p-m,
.px-m,
.pr-m {
  padding-right: 4px;
}

.p-m,
.py-m,
.pt-m {
  padding-top: 4px;
}

.p-m,
.py-m,
.pb-m {
  padding-bottom: 4px;
}

.p-l {
  padding: 8px;
}

.p-xl,
.px-xl,
.pl-xl {
  padding-left: 16px;
}

.p-xl,
.px-xl,
.pr-xl {
  padding-right: 16px;
}

.p-xl,
.py-xl,
.pt-xl {
  padding-top: 16px;
}

.p-xl,
.py-xl,
.pb-xl {
  padding-bottom: 16px;
}

.m-m,
.my-m,
.mt-m {
  margin-top: 8px;
}

.m-m,
.mx-m,
.ml-m {
  margin-left: 8px;
}

.m-m,
.mx-m,
.mr-m {
  margin-right: 8px;
}

.m-m,
.my-m,
.mb-m {
  margin-bottom: 8px;
}

.m-xl,
.my-xl,
.mt-xl,
.reset .m-xl,
.reset .my-xl,
.reset .mt-xl {
  margin-top: 16px;
}

.m-xl,
.mx-xl,
.ml-xl {
  margin-left: 16px;
}

.m-xl,
.mx-xl,
.mr-xl {
  margin-right: 16px;
}

.m-xl,
.my-xl,
.mb-xl {
  margin-bottom: 16px;
}

.m-xxl,
.my-xxl,
.mt-xxl {
  margin-top: 32px;
}

.m-xxl,
.mx-xxl,
.ml-xxl {
  margin-left: 32px;
}

.m-xxl,
.mx-xxl,
.mr-xxl {
  margin-right: 32px;
}

.m-xxl,
.my-xxl,
.mb-xxl {
  margin-bottom: 32px;
}

.overflow-y-auto {
  overflow-y: auto;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.decoration-none {
  text-decoration: none;
}

.pointer {
  cursor: pointer;
}

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

.max-w-readable {
  max-width: 70ex;
}

.flex {
  display: flex;
  flex-direction: row;
}

.flex-col {
  flex-direction: column;
}

.align-center {
  align-items: center;
}

.align-end {
  align-items: end;
}

.gap-l {
  gap: 8px;
}

.gap-xl {
  gap: 16px;
}

.gap-content {
  gap: 32px;
}

.flex-row-desktop {
  flex-direction: column;
}

@media (min-width: 800px) {
  .flex-row-desktop {
    flex-direction: row;
  }

  .gap-content {
    gap: 64px;
  }
}

.main-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.card {
  padding: 16px;
}

@media (min-width: 800px) {
  .main-group {
    flex-direction: row;
  }

  .card {
    padding: 16px 32px;
  }

  .main-group-item-1-3 {
    flex: 1;
  }

  .main-group-item-2-3 {
    flex: 2;
  }
}

@media (min-width: 1200px) {
  .card {
    padding: 16px 64px;
  }
}

.centered-content {
  max-width: 800px;
  margin: auto;
  padding: 16px;
}

.img-video {
  width: 360px;
  border-radius: 12px;
}

@media (max-width: 1440px) {
  .img-video {
    max-width: 200px;
  }
}