/* SAKNES '26 — stylesheet
   Design source: Figma "SAKNES-26" (desktop 1440 / mobile 390)
   ------------------------------------------------------------ */

@font-face {
  font-family: "P22 Mackinac";
  src: url("../assets/fonts/P22Mackinac-Medium.otf") format("opentype");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --sand: #e9e6e1;
  --green: #47593c;
  --green-dark: #3a4931;
  --green-light: #738568;
  --muted: #bbb5ac;
  --white: #ffffff;
  --rule: #cccccc;
  --card: rgba(71, 89, 60, 0.1);

  --font: "P22 Mackinac", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  /* 80px side padding at 1440, 20px at 390 */
  --pad: clamp(20px, 5.556vw, 80px);
  --max: 1280px;
  --sec: clamp(56px, 5.556vw, 80px);

  /* type scale: mobile → desktop */
  --fs-nav:   clamp(14px, 1.667vw, 24px);
  --fs-hero:  clamp(20px, 2.222vw, 32px);
  --fs-h2:    clamp(32px, 3.611vw, 52px);
  --fs-h3:    clamp(18px, 2.222vw, 32px);
  --fs-body:  clamp(17px, 1.667vw, 24px);
  --fs-list:  clamp(16px, 1.389vw, 20px);
  --fs-name:  clamp(22px, 2.222vw, 32px);
  --fs-small: clamp(14px, 1.389vw, 20px);
  --fs-price: clamp(32px, 3.611vw, 52px);

  --radius: 4px;
  --radius-lg: 10px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--green);
  font-family: var(--font);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, opacity .2s ease;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-green a:focus-visible { outline-color: var(--sand); }

.wrap {
  width: min(var(--max), 100% - 2 * var(--pad));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute; left: var(--pad); top: -100px;
  background: var(--green); color: var(--sand);
  padding: 10px 16px; border-radius: var(--radius);
  z-index: 100; font-size: 16px;
}
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
  border-radius: var(--radius);
  white-space: nowrap;
  cursor: pointer;
}
.btn--solid {
  background: var(--green);
  color: var(--sand);
}
.btn--solid:hover { background: var(--green-dark); }
.btn--ghost {
  color: var(--green);
}
.btn--ghost:hover { background: var(--card); }

/* ---------- header ---------- */
.site-header {
  padding-block: clamp(20px, 1.6vw, 22px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--fs-nav);
  line-height: 1.2;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 0;
}
.meta a:hover { text-decoration: underline; text-underline-offset: .18em; }
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang { display: flex; gap: 14px; }
.lang a[aria-current="true"] {
  color: var(--muted);
  pointer-events: none;
}
.lang a:not([aria-current]):hover { text-decoration: underline; text-underline-offset: .18em; }
.nav .btn {
  margin-left: clamp(4px, 1vw, 22px);
  padding: .55em .9em;
  margin-block: -.55em;
  font-size: inherit;
}

/* ---------- hero ---------- */
.hero { padding-bottom: clamp(24px, 4.9vw, 71px); }
.hero-box {
  background: var(--green);
  color: var(--sand);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1280 / 766;
  padding: clamp(28px, 2.8vw, 40px) clamp(24px, 2.8vw, 40px) clamp(28px, 3.5vw, 50px);
  font-size: var(--fs-hero);
  line-height: 1.2;
}
.hero-box h1 {
  font-size: inherit;
  font-weight: 500;
  max-width: 16.1em; /* 514px @ 32px */
}
.hero-box .tagline {
  max-width: 12.2em; /* 389px @ 32px */
}
.hero-logo {
  width: 104%;
  margin-left: -2%;
  margin-top: -0.7%;
}
.hero-logo img { width: 100%; height: auto; }

/* ---------- intro ---------- */
.intro { padding-block: var(--sec); }
.intro .wrap {
  display: grid;
  grid-template-columns: 34fr 46fr;
  align-items: start;
}
.intro .btn {
  font-size: var(--fs-body);
  padding: .73em 1.9em;
  margin-top: .25em;
}
.prose p + p { margin-top: 1.6em; }

