/* ==========================================================================
   About page
   ========================================================================== */

.ab-hero {
  padding: 24px 0 0;
  max-width: 64ch;
}
.ab-hero p {
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
.ab-hero a {
  color: var(--ink-2);
}

.ab-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 16px !important;
}
.ab-avail-dot {
  width: 8px;
  height: 8px;
  background: var(--tijuca);
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tijuca) 25%, transparent);
}

.ab-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 64ch;
  margin: 0 0 16px;
}
.ab-duo > .ab-box {
  max-width: none;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
}

.ab-scope {
  max-width: 64ch;
  margin: 0 0 56px;
}
.ab-scope-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ab-scope-list li {
  font-size: var(--fs-small, 13px);
  color: var(--ink-2);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm, 6px);
  background: var(--paper);
}
.ab-duo .ab-toolbox-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-1);
  margin: 0 0 16px;
}
.ab-duo .ab-tool {
  width: 24px;
  height: 24px;
}
.ab-duo .ab-toolbox-intro {
  font-size: 14px;
}
.ab-duo .ab-scope-list {
  display: block;
  counter-reset: scope;
}
.ab-duo .ab-scope-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 8px;
  counter-increment: scope;
}
.ab-duo .ab-scope-list li::before {
  content: counter(scope, decimal-leading-zero);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-3, #9a8f7a);
  flex: none;
  min-width: 22px;
}
.ab-duo .ab-scope-list li:last-child {
  margin-bottom: 0;
}

.ab-isms {
  max-width: 64ch;
  margin: 0 0 56px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
}
.ab-isms .ab-toolbox-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-1);
  margin: 0 0 16px;
}
.ab-isms .ab-scope-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  counter-reset: scope;
}
.ab-isms .ab-scope-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 8px;
  counter-increment: scope;
}
.ab-isms .ab-scope-list li::before {
  content: counter(scope, decimal-leading-zero);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-3, #9a8f7a);
  flex: none;
  min-width: 22px;
}
.ab-isms .ab-scope-list li:last-child {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Story ------------------------------------------------------------- */
.ab {
  margin: 24px 0 96px;
}
.ab-story {
  max-width: 64ch;
  margin: 0 0 24px;
}
.ab-story p {
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.ab-story p:last-child {
  margin-bottom: 0;
}
.ab-story a {
  color: var(--ink-2);
}

.ab-closer {
  max-width: 64ch;
  margin: 0 0 24px;
  padding-top: 8px;
}
.ab-closer p {
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* Copy-email button */
.copy-email {
  appearance: none;
  background-color: transparent;
  border: 0;
  padding: 0 0 2px;
  font: inherit;
  line-height: inherit;
  vertical-align: baseline;
  cursor: pointer;
  display: inline;
  position: relative;
  --tip-x: 50%;
  --tip-y: 0;
}
.copy-email::after {
  content: attr(data-tip);
  position: absolute;
  left: var(--tip-x);
  top: var(--tip-y);
  transform: translate(-50%, calc(-100% - 14px));
  background-color: var(--bougainvillea);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFEFA' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'><rect x='9' y='9' width='13' height='13' rx='2'/><path d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/></svg>");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 18px 18px;
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 8px 16px 8px 38px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(26, 20, 16, 0.12);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.copy-email:hover::after,
.copy-email:focus-visible::after,
.copy-email.is-copied::after {
  opacity: 1;
}
.copy-email.is-copied::after {
  background-color: var(--tijuca);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFEFA' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}

/* ----- Gallery grid ------------------------------------------------------ */
.ab-gallery { margin: 0; }
.ab-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ab-cell {
  aspect-ratio: 4 / 5;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.ab-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ----- Responsive -------------------------------------------------------- */
@media (max-width: 720px) {
  .ab-grid { gap: 8px; }
  .ab-toolbox-box { padding: 0; }
  .ab-toolbox-list { gap: 16px; }
}

/* ----- Toolbox ----------------------------------------------------------- */
.ab-toolbox {
  max-width: 64ch;
  margin: 0 0 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
}
.ab-toolbox-title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.ab-toolbox .ab-toolbox-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-1);
  margin: 0 0 16px;
}
.ab-toolbox-intro {
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 20px;
}
.ab-toolbox .ab-toolbox-intro {
  font-size: 14px;
}
.ab-toolbox-box {
  padding: 0;
}
.ab-toolbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.ab-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--ink-1);
  position: relative;
  transition: color 0.15s ease, transform 0.15s ease;
  cursor: default;
}
.ab-tool svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ab-tool:hover {
  color: var(--ipanema-strong);
  transform: translateY(-1px);
}
.ab-tool::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ipanema-strong);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(26, 20, 16, 0.12);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.ab-tool:hover::after,
.ab-tool:focus-visible::after {
  opacity: 1;
}
