/* Cordel na feira: folheto paper, woodcut ink, string and pin. */

@font-face { font-family: "Ultra"; src: url("fonts/ultra-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Old Standard TT"; src: url("fonts/old-standard-tt-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Old Standard TT"; src: url("fonts/old-standard-tt-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Old Standard TT"; src: url("fonts/old-standard-tt-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;

  /* paper and ink */
  --sun: #EFB01F;          /* the page: one big yellow folheto */
  --sun-deep: #D99A10;
  --sun-pale: #F4CF78;     /* secondary text on the ink matrix, hover on yellow controls */
  --ink: #17130F;
  --ink-soft: #3B2A0C;     /* secondary text on yellow, tinted from the ink */
  --urucum: #C6361F;       /* pulses, stamps, focus */
  --urucum-deep: #A12A16;

  /* folheto stocks */
  --rosa: #EE9DB2;
  --verde: #86C7AC;
  --anil: #93B5E0;
  --laranja: #F0915A;
  --jornal: #EFE7D2;

  --pin: #D5A867;
  --pin-dark: #B98B4C;

  --display: "Ultra", "Rockwell Extra Bold", serif;
  --text: "Old Standard TT", "Georgia", serif;

  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .07 0 0 0 0 .04 1.3 0 0 0 -.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .2' numOctaves='2' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .12 0 0 0 0 .02 0.45 0 0 0 -.28'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}

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

html {
  background: var(--sun);
  color: var(--ink);
  scroll-behavior: smooth;
  scrollbar-color: var(--ink) var(--sun-deep);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sun) var(--fibers);
  font-family: var(--text);
  font-size: clamp(1.0625rem, .35vw + 1rem, 1.1875rem);
  line-height: 1.55;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

/* paper grain over everything, never over interaction */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  opacity: .5;
  pointer-events: none;
  z-index: 60;
  mix-blend-mode: multiply;
}

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

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--urucum-deep); }

:focus-visible { outline: 3px solid var(--urucum-deep); outline-offset: 4px; }
.stock :focus-visible { outline-color: var(--sun); }

svg { display: block; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--sun); padding: 10px 16px; font-weight: 700;
}
.skip:focus { top: 12px; }
.skip:hover { color: var(--sun); }

/* ——— masthead ——— */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter) 0;
  position: relative;
  z-index: 5;
}
.masthead__name {
  font-family: var(--display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-decoration: none;
}
.masthead__nav { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.masthead__nav a {
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .35s var(--ease-out);
}
.masthead__nav a:hover { background-size: 100% 2px; color: var(--ink); }

/* ——— wood type ——— */

.woodtype {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .84;
  letter-spacing: -.005em;
  margin: 0;
  filter: url(#press);
}
.fit { display: block; white-space: nowrap; font-size: clamp(3.4rem, 9.6vw, 9.5rem); }
.fit--big { font-size: clamp(4.4rem, 14vw, 13rem); }

.woodtype__rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: .32em 0 .26em;
  font-family: var(--text);
  font-weight: 700;
  font-size: clamp(.8rem, .55vw + .62rem, 1.1rem);
  letter-spacing: .26em;
  line-height: 1.2;
  text-transform: uppercase;
}
.woodtype__rule::before, .woodtype__rule::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 3px solid currentColor;
  border-bottom: 1px solid currentColor;
  padding-top: 3px;
}

/* ——— hero ——— */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
  padding: clamp(36px, 7vh, 84px) var(--gutter) clamp(56px, 9vh, 110px);
  min-height: min(calc(100svh - 64px), 1000px);
}

.hero__copy { position: relative; z-index: 2; max-width: 780px; }

.hero__lede {
  font-style: italic;
  font-size: clamp(1.25rem, 1.1vw + .9rem, 1.6rem);
  line-height: 1.38;
  max-width: 34ch;
  margin: clamp(26px, 4vh, 40px) 0 18px;
}

