/* Gudmundson Kucera. Värden från design/tokens.json */

:root {
  --green-dark: #013921;
  --green: #29F480;
  --green-light: #B7FFB8;
  --blue-dark: #091F5C;
  --blue: #2A5CEA;
  --blue-light: #9DC4FB;
  --red-dark: #560D01;
  --red: #F5490B;
  --red-light: #FEBE86;
  --black: #000000;
  --white: #FFFFFF;

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --space-2: 8px;
  --space-6: 24px;
  --space-10: 40px;
  --space-30: 120px;

  --radius-none: 0px;
  --radius-pill: 999px;

  --border-thin: 1.5px;
  --border-rule: 3px;

  --max-width: 1280px;
  --gutter: var(--space-10);
  --section: var(--space-30);
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
    --section: 72px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: var(--border-thin);
  text-underline-offset: 0.2em;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: var(--space-2) var(--space-6);
  background: var(--white);
  border: var(--border-thin) solid var(--black);
  border-radius: var(--radius-pill);
}

.skip-link:focus {
  top: var(--space-2);
}

/* Typografi */

.display {
  font-size: clamp(56px, 9vw, 96px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.h3 {
  font-size: 30px;
  line-height: 35px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 22px;
  line-height: 31px;
}

@media (max-width: 720px) {
  .lead { font-size: 20px; line-height: 28px; }
  .h3 { font-size: 26px; line-height: 30px; }
}

/* Layout */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section);
  padding-bottom: var(--section);
}

/* Knappar */

.button {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 14px 30px;
  border: var(--border-thin) solid var(--black);
  border-radius: var(--radius-pill);
  font-size: 17px;
  line-height: 22px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.button:hover {
  background: var(--black);
  color: var(--white);
}

/* Sidhuvud */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-top: 32px;
  padding-bottom: 32px;
}

.wordmark {
  display: block;
  line-height: 0;
}

.wordmark img {
  height: 46px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6) var(--space-10);
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:not(.button):hover {
  text-decoration: underline;
}

.site-nav {
  margin-left: auto;
}

.header-cta {
  padding: 10px 24px;
  white-space: nowrap;
}

@media (min-width: 721px) {
  .site-header { flex-wrap: nowrap; }
  .site-nav { flex-wrap: nowrap; white-space: nowrap; }
}

@media (min-width: 721px) and (max-width: 1000px) {
  .site-nav { gap: var(--space-6); }
  .wordmark img { height: 40px; }
}

@media (max-width: 720px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: var(--space-6);
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-left: 0;
  }

  .header-cta {
    grid-column: 2;
    grid-row: 1;
    padding: 8px 18px;
    font-size: 16px;
  }
}

@media (max-width: 720px) {
  .site-header { padding-top: var(--space-6); padding-bottom: var(--space-6); }
  .wordmark img { height: 36px; }
  .site-nav { gap: 12px var(--space-6); font-size: 16px; }
}

/* Hero */

.hero {
  background: var(--green);
  color: var(--black);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-10) 48px;
  align-items: end;
  min-height: clamp(420px, 52vh, 560px);
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 640px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    align-content: end;
    min-height: 0;
  }
}

/* Utgångspunkt */

.kicker {
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  margin-bottom: var(--space-6);
}

.intro {
  max-width: 760px;
  margin-bottom: var(--space-10);
}

.big-list {
  border-top: var(--border-rule) solid var(--black);
}

.big-list li {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--space-6) 48px;
  align-items: start;
  padding: 22px 0 22px;
  border-bottom: var(--border-rule) solid var(--black);
}

.big-list h3 {
  /* Längsta rubriken är cirka 16,7 gånger textstorleken bred och ska rymmas på en rad */
  font-size: clamp(26px, calc((100vw - 128px) * 0.038), 44px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  hyphens: manual;
  overflow-wrap: break-word;
}

.big-list p {
  padding-top: 4px;
}

@media (max-width: 900px) {
  .big-list li { grid-template-columns: 1fr; gap: 12px; }
  .big-list h3 { font-size: 26px; }
  .big-list p { padding-top: 0; }
}

/* Delad layout: rubrik till vänster, innehåll till höger */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px;
  align-items: start;
}

