/* Fraunces © The Fraunces Project Authors; Newsreader © The Newsreader Project Authors.
   SIL Open Font License 1.1. Ver fonts/Fraunces-OFL.txt y fonts/Newsreader-OFL.txt. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/fraunces-roman.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/fraunces-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 650;
  font-display: swap;
  src: url("fonts/newsreader-roman.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400 560;
  font-display: swap;
  src: url("fonts/newsreader-italic.woff2") format("woff2");
}

:root {
  --paper: #f3eadc;
  --paper-2: #e7dcc8;
  --shop: #f7f1e6;
  --ink: #1c140f;
  --soft: #3a2e26;
  --line: rgba(28, 20, 15, 0.22);
  --stamp: #7c241c;
  --cream: #fffaf4;
  --display: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --text: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --shadow: 8px 8px 0 var(--ink);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  font-weight: 420;
  line-height: 1.45;
  font-optical-sizing: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(28, 20, 15, 0.035), transparent 14rem);
}

h1, h2, h3, p { margin: 0; }

h1, h2, h3, .mark, .btn, .price, .code, .index, .facts strong {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 560;
}

a { color: inherit; }

:focus { outline: none; }

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 5;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  text-decoration: none;
}

.skip:focus { top: 0.6rem; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mast {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.dateline {
  margin: 0;
  padding-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--soft);
}

.mast-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.35rem 0 0.9rem;
}

.mark {
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.mark em { font-style: italic; font-weight: 560; }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-size: 1.05rem;
  text-underline-offset: 0.18em;
}

.hero { padding: 2.2rem 0 0; }

.hero-grid {
  display: grid;
  gap: 1.75rem;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 8vw, 5.35rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 620;
  max-width: 11ch;
}

.hero-copy h1 em { font-style: italic; font-weight: 560; }

.lead, .dek {
  margin-top: 1rem;
  max-width: 38rem;
  font-size: 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 1.05rem;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 1.08rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.btn:hover,
.btn:focus-visible {
  background: var(--stamp);
  border-color: var(--stamp);
  color: var(--cream);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.ejemplo, .fine, figcaption, .facts-label {
  color: var(--soft);
  font-size: 0.98rem;
}

.ejemplo { font-style: italic; }

.stage { display: grid; gap: 0.8rem; }

.stage-plate {
  position: relative;
  border: 1.5px solid var(--ink);
  background: var(--shop);
  box-shadow: var(--shadow);
}

.proof {
  position: absolute;
  z-index: 1;
  top: 3.4rem;
  right: 0.7rem;
  width: 5.4rem;
  height: 5.4rem;
  margin: 0;
  display: grid;
  place-items: center;
  border: 2px solid var(--stamp);
  border-radius: 50%;
  color: var(--stamp);
  font-family: var(--display);
  font-style: italic;
  font-weight: 560;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transform: rotate(-14deg);
}

.store-bar {
  margin: 0;
  padding: 0.55rem 0.8rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 560;
  line-height: 1.25;
}

.stage-body {
  display: grid;
  gap: 0.8rem;
  padding: 1rem 1rem 1.15rem;
}

.plate {
  position: relative;
  min-height: 11.5rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent 0 70%, rgba(28, 20, 15, 0.04) 100%),
    #efe4d2;
  display: grid;
  place-items: center;
}

.shirt {
  width: 7.4rem;
  height: 8.6rem;
  background: #9c3b2c;
  clip-path: polygon(20% 16%, 36% 6%, 50% 16%, 64% 6%, 80% 16%, 100% 32%, 84% 40%, 76% 100%, 24% 100%, 16% 40%, 0 32%);
  position: relative;
}

.shirt::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22%;
  bottom: 12%;
  width: 1px;
  background: rgba(255, 244, 230, 0.75);
  box-shadow: 0 1.15rem 0 2.5px #f4e7d6, 0 2.3rem 0 2.5px #f4e7d6;
}

.shirt::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 14%;
  width: 1.35rem;
  height: 0.85rem;
  transform: translateX(-50%);
  background: #efe4d2;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.tag {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  margin: 0;
  padding: 0.2rem 0.4rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 620;
}

.pname {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price {
  margin-top: 0.35rem;
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.7rem;
}

.sizes span {
  min-width: 2rem;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  font-family: var(--display);
  font-size: 0.95rem;
}

.sizes .on { background: var(--ink); color: var(--paper); }

.stage-link a {
  font-family: var(--display);
  font-size: 1.15rem;
}

.facts-label {
  margin: 2rem 0 0.4rem;
  font-family: var(--display);
  font-style: normal;
  font-weight: 620;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--stamp);
}

.facts {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.facts li {
  padding: 0.9rem 0.2rem 1rem;
  border-bottom: 1px solid var(--line);
}

.facts li:last-child { border-bottom: 0; }

.facts strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.facts span { display: block; margin-top: 0.35rem; color: var(--soft); }

.section-head { padding: 2.4rem 0 0.4rem; max-width: 40rem; }

.section-head h2,
.cta-band h2 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.dek { margin-top: 0.8rem; }

.piece {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 0;
  border-top: 1px solid var(--ink);
}

.index {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--stamp);
}

.piece h3 {
  margin: 0.15rem 0 0.7rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.piece-copy p + p { margin-top: 0.75rem; }

.piece-copy .btn { margin-top: 1rem; }

.card {
  margin: 0;
  padding: 1rem;
  border: 1.5px solid var(--ink);
  background: var(--shop);
}

.card figcaption {
  margin-bottom: 0.7rem;
  font-family: var(--display);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.card-title {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.45rem;
}

.fake-btn,
.fake-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0.8rem 0.6rem 0 0;
  padding: 0.35rem 0.75rem;
  border: 1.5px solid var(--ink);
  font-family: var(--display);
}

.fake-btn { background: var(--ink); color: var(--paper); }

.fake-quiet { background: transparent; }

.ghost-fake {
  background: transparent;
  color: var(--ink);
}

.bar-lg { margin-top: 0.2rem; }

.lines { margin: 1rem 0 0; }

.lines div {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.lines dt {
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}

.lines dd { margin: 0; }

.fine { margin-top: 0.7rem; }

.chips, .seals {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}

.chip {
  font-family: var(--display);
  font-weight: 620;
  border-bottom: 2px solid var(--stamp);
}

.chip-note { color: var(--soft); font-size: 1rem; }

.seals {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.seals li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}

.sizes-lg { margin: 0 0 0.8rem; }

.linklook {
  border: 0 !important;
  min-width: 0 !important;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  padding-inline: 0.2rem;
}

.panel {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 0.8rem;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.panel .fake-quiet { margin: 0; min-height: 0; padding: 0.2rem 0.45rem; }

.table-wrap { overflow-x: auto; margin-top: 0.6rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

caption {
  text-align: left;
  font-style: italic;
  color: var(--soft);
  margin-bottom: 0.4rem;
}

th, td {
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

thead th { font-family: var(--display); font-weight: 560; }

.price-sm { font-size: 1.6rem; }

.sold {
  margin: 0.2rem 0 0.4rem;
  font-family: var(--display);
}

.field {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.8rem;
}

.field span:first-child { font-family: var(--display); }

.box, .tick {
  display: inline-block;
  border: 1.5px solid var(--ink);
  background: var(--paper);
}

.box { height: 44px; }

.tick {
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.4rem;
  vertical-align: -0.15rem;
}

.check { margin-top: 0.75rem; }

#instalar { background: var(--paper-2); border-top: 1px solid var(--ink); }

.steps {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0 0 2.4rem;
  display: grid;
  gap: 1.2rem;
}

.steps li {
  padding-top: 0.8rem;
  border-top: 1px solid var(--ink);
}

.steps h3 {
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.step-n {
  color: var(--stamp);
  margin-right: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.limit {
  margin: 0 0 2.2rem;
  max-width: 40rem;
  font-style: italic;
}

#demos { border-top: 1px solid var(--ink); }

.demo-list {
  list-style: none;
  margin: 1rem 0 2.5rem;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.demo-list a,
.demo-list .demo-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.9rem;
  align-items: center;
  min-height: 52px;
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.25rem;
}

.demo-list a span:first-child,
.demo-list .demo-row > span:first-child {
  color: var(--stamp);
  font-variant-numeric: tabular-nums;
}

.demo-list .go,
.demo-list .soon {
  grid-column: 1 / -1;
  font-family: var(--text);
  font-size: 1rem;
}

.demo-list .go {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.demo-list .soon { color: var(--soft); }

.demo-list a:hover,
.demo-list a:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline-offset: -3px;
}

.demo-list a:hover .go,
.demo-list a:focus-visible .go,
.demo-list a:hover span:first-child,
.demo-list a:focus-visible span:first-child { color: var(--paper); }

.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 3.2rem 0 3.5rem;
}

.kicker-light { color: #f0d2c8; }

.dek-light { color: var(--paper); }

.btn-paper {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn-paper:hover,
.btn-paper:focus-visible {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
  outline-color: var(--cream);
}

.colophon {
  padding: 1.2rem 0 1.6rem;
  color: var(--soft);
  font-size: 1rem;
}

code { font-family: var(--text); font-style: italic; }

dialog {
  width: min(26rem, calc(100vw - 2.4rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 1.25rem 1.2rem 1.1rem;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

dialog::backdrop { background: rgba(28, 20, 15, 0.72); }

dialog h2 {
  margin: 0.45rem 0 0.55rem;
  font-size: clamp(2rem, 6vw, 2.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.code {
  margin: 0.8rem 0 0.2rem;
  padding: 0.55rem 0.4rem;
  border: 1px dashed var(--ink);
  text-align: center;
  font-size: 1.8rem;
  letter-spacing: 0.12em;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

#popup-status:empty { margin: 0; }

#popup-status:not(:empty) {
  margin-top: 0.8rem;
  font-style: italic;
}

::selection { background: var(--ink); color: var(--paper); }

@media (min-width: 720px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li { padding: 1rem 1rem 1.1rem 0; }
  .facts li:nth-child(odd) { padding-right: 1rem; border-right: 1px solid var(--line); }
  .facts li:nth-child(1),
  .facts li:nth-child(2) { border-bottom: 1px solid var(--line); }
  .facts li:nth-child(3),
  .facts li:nth-child(4) { border-bottom: 0; }
  .stage-body { grid-template-columns: 9.5rem 1fr; align-items: center; }
  .demo-list a,
  .demo-list .demo-row { grid-template-columns: auto 1fr auto; }
  .demo-list .go,
  .demo-list .soon { grid-column: auto; font-family: var(--display); font-size: 1.05rem; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 3rem;
    align-items: end;
  }
  .piece {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 3rem;
    align-items: center;
  }
  .piece:nth-of-type(even) .piece-copy { order: 2; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts li,
  .facts li:nth-child(odd),
  .facts li:nth-child(1),
  .facts li:nth-child(2),
  .facts li:nth-child(3),
  .facts li:nth-child(4) {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 1rem 1rem 1.15rem 0;
  }
  .facts li:last-child { border-right: 0; }
  dialog { box-shadow: 10px 10px 0 var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 380px) {
  .wrap { width: calc(100% - 1.25rem); }
  .proof { width: 4.4rem; height: 4.4rem; font-size: 0.68rem; top: 3rem; }
  .stage-plate { box-shadow: 4px 4px 0 var(--ink); }
}
