/* etcetera — the studio site.
   Warm paper, pastel plates with a rim darker than their fill, buttons that sit
   on a hard bottom shadow. Display type is Gasoek One, text is Geist, anything
   measured or labelled is Geist Mono. One theme, light: the plates are the
   identity, and a dark copy of them would be a second design to maintain.

   Every extension brings its own colours to its plates (Glidepad night and
   amber, AI Mode Cleaner sky); the studio pages use mint, peach and lavender. */

/* ---------------------------------------------------------------- tokens */

:root {
  color-scheme: light;

  --bg: #f8f4f1;
  --paper: #fbf9f8;
  --line: #d1c6bf;
  --line-soft: #efe8e4;
  --ink: #181614;
  --ink-2: #2d2a27;
  --ink-3: #4a4542;
  --muted: #5f5a56;
  --crumb: #b5a399;
  --dots: rgb(24 22 20 / 13%);

  --mint: #a1e0a9;
  --mint-rim: #319751;
  --mint-ink: #1f4d2c;
  --peach: #ffc19b;
  --peach-rim: #ba7a53;
  --peach-ink: #5a3418;
  --lavender: #d1c3fe;
  --lavender-soft: #e6defe;
  --lavender-rim: #927dd0;
  --lavender-ink: #3d2a7a;
  --sky: #a2cfff;
  --sky-soft: #c3e0ff;
  --sky-rim: #3070c7;
  --sky-ink: #163a6e;
  --sky-ink-2: #22374f;
  --sun: #fad779;
  --sun-rim: #b67700;
  --sun-ink: #5a3d00;

  /* Glidepad's own palette, the same values as sites/glidepad/assets/site.css. */
  --night: #0f1115;
  --night-2: #171a20;
  --night-3: #1d2027;
  --night-line: #383e48;
  --night-ink: #e9eaec;
  --night-ink-2: #a3abb5;
  --night-ink-3: #c3c9d1;
  --amber: #eaa63c;
  --amber-rim: #8f5f16;
  --on-amber: #16110a;

  --aimc: #2f45c9;
  --danger: #e5484d;
  --danger-rim: #9e2a2e;

  --font-display: 'Gasoek One', 'Arial Black', sans-serif;
  --font-body: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --shell: 1160px;
  --gutter: 32px;
  --radius: 16px;
  --section: 88px;
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --section: 64px;
  }
}

/* ---------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
}

a {
  color: var(--ink);
}

a:hover {
  color: #000;
}

img,
svg {
  max-width: 100%;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 5px;
}

summary {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 8px;
  color: #fff;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  margin-top: var(--section);
}

.narrow {
  max-width: 760px;
}

/* ---------------------------------------------------------------- type */

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.display--xl {
  font-size: clamp(42px, 7vw, 68px);
}

.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.h2--sm {
  font-size: clamp(26px, 3.4vw, 32px);
}

.h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  margin: 24px 0 0;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.45;
  max-width: 26em;
  text-wrap: pretty;
}

.sub {
  margin: 14px 0 0;
  font-size: 18px;
  color: var(--ink-3);
  max-width: 40em;
  text-wrap: pretty;
}

.meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.link {
  font-weight: 600;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------- masthead */

.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  color: var(--ink-3);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
}

.nav a:hover,
.nav a[aria-current='page'] {
  background: var(--line-soft);
  color: var(--ink);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.crumbs__sep {
  color: var(--crumb);
  font-size: 20px;
}

.crumbs__item {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
}

a.crumbs__item:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------------------------------------------------------------- bands */

/* The coloured strip under the masthead: a pastel with a dot grid and a rim. */
.band {
  background-color: var(--band);
  background-image: radial-gradient(var(--dots) 1px, transparent 1.4px);
  background-size: 20px 20px;
  border-bottom: 1px solid var(--band-rim);
}

.band--mint {
  --band: var(--mint);
  --band-rim: var(--mint-rim);
}

.band--peach {
  --band: var(--peach);
  --band-rim: var(--peach-rim);
}

.band--lavender {
  --band: var(--lavender);
  --band-rim: var(--lavender-rim);
}

.band--sky {
  --band: var(--sky);
  --band-rim: var(--sky-rim);
}

.band--night {
  --band: var(--night);
  --band-rim: #000;
  --dots: rgb(255 255 255 / 7%);
  color: var(--night-ink);
}

.band__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
  align-items: center;
  padding-block: clamp(56px, 8vw, 80px) clamp(64px, 8vw, 88px);
}

