@font-face {
  font-family: "Geist Mono";
  src: url("./assets/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/InstrumentSerif-Regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --paper: #f4f1ea;
  --ink: #1b2430;
  --muted: #535a60;
  --line: rgb(27 36 48 / 0.16);
  --line-strong: rgb(27 36 48 / 0.36);
  --accent: #1e50e6;
  --serif: "Instrument Serif", Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  font:
    400 0.875rem / 1.65 "Geist Mono",
    monospace;
}

* {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
figure {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.24em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 1;
  inset-block-start: 8px;
  inset-inline-start: 16px;
  padding: 8px 12px;
  background: var(--paper);
}

.skip-link:not(:focus) {
  clip-path: inset(50%);
}

.shell {
  width: min(100% - 2 * clamp(16px, 5vw, 64px), 1264px);
  margin-inline: auto;
}

.site-header,
.site-footer {
  border-block-end: 1px solid var(--line);
}

.header-inner,
.footer-inner,
nav,
.brand,
.actions {
  display: flex;
  align-items: center;
  column-gap: clamp(12px, 2.4vw, 32px);
}

.header-inner,
.footer-inner {
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 68px;
}

nav a,
.brand,
.footer-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

nav a,
.brand {
  text-decoration: none;
}

.brand {
  column-gap: 10px;
  font: 1.875rem / 1 var(--serif);
}

nav,
.footer-inner {
  font-size: 0.75rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  column-gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(42px, 7vw, 96px);
}

.hero-copy {
  display: grid;
  row-gap: 24px;
}

.label,
.sheet-header,
.sheet-footer {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.label {
  display: flex;
  align-items: center;
  column-gap: 9px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.5rem, 7.25vw, 7.5rem);
  line-height: 0.88;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.99;
  text-wrap: balance;
}

h3 {
  font-size: 1.75rem;
  line-height: 1.08;
}

.intro {
  max-width: 41ch;
}

.actions {
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 14px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 0.75rem;
  text-decoration: none;
}

.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (hover: hover) {
  nav a:hover,
  .button:hover {
    text-decoration: underline;
  }
}

.room-sheet,
.terminal {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}

.sheet-header,
.sheet-footer {
  display: flex;
  justify-content: space-between;
  column-gap: 12px;
  padding: 10px 14px;
}

.sheet-header {
  border-block-end: 1px solid var(--line);
}

.sheet-footer {
  border-block-start: 1px solid var(--line);
}

.room-viewport {
  background-image: radial-gradient(
    var(--line-strong) 0.6px,
    transparent 0.7px
  );
  background-size: 16px 16px;
}

.room-viewport img {
  display: block;
  width: 100%;
  height: auto;
}

.workflow,
.setup {
  display: grid;
  row-gap: 32px;
  padding-block: clamp(32px, 5vw, 64px);
  border-block-start: 1px solid var(--line-strong);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.workflow-grid article {
  display: grid;
  align-content: start;
  row-gap: 12px;
  padding: clamp(16px, 2.25vw, 28px);
}

.workflow-grid article + article {
  border-inline-start: 1px solid var(--line);
}

.workflow-grid p,
.setup p {
  color: var(--muted);
}

.setup {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(24px, 4vw, 64px);
}

.setup-copy {
  display: grid;
  justify-items: start;
  row-gap: 18px;
}

.setup-copy p {
  max-width: 48ch;
}

.terminal-hint {
  padding: 12px 14px;
  font-size: 0.75rem;
}

.terminal-hint + .terminal-hint {
  border-block-start: 1px solid var(--line);
}

.site-footer {
  border-block: 1px solid var(--line);
}

@media (max-width: 54rem) {
  .hero,
  .setup {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }
}

@media (max-width: 42rem) {
  .workflow-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-grid article + article {
    border-inline-start: 0;
    border-block-start: 1px solid var(--line);
  }
}