.hero__trade {
  margin: 0 0 30px;
  font-weight: 700;
  font-size: .86rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.hero__trade .orn { width: 10px; height: 10px; color: var(--urucum); }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

.press {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px 15px;
  background: var(--ink);
  color: var(--sun);
  font-family: var(--display);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-decoration: none;
  box-shadow: 0 6px 14px -6px rgb(60 30 0 / .55);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s;
}
.press svg { width: 18px; height: 18px; }
.press:hover { color: #FFF3DC; background: var(--urucum-deep); transform: translateY(2px); box-shadow: 0 2px 5px -2px rgb(60 30 0 / .6); }

.quiet-link { font-weight: 700; }

.hero__for {
  margin: clamp(30px, 5vh, 52px) 0 0;
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: .98rem;
}

.hero__stand {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 18px;
}
.hero__stand .folheto { --w: clamp(240px, 25vw, 360px); }

.hero__string {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

/* ——— the string ——— */

.string { overflow: visible; }
.string__line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.string__pulse { fill: var(--urucum); opacity: 0; }

/* ——— folheto ——— */

.folheto {
  --w: clamp(170px, 15.5vw, 240px);
  --tilt: 0deg;
  --drop: 0px;
  position: relative;
  flex: none;
  width: var(--w);
  list-style: none;
  transform: translateY(calc(var(--drop) + var(--jit, 0px))) rotate(var(--tilt));
  transform-origin: 50% -14px;
}
.folheto__sway { transform-origin: 50% -14px; }
.folheto:hover .folheto__sway,
.folheto:focus-within .folheto__sway { animation: sway 1.6s var(--ease-out); }

@keyframes sway {
  0% { transform: rotate(0); }
  18% { transform: rotate(3.2deg); }
  40% { transform: rotate(-2deg); }
  62% { transform: rotate(1deg); }
  82% { transform: rotate(-.4deg); }
  100% { transform: rotate(0); }
}

.folheto__pin {
  position: absolute;
  top: calc(var(--w) * -.12);
  left: 50%;
  width: calc(var(--w) * .085);
  min-width: 14px;
  height: auto;
  aspect-ratio: 20 / 56;
  transform: translateX(-50%);
  z-index: 3;
  filter: drop-shadow(0 2px 2px rgb(40 20 0 / .35));
}

.folheto__cover {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  aspect-ratio: 11 / 16;
  padding: calc(var(--w) * .075) calc(var(--w) * .07) calc(var(--w) * .06);
  border: 0;
  background: var(--paper) var(--fibers);
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow:
    0 calc(var(--w) * .06) calc(var(--w) * .09) calc(var(--w) * -.04) rgb(60 30 0 / .5),
    0 2px 3px rgb(60 30 0 / .25);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
  text-decoration: none;
}
.folheto__cover:hover { color: var(--ink); transform: translateY(-6px); box-shadow: 0 calc(var(--w) * .1) calc(var(--w) * .12) calc(var(--w) * -.05) rgb(60 30 0 / .5), 0 2px 3px rgb(60 30 0 / .2); }
.folheto__cover::after {
  /* inner printed border */
  content: "";
  position: absolute;
  inset: calc(var(--w) * .035);
  border: 1.5px solid var(--ink);
  pointer-events: none;
}

.folheto__head {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: max(10px, calc(var(--w) * .058));
  letter-spacing: .08em;
  line-height: 1;
}
.folheto__title {
  margin: calc(var(--w) * .04) 0 calc(var(--w) * .045);
  font-weight: 700;
  font-size: max(10px, calc(var(--w) * .062));
  line-height: 1.12;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-wrap: balance;
}
.folheto__key {
  display: block;
  margin: .1em 0 .06em;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: .92;
  white-space: nowrap;
  font-size: min(calc(var(--w) * .19), calc(var(--w) * .76 / (var(--k) * .8)));
  filter: url(#press);
}
.folheto__art { flex: 1; display: flex; align-items: center; min-height: 0; }
.folheto__art .woodcut { width: 100%; height: auto; }
.folheto__by {
  margin-top: calc(var(--w) * .04);
  font-style: italic;
  font-size: max(11px, calc(var(--w) * .066));
  line-height: 1.1;
}

/* read stamp: the string remembers */
.folheto__stamp {
  position: absolute;
  right: 6%;
  bottom: 22%;
  padding: .3em .55em .2em;
  border: 2.5px solid var(--urucum);
  color: var(--urucum);
  font-family: var(--display);
  font-size: max(10px, calc(var(--w) * .07));
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: rotate(-14deg) scale(1.6);
  opacity: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease-out);
}
.folheto.is-read .folheto__stamp { opacity: .9; transform: rotate(-14deg) scale(1); }
.folheto.is-read { --pin: #E07A5F; --pin-dark: #C6361F; }

/* the blank one */
.folheto--next .folheto__cover { background: var(--jornal) var(--fibers); }
.folheto--next .folheto__cover::after { border-style: dashed; }
.folheto__blank {
  flex: 1;
  display: grid;
  place-content: center;
  gap: .3em;
  border: 2px dashed var(--ink);
  margin: calc(var(--w) * .02) 0;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: calc(var(--w) * .1);
  line-height: .95;
}
.folheto__blank small {
  display: block;
  font-family: var(--text);
  font-style: italic;
  text-transform: none;
  font-size: calc(var(--w) * .066);
  line-height: 1.2;
  padding-inline: 10%;
}

/* woodcut svg */
.woodcut { color: var(--ink); overflow: visible; }
.woodcut > g { filter: url(#carve); }
.woodcut__frame { fill: none; stroke: currentColor; stroke-width: 5; }

/* ——— feira ——— */

.feira { padding: clamp(40px, 8vh, 90px) 0 clamp(40px, 8vh, 80px); }

.feira__head, .stock__inner > .section-title, .stock__inner > .section-sub {
  padding-inline: var(--gutter);
}

.section-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 4.6vw, 4.6rem);
  line-height: .92;
  letter-spacing: -.005em;
  margin: 0 0 18px;
  max-width: 16ch;
  text-wrap: balance;
  filter: url(#press);
}
.section-sub {
  font-style: italic;
  font-size: clamp(1.1rem, .5vw + 1rem, 1.3rem);
  max-width: 54ch;
  margin: 0;
  color: var(--ink-soft);
}

.line { position: relative; margin-top: clamp(4px, 2vh, 24px); }

.line__track {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.line__track::-webkit-scrollbar { height: 6px; }
.line__track::-webkit-scrollbar-thumb { background: var(--ink); }

.line__string {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  pointer-events: none;
}

.line__items {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: clamp(26px, 3.4vw, 56px);
  width: max-content;
  min-width: 100%;
  margin: 0;
  padding: 58px var(--gutter) 88px;
}
.line__items > li { scroll-snap-align: center; }

@media (min-width: 761px) {
  .line__items {
    width: min(100%, calc(var(--n, 4) * 330px));
    min-width: 0;
    justify-content: space-between;
  }
}
.string__nail { fill: var(--ink); }

/* era tag: a cardboard price tag on the string */
.tag {
  --w: 132px;
  position: relative;
  flex: none;
  width: var(--w);
  margin-top: 18px;
  list-style: none;
  transform: translateY(var(--drop)) rotate(var(--tilt, -3deg));
  transform-origin: 50% -18px;
}
.tag__card {
  position: relative;
  padding: 26px 14px 16px;
  background: var(--ink);
  color: var(--sun);
  clip-path: polygon(18% 0, 82% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
}
.tag__card::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--sun);
}
.tag::before {
  /* the loop of string through the tag's hole */
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  height: 30px;
  border-left: 2px solid var(--ink);
}
.tag__range {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.05;
  white-space: nowrap;
}
.tag__range > span { display: block; }
.tag__name {
  display: block;
  margin-top: 8px;
  font-style: italic;
  font-size: .95rem;
  line-height: 1.2;
}

/* ——— stock (the inked matrix) ——— */

.stock {
  background: var(--ink);
  color: var(--sun);
  padding: clamp(64px, 11vh, 130px) 0;
  position: relative;
}
.stock .section-title { filter: none; }
.stock .section-sub { color: var(--sun-pale); }
.stock a:hover { color: var(--sun); }
.stock ::selection { background: var(--sun); color: var(--ink); }

.catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 64px) clamp(28px, 4vw, 72px);
  padding: clamp(40px, 7vh, 72px) var(--gutter) 0;
}
.catalog__group h3 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 3px double var(--sun);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.catalog__group ul { list-style: none; margin: 0; padding: 0; }
.catalog__group li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  font-size: 1.06rem;
  line-height: 1.3;
}
.catalog__name { flex: none; max-width: 70%; }
.catalog__dots {
  flex: 1;
  min-width: 18px;
  border-bottom: 2px dotted rgb(239 176 31 / .55);
  transform: translateY(-4px);
}
.catalog__refs { flex: none; display: flex; gap: 4px; }
.catalog__ref {
  padding: 3px 5px 1px;
  border: 0;
  background: transparent;
  color: var(--sun);
  font: 700 .74rem/1 var(--text);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums lining-nums;
  cursor: pointer;
  box-shadow: inset 0 0 0 1.5px rgb(239 176 31 / .6);
  transition: background-color .2s, color .2s;
}
.catalog__ref:hover { background: var(--sun); color: var(--ink); }

/* ——— colophon ——— */

.colophon { padding: clamp(70px, 12vh, 140px) var(--gutter) clamp(40px, 6vh, 70px); }
.colophon__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 110px);
  margin-top: 30px;
}
.colophon__imprint {
  margin: 0;
  font-size: clamp(1.2rem, .9vw + .9rem, 1.55rem);
  line-height: 1.42;
  max-width: 32ch;
}
.colophon__list { margin: 0; display: grid; gap: 26px; }
.colophon__list > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 4px 20px; padding-top: 14px; border-top: 1.5px solid var(--ink); }
.colophon__list dt { grid-row: 1 / span 3; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; padding-top: 4px; }
.colophon__list dd { grid-column: 2; margin: 0; max-width: 46ch; }