.band__inner--hero {
  display: block;
  padding-block: clamp(64px, 9vw, 96px) clamp(72px, 9vw, 104px);
}

.band__text {
  flex: 1 1 440px;
  min-width: 0;
}

.band__text .display {
  margin-top: 18px;
}

.band__text .display:first-child {
  margin-top: 0;
}

/* ---------------------------------------------------------------- buttons */

/* Tactile: the shadow is the rim colour, hard, straight down. */
.btn {
  --fill: var(--paper);
  --rim: var(--ink);
  --text: var(--ink);
  display: inline-block;
  background: var(--fill);
  color: var(--text);
  border: 1px solid var(--rim);
  box-shadow: 0 3px 0 0 var(--rim);
  border-radius: 10px;
  padding: 12px 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease;
}

.btn:hover {
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 0 var(--rim);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 0 var(--rim);
}

.btn--lg {
  padding: 13px 22px;
  font-size: 17px;
}

.btn--ink {
  --fill: var(--ink);
  --rim: #000;
  --text: #fff;
}

.btn--amber {
  --fill: var(--amber);
  --rim: var(--amber-rim);
  --text: var(--on-amber);
}

.btn--night {
  --fill: var(--night-3);
  --rim: #000;
  --text: var(--night-ink);
  border-color: var(--night-line);
}

.btn--sky {
  --fill: var(--sky-soft);
  --rim: var(--sky-rim);
}

.btn--peach {
  --fill: var(--peach);
  --rim: var(--peach-rim);
}

.btn--lavender {
  --fill: var(--lavender-soft);
  --rim: var(--lavender-rim);
}

/* A store button for an extension that is not in the store yet. */
.btn.is-pending {
  cursor: default;
  opacity: 0.7;
  box-shadow: none;
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding-bottom: 4px;
}

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

  .btn:hover,
  .btn:active {
    transform: none;
  }
}

/* ---------------------------------------------------------------- cards */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 0 var(--line);
  padding: 28px 32px;
}

.card--sm {
  border-radius: 14px;
  padding: 24px;
}

@media (max-width: 640px) {
  .card {
    padding: 22px 20px;
  }
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 320px), 100%), 1fr));
}

.grid--wide {
  --min: 420px;
}

.grid--tight {
  --min: 200px;
  gap: 16px;
}

/* The big extension plates on the home page. */
.product {
  --fill: var(--paper);
  --rim: var(--line);
  --text: var(--ink);
  --note: var(--ink-3);
  background: var(--fill);
  color: var(--text);
  border: 1px solid var(--rim);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 0 var(--rim);
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 40px 48px;
  align-items: center;
}

.product--reverse {
  flex-direction: row-reverse;
}

.product--glidepad {
  --fill: var(--night);
  --rim: #000;
  --text: var(--night-ink);
  --note: var(--night-ink-2);
}

.product--aimc {
  --fill: var(--sky);
  --rim: var(--sky-rim);
  --note: var(--sky-ink-2);
}

.product__text {
  flex: 1 1 420px;
  min-width: 0;
}

