:root {
  color-scheme: light;
  --brand: #851568;
  --deep: #68104f;
  --accent-ink: #171717;
  --soft: #eee4eb;
  --bg: #f7f2ea;
  --paper: #fffdf9;
  --ink: #251822;
  --muted: #6c5e64;
  --line: #dcd1c7;
  --on-deep: #fffaf4;
  --focus: #bc6437;
  --amazon: #24333b;
  --mercado-livre: #ffe36b;
  --max: 1220px;
  --radius: 22px;
  --font-sans: "Google Sans Flex", sans-serif;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

[data-preview-theme="dark"],
.dark {
  color-scheme: dark;
  --bg: #171216;
  --paper: #241c22;
  --ink: #fff7fd;
  --muted: #dec6d8;
  --line: #4e4148;
  --soft: #34272f;
  --deep: #120d11;
  --accent-ink: #a9d4d1;
  --on-deep: #fffaf4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select,
textarea,
a {
  touch-action: manipulation;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.48;
}

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

a:hover {
  color: var(--accent-ink);
}

img,
picture,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

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

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2.75rem, 5.1vw, 5.5rem);
  font-weight: 780;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  font-weight: 740;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.18rem;
  font-weight: 710;
  letter-spacing: -0.015em;
}

p,
li,
dd {
  line-height: 1.65;
}

ul,
ol,
dl {
  margin-block: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
}

[hidden] {
  display: none !important;
}

:where(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.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;
}

.skip-link {
  position: fixed;
  inset: 0 auto auto 0.75rem;
  z-index: 100;
  transform: translateY(-140%);
  padding: 0.75rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  background: var(--paper);
  color: var(--accent-ink);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  min-height: 6rem;
  padding-block: 1.35rem;
}

.site-logo {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  color: var(--accent-ink);
  font-size: 1.5rem;
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-logo span {
  font-weight: 470;
}

.site-logo b {
  color: var(--accent-ink);
}

.site-logo:hover {
  color: var(--accent-ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding-block: 0.65rem;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a[aria-current="page"] {
  color: var(--accent-ink);
}

.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 0.28rem;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
}

.site-main {
  min-height: 65vh;
  overflow: clip;
}

.site-footer {
  margin-top: clamp(3rem, 7vw, 6.5rem);
  background: var(--soft);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(12rem, 0.75fr) minmax(0, 1.25fr);
  gap: 2rem 4rem;
  padding-block: 3.25rem;
}

.site-footer__brand p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer__nav {
  display: flex;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 0.8rem 1.5rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  font-weight: 620;
}

.site-footer__note {
  grid-column: 1 / -1;
  max-width: 76ch;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 800px) {
  .wrap {
    width: min(calc(100% - 2.75rem), var(--max));
  }

  .site-header {
    min-height: 0;
    gap: 1rem;
    padding-block: 1.25rem 1rem;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-top: 0.35rem;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    gap: 1.25rem;
    scrollbar-width: thin;
  }

  .site-nav a {
    font-size: 0.8rem;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    padding-block: 2.5rem;
  }

  .site-footer__nav {
    justify-content: flex-start;
  }

  .site-footer__note {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .wrap {
    width: min(calc(100% - 2rem), var(--max));
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 3.45rem);
  }

  .site-logo {
    font-size: 1.35rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Tira Mancha identity — tactile editorial system. */
body {
  background:
    radial-gradient(circle at 15% -10%, color-mix(in srgb, var(--paper) 85%, transparent), transparent 34rem),
    var(--bg);
}

h1,
h2 {
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 650;
  letter-spacing: -0.045em;
}

.site-header {
  position: relative;
  z-index: 20;
  min-height: 7rem;
  padding-block: 1.5rem;
}

.site-logo {
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.site-logo img {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  box-shadow: 0 6px 20px rgb(52 18 46 / 12%);
}

.site-logo span,
.site-logo strong {
  font-weight: 500;
}

.site-logo strong {
  font-weight: 800;
}

.site-nav {
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  box-shadow: 0 14px 35px rgb(42 25 35 / 6%);
  backdrop-filter: blur(16px);
}

.site-nav a {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font-size: 0.79rem;
}

.site-nav a[aria-current="page"] {
  background: var(--deep);
  color: var(--on-deep);
}

.site-nav a[aria-current="page"]::after {
  display: none;
}

.site-footer {
  background: var(--deep);
  color: var(--on-deep);
}

.site-footer .site-logo,
.site-footer a,
.site-footer__brand p,
.site-footer__note {
  color: var(--on-deep);
}

.site-footer__brand p,
.site-footer__note {
  opacity: 0.7;
}

@media (max-width: 800px) {
  .site-header {
    min-height: 0;
    padding-block: 1rem;
  }

  .site-nav {
    margin-inline: -0.25rem;
    padding: 0.25rem;
    border-top: 1px solid var(--line);
    border-radius: 0.8rem;
    gap: 0;
  }

  .site-nav a {
    padding-inline: 0.75rem;
  }
}