/* ——— closing ——— */

.closing {
  padding: clamp(60px, 10vh, 120px) var(--gutter) clamp(90px, 14vh, 150px);
  text-align: center;
}
.closing__note {
  margin: 0 auto 28px;
  max-width: 40ch;
  font-style: italic;
  color: var(--ink-soft);
}
.acrostic {
  margin: 0 auto clamp(40px, 7vh, 70px);
  display: inline-block;
  text-align: left;
  font-size: clamp(1.3rem, 1.2vw + 1rem, 1.85rem);
  line-height: 1.45;
  font-style: italic;
}
.acrostic p { margin: 0; }
.acrostic b {
  text-transform: uppercase;
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  color: var(--urucum-deep);
  display: inline-block;
}
.closing__mail {
  display: block;
  margin-inline: auto;
  max-width: 1200px;
  text-decoration: none;
  text-transform: none;
}
.closing__mail .fit { font-size: clamp(1.9rem, 6.6vw, 6.8rem); text-transform: lowercase; }
.closing__mail:hover { color: var(--urucum-deep); }
.closing__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 32px;
  margin: 34px 0 0;
}
.closing__links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.closing__links svg { width: 18px; height: 18px; }
.closing__links span { color: var(--ink-soft); font-style: italic; }

.footer {
  padding: 22px var(--gutter) 28px;
  border-top: 3px double var(--ink);
  font-size: .9rem;
  color: var(--ink-soft);
}
.footer p { margin: 0; }