.product__art {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.product__art svg {
  height: auto;
}

.product__title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.product__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.product__tagline {
  margin: 24px 0 0;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 18em;
  text-wrap: pretty;
}

.product__note {
  margin: 12px 0 0;
  font-size: 17px;
  max-width: 30em;
  color: var(--note);
}

.product .btn-row {
  margin-top: 30px;
}

.icon {
  flex-shrink: 0;
  display: block;
}

/* Small extension cards: "More from etcetera", About, 404. */
.mini {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mini__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mini__name {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

.mini__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.mini__text {
  margin: 0;
  color: var(--ink-2);
}

.mini__link {
  margin-top: auto;
  padding-top: 6px;
}

/* Whole-card links. */
.tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: var(--ink);
}

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

.tile__title {
  font-size: 19px;
  font-weight: 700;
}

.tile__text {
  font-size: 15px;
  color: var(--ink-3);
}

.tile--row {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  justify-content: space-between;
}

.section > .grid,
.section > .card,
.section > .faq,
.section > .facts {
  margin-top: 28px;
}

/* ---------------------------------------------------------------- pieces */

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  background: var(--badge, var(--sky));
  border: 1px solid var(--badge-rim, var(--sky-rim));
  border-radius: 8px;
  padding: 3px 10px;
}

.badge--sun {
  --badge: var(--sun);
  --badge-rim: var(--sun-rim);
}

.step__title {
  margin: 14px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.step__text {
  margin: 8px 0 0;
  color: var(--ink-3);
}

.fact {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.fact__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.fact__text {
  margin: 6px 0 0;
  color: var(--ink-3);
}

/* A small square with a stroke icon in it. */
.glyph {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glyph, var(--paper));
  border: 1px solid var(--glyph-rim, var(--line));
  border-radius: 10px;
  box-shadow: 0 2px 0 0 var(--glyph-rim, var(--line));
}

.glyph--lg {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  box-shadow: 0 3px 0 0 var(--glyph-rim, var(--line));
}

.glyph--sky {
  --glyph: var(--sky-soft);
  --glyph-rim: var(--sky-rim);
}

.glyph--sun {
  --glyph: var(--sun);
  --glyph-rim: var(--sun-rim);
}

/* The "Privacy policy" plate on an extension page. */
.policy {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
}

.policy__head {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  gap: 18px;
  align-items: center;
}

.policy .btn {
  margin-bottom: 3px;
}

/* Questions. */
.faq {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 0 var(--line);
  overflow: hidden;
}

.faq details {
  padding: 20px 24px;
}

.faq details + details {
  border-top: 1px solid var(--line);
}

.faq summary {
  font-size: 18px;
  font-weight: 600;
}

.faq p {
  margin: 10px 0 0;
  color: var(--ink-3);
}

/* Lists with a tick instead of a bullet. */
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink-2);
}

.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checks svg {
  flex-shrink: 0;
  margin-top: 3px;
}

/* Key–value facts, Glidepad's privacy table. */
.facts {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 0 var(--line);
  padding: 8px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  column-gap: 40px;
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.facts dt {
  color: var(--ink-3);
}

.facts dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  text-align: right;
}

