/* ----------------------------------------------------------------------
   SYSTEM 1 - 1-BIT LANDING PAGE

   TYPE MODULE:   11 PX - SIZES 11, 22, 33, 44, 55, 77
   SPACE MODULE:  11 PX - STEPS 11, 22, 33, 44, 55, 66, 88
   PATTERN TILE:   8 PX - DITHER BAND
   LINE KIT:       1 PX SEAM, 2 PX FRAME, 4 PX RULE
   TREATMENTS:     SECONDARY TEXT OPACITY 0.7, INVERT ON HOVER
   ---------------------------------------------------------------------- */

@font-face {
  font-family: "Departure Mono";
  src: url("assets/fonts/DepartureMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --inset: 22px;
  --measure: 600px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Departure Mono", ui-monospace, monospace;
  font-size: 11px;
  line-height: 22px;
  letter-spacing: 0;
  -webkit-font-smoothing: none;
  text-rendering: optimizeSpeed;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px dashed var(--fg);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- layout */

main,
.footer {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--inset));
  margin-inline: auto;
  padding-inline: var(--inset);
}

/* ------------------------------------------------------- secondary text */

.spec-row dt,
.link-note,
.footer p {
  opacity: 0.7;
}

.mark {
  opacity: 0.7;
}

/* ----------------------------------------------------------- title block */

.title-block {
  padding-top: 44px;
  padding-bottom: 44px;
}

.overline {
  margin-bottom: 22px;
  letter-spacing: 1px;
}

.title {
  font-size: 44px;
  line-height: 44px;
  letter-spacing: -2px;
  font-weight: 400;
}

.cursor {
  animation: blink 1.06s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

/* ------------------------------------------------------------ spec sheet */

.specs {
  display: none;
  border: 2px solid var(--fg);
}

.specs-head {
  background: var(--fg);
  color: var(--bg);
  padding: 11px;
  letter-spacing: 1px;
}

.spec-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 11px;
  padding: 11px;
  border-top: 1px solid var(--fg);
}

.spec-row dd {
  display: flex;
  align-items: center;
}

/* ----------------------------------------------------------- dither band */

.dither-band {
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M0 0h4v4H0zM4 4h4v4H4z' fill='%23fff'/%3E%3C/svg%3E");
  background-size: 8px 8px;
  image-rendering: pixelated;
}

/* -------------------------------------------------------------- sections */

.section {
  padding-top: 44px;
  padding-bottom: 11px;
}

.section-title {
  font-size: 22px;
  line-height: 33px;
  letter-spacing: 1px;
  font-weight: 400;
  margin-bottom: 22px;
}

.section-title .idx {
  font-size: 11px;
  vertical-align: 6px;
  margin-right: 11px;
  letter-spacing: 1px;
}

.section p {
  max-width: 64ch;
  margin-bottom: 11px;
}

.rule {
  height: 4px;
  background: var(--fg);
  margin-top: 33px;
}

/* ----------------------------------------------------------------- links */

.links {
  list-style: none;
}

.links li {
  display: flex;
  justify-content: space-between;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid var(--fg);
}

.links li:last-child {
  border-bottom: 1px solid var(--fg);
}

.links li:hover {
  background: var(--fg);
  color: var(--bg);
}

.link-note {
  text-align: right;
}

.links li:hover .link-note {
  color: var(--bg);
  opacity: 1;
}

/* ---------------------------------------------------------------- footer */

.footer {
  padding-top: 44px;
  padding-bottom: 33px;
}

.footer p {
  letter-spacing: 1px;
}

.footer-cat {
  font-family: "Departure Mono", ui-monospace, monospace;
  letter-spacing: 0;
  white-space: pre;
  width: max-content;
  margin: 22px auto 11px;
}

/* --------------------------------------------------------- viewport marks */

.marks {
  display: none;
}

.mark {
  position: fixed;
  font-size: 22px;
  line-height: 22px;
  pointer-events: none;
  z-index: -1;
}

.mark-tl { top: 11px; left: 11px; }
.mark-tr { top: 11px; right: 11px; }
.mark-bl { bottom: 11px; left: 11px; }
.mark-br { bottom: 11px; right: 11px; }

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cursor {
    animation: none;
  }
}

/* ----------------------------------------------------------------- narrow */

@media (max-width: 520px) {
  .title-block {
    padding-top: 33px;
  }
  .title {
    font-size: 33px;
    line-height: 33px;
  }
  .links li {
    flex-direction: column;
    gap: 0;
  }
  .link-note {
    text-align: left;
  }
}

/* -------------------------------------------------------------- mid width */

@media (min-width: 640px) {
  .title {
    font-size: 55px;
    line-height: 55px;
  }
}

/* --------------------------------------------------------- landscape (PC) */

@media (min-width: 768px) {
  :root {
    --measure: 1000px;
    --inset: 33px;
  }

  .title-block {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 44px;
    align-items: end;
    padding-top: 88px;
    padding-bottom: 66px;
  }

  .title {
    font-size: 77px;
    line-height: 77px;
    letter-spacing: -3px;
  }

  .title-aside {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .specs {
    display: block;
  }

  .dither-band {
    height: 16px;
  }

  .split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 4px minmax(0, 1fr);
    gap: 44px;
    padding-top: 66px;
    padding-bottom: 33px;
  }

  .split .section {
    padding-top: 0;
    padding-bottom: 0;
  }

  .split .rule {
    height: auto;
    margin-top: 0;
    align-self: stretch;
  }

  .section-title {
    font-size: 33px;
    line-height: 44px;
  }

  .section-title .idx {
    vertical-align: 10px;
  }

  .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    padding-top: 22px;
    padding-bottom: 44px;
  }

  .footer-cat {
    margin: 0;
  }

  .marks {
    display: block;
  }
}
