/* Landing page styles. One page, no build step - keep everything in this file. */

:root {
  --bg: #08090b;
  --ink: #f2f3f4;
  --muted: #878d95;
  --rule: #24272c;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Work Sans", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 88px 48px;
}

a {
  color: inherit;
}

/* Rasterised at 3x from design/signature.svg; height:auto keeps the intrinsic ratio off the width/height attributes. */
.signature {
  display: block;
  width: 118px;
  height: auto;
  opacity: 0.9;
}

h1 {
  margin: 64px 0 20px;
  max-width: 22ch;
  font-family: Anton, sans-serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 1.02;
  text-transform: uppercase;
}

/* Exempt from the 74ch prose measure - in mono that cap wraps this line and orphans its last word. */
.punch {
  margin: 0;
  max-width: none;
  font-family: var(--mono);
  font-size: 17px;
  color: var(--muted);
}

section {
  margin-top: 64px;
}

/* Section headings read as machine labels; the trailing rule carries the eye across the column. */
.label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

p {
  margin: 0 0 16px;
  max-width: 74ch;
}

p:last-child {
  margin-bottom: 0;
}

.pattern {
  font-weight: 500;
}

.row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  padding: 22px 0;
}

/* Dividers between entries, never around the block - the label's rule opens the section, the aside closes it. */
.row + .row {
  border-top: 1px solid var(--rule);
}

.row-key {
  font-family: var(--mono);
  font-size: 15px;
  text-decoration: none;
}

.row-key::before {
  content: "> ";
  color: var(--muted);
}

.row-key:hover {
  color: var(--muted);
}

.row p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
}

.aside {
  margin-top: 26px;
  font-weight: 500;
}

.email {
  font-size: 20px;
  font-weight: 500;
}

.email a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
}

.email a:hover {
  border-color: var(--ink);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 14px;
}

.links a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
}

.links a:hover {
  border-color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none;
  }
}

@media screen and (max-width: 767px) {
  main {
    padding: 56px 24px 64px;
  }

  h1 {
    margin-top: 44px;
    font-size: 42px;
  }

  section {
    margin-top: 52px;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media screen and (max-width: 479px) {
  h1 {
    font-size: 33px;
  }

  .punch {
    font-size: 15px;
  }
}
