/* UiA Grimstad Kanonball — sections below follow the order of the page. */


/* --- Settings ------------------------------------------------------------ */

:root {
  --cream:  #efe6d4;              /* page background */
  --ink:    #1e1a15;              /* near-black: text and borders */
  --orange: #ff4d1c;              /* main accent */
  --sand:   #ffd9a0;              /* soft yellow panels */
  --rust:   #c93b12;              /* links */
  --body:   #3b342a;              /* paragraph text */
  --label:  #6b6153;              /* small grey labels */

  --font-display: "Alfa Slab One", Georgia, serif;
  --font-ui: "Barlow Condensed", Arial, sans-serif;
  --font-body: "Work Sans", Helvetica, Arial, sans-serif;

  --page-width: 1180px;
  --page-gutter: clamp(16px, 4vw, 40px);
  --border: 3px solid var(--ink);
}


/* --- Base ---------------------------------------------------------------- */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(30, 26, 21, 0.10) 1px, transparent 1.4px);
  background-size: 4px 4px;       /* dotted paper texture */
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--ink); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}


/* --- Language ------------------------------------------------------------
   Both languages sit in the HTML; these hide the one not selected.
   script.js flips data-lang on <html>. With no JS the page stays Norwegian. */

html[data-lang="no"] [lang="en"] { display: none; }
html[data-lang="en"] [lang="no"] { display: none; }


/* --- Shared layout ------------------------------------------------------- */

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

.section {
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(40px, 7vw, 88px);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.section-lead {
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.6;
  max-width: 34em;
  color: var(--body);
  text-wrap: pretty;
  margin: 0 0 clamp(28px, 4vw, 44px);
}

/* Small uppercase label above a headline. */
.kicker {
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--rust);
  margin: 0 0 12px;
}


/* --- Buttons -------------------------------------------------------------
   Same shape throughout; --btn-shadow sets the hard shadow colour. */

.btn {
  --btn-shadow: var(--ink);

  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: var(--border);
  border-radius: 4px;
  box-shadow: 6px 6px 0 var(--btn-shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

/* Press effect: slides into its own shadow. */
.btn:hover,
.btn:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--btn-shadow);
}

.btn--orange {
  background: var(--orange);
  color: var(--ink);
  font-size: clamp(18px, 3.4vw, 24px);
  padding: 16px 26px;
  min-height: 48px;
}

.btn--orange:hover { color: var(--ink); }

.btn--dark {
  --btn-shadow: var(--orange);
  background: var(--ink);
  color: var(--sand);
  font-size: clamp(16px, 2.8vw, 20px);
  padding: 14px 22px;
  min-height: 48px;
}

.btn--dark:hover { color: var(--sand); }

.btn--on-dark {
  --btn-shadow: var(--cream);
  background: var(--orange);
  color: var(--ink);
  border-color: var(--cream);
  font-size: clamp(19px, 3.6vw, 28px);
  padding: 18px 30px;
  min-height: 52px;
}

.btn--on-dark:hover { color: var(--ink); }

/* The @handle pill inside the hero button. */
.btn__pill {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72em;
  letter-spacing: 0;
  text-transform: none;
  background: var(--ink);
  color: var(--sand);
  padding: 4px 10px;
  border-radius: 999px;
}


/* --- Header -------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  border-bottom: 3px solid var(--orange);
}

.header__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;             /* pushes the rest to the right */
}

.logo__ball {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--cream);
}

.logo__name {
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  line-height: 1.05;
  font-size: clamp(13px, 2.6vw, 16px);
  color: var(--cream);
}

.logo:hover .logo__name { color: var(--cream); }

.logo__name em { color: var(--orange); font-style: normal; }

/* NO / EN switch */

.lang {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 2px solid rgba(239, 230, 212, 0.35);
  border-radius: 999px;
}

.lang button {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  min-height: 32px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(239, 230, 212, 0.75);
  cursor: pointer;
}

/* Highlight the language currently showing. */
html[data-lang="no"] .lang button[value="no"],
html[data-lang="en"] .lang button[value="en"] {
  background: var(--orange);
  color: var(--ink);
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 15px;
  padding: 9px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--cream);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.header__cta:hover,
.header__cta:focus-visible {
  color: var(--ink);
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--cream);
}

/* Instagram glyph, drawn so there is no icon file. */
.icon-instagram {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2.5px solid var(--ink);
  border-radius: 4px;
  flex: none;
}

.icon-instagram::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}


/* --- Hero ---------------------------------------------------------------- */

.hero {
  padding-top: clamp(28px, 6vw, 72px);
  padding-bottom: clamp(24px, 5vw, 56px);
  display: flex;
  justify-content: center;
}

.hero__inner {
  width: 100%;
  max-width: 840px;
  text-align: center;
  container-type: inline-size;     /* headline scales to this box */
}

.hero__tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(12px, 2.4vw, 14px);
  background: var(--sand);
  border: 2px solid var(--ink);
  padding: 5px 12px;
  transform: rotate(-1.5deg);
  margin: 0 0 18px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 10cqw, 82px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0 0 18px;
}

.hero__title > span { display: block; }

/* Second line: orange fill, dark outline. */
.hero__title .outlined {
  color: var(--orange);
  -webkit-text-stroke: 2px var(--ink);
}