/* Monthly / yearly switch. */
.seg {
  display: flex;
  gap: 4px;
  padding: 4px 4px 6px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.seg button {
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}

.seg button[aria-pressed='true'] {
  font-weight: 600;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 2px 0 0 var(--ink);
  cursor: default;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px;
}

.plan--pro {
  background: var(--sun);
  border-color: var(--sun-rim);
  box-shadow: 0 6px 0 0 var(--sun-rim);
}

.plan__name {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.plan__price {
  margin: 10px 0 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.plan__amount {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.plan__period {
  font-family: var(--font-mono);
  font-size: 14px;
}

.plan__other {
  margin: 8px 0 0;
  font-size: 15px;
}

.plan--pro .plan__period,
.plan--pro .plan__other {
  color: var(--sun-ink);
}

.plan .btn {
  margin-top: auto;
  margin-bottom: 4px;
  text-align: center;
}

/* ---------------------------------------------------------------- documents */

.doc {
  --hl: var(--mint);
  --hl-rim: var(--mint-rim);
  display: flex;
  flex-wrap: wrap;
  gap: 40px 72px;
  align-items: flex-start;
  padding-top: 64px;
}

.doc--sky {
  --hl: var(--sky);
  --hl-rim: var(--sky-rim);
}

.doc--sun {
  --hl: var(--sun);
  --hl-rim: var(--sun-rim);
}

.doc__aside {
  flex: 0 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 0 0 var(--line);
  padding: 20px;
}

.toc .eyebrow {
  margin-left: 12px;
  color: var(--muted);
}

.toc ul,
.toc ol {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 16px;
}

.toc a {
  display: block;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink-3);
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
  background: var(--line-soft);
}

.toc a[aria-current='page'] {
  background: var(--hl);
  border-color: var(--hl-rim);
  color: var(--ink);
  font-weight: 600;
}

.toc__split {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.toc--sections ol {
  gap: 2px;
  font-size: 15px;
}

.toc--sections a {
  padding: 6px 12px;
}

.doc__body {
  flex: 1 1 560px;
  min-width: 0;
  max-width: 680px;
  line-height: 1.6;
}

.doc__body h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.doc__intro {
  margin: 16px 0 0;
  font-size: 19px;
  color: var(--ink-3);
  text-wrap: pretty;
}

.doc__body .meta {
  margin-top: 12px;
}

.doc__body h2 {
  margin: 48px 0 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.doc__body p {
  margin: 10px 0 0;
  color: var(--ink-2);
}

.doc__body p + p {
  margin-top: 12px;
}

.doc__body ul,
.doc__body ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc__body .loose {
  gap: 14px;
}

.summary {
  margin-top: 32px;
  background: var(--hl);
  border: 1px solid var(--hl-rim);
  border-radius: 14px;
  box-shadow: 0 4px 0 0 var(--hl-rim);
  padding: 24px 28px;
}

.doc--sky .summary {
  background: var(--sky-soft);
}

.summary__title {
  margin: 0;
  font-weight: 700;
}

.doc__body .summary p,
.doc__body .summary ul {
  color: var(--ink);
}

.doc__body .summary ul {
  gap: 6px;
}

/* ---------------------------------------------------------------- page bits */

/* AI Mode Cleaner's demo list in its hero. */
.demo {
  flex: 1 1 460px;
  min-width: 0;
  margin: 0;
}

.demo__panel {
  background: var(--paper);
  border: 1px solid var(--sky-rim);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 0 var(--sky-rim);
  overflow: hidden;
}

.demo__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 16px;
  border-bottom: 1px solid var(--line);
}

.demo__title {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
}

.demo__delete {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--danger);
  border: 1px solid var(--danger-rim);
  box-shadow: 0 3px 0 0 var(--danger-rim);
  border-radius: 9px;
  padding: 9px 16px;
  cursor: pointer;
}

.demo__delete:disabled {
  color: #7b7471;
  background: var(--line-soft);
  border-color: var(--line);
  box-shadow: 0 3px 0 0 var(--line);
  cursor: default;
}

.demo__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.demo__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  min-height: 48px;
}

.demo__list input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--aimc);
  flex-shrink: 0;
}

.demo__list label {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 0;
  font-size: 16px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.demo figcaption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sky-ink-2);
}

/* Glidepad's movement diagrams. */
.gesture {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gesture__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gesture .eyebrow {
  color: var(--muted);
  letter-spacing: 0.1em;
}

.gesture__name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.gesture__text {
  margin: 0;
  color: var(--ink-3);
}

/* The dark "try it" strip on the Glidepad page. */
.strip {
  margin-top: 64px;
  background: var(--night);
  color: var(--night-ink);
  border: 1px solid #000;
  border-radius: var(--radius);
  box-shadow: 0 6px 0 0 #000;
  padding: 40px clamp(24px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: center;
  justify-content: space-between;
}

.strip__text {
  flex: 1 1 460px;
  min-width: 0;
}

/* Contact block on the home page and About. */
.reach {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 64px;
  align-items: center;
  justify-content: space-between;
  padding: 40px clamp(24px, 4vw, 48px);
}

.reach__text {
  flex: 1 1 460px;
  min-width: 0;
}

.reach__side {
  flex: 0 1 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* About: the portrait card. */
.portrait {
  flex: 0 1 320px;
  min-width: 260px;
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--mint-rim);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 0 var(--mint-rim);
  padding: 20px;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.portrait__name {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
}

.portrait__role {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--ink-3);
}

.portrait__mail {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Contact: the address card in the band. */
.mailcard {
  flex: 0 1 380px;
  min-width: 280px;
  background: var(--paper);
  border: 1px solid var(--peach-rim);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 0 var(--peach-rim);
  padding: 28px;
}

.mailcard__address {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.mailcard .btn {
  margin: 22px 0 3px;
}

/* 404: the big outlined number. */
.bignum {
  flex: 0 1 auto;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(120px, 18vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--paper);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 0 10px 0 var(--lavender-rim);
}

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

.footer {
  margin-top: var(--section);
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  padding-block: 28px 40px;
}

.footer p {
  margin: 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer a {
  color: var(--ink-3);
}

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

.footer__note {
  flex-basis: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
}
