/* ==========================================================
   All Keyboards – About page
   Same system as the home page and guides: IBM Plex Sans, teal ink on cool paper, marigold only
   for hover / focus. The one memorable element is the wall of greetings – "hello" in every
   language we make a keyboard for, each in its own script.
   ========================================================== */
.ab {
  --ink: #0e2a31;
  --lagoon: #135e6e;
  --paper: #f3f7f8;
  --line: #d3e1e4;
  --muted: #4f6469;
  --marigold: #f2b33d;
  --key: #ffffff;
  --key-edge: #b8cfd4;
  --font: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
}
.ab a { color: var(--lagoon); }
.ab :focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }
.ab h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.2;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.ab-hero { padding: 56px 0 40px; }
.ab-title {
  max-width: 17em;
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}
.ab-lead { max-width: 60ch; margin: 0; font-size: 1.15rem; line-height: 1.65; color: var(--muted); }
.ab-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 36px 0 0; }
.ab-facts div { padding: 4px 28px 4px 0; margin-right: 28px; border-right: 1px solid var(--line); }
.ab-facts div:last-child { border-right: 0; margin-right: 0; }
.ab-facts dt { font-size: .88rem; font-weight: 500; color: var(--muted); }
.ab-facts dd { margin: 2px 0 0; font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; color: var(--lagoon); }

/* ---------- Greeting wall ---------- */
.ab-hello { padding: 48px 0 64px; background: var(--key); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ab-hello-title { font-size: 1rem !important; font-weight: 500 !important; color: var(--muted) !important; margin-bottom: 22px !important; }
.ab-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ab-wall a {
  position: relative;
  display: inline-block;
  padding: 2px 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.5;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
/* every other greeting slightly lighter, so the wall reads as many voices rather than a block */
.ab-wall li:nth-child(3n + 2) a { color: var(--lagoon); }
.ab-wall li:nth-child(3n) a { color: #3e5a61; }
.ab-wall a:hover, .ab-wall a:focus-visible { color: var(--ink); border-bottom-color: var(--marigold); }
.ab-wall-name {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translate(-50%, 4px);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font: 500 .78rem/1.3 var(--font);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.ab-wall a:hover .ab-wall-name, .ab-wall a:focus-visible .ab-wall-name { opacity: 1; transform: translate(-50%, 0); }
.ab-hello-note { margin: 22px 0 0; font-size: .92rem; color: var(--muted); }

/* the one load moment: greetings appear in a single quick sweep */
@keyframes ab-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ab-wall li { animation: ab-in .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 22ms); }

/* ---------- Sections ---------- */
.ab-section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.ab-section--tint { background: var(--key); }
.ab-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: start; }
.ab-prose p { max-width: 66ch; margin: 0 0 14px; font-size: 1.06rem; line-height: 1.7; color: #24393f; }
.ab-prose p:last-child { margin-bottom: 0; }
.ab-prose a, .ab-more a, .ab-social a { font-weight: 600; text-underline-offset: 3px; }

.ab-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; margin: 0; }
.ab-list div { padding: 14px 0; border-top: 1px solid var(--line); }
.ab-list dt { font-weight: 600; margin-bottom: 4px; }
.ab-list dd { margin: 0; color: var(--muted); line-height: 1.6; }

.ab-principles { display: grid; gap: 22px; margin: 0 0 22px; padding: 0; list-style: none; }
.ab-principles li { display: flex; gap: 18px; align-items: flex-start; }
.ab-cap {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 48px;
  border-radius: 9px;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--key-edge);
  background: var(--key);
  color: var(--lagoon);
  font: 600 1.15rem "Noto Sans Devanagari", var(--font);
}
.ab-principles h3 { margin: 4px 0 4px; font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.ab-principles p { margin: 0; max-width: 62ch; color: #24393f; line-height: 1.65; }
.ab-more { margin: 0; color: var(--muted); line-height: 1.6; }

/* ---------- Contact ---------- */
.ab-contact { padding: 64px 0; background: var(--lagoon); color: #fff; }
.ab-contact h2 { color: #fff; }
.ab-contact-text { max-width: 58ch; margin: 0 0 20px; font-size: 1.08rem; line-height: 1.65; color: #d5ebf0; }
.ab-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ab-key {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: #0f4c59;
  border: 1px solid #2a7586;
  border-bottom: 2px solid #0a3741;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  transition: transform .1s, border-bottom-width .1s, background-color .15s;
}
.ab-key:hover { background: #0a3f4a; }
.ab-key:active { transform: translateY(1px); border-bottom-width: 1px; }
.ab-key--primary { background: var(--key); border-color: var(--key); border-bottom-color: #8fc3cf; color: var(--ink) !important; }
.ab-key--primary:hover { background: #fff3d6; border-bottom-color: var(--marigold); }
.ab-social { margin: 18px 0 0; color: #d5ebf0; }
.ab-social a { color: #fff; }

.ab-policies { padding: 22px 0; background: var(--key); border-top: 1px solid var(--line); }
.ab-policies .container-xl { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; font-size: .92rem; }
.ab-policies span:first-child { font-weight: 600; color: var(--ink); }
.ab-policies a { font-weight: 500; }
.ab-updated { margin-left: auto; color: var(--muted); }

/* footer edge to edge, like the home page and guides */
.page-about .site-footer { max-width: none; margin-top: 0; padding-inline: max(26px, calc((100% - 1100px) / 2 + 26px)); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .ab-split { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 767.98px) {
  .ab-hero { padding: 36px 0 32px; }
  .ab-section, .ab-contact { padding: 48px 0; }
  .ab-list { grid-template-columns: 1fr; }
  .ab-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .ab-facts div { padding: 0 0 0 14px; margin: 0; border-right: 0; border-left: 2px solid var(--line); }
  .ab-facts dd { font-size: 1.5rem; }
  .ab-wall { gap: 4px 18px; }
  .ab-updated { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-wall li { animation: none; }
  .ab-wall a, .ab-wall-name, .ab-key { transition: none; }
}