/* ---------- photo ---------- */
.photo img {
  width: 100%;
  aspect-ratio: 1280 / 494;
  object-fit: cover;
  object-position: center;
}

/* ---------- topics ---------- */
.topics { padding-block: var(--sec); }
.panel {
  background: var(--green);
  color: var(--sand);
  padding: clamp(32px, 2.6vw, 37px) clamp(24px, 3.05vw, 44px) clamp(40px, 4.6vw, 66px) clamp(24px, 3.6vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 489fr) minmax(0, 695fr);
}
.panel h2 {
  font-size: var(--fs-h2);
  line-height: 1.2;
  max-width: 6.6em;
}
.topic-list {
  margin-top: 27%;
  font-size: var(--fs-list);
  line-height: 1.4;
}
.topic-list li {
  padding-block: .75em;
  border-bottom: 1px solid var(--green-light);
}
.topic-list li:first-child { padding-top: 0; }
.topic-list li:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- section headings ---------- */
.section-title {
  font-size: var(--fs-h2);
  line-height: 1.2;
}

/* ---------- speakers ---------- */
.speakers { padding-block: var(--sec); }
.speakers .section-title { margin-bottom: clamp(32px, 2.2vw, 32px); }
.speaker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: clamp(44px, 5vw, 72px);
}
.speaker figure { margin: 0; }
.speaker img {
  width: 100%;
  aspect-ratio: 410 / 480;
  object-fit: cover;
  object-position: 50% 35%;
}
.speaker h3 {
  margin-top: clamp(16px, 2.1vw, 30px);
  font-size: var(--fs-name);
  line-height: 1.6;
}
.speaker p {
  margin-top: clamp(16px, 2.1vw, 30px);
  font-size: var(--fs-list);
  line-height: 1.4;
}
.speaker h3 + p { margin-top: clamp(16px, 1.6vw, 24px); }

/* ---------- program ---------- */
.program { padding-block: var(--sec); }
.program > .wrap > * + * { margin-top: clamp(40px, 4.2vw, 60px); }
.days {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.day h3 {
  font-size: var(--fs-body);
  line-height: 1.6;
  margin-bottom: 24px;
}
.schedule {
  font-size: var(--fs-list);
  line-height: 1.4;
  border-top: 1px solid var(--rule);
}
.schedule li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 24px;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule);
}
.schedule time { font-variant-numeric: tabular-nums; }
.note {
  font-size: var(--fs-list);
  line-height: 1.4;
  max-width: 845px;
}
.pre-note {
  font-size: var(--fs-list);
  line-height: 1.4;
  max-width: 845px;
}
.banner img {
  width: 100%;
  aspect-ratio: 1280 / 440;
  object-fit: cover;
}

/* ---------- pricing ---------- */
.pricing { padding: clamp(56px, 5vw, 72px) 0 var(--sec); }
.pricing .wrap {
  display: grid;
  grid-template-columns: minmax(0, 396fr) minmax(0, 846fr);
  column-gap: 32px;
  row-gap: clamp(24px, 4.5vw, 65px);
  align-items: end;
}
.pricing .section-title { align-self: start; }
.pricing .lead {
  font-size: var(--fs-body);
  line-height: 1.4;
  align-self: start;
}
.prices {
  display: flex;
  gap: clamp(12px, 1.95vw, 28px);
}
.price {
  flex: 1 1 0;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 1.2vw, 17px) 12px;
  min-height: 147px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.price .label { font-size: var(--fs-small); line-height: 1.4; }
.price .amount { font-size: var(--fs-price); line-height: 1.2; }
.btn--cta {
  width: 100%;
  min-height: 147px;
  border-radius: var(--radius-lg);
  font-size: var(--fs-price);
}
.pricing .fine {
  grid-column: 1 / -1;
  font-size: var(--fs-small);
  line-height: 1.4;
  max-width: 845px;
  margin-top: clamp(-8px, -1vw, 0px);
}