.hero__text {
  font-size: clamp(16px, 2.6vw, 20px);
  line-height: 1.55;
  max-width: 30em;
  margin: 0 auto 28px;
  color: var(--body);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.hero__stamp {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  border: 3px solid var(--orange);
  padding: 10px 16px;
  transform: rotate(-2deg);
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(13px, 2.4vw, 16px);
  margin: 0;
}


/* --- Ticker -------------------------------------------------------------- */

.ticker {
  background: var(--ink);
  color: var(--cream);
  border-top: var(--border);
  border-bottom: var(--border);
  padding: 12px 16px;
  overflow: hidden;
}

.ticker__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(12px, 2.2vw, 15px);
}

.ticker__star { color: var(--orange); }


/* --- Cards --------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.card {
  background: var(--cream);
  border: var(--border);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 6px 6px 0 rgba(30, 26, 21, 0.16);
}

.card__number {
  font-family: var(--font-display);
  color: var(--orange);
  font-size: 34px;
  line-height: 1;
  margin: 0 0 12px;
}

.card__title {
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(19px, 3vw, 23px);
  margin: 0 0 8px;
}

.card__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
}


/* --- When and where ------------------------------------------------------ */

.when {
  background: var(--sand);
  border-top: var(--border);
  border-bottom: var(--border);
}

.when__inner {
  padding-top: clamp(40px, 7vw, 84px);
  padding-bottom: clamp(40px, 7vw, 84px);
  display: grid;
  grid-template-columns: 1fr;      /* stacked on phones */
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

@media (min-width: 760px) {
  .when__inner { grid-template-columns: 1fr 1fr; }
}

.when .section-title { margin-bottom: 22px; }

/* The 2px gap over a dark background draws the divider lines. */
.facts {
  display: grid;
  gap: 2px;
  border: var(--border);
  background: var(--ink);
}

.facts__row {
  background: var(--cream);
  padding: 18px clamp(16px, 2.5vw, 24px);
}

.facts__label {
  font-family: var(--font-ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--label);
  margin: 0 0 4px;
}

.facts__value {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.1;
  margin: 0;
}

/* Venue names are long. */
.facts__value--long {
  font-size: clamp(20px, 3.4vw, 27px);
  line-height: 1.15;
}

.when__note {
  font-size: clamp(15px, 2.3vw, 17px);
  line-height: 1.55;
  color: var(--body);
  margin: 20px 0 0;
  max-width: 30em;
  text-wrap: pretty;
}

.map {
  border: var(--border);
  background: var(--ink);
  box-shadow: 10px 10px 0 rgba(30, 26, 21, 0.2);
  display: flex;
  flex-direction: column;
}

.map iframe {
  width: 100%;
  height: clamp(260px, 44vw, 400px);
  border: 0;
  display: block;
  filter: saturate(0.85) contrast(1.02);
}

.map__link {
  background: var(--ink);
  color: var(--sand);
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  padding: 12px 16px;
  text-align: center;
}

.map__link:hover { color: var(--orange); }


/* --- Spond --------------------------------------------------------------- */

.spond {
  padding-top: clamp(40px, 7vw, 84px);
}

.spond__box {
  border: var(--border);
  background: var(--cream);
  box-shadow: 8px 8px 0 rgba(30, 26, 21, 0.16);
  display: grid;
  grid-template-columns: 1fr;      /* stacked on phones */
}

@media (min-width: 760px) {
  .spond__box { grid-template-columns: 1fr 1fr; }
}

.spond__text { padding: clamp(24px, 4vw, 40px); }

.spond__text .section-title {
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.04;
}

.spond__desc {
  font-size: clamp(15px, 2.3vw, 18px);
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 24px;
  max-width: 30em;
  text-wrap: pretty;
}

.spond__code {
  background: var(--sand);
  border-top: var(--border);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* Divider moves to the left edge once the panel sits beside the text. */
@media (min-width: 760px) {
  .spond__code { border-top: 0; border-left: var(--border); }
}

.spond__code-label {
  font-family: var(--font-ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--label);
  margin: 0;
}

.spond__code-value {
  font-family: var(--font-display);
  font-size: clamp(34px, 8vw, 60px);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 0;
}

.spond__code-step {
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
  max-width: 24em;
  margin: 0;
}


/* --- Instagram ----------------------------------------------------------- */

.instagram {
  padding-top: clamp(44px, 8vw, 96px);
  padding-bottom: clamp(44px, 8vw, 96px);
}

.instagram__box {
  background: var(--ink);
  color: var(--cream);
  border: var(--border);
  box-shadow: 12px 12px 0 var(--orange);
  padding: clamp(26px, 5vw, 60px);
  text-align: center;
}

.instagram .kicker {
  color: var(--orange);
  font-size: clamp(12px, 2.2vw, 15px);
  margin-bottom: 16px;
}

.instagram .section-title {
  font-size: clamp(30px, 7vw, 64px);
  line-height: 1;
  max-width: 18em;
  margin: 0 auto 18px;
  text-wrap: balance;
}

.instagram__text {
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.55;
  color: rgba(239, 230, 212, 0.85);
  max-width: 30em;
  margin: 0 auto clamp(26px, 4vw, 36px);
  text-wrap: pretty;
}

.instagram__handle {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(14px, 2.6vw, 18px);
  color: var(--sand);
  margin: 20px 0 0;
}


/* --- Footer -------------------------------------------------------------- */

.footer {
  border-top: var(--border);
  background: var(--cream);
}

.footer__inner {
  padding-top: 28px;
  padding-bottom: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 15px;
  margin: 0;
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 15px;
  color: var(--label);
}
