:root {
  --accent-green: limegreen;
  --accent-purple: #a270ff;
  --header-height: 200px;
  --size-step-0: clamp(1rem, calc(0.96rem + 0.22vw), 1.13rem);
  --size-step-1: clamp(1.25rem, calc(1.16rem + 0.43vw), 1.5rem);
  --size-step-2: clamp(1.56rem, calc(1.41rem + 0.76vw), 2rem);
  --size-step-3: clamp(1.95rem, calc(1.71rem + 1.24vw), 2.66rem);
  --size-step-4: clamp(2.44rem, calc(2.05rem + 1.93vw), 3.55rem);
  --size-step-5: clamp(3.05rem, calc(2.57rem + 2.84vw), 4.74rem);
  --size-step-6: clamp(3.82rem, calc(3.22rem + 4.13vw), 6.32rem);
}

@font-face {
  font-family: "GothicWar";
  src:
    local("GothicWar"),
    url("/fonts/GothicWar.otf") format("opentype");
}
@font-face {
  font-family: "BellavoirDelight";
  src:
    local("BellavoirDelight"),
    url("/fonts/BellavoirDelight.otf") format("opentype");
}

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

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
figure,
blockquote,
dl,
dd {
  margin: 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 root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-size: var(--size-step-0);
  background-color: black;
}

/* 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%;
  display: block;
}

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

html,
body {
  width: 100%;
  height: 100%;
  color: white;
  font-family: "sans-serif";
}
.container {
  display: grid;
  height: 100vh;
  background-color: black;
  grid-template-columns: 250px 1fr;
  grid-template-rows: var(--header-height) 1fr 50px;
  grid-template-areas:
    "header header"
    "main main"
    "footer footer";
}
.header {
  grid-area: header;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  position: relative;
  justify-content: center;
}
/* .header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px; /* total height of both borders */
/* background: linear-gradient(
    to bottom,
    var(--accent-green) 0 1px,
    var(--accent-purple) 1px 2px
  );
} */
.header .site-name {
  font-family: "GothicWar";
  font-size: var(--size-step-5);
  letter-spacing: 0.08em;
}
.header .site-name a {
  text-decoration: none;
  color: var(--accent-purple);
  text-shadow: 1px 3px 1px var(--accent-green);
}
.header #menu-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  display: none;
  position: absolute;
  left: 2em;
}
.sidebar {
  grid-area: sidebar;
  height: 100vh;
  transition: transform 0.3s ease;
  transform: translateX(0);
  z-index: 1000;
  background-color: black;
  position: relative;
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2px; /* total width of both borders */
  height: 100%;
  background: linear-gradient(
    to right,
    var(--accent-green) 0 1px,
    var(--accent-purple) 1px 2px
  );
}

/* Main and footer */
.main-wrapper {
  grid-area: main;
  min-height: 0;
  margin: 0 auto;
  background-color: black;
  width: 100%;
}
.main-content {
  width: 100%;
  padding: 2em;
  margin: 0 auto;
}
.footer {
  grid-area: footer;
  background-color: black;
  position: relative;
}
/*
.footer::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent-green) 0 1px,
    var(--accent-purple) 1px 2px
  );
} */

/* homepage */
.special {
  width: 100%;
  font-size: 40px;
  color: #a8a8a8;
  font-family: "BellavoirDelight";
  text-align: center;
}
.rose {
  max-width: 300px;
  margin: 0 auto;
}

/* Mobile behavior */
@media (max-width: 1250px) {
  .container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "header"
      "main"
      "footer";
  }

  .header #menu-toggle {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: var(--header-height); /* Below the header */
    left: 0;
    width: 180px;
    height: calc(100vh - 50px);
    transform: translateX(-100%);
    pointer-events: none;
    opacity: 1;
    grid-area: unset;
  }

  .container.sidebar-open .sidebar {
    transform: translateX(0);
    pointer-events: auto;
  }
}

/* Remove all animations, transitions and smooth scroll 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;
  }
}
