:root {
  --ice: #cbd8df;
  --ice-light: #e4ebee;
  --ice-dark: #9daeb8;

  --black: #111417;
  --charcoal: #252b30;
  --muted: #59646b;

  --rust: #943d32;

  --line: rgba(17, 20, 23, 0.28);
  --line-light: rgba(255,255,255,0.36);

  --card: rgba(225, 234, 238, 0.50);
  --card-hover: rgba(238, 243, 245, 0.72);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--black);

  font-family:
    "Arial Narrow",
    "Helvetica Neue",
    Arial,
    sans-serif;

  -webkit-font-smoothing: antialiased;

  background:
    radial-gradient(
      ellipse at 70% -10%,
      rgba(255,255,255,0.85) 0%,
      rgba(255,255,255,0.08) 35%,
      transparent 58%
    ),
    linear-gradient(
      165deg,
      #dce6ea 0%,
      #bac9d1 42%,
      #d5dde0 68%,
      #aebdc4 100%
    );

  position: relative;
}

/* abstract cold topographic / signal texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;

  background:
    repeating-radial-gradient(
      ellipse at 18% 0%,
      transparent 0px,
      transparent 38px,
      rgba(17,20,23,0.11) 39px,
      transparent 40px,
      transparent 71px
    );

  mask-image:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.8),
      rgba(0,0,0,0.15) 58%,
      transparent 92%
    );
}

.shell {
  position: relative;
  z-index: 1;

  width: min(960px, calc(100% - 40px));
  margin: 0 auto;

  padding: 58px 0 30px;
}


/* -----------------
   HERO
------------------ */

.hero {
  margin-bottom: 46px;
}

.brand {
  margin-bottom: 24px;

  color: var(--rust);

  font-family:
    "Arial Narrow",
    "Helvetica Neue",
    Arial,
    sans-serif;

  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 700;
  line-height: 1;

  letter-spacing: -0.055em;
}

h1 {
  margin: 0;

  max-width: 850px;

  font-family:
    "Arial Narrow",
    "Helvetica Neue",
    Arial,
    sans-serif;

  font-size: clamp(3rem, 7.5vw, 6.6rem);
  font-weight: 800;

  line-height: 0.82;
  letter-spacing: -0.075em;

  color: var(--black);
}


/* -----------------
   PROJECT GRID
------------------ */

.project-grid {
  width: min(690px, 100%);

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 7px;
}


/* -----------------
   CARDS
------------------ */

.project-card {
  min-height: 82px;

  padding: 11px 13px;

  display: grid;
  grid-template-columns: 25px 1fr;

  align-items: center;

  gap: 11px;

  text-decoration: none;
  color: inherit;

  background: var(--card);

  border-top: 1px solid var(--line-light);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--charcoal);

  border-radius: 0;

  transition:
    background 120ms ease,
    transform 120ms ease,
    border-left-color 120ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  background: var(--card-hover);

  border-left-color: var(--rust);

  transform: translateX(3px);

  outline: none;
}


/* -----------------
   SYMBOLS
------------------ */

.card-symbol {
  width: 25px;
  height: 25px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(17,20,23,0.38);

  border-radius: 50%;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;

  font-size: 0.70rem;
  color: var(--rust);
}


/* -----------------
   CARD TEXT
------------------ */

.card-body h2 {
  margin: 0 0 2px;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;

  font-size: 0.83rem;
  line-height: 1.1;

  font-weight: 700;

  letter-spacing: -0.025em;

  text-transform: lowercase;
}

.card-body p {
  margin: 0;

  font-family:
    "Helvetica Neue",
    Arial,
    sans-serif;

  font-size: 0.76rem;

  line-height: 1.3;

  color: var(--muted);
}


/* -----------------
   FOOTER
------------------ */

footer {
  width: min(690px, 100%);

  margin-top: 22px;

  padding-top: 10px;

  border-top: 1px solid rgba(17,20,23,0.2);

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;

  font-size: 0.64rem;

  letter-spacing: 0.08em;

  color: rgba(17,20,23,0.55);
}


