@font-face{
  font-family: 'Source Serif VF';
  font-weight: 200 900;
  font-style: normal;
  font-stretch: normal;
  src: url('./fonts/SourceSerif4Variable-Roman.ttf.woff2') format('woff2'),
       url('./fonts/SourceSerif4Variable-Roman.ttf.woff') format('woff'),
       url('./fonts/SourceSerif4Variable-Roman.ttf') format('truetype');
}

@font-face{
  font-family: 'Source Serif VF';
  font-weight: 200 900;
  font-style: italic;
  font-stretch: normal;
  src: url('./fonts/SourceSerif4Variable-Italic.ttf.woff2') format('woff2'),
       url('./fonts/SourceSerif4Variable-Italic.ttf.woff') format('woff'),
       url('./fonts/SourceSerif4Variable-Italic.ttf') format('truetype');
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-weight: normal;
  font-style: normal;
  src: url('./fonts/Atkinson-Hyperlegible-Regular-102.woff2') format('woff2'),
       url('./fonts/Atkinson-Hyperlegible-Regular-102.woff') format('woff'),
       url('./fonts/Atkinson-Hyperlegible-Regular-102.ttf') format('truetype');
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-weight: normal;
  font-style: italic;
  src: url('./fonts/Atkinson-Hyperlegible-Italic-102.woff2') format('woff2'),
       url('./fonts/Atkinson-Hyperlegible-Italic-102.woff') format('woff'),
       url('./fonts/Atkinson-Hyperlegible-Italic-102.ttf') format('truetype');
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-weight: bold;
  font-style: normal;
  src: url('./fonts/Atkinson-Hyperlegible-Bold-102.woff2') format('woff2'),
       url('./fonts/Atkinson-Hyperlegible-Bold-102.woff') format('woff'),
       url('./fonts/Atkinson-Hyperlegible-Bold-102.ttf') format('truetype');
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-weight: bold;
  font-style: italic;
  src: url('./fonts/Atkinson-Hyperlegible-BoldItalic-102.woff2') format('woff2'),
       url('./fonts/Atkinson-Hyperlegible-BoldItalic-102.woff') format('woff'),
       url('./fonts/Atkinson-Hyperlegible-BoldItalic-102.ttf') format('truetype');
}

:root {
  font-size: 1.6em;
}

body {
  font-family: 'Atkinson Hyperlegible', sans-serif;
}

h1,h2,h3 {
  text-align: center;
}

main > section {
    min-height: 100vh;
}

h1 {
  /* font-family: 'League Spartan';*/
  font-size: 2.5em;
  font-weight: 800;
  font-variation-settings: 'opsz' 60;
}

h5 {
  font-size: 1em;
  font-weight: 700 !important;
  margin: 0;
  margin-top: 0.5rem;
  margin-bottom: 0.2rem;
}

.breytingar, .temp {
  font-size: 0.8em;
  display: grid;
  grid-template: auto auto / 1fr 1fr;
  border: 1px solid silver;
  max-width: 90em;
  margin-left: auto;
  margin-right: auto;
}

:is(.breytingar, .temp) > header {
  /* font-family: 'League Spartan'; */
  font-size: 0.9em;
  font-weight: 600;
  font-variation-settings: 'opsz' 8;
  grid-row: 1;
  grid-column-end: span 2;
  justify-self: center;
}

.breytingar > :is(.fyrir,.eftir) {
  padding-left: 1ch;
  padding-right: 1ch;
}

.breytingar p {
  max-width: 45em;
}

.temp > p {
  grid-column: 1 / span 2;
}

.fyrir {
  border-top: 1px solid red;
  border-right: 1px solid silver;
}

.eftir {
  border-top: 1px solid green;
}

ins, del {
  font-weight: 600;
}

ins {
  color: darkgreen;
}

del {
  color: firebrick;
}

span.moved {
  color: darkgoldenrod;
  text-decoration: underline;
}

.draft {
  color: silver;
}

p {
  margin: 0;
  margin-top: 0.5em;
  text-align: justify;
  hyphens: auto;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

p + p {
  margin-top: 0;
  text-indent: 0.5em;
}

p:last-child {
  margin-bottom: 0.5em;
}

/* Nabbed from https://kittygiraudel.com/snippets/sr-only-class/ */
.sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: -1px !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}
