
:root {
  --nord-0: #2e3440;
  --nord-1: #3b4252;
  --nord-4: #d8dee9;
  --nord-6: #eceff4;
  --nord-7: #8fbcbb;
  --nord-8: #88c0d0;
  --nord-9: #81a1c1;
  --nord-10: #5e81ac;
  --nord-15: #b48ead;

  --bg-primary: var(--nord-0);
  --bg-secondary: var(--nord-1);
  --text-primary: var(--nord-6);
  --text-secondary: var(--nord-4);

  --link-default: var(--nord-8);
  --link-visited: var(--nord-15);
  --link-hover: var(--nord-7);
  --link-active: var(--nord-10);

  --font-sans:
    -apple-system, BlinkMacSystemFont, "avenir next", avenir, "segoe ui",
    "helvetica neue", Cantarell, Ubuntu, roboto, noto, helvetica, arial,
    sans-serif;
  --font-mono:
    Menlo, Consolas, Monaco, "Liberation Mono", "Lucida Console", monospace;
}

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

* {
  margin: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  line-height: 1.5;
  line-height: calc(1em + 0.5rem);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

input, button, textarea, select, h1, h2, h3, h4, h5, h6 {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  color: var(--text-primary);
  font-weight: 600;
  max-width: 100%;
}

code, kbd, pre, samp {
  font-family: var(--font-mono);
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

#root, #__next {
  isolation: isolate;
}

a {
  color: var(--link-default);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:visited {
  color: var(--link-visited);
}

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

a:active {
  color: var(--link-active);
}

p {
  margin: 1rem 0;
}

.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 32px 12px;
}

main {
  flex: 1;
  width: 100%;
}

header {
  margin-top: 32px;
  width: 100%;
}

header h1 {
  font-size: 280%;
  line-height: 1.2;
  min-width: 0;
}

header > .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}

header > .container > h1 {
  flex: 1;
  min-width: 0;
}

.logo a {
  color: var(--text-primary);
}

.logo a:visited {
  color: var(--text-primary);
}

.logo span {
  color: var(--link-default);
}

.logo span.sub-path {
  font-weight: 200;
  color: var(--text-secondary);
  word-break: break-all;
}

.logo span.sub-path::before {
  content: "/u/";
  color: var(--link-visited);
}

.button,
header > .container nav > a {
  background-color: var(--bg-secondary);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--link-default);
  margin-left: 1rem;
  white-space: nowrap;
}

.button:visited,
header > .container nav > a:visited {
  color: var(--link-default);
}

.button:hover,
header > .container nav > a:hover {
  color: var(--link-hover);
  background-color: var(--nord-0);
}

.button:active,
header > .container nav > a:active {
  color: var(--link-active);
}

.members {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 68px 0;
}

.members > div {
  border-left: 6px solid var(--link-default);
  background-color: var(--bg-secondary);
  padding: 16px;
  font-size: 0.9rem;
  color: var(--link-default);
  min-width: 0;
}

