/* Studio: skelin utan um leiðina í gegn. Gildin koma úr design-tokens.json. */

@font-face {
  font-family: 'Aeonik Pro';
  font-style: normal;
  font-weight: 300;
  src:
    url('/fonts/AeonikPro-Light.woff2') format('woff2'),
    url('/fonts/AeonikPro-Light.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik Pro';
  font-style: normal;
  font-weight: 400;
  src:
    url('/fonts/AeonikPro-Regular.woff2') format('woff2'),
    url('/fonts/AeonikPro-Regular.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik Pro';
  font-style: normal;
  font-weight: 500;
  src:
    url('/fonts/AeonikPro-Medium.woff2') format('woff2'),
    url('/fonts/AeonikPro-Medium.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik Pro';
  font-style: normal;
  font-weight: 600;
  src:
    url('/fonts/AeonikPro-Medium.woff2') format('woff2'),
    url('/fonts/AeonikPro-Medium.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik Pro';
  font-style: normal;
  font-weight: 700;
  src:
    url('/fonts/AeonikPro-Bold.woff2') format('woff2'),
    url('/fonts/AeonikPro-Bold.woff') format('woff');
  font-display: swap;
}

:root {
  --paper: #f7f7f3;
  --paper-alt: #fbfbf7;
  --surface: #ffffff;
  --ink: #143d31;
  --text: #1f2a26;
  --muted: #697770;
  --line: #dce2dc;
  --line-alt: #e1ddd3;
  --accent: #dbffb9;
  --clay: #a4492a;
  --clay-ink: #8a3a20;
  --brand: #185844;
  --brand-tint: color-mix(in oklch, var(--brand) 11%, #ffffff);
  --brand-ink: color-mix(in oklch, var(--brand) 70%, #000000);
  --on-brand: #ffffff;
  --nav-width: 244px;
  --top-height: 64px;
  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 16px;
  --shadow-hairline: 0 0 0 1px var(--line) inset;
  --shadow-raised: 0 1px 2px rgba(20, 61, 49, 0.05), 0 6px 18px rgba(20, 61, 49, 0.06);
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font:
    16px/1.5 'Aeonik Pro',
    'Helvetica Neue',
    Arial,
    sans-serif;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.15;
}
h2 {
  font-size: 20px;
  line-height: 1.2;
  margin: 32px 0 12px;
}
h3 {
  font-size: 17px;
  line-height: 1.3;
}
p {
  margin: 0 0 16px;
}
.muted,
.meta {
  color: var(--muted);
}
.meta {
  font-size: 14px;
}

/* ---------------------------------------------------------------- toppstika */

.top {
  height: var(--top-height);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: var(--nav-width) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 20px 0 16px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.top .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}
.top .brand img {
  display: block;
}
.top .brand .rule {
  width: 1px;
  height: 28px;
  background: var(--line);
}
.top .brand .ws {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.top .brand .ws strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top .brand .ws small {
  font-size: 11px;
  color: var(--muted);
}
.top .search {
  justify-self: center;
  width: min(560px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-alt);
  color: var(--muted);
}
.top .search:focus-within {
  border-color: var(--brand);
  background: var(--surface);
}
.top .search input {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  color: var(--text);
  outline: none;
  min-width: 0;
  padding: 0;
  height: auto;
}
.top .search kbd {
  font: inherit;
  font-size: 12px;
  color: var(--muted);
}
.top .me {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top .me .who {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}
.top .me .who strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.top .me .who small {
  font-size: 11px;
  color: var(--muted);
}
.top .me form {
  margin: 0;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
button.ghost {
  min-height: 36px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
}

/* ---------------------------------------------------------------- skelin */

.shell {
  display: grid;
  grid-template-columns: var(--nav-width) minmax(0, 1fr);
  min-height: calc(100vh - var(--top-height));
}
.side {
  background: var(--paper-alt);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: var(--top-height);
  height: calc(100vh - var(--top-height));
}
.side a.item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: background 120ms var(--ease);
}
.side a.item svg {
  color: var(--muted);
  flex: none;
}
.side a.item:hover {
  background: #edf1ec;
}
.side a.item.active {
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-weight: 700;
}
.side a.item.active svg {
  color: var(--brand-ink);
}
.side a.item span {
  flex: 1;
}
.side .count {
  font-style: normal;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.side-note {
  margin-top: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.side-note strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 4px;
}
.side-note p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

main.content {
  padding: 32px clamp(20px, 3vw, 48px) 80px;
  max-width: 1240px;
  width: 100%;
}
main.content.narrow {
  max-width: 880px;
}

/* Hausinn á síðu: eyebrow, titill, lýsing og aðgerðir hægra megin. */
.hero {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-hairline);
  padding: 26px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
}
.hero > div:first-child,
.hero .text {
  min-width: 0;
  flex: 1;
}
.hero .eyebrow,
.eyebrow {
  display: block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero h1 {
  margin: 0;
}
.hero .lead {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 640px;
}
.hero .actions {
  margin: 0;
  flex: none;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.page-head .lead {
  margin: 6px 0 0;
  color: var(--muted);
}
.crumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}
.crumbs a {
  color: var(--muted);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.section-head .note {
  font-size: 13px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- hlutir */

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hairline);
  padding: 20px 24px;
  margin-top: 16px;
}
.card.pad-0 {
  padding: 0;
}
.card.pad-0 .row {
  padding-left: 24px;
  padding-right: 24px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.row:first-child {
  border-top: none;
}
.row a {
  text-decoration: none;
}
.row a:hover {
  text-decoration: underline;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.grid .card {
  margin-top: 0;
}
a.card {
  text-decoration: none;
  transition:
    box-shadow 120ms var(--ease),
    transform 120ms var(--ease);
}
a.card:hover {
  box-shadow: var(--shadow-hairline), var(--shadow-raised);
}
.columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: start;
}
.columns.even {
  grid-template-columns: 1fr 1fr;
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 999px;
  background: #edebe5;
  color: var(--muted);
  white-space: nowrap;
  vertical-align: middle;
}
.badge.published,
.badge.in_sync {
  background: var(--brand-tint);
  color: var(--brand-ink);
}
.badge.in_review,
.badge.changed,
.badge.open {
  background: #f6edc4;
  color: #6b5a12;
}
.badge.approved {
  background: #e0e8f3;
  color: #26496e;
}
.badge.warn,
.badge.rejected,
.badge.stale {
  background: #f6ddd6;
  color: var(--clay-ink);
}

.notice {
  background: var(--brand-tint);
  color: var(--brand-ink);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 0 0 20px;
  font-weight: 500;
}
.notice.error {
  background: #f6ddd6;
  color: var(--clay-ink);
}
.empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 6px;
}

/* ---------------------------------------------------------------- efni */

.block {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.block:first-child {
  border-top: none;
  padding-top: 0;
}
.block p {
  margin: 0;
}
.block ol {
  margin: 8px 0 0;
  padding-left: 20px;
}
.block .ref {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.block .ref.warn {
  color: var(--clay-ink);
  font-weight: 500;
}
.callout {
  background: var(--brand-tint);
  border-left: 3px solid var(--brand);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
}
details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

/* ---------------------------------------------------------------- form */

label {
  display: block;
  font-weight: 500;
  margin: 16px 0 6px;
}
input[type='email'],
input[type='text'],
input[type='file'],
textarea,
select {
  width: 100%;
  border: 1px solid #d6d2c8;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font: inherit;
  background: var(--surface);
}
input[type='email'],
input[type='text'],
select {
  height: 52px;
}
textarea {
  min-height: 96px;
  resize: vertical;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 400;
  margin: 10px 0;
  min-height: 44px;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 0;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--on-brand);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: filter 120ms var(--ease);
}
button:hover,
.button:hover {
  filter: brightness(0.95);
}
button:disabled {
  opacity: 0.6;
  cursor: default;
}
.button.secondary,
button.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.button.secondary:hover,
button.secondary:hover {
  border-color: #8ea097;
  filter: none;
}
.button.danger,
button.danger {
  background: var(--surface);
  color: var(--clay-ink);
  border: 1px solid #d9b8ac;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.error {
  color: var(--clay-ink);
  font-weight: 500;
}
.drop {
  border: 1.5px dashed #cfcbc1;
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--paper-alt);
}

/* ---------------------------------------------------------------- innskráning */

.plain {
  max-width: 480px;
  margin: 0 auto;
  padding: 64px 16px 80px;
}
.plain h1 {
  font-size: 32px;
  margin-bottom: 8px;
}
.plain .product {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

/* ---------------------------------------------------------------- sími */

@media (max-width: 900px) {
  .columns,
  .columns.even {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .top {
    grid-template-columns: 1fr auto;
    height: auto;
    padding: 10px 12px;
    row-gap: 10px;
  }
  .top .search {
    grid-column: 1 / -1;
    width: 100%;
  }
  .top .me .who,
  .top .brand .rule,
  .top .brand .ws small {
    display: none;
  }
  .shell {
    grid-template-columns: 1fr;
  }
  .side {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .side a.item {
    min-height: 40px;
    padding: 0 12px;
  }
  .side a.item svg {
    display: none;
  }
  .side-note {
    display: none;
  }
  main.content {
    padding: 20px 16px 64px;
  }
  .hero {
    flex-direction: column;
    padding: 20px;
  }
}
