/*
  acediaworks.com, the company site of Acedia Works AS.

  No build step and no script: this file is the whole design. Inter is self-hosted (the same
  files as the havnlink.no holding page), so the Content Security Policy in _headers can stay
  'self' only.
*/

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F,
    U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-alt: #eeebe3;
  --fg: #16181d;
  --fg-muted: #4f535c;
  --fg-subtle: #6a6e77;
  --line: #dfdbd1;
  --line-strong: #c9c4b8;
  --accent: #b4441c;
  --accent-hover: #933614;
  --accent-soft: #f6e6dc;
  --ink: #12151b;
  --ink-fg: #f3f1ec;
  --ink-muted: #a9adb6;
  --ink-line: rgb(255 255 255 / 0.12);
  --ring: #b4441c;
  --shadow-1: 0 1px 2px rgb(20 18 12 / 0.05), 0 2px 6px rgb(20 18 12 / 0.05);
  --shadow-2: 0 4px 10px rgb(20 18 12 / 0.06), 0 24px 48px -20px rgb(20 18 12 / 0.28);
  --radius: 14px;
  --radius-sm: 8px;
  --font: "Inter", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page-max: 72rem;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111317;
    --surface: #191c22;
    --surface-alt: #1e2128;
    --fg: #ecebe7;
    --fg-muted: #b3b6bd;
    --fg-subtle: #9a9ea6;
    --line: #2a2e36;
    --line-strong: #3a3f49;
    --accent: #f08a5d;
    --accent-hover: #f6a582;
    --accent-soft: #3a2219;
    --ink: #0a0c0f;
    --ring: #f08a5d;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-2: 0 4px 10px rgb(0 0 0 / 0.3), 0 24px 48px -20px rgb(0 0 0 / 0.6);
  }
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--fg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-2);
}
.skip-link:focus { top: 12px; }

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--fg); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .brand-sub { color: var(--fg-subtle); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}
.site-nav a:hover { color: var(--fg); background: var(--surface-alt); }
.site-nav .nav-link { display: none; }
@media (min-width: 760px) { .site-nav .nav-link { display: inline-block; } }
.site-nav .lang {
  margin-left: 6px;
  border: 1px solid var(--line-strong);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 10px;
}

/* Hero */

.hero { padding-block: 72px 56px; }
@media (min-width: 960px) { .hero { padding-block: 112px 88px; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin-top: 20px;
  max-width: 18ch;
  font-size: clamp(2.375rem, 6.4vw, 4.5rem);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero .lead {
  margin-top: 24px;
  max-width: 40rem;
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  color: var(--fg-muted);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 120ms, color 120ms, border-color 120ms;
}
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { background: var(--fg); color: var(--bg); }
.button-primary:hover { background: var(--accent); color: #fff; }
.button-secondary { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.button-secondary:hover { border-color: var(--fg); color: var(--fg); }

.hero-facts {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 760px) { .hero-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero-facts div { background: var(--bg); padding: 20px; }
.hero-facts dt { font-size: 0.8125rem; color: var(--fg-subtle); }
.hero-facts dd { margin: 4px 0 0; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }

/* Sections */

.section { padding-block: 72px; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .section { padding-block: 104px; } }

.section-head { max-width: 44rem; }
.section-head h2 {
  margin-top: 16px;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
}
.section-head p.intro { margin-top: 16px; color: var(--fg-muted); font-size: 1.125rem; }

/* Product */

.product {
  margin-top: 48px;
  display: grid;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 24px;
  box-shadow: var(--shadow-1);
}
@media (min-width: 960px) {
  .product { grid-template-columns: 5fr 6fr; gap: 56px; padding: 48px; align-items: center; }
}

.product-name { display: flex; align-items: center; gap: 12px; }
.product-name svg { width: 54px; height: 26px; flex: none; }
.product-name h3 { font-size: 1.75rem; letter-spacing: -0.025em; }

.badge {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
}

.product p.desc { margin-top: 16px; color: var(--fg-muted); }

.product ul.points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.product ul.points li { display: flex; gap: 12px; align-items: flex-start; }
.product ul.points svg {
  width: 20px; height: 20px; flex: none; margin-top: 3px;
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.platforms { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.platforms span {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.product .button { margin-top: 28px; }

.shots { margin: 0; }
.shot-stack { position: relative; margin-right: 12px; }
.shot-desktop {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  background: var(--surface-alt);
}
.shot-desktop .bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.shot-desktop .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.shot-phone {
  position: absolute;
  right: -6px;
  bottom: -28px;
  width: 30%;
  min-width: 108px;
  border-radius: 22px;
  overflow: hidden;
  border: 5px solid var(--ink);
  box-shadow: var(--shadow-2);
  background: var(--ink);
}
.shots figcaption { margin-top: 48px; font-size: 0.8125rem; color: var(--fg-subtle); }

/* Principles */

.principles {
  margin-top: 48px;
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) { .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

.principle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.principle .num {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.principle h3 { margin-top: 20px; font-size: 1.25rem; }
.principle p { margin-top: 10px; color: var(--fg-muted); font-size: 1rem; }

/* About / company */

.about-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }

.about-copy p + p { margin-top: 16px; }
.about-copy p { color: var(--fg-muted); }
.about-copy .about-title + p { margin-top: 24px; }
.about-copy .eyebrow { color: var(--accent); }

.facts {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}
.facts div {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.facts dt { color: var(--fg-subtle); font-size: 0.9375rem; }
.facts dd { margin: 0; font-weight: 500; }

/* Contact band */

.contact {
  background: var(--ink);
  color: var(--ink-fg);
  border-top: 0;
}
.contact .eyebrow { color: #f08a5d; }
.contact .section-head h2 { color: var(--ink-fg); }
.contact .section-head p.intro { color: var(--ink-muted); }

.contact-cards {
  margin-top: 40px;
  display: grid;
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 760px) { .contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-cards > div { background: var(--ink); padding: 28px; }
.contact-cards dt { color: var(--ink-muted); font-size: 0.875rem; }
.contact-cards dd { margin: 8px 0 0; font-size: 1.125rem; font-weight: 550; }
.contact-cards a { color: var(--ink-fg); text-decoration-color: rgb(255 255 255 / 0.35); }
.contact-cards a:hover { color: #f6a582; }

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--ink-muted);
  border-top: 1px solid var(--ink-line);
  padding-block: 32px 40px;
  font-size: 0.875rem;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--ink-fg); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Plain text pages (privacy, 404) */

.prose { padding-block: 64px 96px; max-width: 46rem; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; margin-top: 16px; }
.prose .updated { margin-top: 12px; color: var(--fg-subtle); font-size: 0.9375rem; }
.prose h2 { margin-top: 44px; font-size: 1.375rem; }
.prose p, .prose ul { margin-top: 14px; color: var(--fg-muted); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--fg); font-weight: 600; }

.about-title { margin-top: 16px; font-size: clamp(1.875rem, 4vw, 2.75rem); letter-spacing: -0.03em; }

/* Marks that follow the colour scheme */
.brand .mark-bg { fill: var(--fg); }
.brand .mark-a { stroke: var(--bg); }
@media (prefers-color-scheme: dark) {
  .product-name .logo-navy { fill: #c9d4e6; }
}