/* ---------- organizers ---------- */
.orgs {
  background: var(--white);
  padding: clamp(48px, 5vw, 72px) 0 clamp(48px, 3.4vw, 50px);
}
.orgs .wrap {
  display: grid;
  grid-template-columns: minmax(0, 541fr) minmax(0, 739fr);
  gap: 32px;
}
.orgs h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
  margin-bottom: clamp(16px, 1.5vw, 22px);
}
.logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px clamp(24px, 3vw, 44px);
}
.logos a:hover { opacity: .75; }
.logos img { width: auto; }
.logo-lkab { height: 84px; }
.logo-oo { height: 80px; }
.logo-lighthouse { max-height: 80px; }
.logo-mo { max-height: 100px; }
.logo-asketic {
  display: flex;
  align-items: center;
  gap: 35px;
}
.logo-asketic img:first-child { height: 84px; }
.logo-asketic img:last-child { height: 36px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--white);
  padding-block: clamp(48px, 4.4vw, 64px);
  font-size: var(--fs-small);
  line-height: 1.4;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 486fr) minmax(0, 328fr) minmax(0, 310fr) minmax(0, 156fr);
  align-items: start;
}
.site-footer address { font-style: normal; }
.contact { grid-column: 3; }
.contact a:hover { text-decoration: underline; text-underline-offset: .18em; }
.social { grid-column: 4; }
.social p { margin-bottom: 16px; }
.social-icons {
  display: flex;
  gap: 8px;
}
.social-icons a {
  width: 33px; height: 33px;
  display: grid; place-items: center;
  background: var(--green-light);
  border-radius: var(--radius);
}
.social-icons a:hover { background: var(--green); }
.social-icons img { width: 18px; height: 18px; }

/* ---------- registration page ---------- */
.reg { padding-block: var(--sec); }
.reg .section-title { margin-bottom: 24px; }
.reg .lead { max-width: 845px; margin-bottom: clamp(32px, 4vw, 56px); }
.form-embed {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.form-embed iframe {
  display: block;
  width: 100%;
  min-height: 1500px;
  border: 0;
}
.reg .alt {
  margin-top: 24px;
  font-size: var(--fs-list);
}
.reg .alt a { text-decoration: underline; text-underline-offset: .18em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* tablet */
@media (max-width: 1100px) {
  .speaker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    gap: 32px;
  }
  .contact { grid-column: 1; }
  .social { grid-column: 2; grid-row: 1 / span 2; }
}

/* mobile */
@media (max-width: 767px) {
  .site-header { padding-block: 20px; }
  .site-header .wrap { align-items: flex-start; }
  .meta { flex-direction: column; }
  .nav { gap: 10px; }
  .lang { gap: 10px; }
  .nav .btn { margin-left: 6px; padding: .3em .5em; margin-block: -.3em; }

  .hero-box {
    aspect-ratio: auto;
    min-height: 420px;
    padding: 28px 24px;
  }
  .hero-box h1, .hero-box .tagline { max-width: none; }
  .hero-logo { width: 100%; margin-left: 0; margin-top: -1.9%; }

  .intro .wrap { grid-template-columns: 1fr; gap: 28px; }
  .intro .btn {
    width: 100%;
    min-height: 52px;
    margin-top: 0;
    border-radius: 3px;
  }

  .photo img { aspect-ratio: 350 / 240; }

  .panel {
    grid-template-columns: 1fr;
    padding: 32px 24px 56px;
  }
  .panel h2 { max-width: none; }
  .topic-list { margin-top: 96px; }
  .speaker-grid { grid-template-columns: 1fr; row-gap: 44px; }

  .days { grid-template-columns: 1fr; gap: 40px; }
  .schedule li { grid-template-columns: 6.9em 1fr; gap: 12px; }
  .day h3 { font-size: 18px; }
  .schedule { font-size: 15px; }
  .banner img { aspect-ratio: 350 / 200; }

  .pricing .wrap { grid-template-columns: 1fr; row-gap: 24px; }
  .price { min-height: 90px; padding: 18px; }
  .btn--cta { min-height: 64px; font-size: 20px; }
  .pricing .fine { margin-top: 0; }

  .orgs .wrap { grid-template-columns: 1fr; gap: 32px; }

  .site-footer .wrap { grid-template-columns: 1fr; gap: 28px; }
  .contact, .social { grid-column: 1; grid-row: auto; }

  .form-embed iframe { min-height: 2000px; }
}
