@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Serif";
  src: url("./fonts/ibm-plex-serif-500-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root,
:root[data-theme="day"] {
  color-scheme: light;
  --shell: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f0f0;
  --line: #dcdcdc;
  --ink: #16181c;
  --ink-2: #585d67;
  --accent: #1f5f8b;
  --accent-ink: #16405e;
  --shell-pad-x: 26px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="day"]) {
    color-scheme: dark;
    --shell: #191817;
    --surface: #201f1d;
    --surface-2: #262523;
    --line: #35332f;
    --ink: #f2efe8;
    --ink-2: #a8a49a;
    --accent: #6ba3cd;
    --accent-ink: #a9cde8;
  }
}

:root[data-theme="night"] {
  color-scheme: dark;
  --shell: #191817;
  --surface: #201f1d;
  --surface-2: #262523;
  --line: #35332f;
  --ink: #f2efe8;
  --ink-2: #a8a49a;
  --accent: #6ba3cd;
  --accent-ink: #a9cde8;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--shell);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 91px / 100% 1px no-repeat,
    var(--shell);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  transition: background-color 160ms ease, color 160ms ease;
}

button,
a {
  font: inherit;
}

.page-frame {
  width: min(100%, 1240px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 var(--shell-pad-x);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.theme-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px 7px 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.theme-toggle:focus-visible,
.sign-in:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.theme-toggle__mark {
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

main {
  padding: clamp(72px, 10vw, 144px) 0 84px;
}

.hero {
  max-width: 900px;
}

.eyebrow,
.workflow__index,
footer {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--accent-ink);
  font-size: 11px;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: clamp(48px, 7.25vw, 100px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero__summary {
  max-width: 590px;
  margin: 34px 0 0;
  color: var(--ink-2);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55;
}

.sign-in {
  width: fit-content;
  margin-top: 32px;
  padding: 12px 15px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  background: var(--accent);
  color: var(--shell);
  font-weight: 600;
  text-decoration: none;
}

:root[data-theme="night"] .sign-in {
  color: #191817;
}

.sign-in:hover {
  filter: brightness(1.08);
}

.workflows {
  margin-top: clamp(92px, 12vw, 164px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflows article {
  min-height: 182px;
  padding: 24px 26px 28px 0;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.workflows article + article {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.workflow__index {
  padding-top: 4px;
  color: var(--accent-ink);
  font-size: 10px;
}

h2 {
  margin: 0 0 9px;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}

.workflows p {
  max-width: 270px;
  margin: 0;
  color: var(--ink-2);
}

footer {
  min-height: 72px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-2);
  font-size: 10px;
}

@media (max-width: 720px) {
  :root {
    --shell-pad-x: 18px;
  }

  body {
    background:
      linear-gradient(var(--line) 1px, transparent 1px) 0 75px / 100% 1px no-repeat,
      var(--shell);
  }

  .site-header {
    height: 76px;
  }

  main {
    padding: 62px 0 58px;
  }

  h1 {
    font-size: clamp(43px, 13.2vw, 64px);
    line-height: 1.01;
  }

  .hero__summary {
    margin-top: 27px;
    font-size: 16px;
  }

  .workflows {
    margin-top: 82px;
    grid-template-columns: 1fr;
  }

  .workflows article,
  .workflows article + article {
    min-height: 0;
    padding: 21px 0;
    border-left: 0;
  }

  .workflows p {
    max-width: none;
  }

  footer {
    min-height: 66px;
  }

  .footer__note {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