.members > div > div {
  margin-bottom: 12px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

.members > div > div > h2 {
  font-size: 1.1rem;
  flex: 1;
  color: var(--text-primary);
  min-width: 0;
}

.members > div > div > span {
  text-transform: uppercase;
  font-weight: 200;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.members > div > nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.members > div > nav > a {
  background-color: var(--bg-primary);
  padding: 2px 8px;
  font-size: 0.85rem;
  border-radius: 2px;
  color: var(--link-default);
}

.members > div > nav > a:visited {
  color: var(--link-default);
}
.members > div > nav > a:hover {
  color: var(--link-hover);
}

.no-elts {
  color: var(--link-default);
  border-left: 8px solid var(--bg-secondary);
  padding: 32px;
  margin: 64px 0;
  font-family: "Iowan Old Style", "Apple Garamond", Baskerville, serif;
  font-size: 1.8rem;
  overflow-wrap: break-word;
}

.member {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 48px;
}

.member > div:first-child {
  flex: 1;
  min-width: 200px;
}

.member > div:last-child {
  flex: 3;
  min-width: 0;
}

.member section {
  margin-top: 48px;
}

.member h2 {
  font-weight: 400;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--bg-secondary);
  padding-bottom: 8px;
}

.member .link-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.member .link-list > div {
  background-color: var(--bg-secondary);
  padding: 4px 12px;
  font-size: 0.9rem;
}

.member nav > div > a,
.member .link-list > div > a {
  font-weight: 300;
  color: var(--link-default);
}

.member nav > div > a:visited,
.member .link-list > div > a:visited {
  color: var(--link-default);
}
.member nav > div > a:hover,
.member .link-list > div > a:hover {
  color: var(--link-hover);
}

.member nav {
  display: flex;
  background-color: var(--bg-secondary);
  flex-direction: row;
  margin-top: 2rem;
}

.member nav > div {
  flex: 1;
  padding: 8px 12px;
}

.member nav > div:last-child {
  text-align: right;
}

section.articles {
  margin-top: 64px;
  font-size: 0.95rem;
  padding-bottom: 32px;
}

section.articles article {
  border-bottom: 4px solid var(--bg-secondary);
  padding-bottom: 32px;
  margin-bottom: 32px;
}

section.articles article:last-child {
  border-bottom-color: transparent;
}

section.articles .lang > span {
  margin-bottom: 12px;
  background-color: var(--bg-secondary);
  padding: 4px 12px;
  display: inline-block;
  color: var(--link-default);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
}

section.articles .date span {
  color: var(--link-default);
  font-weight: 700;
}

section.articles .date a {
  margin-left: 4px;
}

section.articles h2 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

section.articles h2 > a {
  color: var(--text-primary);
  font-weight: 400;
}

section.articles p {
  padding: 8px 0;
  font-weight: 300;
  color: var(--text-secondary);
}

section.articles ul.tags {
  padding: 0;
}

section.articles ul.tags > li {
  list-style: none;
  display: inline-block;
  padding: 4px 8px 4px 0;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

section.articles ul.tags > li::before {
  content: "#";
  color: var(--link-default);
}

footer {
  color: var(--text-secondary);
  padding: 48px 0;
  border-top: 1px solid var(--bg-secondary);
  margin-top: 64px;
}

footer p {
  font-size: 0.85rem;
  margin: 0;
}

footer nav {
  margin-top: 24px;
  font-size: 0.85rem;
}

footer nav a {
  margin-right: 16px;
}

div.frame {
  display: flex;
  flex-direction: column;
  flex: 1;
}

div.frame aside {
  padding: 1.5rem;
  background: var(--bg-secondary);
}

div.frame aside nav {
  margin-top: 0.5rem;
}

div.frame aside nav a {
  display: inline-block;
  margin-right: 1rem;
  font-weight: 700;
}

div.frame > iframe {
  flex: 1;
  background-color: #fff;
  border: none;
}

@media all and (max-width: 1024px) {
  .members {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media all and (max-width: 820px) {
  .container {
    padding: 24px 16px;
    width: 100%;
  }

  .members {
    grid-template-columns: 1fr;
    margin: 48px 0;
  }

  header h1 {
    line-height: 4rem;
    margin-bottom: 32px;
    width: 100%;
  }

  header > .container {
    flex-direction: column;
    align-items: flex-start;
  }

  header > .container nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 0;
  }

  header > .container nav > a {
    margin-left: 0;
    margin-right: 8px;
    margin-bottom: 8px;
  }

  .member {
    flex-direction: column;
    gap: 32px;
  }

  .member > div:first-child {
    min-width: auto;
  }

  .member img {
    margin: 0 auto;
  }

  .member .link-list {
    flex-direction: column;
    width: 100%;
  }

  .member .link-list > div {
    width: 100%;
    text-align: center;
  }
}
