html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
} /* ================= FONTS ================= */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap");

:root {
  --body-font: "inter, Roboto Condensed", sans-serif;
  --normal-font-size: 0.938rem;
}

@media (min-width: 1150px) {
  :root {
    --normal-font-size: 1rem;
  }
}

/* ================= BASE ================= */

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

html {
  scroll-behavior: smooth;
}

/* ================= HEADER ================= */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
  border-bottom: 1px solid #e5e5e5;
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
}

.menu-button {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ================= OVERLAY MENU ================= */
.menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;

  width: 20vw; /* ca 1/5 av viewporten */
  max-width: 320px; /* så den inte blir för bred */
  min-width: 240px; /* så den inte blir för smal */

  background: #fafafa;

  display: flex;
  flex-direction: column;
  gap: 1.6rem;

  padding: 6rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 100;
}

.menu.open {
  transform: translateX(0);
}

.menu a {
  color: #3e3e3e;
  text-decoration: none;
  font-size: 1.6rem;
}

/* Stäng-knapp i menyn */
.menu-close {
  position: absolute;
  top: 1rem;
  left: 1.6rem;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: #3e3e3e;
  cursor: pointer;
}
/* Dölj scrollbar men behåll scroll */
.hide-scrollbar {
  -ms-overflow-style: none; /* IE & Edge */
  scrollbar-width: none; /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}
