:root {
  --paper: #F6F1E8;
  --orange: #E44F24;
  --ink: #241c16;
  --ink-soft: #5c5148;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.45;
  font-weight: 400;
}
a { color: var(--ink); }
.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 6rem;
}
header {
  display: flex;
  justify-content: flex-end;
  gap: 1.25rem;
  padding-top: 0.25rem;
}
header a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
}
header a:hover { color: var(--orange); }
header a.x {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
header a.x svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: currentColor;
  display: block;
}
.open { padding-top: 2.5rem; }
.lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.bird {
  width: 4.5rem;
  height: auto;
  display: block;
  flex: none;
  /* Body sits low in the square view box. See ADR 0028. */
  transform: translateY(-0.55rem);
}
h1 {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.25rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
}
.lead {
  margin: 1.35rem 0 0;
  max-width: 28em;
  font-size: 1.35rem;
  line-height: 1.4;
}
.home .lead { max-width: 22em; }
.demo {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.75rem;
  margin-top: 4.5rem;
  text-align: center;
}
.cue {
  margin: 0;
  color: var(--ink-soft);
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.line {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.3;
}
.stop { margin-left: 0.12em; }
.gap {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
}
.sizer {
  display: inline-block;
  min-width: 4.5ch;
  visibility: hidden;
  white-space: pre;
  text-align: center;
  padding: 0 0.2rem;
}
.gap input[type="text"] {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  font: inherit;
  font-size: inherit;
  text-align: center;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--ink-soft);
  border-radius: 0;
  padding: 0 0.2rem 0.05rem;
}
.gap input[type="text"]:focus,
.gap input[type="text"]:focus-visible {
  outline: none;
}
.entry {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.75rem;
}
.field { position: relative; }
input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 1.2rem;
  color: var(--ink);
  background: #FFFCF8;
  border: 1px solid rgba(107, 98, 90, 0.45);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  appearance: none;
}
input[type="text"]:focus {
  outline: none;
}
input[type="text"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.demo button[type="submit"] {
  width: 100%;
  margin: 0;
  padding: 0 1.15rem;
  min-height: 52px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  background: var(--orange);
  border: none;
  border-radius: 12px;
  cursor: pointer;
}
.demo button[type="submit"]:hover { filter: brightness(0.95); }
.demo button[type="submit"]:active { opacity: 0.82; filter: none; }
.demo button[type="submit"]:disabled {
  opacity: 0.4;
  cursor: default;
}
.demo button[type="submit"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.result {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}
.result:empty { display: none; }
.result.hit {
  color: var(--ink);
  margin-top: 0.85rem;
  text-align: left;
}
.result.hint {
  position: static;
  margin: 0 0 0.7rem;
  width: max-content;
  max-width: 100%;
  text-align: left;
}
.suggest {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.5rem;
  width: auto;
  margin: 0;
  padding: 0.4rem 0.75rem;
  text-align: left;
  font-family: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  color: var(--ink);
  --suggest-fill: #FFFCF8;
  background: var(--suggest-fill);
  border: 1px solid rgba(107, 98, 90, 0.45);
  border-radius: 8px;
  filter: drop-shadow(0 6px 14px rgba(36, 28, 22, 0.14));
  cursor: pointer;
  position: relative;
}
.suggest::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.45rem;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--suggest-fill);
  border-right: 1px solid rgba(107, 98, 90, 0.45);
  border-bottom: 1px solid rgba(107, 98, 90, 0.45);
  transform: translateX(-50%) rotate(45deg);
  pointer-events: none;
}
.suggest::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1.25rem;
  height: 0.55rem;
  background: var(--suggest-fill);
  transform: translateX(-50%);
  pointer-events: none;
}
.suggest-kicker {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}
.suggest-line {
  font-size: 1.2rem;
  line-height: 1.3;
}
.suggest:hover { --suggest-fill: #E7E0D4; }
.suggest:active { --suggest-fill: #DDD4C6; }
.suggest:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.after { margin-top: 5rem; }
.after p {
  margin: 0 0 1.1rem;
  max-width: 34em;
}
.store {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  margin: 1.75rem 0 0;
}
.store img {
  display: block;
  width: 120px;
  height: 40px;
}
.store figcaption {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-soft);
}
article { margin-top: 3.5rem; }
h2 {
  margin: 2.25rem 0 0.55rem;
  font-size: 1.35rem;
  font-weight: 500;
}
article p, article li {
  max-width: 34em;
}
article p { margin: 0 0 1.1rem; }
article ul {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
}
article li { margin: 0 0 0.45rem; }
.meta {
  margin-top: 3rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
@media (max-width: 30rem) {
  .wrap { padding: 1rem 1.15rem 4rem; }
}
