@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/fredoka-600.woff2") format("woff2");
}

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/fredoka-700.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/nunito-400.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/nunito-700.woff2") format("woff2");
}

:root {
  --white: #ffffff;
  --cream: #fff1cf;
  --cream-deep: #f6e2b0;
  --ink: #241c14;
  --red: #a31320;
  --red-deep: #6e0d16;
  --green: #1f6a34;
  --green-deep: #14572a;
  --green-dark: #0f3d20;
  --yellow: #f0c14d;
  --yellow-deep: #c9961a;
  --link: #14572a;
  --shadow: 0 10px 0 rgba(20, 87, 42, 0.12);
  --font-display: "Fredoka", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
  --header-offset: 6.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(20, 87, 42, 0.08) 1.1px, transparent 1.2px);
  background-size: 20px 20px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
}

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

h1,
h2,
h3,
.button,
button,
.kicker,
.stamp,
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.75rem;
  color: var(--red);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--green-dark);
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1.45rem;
  color: var(--green-dark);
}

p {
  margin-bottom: 0.9rem;
}

a {
  color: var(--link);
  font-weight: 700;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-160%);
  z-index: 30;
  background: var(--white);
  color: var(--green-dark);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 3px solid var(--green-deep);
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.shell {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 4px solid var(--green);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.25rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 4.6rem;
  height: 4.6rem;
  object-fit: cover;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  justify-content: flex-end;
}

.nav a {
  color: var(--green-dark);
  text-decoration: none;
  padding: 0.45rem 0.15rem;
}

.nav a:hover {
  text-decoration: underline;
}

.hero {
  position: relative;
  background: var(--white);
  padding: 1.5rem 0 4.2rem;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 20px;
  background: radial-gradient(circle at 18px 0, var(--white) 17px, transparent 17.5px) left top / 36px 20px repeat-x;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.kicker {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.35rem 0.8rem;
  border: 3px solid var(--green-dark);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--green-dark);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead,
.section-lead {
  font-size: 1.25rem;
  max-width: 38rem;
}

.hero-actions {
  margin: 1.2rem 0 0.45rem;
}

.reassurance {
  margin: 0;
  color: #3f4a34;
  font-size: 1rem;
}

.hero-mark img {
  width: min(100%, 26rem);
  margin-inline: auto;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.7rem 1.35rem;
  border: 3px solid var(--red-deep);
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 0 var(--red-deep);
  font-size: 1.2rem;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button:hover {
  background: #8e101c;
}

button:disabled {
  cursor: progress;
  opacity: 0.8;
}

.about {
  padding: 4.2rem 0 3.5rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.fact {
  margin: 0;
  padding: 1.15rem 1.15rem 1.25rem;
  background: #fffdf8;
  border: 3px solid var(--green);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}

.fact p {
  margin-bottom: 0;
}

.icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.55rem;
}

.soon {
  position: relative;
  background: var(--green-deep);
  color: #fff6e4;
  padding: 4rem 0 3.6rem;
}

.soon::before,
.soon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
}

.soon::before {
  top: -18px;
  background: radial-gradient(circle at 18px 20px, var(--green-deep) 17px, transparent 17.5px) left bottom / 36px 20px repeat-x;
}

.soon::after {
  bottom: -18px;
  background: radial-gradient(circle at 18px 0, var(--green-deep) 17px, transparent 17.5px) left top / 36px 20px repeat-x;
}

.soon h2,
.soon p {
  color: #fff6e4;
}

.soon a {
  color: #ffe9a8;
}

.soon :focus-visible {
  outline-color: var(--yellow);
}

.soon-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.steps {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0.55rem 0;
}

.steps li::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--green-dark);
  font-family: var(--font-display);
  font-weight: 700;
}

.stamp {
  display: grid;
  place-items: center;
  width: 9.5rem;
  height: 9.5rem;
  margin: 0;
  border: 4px dashed var(--yellow);
  border-radius: 50%;
  color: var(--yellow);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.35rem;
  transform: rotate(-8deg);
}

.interest {
  padding: 4.4rem 0 4rem;
}

.interest-card {
  max-width: 40rem;
  margin-inline: auto;
  padding: 1.6rem 1.4rem 1.4rem;
  background: #fffdf8;
  border: 4px solid var(--yellow-deep);
  border-radius: 1.8rem;
  box-shadow: 0 0 0 6px var(--green);
}

.interest-card h2 {
  color: var(--red);
}

.interest-form {
  position: relative;
  display: grid;
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}

input[type="email"] {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0.9rem;
  border: 3px solid var(--green);
  border-radius: 0.95rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}

input[type="email"]::placeholder {
  color: #6d6458;
}

input[aria-invalid="true"] {
  border-color: var(--red);
  background: #fff6f5;
}

.interest-form button {
  justify-self: start;
}

.form-status {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  border: 3px solid transparent;
  font-weight: 700;
}

.form-status:empty {
  display: none;
}

.form-status[data-kind="ok"] {
  background: #e5f6df;
  border-color: var(--green);
  color: var(--green-dark);
}

.form-status[data-kind="notice"],
.form-status[data-kind="pending"] {
  background: #fff6d4;
  border-color: var(--yellow-deep);
  color: var(--ink);
}

.form-status[data-kind="error"] {
  background: #fde8e6;
  border-color: var(--red);
  color: var(--red-deep);
}

.privacy {
  margin: 0;
  color: #3f4a34;
  font-size: 0.98rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  background: var(--green-dark);
  color: #fff1cf;
  padding: 1.6rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.footer-inner img {
  width: 4.5rem;
  height: 4.5rem;
  background: var(--white);
  border-radius: 0.85rem;
}

.footer-inner p {
  margin: 0;
}

.footer-name {
  font-size: 1.4rem;
  color: var(--yellow);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-left: auto;
}

.site-footer a {
  color: #fff6e4;
}

.site-footer :focus-visible {
  outline-color: var(--yellow);
}

#om,
#kommer-snart,
#anmalan {
  scroll-margin-top: var(--header-offset);
}

@media (max-width: 800px) {
  .hero-grid,
  .facts,
  .soon-grid {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    order: -1;
  }

  .hero-mark img {
    width: min(100%, 18rem);
  }

  .stamp {
    margin-inline: auto;
  }

  .site-footer nav {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1.05rem;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.45rem 0.7rem;
  }

  .brand img {
    width: 4rem;
    height: 4rem;
  }

  .nav {
    justify-content: flex-start;
  }

  .interest-card {
    padding: 1.2rem 1rem 1.1rem;
    box-shadow: 0 0 0 4px var(--green);
  }

  .interest-form button,
  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  button {
    transition: none;
  }
}