.h-split,
.h-section {
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.h-section {
  margin-bottom: 64px;
}

/* Blått band */

.band {
  background: var(--blue-light);
  color: var(--black);
}

.band-inner {
  padding-top: 96px;
  padding-bottom: 96px;
}

.band .h-split {
  color: var(--blue-dark);
  text-wrap: balance;
}

.band .lead {
  padding-top: 6px;
}

@media (max-width: 720px) {
  .band-inner { padding-top: 64px; padding-bottom: 64px; }
  .split { gap: var(--space-6); }
  .h-section { margin-bottom: 40px; }
}

/* Människorna bakom */

.founders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px 48px;
  align-items: start;
}

.founder {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-top: var(--space-10);
  border-top: var(--border-rule) solid var(--black);
}

.founder-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (max-width: 720px) {
  .founders { grid-template-columns: 1fr; gap: 48px; }
  .founder { padding-top: var(--space-6); }
}

.portrait {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  background: var(--green-light);
}

.photo-credit {
  margin-top: var(--space-6);
  font-size: 13px;
  line-height: 18px;
}

div.portrait {
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
  font-size: 15px;
  line-height: 21px;
}

.founder h3 {
  font-size: 30px;
  line-height: 35px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.founder-title {
  margin-top: var(--space-2);
}

.facts {
  border-top: var(--border-rule) solid var(--black);
  font-size: 15px;
  line-height: 21px;
}

.facts li {
  padding: 12px 0;
  border-bottom: var(--border-thin) solid var(--black);
}

.founder-contact a {
  text-decoration: none;
}

.founder-contact a:hover {
  text-decoration: underline;
}

.text-link {
  align-self: flex-start;
  font-weight: 700;
}

.label {
  font-size: 15px;
  line-height: 21px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-6);
}

/* Vad vi gör */

.service-list > li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: var(--space-10);
  margin-bottom: var(--space-10);
  border-bottom: var(--border-thin) solid var(--black);
}

.service-list > li:last-child {
  margin-bottom: 0;
}

.service-list > li > p {
  font-size: 20px;
  line-height: 28px;
  max-width: 560px;
}

/* Sidfot */

.site-footer {
  background: var(--green);
  color: var(--black);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 140px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-30);
  line-height: 1.4;
}

.footer-info a {
  text-decoration: none;
}

.footer-info a:hover {
  text-decoration: underline;
}

.footer-logo {
  width: 100%;
  max-width: 1200px;
  height: auto;
}

@media (max-width: 720px) {
  .footer-inner { gap: 96px; padding-top: var(--space-10); padding-bottom: var(--space-10); }
}

.split-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.service-list > li > .service-for {
  font-size: 15px;
  line-height: 21px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Utfallande linje mellan hero och band */

.bleed-rule {
  display: block;
  width: 100%;
  height: 0;
  margin: 48px 0;
  border: 0;
  border-top: var(--border-rule) solid var(--black);
}

@media (max-width: 720px) {
  .bleed-rule { margin: var(--space-6) 0; }
}

/* Animering i hero: orden reser sig, linjen ritas ut, texten tonar in.
   Körs en gång när sidan laddas och stängs av vid minskad rörelse. */

.hero-title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* plats för nedstaplar (g i "gör") inom ramen */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.hero-title .w > span {
  display: inline-block;
  animation: gk-rise 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(0.1s + var(--i) * 0.09s);
}

.bleed-rule {
  transform-origin: left center;
  animation: gk-draw 0.6s cubic-bezier(0.6, 0, 0.2, 1) both;
  animation-delay: 0.55s;
}

.hero-aside {
  animation: gk-fade 0.5s ease-out both;
  animation-delay: 0.9s;
}

@keyframes gk-rise {
  from { transform: translateY(110%); }
  to { transform: none; }
}

@keyframes gk-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes gk-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .w > span,
  .bleed-rule,
  .hero-aside {
    animation: none;
  }
}

/* Undersidor: personuppgiftspolicy och cookies */

.page-head {
  padding-top: var(--section);
  padding-bottom: var(--space-10);
  border-bottom: var(--border-rule) solid var(--black);
}

.prose {
  max-width: 720px;
  padding-top: var(--space-10);
  padding-bottom: var(--section);
}

.prose h2 {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  margin-top: var(--space-10);
  margin-bottom: 12px;
}

.prose p,
.prose li {
  font-size: 18px;
  line-height: 27px;
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 12px;
}

.prose ul {
  list-style: disc;
  padding-left: 1.2em;
}