/* ——— the stamp ——— */

.stamp {
  position: fixed;
  right: clamp(12px, 2vw, 26px);
  bottom: clamp(12px, 2vw, 26px);
  z-index: 40;
  display: block;
  width: 98px;
  padding: 6px;
  background: var(--urucum);
  border: 5px dotted var(--sun);
  background-clip: border-box;
  color: #FFF3DC;
  text-decoration: none;
  transform: rotate(5deg);
  box-shadow: 0 8px 16px -6px rgb(60 20 0 / .55);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.stamp.is-tucked { transform: translateY(160%) rotate(5deg); }
.stamp__inner {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 6px 8px;
  border: 1.5px solid #FFF3DC;
  font-family: var(--display);
  font-size: .8rem;
  line-height: .95;
  text-align: center;
  text-transform: uppercase;
}
.stamp svg { width: 26px; height: 26px; }
.stamp:hover { color: #FFF3DC; transform: rotate(0) translateY(-4px); box-shadow: 0 14px 22px -8px rgb(60 20 0 / .55); }

/* ——— the booklet ——— */

.booklet {
  --paper: var(--rosa);
  width: min(1120px, 94vw);
  max-width: none;
  height: min(700px, 90svh);
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.booklet::backdrop { background: rgb(23 19 15 / .82); }
.booklet[open] { animation: lift .5s var(--ease-out); }
.booklet[open]::backdrop { animation: fade .4s var(--ease-out); }
@keyframes lift { from { transform: translateY(40px) scale(.96); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.booklet__spread {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  perspective: 2400px;
}
.booklet__page {
  position: relative;
  background: var(--paper) var(--fibers);
  min-height: 0;
}
.booklet__page--left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: clamp(28px, 4vw, 56px);
  box-shadow: inset -26px 0 30px -24px rgb(60 30 0 / .45);
  opacity: 0;
}
.booklet__spread.is-open .booklet__page--left { opacity: 1; transition: opacity .15s linear .38s; }
.booklet__page--right {
  overflow-y: auto;
  padding: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 60px) 28px;
  box-shadow: inset 26px 0 30px -24px rgb(60 30 0 / .45);
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
}
.woodcut--big { width: 100%; height: auto; max-height: 72%; }
.booklet__imprint {
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.booklet__title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);
  line-height: .98;
  max-width: 18ch;
  text-wrap: balance;
}
.booklet__meta { margin: 0 0 26px; font-weight: 700; font-size: .95rem; }
.booklet__meta span { font-weight: 400; font-style: italic; }

.verse {
  margin: 0 0 30px;
  padding: 20px 0 20px 22px;
  border-left: 1px solid var(--ink);
  font-style: italic;
  font-size: clamp(1.15rem, .6vw + 1rem, 1.35rem);
  line-height: 1.5;
}
.verse span { display: block; }
.verse span:nth-child(even) { padding-left: 1.2em; }

.booklet__h {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.booklet__work { margin: 0 0 26px; padding: 0; list-style: none; }
.booklet__work li { position: relative; margin-bottom: 6px; padding-left: 1.2em; max-width: 58ch; }
.booklet__work li::before { content: ""; position: absolute; left: .1em; top: .62em; width: .36em; height: .36em; background: var(--ink); transform: rotate(45deg); }
.booklet__bench { margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 700; }

.booklet__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 3px double var(--ink);
}
.booklet__step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 700 .9rem/1.2 var(--text);
  letter-spacing: .04em;
  cursor: pointer;
  text-align: left;
}
.booklet__step--next { text-align: right; margin-left: auto; }
.booklet__step svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease-out); }
.booklet__step:hover svg { transform: translateX(-4px); }
.booklet__step--next:hover svg { transform: translateX(4px); }
.booklet__step[hidden] { display: none; }

