@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-600.woff2") format("woff2");
}

/* Global colors */
:root {
  --bg: #15171c;
  --text: #e6e6e6;
  --muted: #5b6472;
  --soft: #8b93a0;
  --accent: #4fb3a9;
  --accent-glow: #4fb3a966;
  --border: #2a2d35;
  --scanline: #0004;
  --link: #f6b54c;
  --link-active: hotpink;
  --link-hover: #7fb3d5;
  --link-hover-glow: #7fb3d5aa;
  --heading: var(--text);
  --prompt: var(--muted);
  --tagline: #6b7280;
  --rot: #5b6472;
  --weight: 400;
  color-scheme: dark;
}

/* Light theme */
:root[data-theme="light"] {
  --bg: #f3f1ec;
  --text: #22262d;
  --muted: #8a919c;
  --soft: #5d6674;
  --accent: #4fb3a9;
  --accent-glow: #2a8a8033;
  --border: #cfd2d8;
  --scanline: #0000000a;
  --link: #ff5500;
  --link-active: #d6336c;
  --link-hover: #2b6fa3;
  --link-hover-glow: #2b6fa355;
  --heading: #0f1216;
  --prompt: #4a5361;
  --rot: #4a5361;
  --tagline: #4f5866;
  --weight: 500;
  color-scheme: light;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  font-family: "IBM Plex Mono", monospace;
  font-weight: var(--weight);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(#0000 0 2px, var(--scanline) 2px 3px);
  pointer-events: none;
}

header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 auto;
  text-align: left;
  padding: 24px 32px;
  font-size: 0.9rem;
  width: 60vw;
  min-width: max-content;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 20px;
}

.prompt {
  color: var(--prompt);
  margin: 0 0 4px;
}

h1 {
  color: var(--heading);
  font-size: 2.4rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 0 8px var(--accent-glow);
}

.title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 4px;
  width: 100%;
}

#theme-toggle {
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  padding: 6px;
  color: var(--soft);
  background: transparent;
  border: hidden;
  cursor: pointer;
  transition: color 0.2s, font-size 0.2s, border-color 0.2s, text-shadow 0.2s;
  user-select: none;
}

#theme-toggle:hover,
#theme-toggle:focus-visible {
  font-size: 1.5rem;
  color: var(--link-hover);
  text-shadow: 0 0 10px var(--link-hover-glow);
  outline: none;
}

#theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="light"] #theme-toggle .icon-sun {
  display: inline;
}

:root[data-theme="light"] #theme-toggle .icon-moon {
  display: none;
}

.binary {
  color: var(--accent);
  margin: 0 0 6px;
}

p.tagline {
  max-width: 40ch;
  line-height: 1.5;
  color: var(--tagline);
  font-style: italic;
  margin: 0;
}

nav,
.meta {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

a {
  text-decoration: none;
  padding: 4px 0;
}

a:any-link {
  color: var(--link);
}

a:active {
  color: var(--link-active);
}
a:hover,
a:focus-visible {
  color: var(--link-hover);
  text-shadow: 0 0 10px var(--link-hover-glow);
}

footer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 48px;
  border-top: 1px dashed var(--border);
  margin: 0 32px;
  padding: 16px 0 20px;
  font-size: 0.85rem;
}

table {
  border-collapse: collapse;
  width: 60vw;
  margin-left: auto;  /*    Center    */
  margin-right: auto; /*  The table!  */
}

table#andre_ressurser {
  margin-top: 40px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--soft);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

.rot {
  padding: 10px;
  display: inline-block;
  color: var(--rot);
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 1.5s;
  user-select: none;
}

/* les-mer.html */
.sources {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sources li {
  margin-bottom: 4px;
}

.note {
  color: var(--soft);
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  table#kilder {
    width: 100%;
  }
}

/* Make the text smaller on phones so long words like
 "Milestone" amd "kopibeskyttelse" don't overflow and dissapear.*/
@media (max-width: 600px) {
  header {
    padding: 24px 16px;
  }

  main {
    margin: 20px 10px;
  }

  table {
    width: 100%;
    font-size: 0.85rem;
  }

  th,
  td {
    padding: 8px 5px;
  }
}