/* -----------------
   MOBILE
------------------ */

@media (max-width: 720px) {

  .shell {
    width: min(100% - 22px, 960px);
    padding-top: 38px;
  }

  .hero {
    margin-bottom: 32px;
  }

  .brand {
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 5.2rem);
    line-height: 0.84;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 74px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .project-card {
    transition: none;
  }
}


/* -----------------
   DESKTOP COMPOSITION
------------------ */

@media (min-width: 900px) {

  body {
    min-height: 100vh;
  }

  .shell {
    width: min(1220px, calc(100% - 100px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 72px 0 46px;

    display: grid;
    grid-template-columns: minmax(340px, 0.9fr) minmax(460px, 1.1fr);
    grid-template-rows: 1fr auto;
    column-gap: 110px;
    align-items: start;
  }

  .hero {
    margin: 0;
    padding-top: 2px;
  }

  .brand {
    margin: 0 0 70px;

    font-size: 2.2rem;
    line-height: 1;

    color: var(--rust);
  }

  h1 {
    max-width: 535px;
    margin: 0;

    font-family:
      "Helvetica Neue",
      Arial,
      sans-serif;

    font-size: clamp(4.25rem, 5.9vw, 6.3rem);
    font-weight: 700;

    line-height: 0.88;
    letter-spacing: -0.045em;

    font-kerning: normal;
    font-feature-settings: "kern" 1;
  }

  .project-grid {
    width: 100%;
    max-width: none;

    display: block;

    padding-top: 82px;
  }

  .project-card {
    position: relative;

    min-height: 0;
    padding: 18px 0 20px;

    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 18px;
    align-items: start;

    background: transparent;

    border: 0;
    border-top: 1px solid rgba(17,20,23,0.28);

    border-radius: 0;

    transform: none;
  }

  .project-card:last-child {
    border-bottom: 1px solid rgba(17,20,23,0.28);
  }

  .project-card:hover,
  .project-card:focus-visible {
    background: transparent;
    box-shadow: none;
    transform: none;
    outline: none;
  }

  .project-card::after {
    content: "↗";

    position: absolute;
    right: 2px;
    top: 20px;

    font-size: 0.9rem;
    color: rgba(17,20,23,0.42);

    transition: transform 120ms ease, color 120ms ease;
  }

  .project-card:hover::after,
  .project-card:focus-visible::after {
    transform: translate(3px, -3px);
    color: var(--rust);
  }

  .card-symbol {
    width: auto;
    height: auto;

    display: block;

    margin: 1px 0 0;

    border: 0;
    border-radius: 0;

    font-family:
      ui-monospace,
      SFMono-Regular,
      Menlo,
      Consolas,
      monospace;

    font-size: 0.67rem;
    line-height: 1.4;
    letter-spacing: 0.08em;

    color: var(--rust);
  }

  .project-card:nth-child(1) .card-symbol::before {
    content: "01";
  }

  .project-card:nth-child(2) .card-symbol::before {
    content: "02";
  }

  .project-card:nth-child(3) .card-symbol::before {
    content: "03";
  }

  .project-card:nth-child(4) .card-symbol::before {
    content: "04";
  }

  .card-symbol {
    font-size: 0;
  }

  .card-symbol::before {
    font-size: 0.67rem;
  }

  .card-body h2 {
    margin: 0 0 5px;

    font-size: 1.08rem;
    line-height: 1;

    letter-spacing: -0.035em;
  }

  .card-body p {
    max-width: 390px;

    margin: 0;

    font-size: 0.86rem;
    line-height: 1.45;

    color: var(--muted);
  }

  footer {
    grid-column: 1 / -1;

    width: 100%;
    max-width: none;

    margin: 70px 0 0;
    padding-top: 12px;

    border-top: 1px solid rgba(17,20,23,0.22);
  }
}