.booklet__leaf {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  transform-origin: 0 50%;
  transform-style: preserve-3d;
  transform: rotateY(0);
  pointer-events: none;
  z-index: 3;
}
.booklet__spread.is-open .booklet__leaf { transform: rotateY(-180deg); transition: transform .9s cubic-bezier(.3, .1, .15, 1); }
.booklet__leaf-front {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  box-shadow: 0 20px 40px -10px rgb(0 0 0 / .5);
}
.booklet__leaf-front .folheto__cover { --w: 520px; height: 100%; aspect-ratio: auto; cursor: default; box-shadow: none; }
.booklet__leaf-front .folheto__cover:hover { transform: none; }

.booklet__close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 14px -4px rgb(0 0 0 / .5);
  transition: transform .3s var(--ease-out), background-color .2s;
}
.booklet__close svg { width: 22px; height: 22px; }
.booklet__close:hover { transform: rotate(90deg); background: var(--sun-pale); }

/* ——— responsive ——— */

@media (max-width: 1100px) {
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 28px; }
  .hero__stand { padding-top: 64px; }
  .hero__stand .folheto { --w: min(300px, 66vw); }
  .colophon__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .masthead__nav a:not(:last-child) { display: none; }
  .folheto { --w: 160px; }
  .tag { --w: 92px; }
  .tag__card { padding: 24px 10px 12px; }
  .tag__range { font-size: .8rem; }
  .tag__name { font-size: .82rem; }
  .booklet__imprint { display: none; }
  .woodcut--big { width: 60%; margin-inline: auto; }
  .line { margin-top: 20px; }
  .line__items { padding-top: 50px; padding-bottom: 36px; gap: 22px; }
  .masthead__name { white-space: nowrap; }
  .woodtype__rule { letter-spacing: .12em; font-size: .68rem; gap: 8px; white-space: nowrap; }
  .hero__trade { letter-spacing: .1em; font-size: .78rem; gap: 8px; }
  .catalog { grid-template-columns: 1fr; }
  .colophon__list > div { grid-template-columns: 1fr; }
  .colophon__list dt { grid-row: auto; }
  .colophon__list dd { grid-column: auto; }

  .booklet { width: 100vw; height: 100svh; }
  .booklet__spread { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  .booklet__page--left { opacity: 1; flex-direction: row; align-items: center; padding: 22px 20px 18px; gap: 16px; box-shadow: inset 0 -20px 24px -22px rgb(60 30 0 / .5); }
  .woodcut--big { width: 42%; max-height: none; }
  .booklet__imprint { text-align: left; flex: 1; }
  .booklet__page--right { overflow: visible; padding: 26px 20px 32px; box-shadow: none; }
  .booklet__leaf { display: none; }
  .booklet__close { top: 10px; right: 10px; width: 44px; height: 44px; }
  .stamp { width: 80px; border-width: 4px; padding: 4px; }
  .stamp__inner { font-size: .7rem; padding: 7px 4px 6px; }
  .stamp svg { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
