/* Provisional shell values. They are not the open design tokens. */
@font-face {
  font-family: "ABC Arizona Flare";
  src: url("/fonts/ABCArizonaFlareRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ABC Diatype";
  src: url("/fonts/ABCDiatypeRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Mono";
  src: url("/fonts/FiraMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #f7f7f7;
  --ink: #161616;
  --muted: #5c5c5c;
  --line: #d8d8d8;
  --accent: #eb4c4c;
}

* { box-sizing: border-box; }

html { background: var(--page); color: var(--ink); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "ABC Diatype", Inter, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
}

header, main { width: min(40rem, calc(100% - 2.5rem)); margin: 0 auto; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

nav { display: flex; gap: 1rem; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

h1 {
  margin: 2.5rem 0 1rem;
  font-family: "ABC Arizona Flare", "ABC Diatype", serif;
  font-size: 3.25rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

p { max-width: 38rem; }

form { display: grid; gap: 0.75rem; margin: 2rem 0; }

label { font-size: 0.9rem; color: var(--muted); }

input {
  width: 100%;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

button {
  justify-self: start;
  margin-top: 0.5rem;
  padding: 0.65rem 0.9rem;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: white;
  font: inherit;
  cursor: pointer;
}

button + button { margin-left: 0.5rem; background: var(--ink); }

code, .label { font-family: "Fira Mono", ui-monospace, monospace; font-size: 0.92rem; }

.result { min-height: 1.5rem; }

.pairs { list-style: none; padding: 0; margin: 2rem 0; }

.pairs li {
  display: grid;
  grid-template-columns: 48px 48px 1fr;
  column-gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.pairs li p { margin: 0; grid-column: 3; }

.pairs img { grid-row: span 2; background: transparent; }

dl { display: grid; grid-template-columns: 6rem 1fr; gap: 0.4rem 1rem; }

dt { font-family: "ABC Arizona Flare", serif; }

dd { margin: 0; }

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

@media (max-width: 640px) {
  h1 { font-size: 2.4rem; }
  header { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
