/* ==========================================================================
   Ved bordet — landingsside
   Design source: "Ved bordet - Landingsside" design handoff (README.md + copy.md)
   NOT Semway's design system — deliberate, separate visual identity.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  /* Colors — see README "Design tokens / Farger" */
  --paper: #FBFBF9;
  --white: #FFFFFF;
  --ink: #1B2430;
  --ink-mid: #3A434F;
  --gray-text: #767B82;
  --gray-muted: #9AA3AD;
  --gray-weak: #B5BBC2;
  --border: #D9DCE0;
  --hairline: #EDF0F3;
  --light-text: #F4F6F8;
  --light-text-muted: #C9D0D7;
  --marker: #F0EA8A;
  --underline-dark: #5C646E;

  --font-sans: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --section-space: clamp(64px, 9vw, 108px);
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

p { text-wrap: pretty; }

a { color: inherit; }

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

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

/* Outer frame ------------------------------------------------------------ */

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 30px);
}

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

/* Section header apparatus (number + optional right-aligned field) ------- */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.section-head.on-dark { border-top-color: var(--ink-mid); }

.section-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-text);
}

/* Marker stroke (only two places: hero H1, footer name) ------------------
   An SVG stroke stretched to the word's width (preserveAspectRatio: none),
   scales with font-size via em units so it follows the word at any size —
   replaces the old CSS text-decoration underline. See README/handoff for
   the "tusjstrek" revision. */

.tusjstrek-wrap {
  position: relative;
  display: inline-block;
}

.tusjstrek-svg {
  position: absolute;
  left: -7%;
  bottom: 0.01em;
  width: 116%;
  height: 0.15em;
  overflow: visible;
  pointer-events: none;
}

/* Thin brand underline (three places in running text) --------------------- */

.brand-underline {
  text-decoration-line: underline;
  text-decoration-color: var(--gray-weak);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

.brand-underline--on-dark {
  text-decoration-color: var(--underline-dark);
}

/* ==========================================================================
   1. Header
   ========================================================================== */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px 0 12px;
  border-bottom: 1px solid var(--ink);
  flex-wrap: wrap;
  gap: 12px 24px;
}

.site-header .brand {
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-header .brand .name { color: var(--ink); font-weight: 500; }
.site-header .brand .by { color: var(--gray-muted); font-weight: 400; }

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.site-header nav a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-text);
  text-decoration: none;
  transition: color 150ms;
}

.site-header nav a:hover { color: var(--ink); }

/* ==========================================================================
   2. Hero
   ========================================================================== */

.hero {
  background: var(--ink);
  color: var(--light-text);
  padding: clamp(34px, 6vw, 78px) clamp(22px, 4vw, 62px);
  margin-top: 22px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-muted);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(44px, 9vw, 104px);
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--light-text);
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(15px, 2.1vw, 21px);
  line-height: 1.5;
  max-width: 26em;
  color: var(--light-text-muted);
  margin-top: clamp(16px, 2.4vw, 26px);
}

.hero-divider {
  border: none;
  border-top: 1px solid var(--ink-mid);
  margin: clamp(28px, 4.5vw, 48px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 34px 56px;
}

.hero-grid h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--light-text);
}

.hero-grid .body {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.8vw, 18.5px);
  line-height: 1.7;
  max-width: 36em;
  color: var(--light-text-muted);
}

.hero-side {
  border-left: 1px solid var(--ink-mid);
  padding-left: clamp(18px, 2.6vw, 32px);
}

.hero-side .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-muted);
  margin-bottom: 10px;
}

.hero-side .topic {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 24px);
  color: var(--light-text);
  margin-bottom: 14px;
}

.hero-side .datetime {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--light-text-muted);
}

.hero-side .divider {
  border: none;
  border-top: 1px solid var(--ink-mid);
  margin: 18px 0;
}

.hero-side .note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gray-muted);
  margin-bottom: 22px;
}

.cta-button {
  display: inline-block;
  background: var(--marker);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: 0;
  text-decoration: none;
  transition: background 150ms;
}

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

/* ==========================================================================
   3. 01 · Bakgrunn
   ========================================================================== */

.bakgrunn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 34px clamp(40px, 6vw, 84px);
}

.bakgrunn-grid h2 { font-family: var(--font-sans); }

.bakgrunn-grid .copy p {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.8vw, 18.5px);
  line-height: 1.7;
  max-width: 38em;
}

.bakgrunn-grid .copy p + p {
  margin-top: 20px;
  color: var(--ink-mid);
}

/* Generic H2 for section headings ---------------------------------------- */

h2.section-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* ==========================================================================
   4. 02 · Format
   ========================================================================== */

.format-card {
  background: var(--white);
  border: 1px solid var(--border);
}

.format-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: clamp(16px, 2.4vw, 30px);
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3.4vw, 40px);
  border-bottom: 1px solid var(--hairline);
}

.format-row:last-child { border-bottom: none; }

.format-row .num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gray-weak);
}

.format-row .title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 23px);
  letter-spacing: -0.02em;
}

.format-row .desc {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-mid);
  margin-top: 8px;
}

/* ==========================================================================
   5. 03 · Agenda
   ========================================================================== */

.agenda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 4vw, 52px);
}

.agenda-left .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 10px;
}

