/* Stugvett's landing page and privacy policy. The brief's colours (packages/tokens on wave3), Bricolage Grotesque
   throughout, mobile first. Paper and ink like the stuga's white trim, falu red for the brand, the pennant's yellow for
   what you can press. */
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
}

:root {
  --falu: #8e2b1f;
  --falu-shade: #74241a;
  --yellow: #f2c230;
  --blue: #1d5ba6;
  --night: #18222e;
  --ink: #1c2430;
  --paper: #f4f1ea;
  --card: #fbf9f4;
  --line: #ddd5c7;
  --muted: #4f5866;
  --warm: #f6dec4;
  --font: 'Bricolage Grotesque Variable', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
  --radius: 14px;
  color-scheme: light;
}
@media (min-width: 720px) {
  :root {
    --gutter: 40px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--falu);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}
.kicker {
  margin: 0 0 10px;
  color: var(--falu);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The lockup: the pennant and “Stugvett” in 800, tracking −2 %. */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.14em;
  margin: 0;
  font-size: var(--lockup, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}
.lockup img {
  width: auto;
  height: 0.95em;
  transform: translateY(-0.04em);
}

/* Buttons: yellow for the main action, a glass pill over the picture, an outline on paper. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
}
.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
}
.btn--yellow:hover {
  background: #f6cf55;
}
.btn--glass {
  background: rgba(16, 22, 31, 0.6);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--glass:hover {
  background: rgba(16, 22, 31, 0.78);
}
.btn--line {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn--line:hover {
  background: rgba(28, 36, 48, 0.06);
}
.btn:hover {
  text-decoration: none;
}

/* The hero: the stuga at golden hour, the lockup over the sky. Phones get the reel's own tall frame. */
.hero {
  position: relative;
  display: flex;
  min-height: min(100svh, 920px);
  color: #fff;
  background: var(--night);
  isolation: isolate;
}
.hero picture,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.hero__shade {
  background:
    linear-gradient(180deg, rgba(24, 34, 46, 0.62) 0%, rgba(24, 34, 46, 0.18) 34%, rgba(24, 34, 46, 0) 50%),
    linear-gradient(0deg, rgba(24, 34, 46, 0.45) 0%, rgba(24, 34, 46, 0) 22%);
}
.hero__in {
  width: 100%;
  padding-top: 40px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
}
.hero .lockup {
  --lockup: clamp(44px, 12.5vw, 84px);
  text-shadow: 0 2px 18px rgba(16, 22, 31, 0.35);
}
.hero__tag {
  margin: 16px 0 0;
  max-width: 22ch;
  color: var(--warm);
  font-size: clamp(21px, 5.2vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 12px rgba(16, 22, 31, 0.45);
  text-wrap: balance;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 32px;
}
@media (min-width: 720px) and (min-aspect-ratio: 4/5) {
  .hero picture img {
    object-position: 50% 60%;
  }
  .hero__shade {
    background:
      linear-gradient(90deg, rgba(24, 34, 46, 0.62) 0%, rgba(24, 34, 46, 0.28) 32%, rgba(24, 34, 46, 0) 52%),
      linear-gradient(0deg, rgba(24, 34, 46, 0.35) 0%, rgba(24, 34, 46, 0) 20%);
  }
  .hero__in {
    padding-top: clamp(56px, 10vh, 120px);
    padding-bottom: 48px;
  }
  .hero__cta {
    margin-top: 32px;
    padding-top: 0;
  }
}

/* What Stugvett is. */
.about {
  padding-top: 64px;
  padding-bottom: 24px;
}
.about__lead {
  max-width: 34ch;
  font-size: clamp(28px, 4.4vw, 44px);
}
.about__text {
  max-width: 62ch;
  color: var(--muted);
  font-size: 18px;
}

/* The four series, each with a few of its questions. */
.series {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .series {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .series {
    grid-template-columns: repeat(4, 1fr);
  }
}
.series > li {
  position: relative;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.series > li::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--falu);
}
.series > li:nth-child(2)::before {
  background: var(--blue);
}
.series > li:nth-child(3)::before {
  background: var(--yellow);
}
.series > li:nth-child(4)::before {
  background: #4f8530;
}
.series h3 {
  margin: 0 0 4px;
  font-size: 24px;
}
.series__blurb {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
}
.series ul {
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.series ul li + li {
  margin-top: 10px;
}

/* Follow: a night band with the pennant. */
.follow {
  margin-top: 64px;
  padding: 56px 0;
  background: var(--night);
  color: #fff;
}
.follow__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.follow h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 40px);
}
.follow p {
  margin: 0;
  color: var(--warm);
}
.follow__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* The slim header on the inner pages. */
.top {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.top .wrap {
  display: flex;
  align-items: center;
  min-height: 68px;
}
.top .lockup {
  --lockup: 26px;
  color: var(--falu);
}

/* Footer. */
.foot {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.follow + .foot {
  border-top: 0;
}
.foot__in {
  display: grid;
  gap: 20px;
}
@media (min-width: 720px) {
  .foot__in {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}
.foot .lockup {
  --lockup: 24px;
  color: var(--falu);
}
.foot__bio {
  margin: 12px 0 0;
  max-width: 44ch;
}
.foot nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot nav a {
  color: var(--ink);
  font-weight: 600;
}
.foot__small {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
}

/* The privacy policy. */
.legal {
  max-width: calc(780px + 2 * var(--gutter));
  padding-top: 56px;
  padding-bottom: 72px;
}
.legal h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 56px);
}
.legal__updated {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.legal__lead {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.5;
}
.legal h2 {
  margin: 44px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 24px;
  scroll-margin-top: 24px;
}
.legal h3 {
  margin: 28px 0 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.legal p,
.legal ul {
  margin: 12px 0 0;
}
.legal ul {
  padding-left: 22px;
}
.legal li + li {
  margin-top: 4px;
}
.legal__en {
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 16px;
}

/* 404. */
.lost {
  padding-top: 96px;
  padding-bottom: 120px;
}
.lost h1 {
  font-size: clamp(38px, 6vw, 56px);
}
.lost p {
  max-width: 44ch;
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
