/* ÍSKROSS — production visual system
   Tokens locked to the app foundation. No new palette. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/BodoniModa-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Libre Baskerville";
  src: url("/fonts/LibreBaskerville-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/AtkinsonHyperlegibleNext-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/AtkinsonHyperlegibleNext-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/AtkinsonHyperlegibleNext-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/AtkinsonHyperlegibleNext-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/AtkinsonHyperlegibleNext-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f2ddc1;
  --page: #f0d8b8;
  --sheet: #ede3d0;
  --ink: #2a241c;
  --wool: #7a6b58;
  --forest: #1a2e28;
  --wood: #5a4333;
  --lamp: #c88946;
  --ember: #a95432;
  --skammdegi: #66747a;
  --night: #293238;
  --rule: rgba(42, 36, 28, 0.22);
  --rule-strong: rgba(42, 36, 28, 0.38);
  --shadow: rgba(90, 67, 51, 0.16);
  --focus: #1a2e28;
  --font-brand: "Bodoni Moda", "Didot", "Bodoni MT", "Times New Roman", serif;
  --font-editorial: "Libre Baskerville", "Iowan Old Style", Palatino, "Palatino Linotype", "Times New Roman", serif;
  --font-ui: "Atkinson Hyperlegible Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 38rem;
  --page-width: 68rem;
  --space: clamp(1.25rem, 3vw, 2.25rem);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image: url("/assets/images/paper-grain.png");
  background-repeat: repeat;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--forest);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus {
  outline: none;
}

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

::selection {
  background: var(--forest);
  color: var(--page);
}

.visually-hidden {
  position: absolute;
  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;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  z-index: 20;
  padding: 0.45rem 0.75rem;
  background: var(--sheet);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--rule-strong);
}

.skip-link:focus-visible {
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
  top: 0.75rem;
  left: 0.75rem;
}

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

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.35rem 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  position: relative;
  display: block;
  line-height: 0;
  flex: 0 1 16rem;
}

.brand img {
  width: min(15.5rem, 100%);
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--forest);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.28em;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(2.25rem, 6vw, 4.25rem) 2rem;
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-family: var(--font-editorial);
  font-size: clamp(2rem, 4.4vw, 3.05rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.lede,
.copy {
  max-width: var(--measure);
  color: var(--ink);
}

.lede p,
.copy p,
.legal p {
  margin: 0 0 1rem;
}

.lede p:last-child,
.copy p:last-child {
  margin-bottom: 0;
}

.store-status {
  margin: 1.75rem 0 0;
  max-width: var(--measure);
}

.store-status .kicker,
.kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 0.28rem;
}

.store-status .names {
  font-family: var(--font-editorial);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.plate {
  background: var(--page);
  padding: 0.55rem;
  border: 1px solid var(--rule);
  box-shadow:
    0 1px 0 rgba(42, 36, 28, 0.08),
    0 10px 22px var(--shadow);
}

.plate img,
.plate picture {
  display: block;
  width: 100%;
}

.plate figcaption {
  margin: 0.7rem 0.35rem 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wood);
}

.photo-plate {
  padding-block: 0.5rem 2.5rem;
}

.photo-plate .plate {
  padding: 0.7rem;
}

section {
  padding-block: clamp(2.25rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
}

.section-head {
  max-width: var(--measure);
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-editorial);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
}

.section-head h2.display {
  font-size: clamp(1.85rem, 3.4vw, 2.4rem);
  letter-spacing: 0.04em;
}

.italic {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
}

.plates-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.rule-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  max-width: 34rem;
}

.rule-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
  font-weight: 600;
  color: var(--ink);
}

.rule-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.stamp {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.38em 0.72em 0.3em;
  border: 1px solid var(--forest);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 24rem);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.publisher {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  align-items: center;
  max-width: 40rem;
}

.publisher > picture {
  width: 6.5rem;
}

.forvitinn {
  width: 6.5rem;
  height: auto;
  display: block;
}

.publisher-copy p {
  margin: 0 0 0.55rem;
}

.publisher-copy p:last-child {
  margin-bottom: 0;
}

.publisher-mark {
  width: min(14rem, 100%);
  height: auto;
  display: block;
  margin-top: 0.85rem;
}

.principle {
  font-family: var(--font-editorial);
  font-style: italic;
  color: var(--ink);
}

.support-line {
  margin-top: 1.75rem;
  color: var(--wood);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--rule-strong);
  padding-block: 1.75rem 2.5rem;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ink);
}

.footer-meta,
.footer-nav {
  margin: 0 0 0.85rem;
  color: var(--wood);
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
}

.footer-nav a {
  font-weight: 600;
  text-decoration: none;
}

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

.legal {
  padding-block: 2.25rem 4rem;
  max-width: 42rem;
}

.legal h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-editorial);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
}

.legal .meta {
  margin: 0 0 1.75rem;
  color: var(--wood);
  font-size: 0.95rem;
}

.legal h2 {
  margin: 2rem 0 0.7rem;
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  font-weight: 600;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.legal li {
  margin: 0.28rem 0;
}

.legal ol.clauses {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: clause;
}

.legal ol.clauses > li {
  counter-increment: clause;
  margin: 0 0 1.35rem;
}

.legal ol.clauses > li h2 {
  margin-top: 0;
}

.legal ol.clauses > li h2::before {
  content: counter(clause) ". ";
}

.slot-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--wood);
}

@media (max-width: 1040px) {
  .site-header {
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero .plate {
    max-width: 22rem;
  }
}

@media (max-width: 640px) {
  .plates-2 {
    grid-template-columns: 1fr;
  }

  .hero .plate {
    max-width: 18.5rem;
  }

  .publisher {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
