@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/ibmplexmono/v14/-F6pfjptAgt5VM-kVkqdyU8n1i8q131mlzKl.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/ibmplexmono/v14/-F6pfjptAgt5VM-kVkqdyU8n1i8q33tmlzKl.woff2') format('woff2');
}

:root {
  --color-gray: #7c7c7a;
  --color-gray-medium: #e1e1e0;
  --color-gray-light: #f9f7f4;
  --color-black: #1f1f1f;
  --color-red: #e77728;
  --color-white: #ffffff;
  --color-white-light: #cccccc;
}

:root {
  --theme-bg: var(--color-gray-light);
  --theme-text: var(--color-black);
  --theme-sub-text: var(--color-gray);
  --theme-link: var(--color-red);
  --theme-link-hover: var(--color-white);
  --theme-code-block: var(--color-gray-medium);
  --accordion-bg: var(--color-white);
  --accordion-border: rgba(124, 124, 122, 0.35);
  color-scheme: light dark;
  color: var(--theme-text);
  font-family: 'IBM Plex Mono', monospace;
  line-height: 1.7;
  hyphens: auto;
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  background: var(--theme-bg);
  font-size: 13px;
  margin: 0;
  max-width: 60em;
  min-height: 100vh;
  padding: 7em;
}

@media (max-width: 520px) {
  body {
    max-width: 100%;
    padding: 1.4em;
    font-size: 14px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --theme-bg: var(--color-black);
    --theme-text: var(--color-white-light);
    --theme-sub-text: var(--color-gray-medium);
    --theme-code-block: var(--color-gray);
    --accordion-bg: rgba(30, 41, 59, 0.55);
    --accordion-border: rgba(148, 163, 184, 0.4);
  }
}

a {
  color: var(--theme-link);
  font-weight: 400;
  text-decoration: none;
}

a:hover,
a:focus {
  background-color: var(--color-red);
  color: var(--theme-link-hover);
  outline: none;
  text-decoration: none;
}

p,
span {
  font-size: 1em;
  color: var(--theme-text);
}

small {
  font-size: 0.833rem;
}

.site-header h1 {
  font-size: 1em;
}

.site-header a {
  color: var(--theme-sub-text);
}

.site-header a:hover,
.site-header a:focus {
  background: none;
  color: var(--theme-sub-text);
}

main {
  margin: 3em 0;
  display: flex;
  flex-direction: column;
  gap: 3em;
}

.intro p {
  margin-bottom: 1em;
}

.section-heading {
  margin-bottom: 0.5em;
  color: var(--theme-sub-text);
  font-size: 1em;
  font-weight: 400;
}

.testimonials {
  border: 1px solid var(--accordion-border);
  border-radius: 18px;
  background: var(--accordion-bg);
  display: grid;
  gap: 1.5em;
  padding: 1.5em 1.75em;
}

.testimonial {
  margin: 0;
}

.testimonial p {
  margin: 0;
  font-style: italic;
  color: var(--theme-text);
}

.list {
  display: flex;
  flex-direction: column;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1em;
  padding: 0.3em 0;
}

.list-item + .list-item {
  border-top: 1px solid transparent;
}

.list-item h3 {
  margin: 0;
  font-size: 1em;
  font-weight: 400;
  color: var(--theme-text);
  min-width: 0;
  display: flex;
}

.list-item h3 a {
  color: var(--theme-link);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-item h3 a:hover,
.list-item h3 a:focus {
  color: var(--theme-link-hover);
}

.list-item span {
  color: var(--theme-sub-text);
  white-space: nowrap;
}

.accordion {
  display: grid;
  gap: 1em;
}

.accordion-item {
  border: 1px solid var(--accordion-border);
  border-radius: 18px;
  background: var(--accordion-bg);
  overflow: hidden;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.accordion-item:hover,
.accordion-item:focus-within {
  border-color: var(--theme-sub-text);
}

.accordion-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 1em 1.25em;
  cursor: pointer;
  font-size: 0.92em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--theme-sub-text);
  list-style: none;
}

.accordion-item summary::marker {
  content: '';
}

.accordion-item summary::after {
  content: '[+]';
  font-size: 0.85em;
  color: var(--theme-sub-text);
}

.accordion-item[open] summary::after {
  content: '[-]';
}

.accordion-item summary:focus-visible {
  outline: 2px dashed rgba(30, 64, 175, 0.55);
  outline-offset: 4px;
}

.accordion-body {
  padding: 0 1.25em 1.3em;
  display: grid;
  gap: 0.8em;
}

.accordion-list {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: 0.6em;
  color: var(--theme-text);
}

.accordion-list.numbered {
  list-style: decimal;
  padding-left: 1.6em;
}

.accordion-list a {
  color: var(--theme-link);
}

.accordion-list a:hover,
.accordion-list a:focus {
  background: var(--color-red);
  color: var(--theme-link-hover);
}

.accordion-meta {
  display: block;
  margin-top: 0.25em;
  color: var(--theme-sub-text);
  font-size: 0.85em;
}

.accordion-note {
  margin: 0;
  font-size: 0.9em;
  color: var(--theme-sub-text);
}

.muted {
  color: var(--theme-sub-text);
  opacity: 0.7;
  font-size: 0.9em;
}

footer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  padding-top: 1em;
  margin-top: 3em;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  width: 25%;
  border-top: 1px solid var(--theme-sub-text);
}

footer p,
footer span {
  color: var(--theme-sub-text);
}

footer a {
  color: var(--theme-sub-text);
  text-decoration: underline;
}

footer a:hover,
footer a:focus {
  background: none;
  color: var(--theme-link);
}

.contact-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4em 0.8em;
}

.contact-links a {
  color: var(--theme-sub-text);
  text-decoration: underline;
}

.contact-links a:hover,
.contact-links a:focus {
  background-color: var(--color-red);
  color: var(--theme-link-hover);
}