.agenda-left .topic {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(23px, 3vw, 32px);
  margin-bottom: 18px;
}

.agenda-left p {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.8vw, 18.5px);
  line-height: 1.7;
  max-width: 38em;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.frame-question {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.3vw, 24px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.45;
  max-width: 34em;
}

/* Wraps onto multiple lines, so it can't use the stretched-SVG technique
   above — box-decoration-break gives each wrapped line its own stroke. */
.frame-question .tusj-bg {
  background-image: url("assets/tusj.svg");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.55em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding-bottom: 0.08em;
}

.agenda-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: clamp(22px, 3.2vw, 36px);
}

.agenda-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-text);
}

.agenda-questions {
  display: grid;
  gap: 14px;
}

.agenda-question {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
}

.agenda-question .qnum {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-weak);
  text-align: right;
}

.agenda-question .qtext {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

.agenda-footnote {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--gray-text);
  border-top: 1px solid var(--hairline);
  margin-top: 22px;
  padding-top: 18px;
}

/* ==========================================================================
   6. 04 · Deltakere
   ========================================================================== */

.deltakere-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 34px clamp(40px, 6vw, 84px);
}

.deltakere-photo {
  height: clamp(200px, 26vw, 290px);
  width: 100%;
  background: var(--hairline);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(20px, 3vw, 30px);
  object-fit: cover;
}

.deltakere-photo.placeholder {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-text);
  text-align: center;
  padding: 20px;
  line-height: 1.6;
}

.deltakere-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-text);
  margin-top: 10px;
}

.deltakere-right p:first-child {
  font-family: var(--font-sans);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  margin-bottom: 18px;
}

.deltakere-right p:last-child {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.65;
  color: var(--ink-mid);
}

/* ==========================================================================
   7. 05 · Praktisk
   ========================================================================== */

.praktisk-table {
  border-top: 1px solid var(--ink);
}

.praktisk-row {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 6px clamp(20px, 4vw, 56px);
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.praktisk-row .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-text);
}

.praktisk-row .value {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.45;
}

/* ==========================================================================
   8. 06 · Ofte stilte spørsmål
   ========================================================================== */

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px clamp(30px, 5vw, 70px);
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.faq-row .q {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.faq-row .a {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-mid);
  max-width: 38em;
}

.faq-row .a a {
  text-decoration-line: underline;
  text-decoration-color: var(--gray-weak);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

/* ==========================================================================
   9. 07 · Interesseskjema
   ========================================================================== */

.skjema-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 34px clamp(40px, 6vw, 80px);
}

.skjema-left h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 18px;
}

.skjema-left > p {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.8vw, 18.5px);
  line-height: 1.7;
  margin-bottom: 22px;
}

.skjema-points {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
  margin-bottom: clamp(24px, 3.4vw, 32px);
}

.skjema-points p {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--gray-text);
}

.host-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: clamp(20px, 2.6vw, 26px);
  max-width: 26em;
}

.host-card-head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-text);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.host-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.host-row img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 1px solid var(--hairline);
}

.host-row .name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 19px;
}

.host-row .role {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink-mid);
  margin-top: 2px;
}

.host-contact {
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.host-contact a { text-decoration: none; color: var(--ink); }
.host-contact a:hover { color: var(--ink-mid); }

.skjema-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: clamp(22px, 3.4vw, 40px);
}

.skjema-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-text);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 20px 22px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field.span-all { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-text);
}

.field .optional {
  color: var(--gray-weak);
  text-transform: none;
  letter-spacing: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 11px 12px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 0;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.field textarea { resize: vertical; font-family: var(--font-sans); }

.consent-block {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--hairline);
  margin-top: clamp(24px, 3.4vw, 32px);
  padding-top: 18px;
}

.consent-intro {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-mid);
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.consent-checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--ink);
}

.consent-checkbox .required { color: #B3261E; }

.consent-footer {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--gray-text);
}

.consent-footer a {
  text-decoration-line: underline;
  text-decoration-color: var(--gray-weak);
  text-underline-offset: 0.2em;
}

.skjema-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(24px, 3.4vw, 32px);
}

.submit-button {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: none;
  border-radius: 0;
  transition: background 150ms;
}

.submit-button:hover { background: var(--ink-mid); }
.submit-button:active { transform: translateY(1px); }
.submit-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.submit-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.privacy-note {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--gray-text);
  max-width: 24em;
}

.privacy-note a {
  text-decoration-line: underline;
  text-decoration-color: var(--gray-weak);
  text-underline-offset: 0.2em;
}

.form-error {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #B3261E;
  margin-top: 14px;
}

.receipt-card {
  background: var(--white);
  border: 1px solid var(--ink);
  padding: clamp(22px, 3.4vw, 40px);
}

.receipt-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-text);
}

.receipt-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 16px;
}

.receipt-card p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-mid);
  max-width: 34em;
}

/* ==========================================================================
   10. Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--ink);
  padding: 26px 0 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px 40px;
}

.footer-name {
  grid-column: 1 / -1;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(32px, 5.4vw, 60px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: clamp(22px, 3.4vw, 38px);
}

.footer-statement {
  font-family: var(--font-sans);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  max-width: 22em;
}

.footer-place .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-text);
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
  margin-bottom: 10px;
}

.footer-place p {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
}
