@font-face {
  font-family: "Oswald";
  src: url("/assets/fonts/oswald-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Code Pro";
  src: url("/assets/fonts/source-code-pro-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Code Pro";
  src: url("/assets/fonts/source-code-pro-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Source Code Pro";
  src: url("/assets/fonts/source-code-pro-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --background: #fff;
  --text: #2b2b2b;
  --muted: #5c5c5c;
  --accent: #0b5394;
  --rule: #434343;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #17181a;
    --text: #e4e4e4;
    --muted: #a8a8a8;
    --accent: #8fbbe8;
    --rule: #c4c4c4;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  background: var(--background);
  color: var(--text);
  font: 400 0.9375rem/1.6 "Source Code Pro", ui-monospace, Menlo, Consolas, monospace;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  margin: 0;
  padding-bottom: 0.25rem;
  border-bottom: 5px solid var(--rule);
  font-size: 2.75rem;
  text-transform: uppercase;
}

h2 {
  margin: 3rem 0 1rem;
  font-size: 1.5rem;
}

h3 {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.4;
}

h3 a {
  text-decoration-thickness: 1px;
}

p {
  margin: 0 0 0.5rem;
}

article {
  margin-bottom: 1.75rem;
}

.language {
  margin-bottom: 1.5rem;
  text-align: right;
  font-size: 0.875rem;
}

.role {
  margin: 0.75rem 0 1rem;
  font-style: italic;
}

.meta {
  color: var(--muted);
  font-style: italic;
}

.tech {
  color: var(--muted);
  font-size: 0.875rem;
}

.plain {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain li {
  margin-bottom: 0.5rem;
}

.plain .meta {
  display: block;
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.contacts li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.copy {
  margin: -0.375rem;
  padding: 0.375rem;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.copy svg {
  display: block;
  width: 1em;
  height: 1em;
}

.copy:hover,
.copy.copied {
  color: var(--accent);
}

.copy .icon-done,
.copy.copied .icon-copy {
  display: none;
}

.copy.copied .icon-done {
  display: inline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

footer {
  margin-top: 3rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
}

@media (max-width: 30rem) {
  h1 {
    font-size: 2.25rem;
  }

  .contacts li:first-child {
    flex-basis: 100%;
  }
}
