:root {
  color-scheme: dark;
  --night: #0d1834;
  --navy: #112250;
  --sapphire: #3b507d;
  --champagne: #e7e2ce;
  --paper: #f5f4f0;
  --gold: #d9b771;
  --display: "Baskerville Old Face", Baskerville, Georgia, serif;
  font-family: system-ui, sans-serif;
  color: var(--paper);
  background: var(--night);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; min-height: 100svh; background: radial-gradient(ellipse at 47% 36%, #23365f, var(--night) 76%); }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.masthead {
  width: min(1320px, calc(100% - 80px)); min-height: 80px; margin: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; border-bottom: 1px solid #d4def027;
}
.home { display: inline-flex; width: fit-content; align-items: center; min-height: 44px; }
.home img { display: block; width: 114px; height: auto; }
.edition { font-size: 12px; font-weight: 550; text-transform: uppercase; letter-spacing: .21em; color: #e0dfdc; }
.contact-button {
  justify-self: end; text-decoration: none; white-space: nowrap; display: inline-flex;
  align-items: center; gap: .29em; min-height: 43px; padding: 0 16px;
  border: 1px solid #d9b7718c; border-radius: 2px; font-size: 14px;
}
.contact-button:hover { background: var(--gold); color: var(--night); }
.reader {
  width: min(1160px, calc(100% - 74px), max(748px, calc((100svh - 183px) * 1.73)));
  margin: 24px auto 0; padding-bottom: max(14px, env(safe-area-inset-bottom));
}
.book {
  container-type: inline-size; width: 100%; aspect-ratio: 1.73;
  border-radius: 3px; position: relative; isolation: isolate; touch-action: pan-y;
  box-shadow: 0 35px 85px #050b1a9c, 0 0 0 1px #a7adca38, 0 3px 0 #9a977f, 0 6px 0 #45506b;
}
.spread {
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: inherit;
  background: var(--paper); color: var(--navy);
  --edge: #806226; --side: #cfc8ad;
}
.spread::after { content: ""; position: absolute; z-index: 3; pointer-events: none; inset: 0;
  background: linear-gradient(90deg, transparent 49.15%, #1521431f 49.92%, #ffffff1b 50.1%, transparent 51.1%);
}
.eyebrow { margin: 0 0 1.55cqw; color: var(--edge); font-size: clamp(10px, 1.04cqw, 13px); font-weight: 750; letter-spacing: .16em; line-height: 1.4; }
h1 { margin: 0; font-family: var(--display); font-weight: 400; line-height: .96; letter-spacing: -.045em; font-size: 7cqw; }
h1 em { font-weight: 400; }
.subline, .cover-note, .spread-note, .contact-details { font-size: clamp(16px, 1.5cqw, 18px); line-height: 1.55; }
.subline { margin: 1.8cqw 0 0; max-width: 34ch; }
.copy { position: absolute; z-index: 4; }
.photo { position: absolute; overflow: hidden; isolation: isolate; background: #b8aa90; }
.art { display: block; width: 100%; height: 100%; object-fit: cover; }

.cover, .production, .back { --edge: var(--gold); color: var(--paper); background: var(--navy); }
.cover::after, .back::after { display: none; }
.cover::before, .back::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(136deg, transparent 0 5px, #aab8df0c 6px, transparent 7px 12px);
  mask-image: linear-gradient(108deg, #000, transparent 67%);
}
.cover .copy { left: 6%; top: 18%; width: 53%; }
.cover .eyebrow { margin-bottom: 3.55cqw; }
.cover h1 { font-size: 8.3cqw; }
.cover .subline { max-width: 25ch; margin-top: 2.6cqw; }
.cover .hero {
  z-index: 1; inset: 4% 2.4% 4% 49%; clip-path: polygon(11% 0, 100% 0, 100% 100%, 0% 100%);
}
.cover .hero .art { object-position: center 54%; }
.cover .cover-note { position: absolute; left: 6%; bottom: 7%; z-index: 5; margin: 0; padding-top: 1.35cqw; border-top: 1px solid #e5d3a36e; color: #e5dbc4; font-size: clamp(12px, 1.2cqw, 15px); }

.cover .hero::after, .back .hero::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, #0d183458); pointer-events: none; }

.weddings { background: linear-gradient(90deg, var(--paper) 50%, var(--champagne) 50%); }
.weddings .copy { top: 10%; left: 5%; width: 40%; }
.weddings .hero { inset: 0 0 0 50%; }
.weddings .hero .art { object-position: 54% 53%; }
.weddings .detail { inset: 50% 52.5% 7% 10%; clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%); }
.weddings .detail .art { object-position: 50% 49%; }


.social { background: linear-gradient(110deg, var(--champagne) 58%, var(--paper) 58%); }
.social .copy { left: 54%; top: 10%; width: 42%; }
.social h1 { font-size: 6.4cqw; }
.social .hero { inset: 0 52% 0 0; clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%); }
.social .hero .art { object-position: 50% 43%; }
.social .detail { inset: 46% 23% 8% 48%; z-index: 2; transform: rotate(-4deg); border: .55cqw solid var(--paper); }
.social .detail .art { object-position: center; }
.social .third { inset: 55% 4% 12% 74%; transform: rotate(5deg); border: .55cqw solid var(--paper); }
.social .third .art { object-position: 48% center; }

.production { background: linear-gradient(103deg, var(--navy) 60%, var(--sapphire) 60%); }
.production .copy { left: 5%; top: 8%; width: 49%; }
.production h1 { font-size: 6.75cqw; }
.production .hero { inset: 0 0 0 51%; clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); }
.production .hero .art { object-position: 50% 49%; }
.production .detail { inset: 58% 62% 6.3% 6%; border: .5cqw solid var(--champagne); transform: rotate(-4deg); }
.production .detail .art { object-position: center 44%; }
.production .spread-note { position: absolute; left: 41%; top: 69%; max-width: 10.5%; margin: 0; font-size: clamp(12px, 1.25cqw, 16px); }


.corporate { background: var(--champagne); }
.corporate::before { content: ""; position: absolute; inset: auto 0 0; height: 18%; background: var(--sapphire); clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%); }
.corporate .copy { left: 5%; top: 9%; width: 47%; }
.corporate .hero { inset: 0 0 0 50%; clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%); }
.corporate .hero .art { object-position: center; }
.corporate .detail { inset: 55% 56% 8% 8%; transform: rotate(-4deg); border: .48cqw solid var(--paper); }
.corporate .detail .art { object-position: 50% 44%; }

.food { background: var(--champagne); }
.food .copy { left: 5%; top: 10%; width: 44%; }
.food .hero { inset: 0 0 0 50%; }
.food .hero .art { object-position: center 67%; }
.food .detail { inset: 52% 55% 7% 5%; clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%); }
.food .detail .art { object-position: center 65%; }

.cakes { background: linear-gradient(90deg, #d7d1ba 50%, var(--paper) 50%); }
.cakes .copy { left: 54%; top: 9%; width: 43%; }
.cakes .hero { inset: 0 50% 0 0; }
.cakes .hero .art { object-position: center 49%; }
.cakes .detail { inset: 54% 7% 7% 55%; clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 93%); }
.cakes .detail .art { object-position: center 65%; }

.back .copy { left: 6%; top: 13%; width: 55%; }
.back h1 { font-size: 6.45cqw; }
.back .hero { inset: 4% 2.5% 4% 58%; clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); }
.back .hero .art { object-position: 46% center; }
.contact-details { position: absolute; z-index: 4; left: 6%; top: 59%; width: 50%; }
.quote { display: inline-flex; align-items: center; min-height: 46px; text-decoration: none; padding: .55em 1.02em; background: var(--gold); color: var(--night); font-weight: 680; border-radius: 2px; }
.quote:hover { background: var(--paper); }
.channels { margin-top: 1.3cqw; display: flex; flex-wrap: wrap; gap: .4em 1.35em; }
.channels a { text-decoration-color: #d9b7719b; text-underline-offset: .2em; }
.contact-details p { margin: .7em 0 0; color: var(--champagne); }

.controls { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; margin-top: 18px; align-items: center; }
.controls button, .dialog-heading button {
  color: var(--paper); border: 1px solid #bac6dd44; background: #162648; border-radius: 3px;
  font-size: 14px; font-weight: 550; padding: 0 13px; height: 44px; white-space: nowrap;
}
.controls button:hover:not(:disabled), .dialog-heading button:hover { color: var(--night); background: var(--gold); border-color: var(--gold); }
.controls button:disabled { color: #a3abc0; opacity: .58; }
.index-button { display: inline-flex; align-items: center; gap: 9px; justify-self: start; }
.index-icon { width: 13px; height: 12px; display: inline-block; border-top: 1px solid; border-bottom: 1px solid; position: relative; }
.index-icon::after { content: ""; position: absolute; inset: 4.5px 0 auto; border-top: 1px solid; }
.paging { display: flex; align-items: center; justify-content: center; gap: 13px; }
.paging button { min-width: 88px; }
#position { min-width: 52px; text-align: center; color: #dddce2; font-variant-numeric: tabular-nums; font-size: 14px; }
.full-button { justify-self: end; }
dialog {
  max-height: calc(100svh - 32px); width: min(630px, calc(100% - 28px));
  padding: 20px 24px 24px; background: var(--navy); color: var(--paper);
  border: 1px solid #aaadbea8; border-radius: 5px; box-shadow: 0 15px 50px #0007; overflow: auto;
}
dialog::backdrop { background: #050b1bd4; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.dialog-heading h2 { font: 400 36px/1 var(--display); margin: 0; }
#chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
#chapters a { min-height: 62px; display: flex; align-items: center; gap: 11px; padding: 6px; border: 1px solid #bac6dd44; text-decoration: none; font-size: 14px; }
#chapters a:hover, #chapters a[aria-current] { border-color: var(--gold); }
.thumb { display: block; width: 62px; height: 48px; flex: 0 0 auto; object-fit: cover; }
noscript { display: block; margin: 20px auto; text-align: center; }

@media (max-width: 740px) {
  .masthead { width: calc(100% - 32px); min-height: 68px; }
  .reader { width: min(455px, calc(100% - 26px)); margin-top: 16px; }
  .book { aspect-ratio: auto; }
  .spread { height: min(660px, max(493px, calc(100svh - 170px))); }
  .spread::after { display: none; }
  .copy, .cover .copy, .back .copy { width: 88%; left: 6%; top: 5%; }
  .eyebrow { margin-bottom: 2.5cqw; font-size: 10px; }
  .cover .eyebrow { margin-bottom: 3.7cqw; }
  .copy h1, .cover h1, .back h1 { font-size: 12cqw; letter-spacing: -.035em; }
  .cover h1 { font-size: 13.6cqw; }
  .copy .subline { margin-top: 2.8cqw; font-size: clamp(13px, 3.6cqw, 16px); }
  .cover .subline { max-width: 26ch; font-size: clamp(13px, 3.9cqw, 16px); }

  .cover .hero { inset: 42% 4% 10% 4%; clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%); }
  .cover .hero .art { object-position: center 54%; }
  .cover .cover-note { left: 5%; bottom: 3%; border: 0; padding: 0; font-size: 11px; }

  .weddings, .cakes { background: var(--paper); }
  .social, .food, .corporate { background: var(--champagne); }
  .production { background: var(--navy); }
  .weddings .hero, .social .hero, .production .hero, .corporate .hero, .food .hero, .cakes .hero {
    inset: 34% 4% 5% 4%; clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
  }
  .weddings .copy, .social .copy, .production .copy, .corporate .copy, .food .copy, .cakes .copy {
    top: 5%; left: 6%; width: 88%;
  }
  .weddings .detail, .social .detail, .production .detail, .corporate .detail, .food .detail, .cakes .detail {
    inset: 70% 60% 9% 9%; border: 3px solid var(--paper); clip-path: none; transform: rotate(-5deg);
  }
  .social .third { inset: 75% 37% 7% 41%; z-index: 3; border: 3px solid var(--paper); }
  .social .hero .art { object-position: center 43%; }
  .production .copy h1 { font-size: 10.6cqw; }
  .production .hero { top: 39%; }
  .production .spread-note {
    top: auto; bottom: 10%; left: 47%; max-width: 40%; font-size: 12px;
    padding: 5px 8px; background: var(--navy); color: var(--paper);
  }
  .corporate .copy h1 { font-size: 11.3cqw; }
  .cakes .hero .art { object-position: 50% 51%; }

  .back .copy h1 { font-size: 10.5cqw; }
  .back .hero { inset: 26% 5% 32% 5%; clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%); }
  .contact-details { left: 6%; bottom: 5%; top: auto; width: 88%; font-size: clamp(12px, 3.4cqw, 15px); }
  .channels { margin-top: 2cqw; gap: .2em 1.1em; }
  .quote { min-height: 43px; }
  .controls { grid-template-columns: auto 1fr; gap: 8px; margin-top: 15px; }
  .full-button { display: none; }
  .paging { justify-content: end; gap: 6px; }
  .paging button { min-width: 0; }
  .index-button { gap: 5px; }
  .controls button { padding: 0 10px; font-size: 13px; }
  #position { min-width: 43px; font-size: 13px; }
}
@media (max-width: 480px) {
  .masthead { grid-template-columns: 1fr 1fr; }
  .edition, .index-icon { display: none; }
  #chapters a { gap: 7px; }
  .thumb { width: 43px; }
  dialog { padding: 17px 13px; }
}
@media (max-width: 338px) {
  .contact-button span { display: none; }
  .controls button { padding-inline: 7px; }
  .paging { gap: 3px; }
  #position { min-width: 37px; }
}
@media (prefers-reduced-motion: no-preference) {
  .contact-button, .controls button, #chapters a, .quote { transition: background-color .16s, color .16s, border-color .16s; }
}


.turning { position: absolute; inset: 0; z-index: 10; pointer-events: none; transform-origin: center center; }
.turning-right { clip-path: inset(0 0 0 50%); }
.turning-left { clip-path: inset(0 50% 0 0); }
@media (max-width: 740px) {
  .copy .subline, .contact-details { font-size: 15px; }
  .controls button, #position { font-size: 14px; }
}
/* Photo placements follow the focal point of each original. */
.cover .hero { inset: 2.75% 1.7% 2.75% 43.5%; clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); }
.cover .copy { left: 5.5%; width: 45%; }
.cover h1 { font-size: 7.68cqw; }
.cover .hero .art { object-position: 50% 70%; }
.cover .hero::after { display: none; }
.weddings .hero { inset: 4% 3.2% 4% 50%; }
.weddings .hero .art { object-position: 51% 47%; }
.weddings .detail { inset: 46% 53% 7% 6%; }
.weddings .detail .art { object-position: 50% 54%; }
.social .hero .art { object-position: 52% 55%; }
.social .detail { inset: 42% 24% 6% 50%; }
.social .detail .art { object-position: 47% 55%; }
.social .third { inset: 55% 4% 8% 77%; }
.social .third .art { object-position: 50% 43%; }
.production .hero { inset: 0 0 0 53%; }
.production .hero .art { object-position: 48% 52%; }
.production .detail { inset: 52% 62% 6% 7%; }
.production .detail .art { object-position: center 65%; }
.corporate .hero { inset: 4% 3.2% 6% 50%; clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%); }
.corporate .detail { inset: 51% 54% 7% 6%; }
.food .detail { inset: 47% 54% 6% 5%; }
.food .detail .art { object-position: center 49%; }
.cakes { background: linear-gradient(114deg, var(--champagne) 57%, var(--paper) 57%); }
.cakes .hero { inset: 3.5% 48% 3.5% 2.1%; clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%); }
.cakes .hero .art { object-fit: contain; background: #dfd9c7; }
.cakes .copy { left: 56%; top: 29%; width: 40%; }
.cakes h1 { font-size: 6.45cqw; }
.cakes .copy::after { content: ""; display: block; margin-top: 3cqw; width: 55px; border-bottom: 1px solid #987f49; }
.back .hero .art { object-position: 53% 45%; }
.spread .photo .art { image-rendering: auto; }

@media (max-width: 740px) {
  .cover .copy, .cakes .copy { left: 6%; top: 5%; width: 88%; }
  .cover h1 { font-size: 13.6cqw; }
  .cover .hero { inset: 37.5% 4% 9% 4%; clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%); }
  .cover .hero .art { object-position: center 67%; }
  .weddings .hero, .corporate .hero, .production .hero, .cakes .hero {
    inset: 34% 4% 5% 4%; clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
  }
  .production .hero { top: 39%; }
  .weddings .detail, .corporate .detail, .production .detail, .food .detail {
    inset: 65% 53% 9% 8%;
  }
  .social .hero { inset: 34% 4% 5% 4%; }
  .social .hero .art { object-position: center 49%; }
  .social .detail { inset: 63% 60% 8% 8%; }
  .social .third { inset: 71% 35% 6% 40%; }
  .cakes .hero { top: 37%; }
  .cakes .copy::after { display: none; }
}

.book { overflow: clip; }
@media (max-width: 740px) {
  .cakes .copy h1 { font-size: 12cqw; }
}


/* XV años and corporate productions. */
.social { background: linear-gradient(118deg, #cebea4 45%, var(--champagne) 45%, var(--paper) 85%); }
.social .hero { inset: 3% 52% 3% 2%; clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%); }
.social .hero .art { object-position: 49% 48%; }
.social .copy { left: 55%; top: 11%; width: 41%; }
.social .detail {
  inset: 44% 20% 7% 57%; transform: rotate(-5deg);
  border: .52cqw solid var(--paper); background: #b79b77;
  box-shadow: .8cqw 1cqw 2.4cqw #14254927;
}
.social .detail .art { object-position: 51% 53%; }
.corporate { background: linear-gradient(114deg, var(--paper) 35%, var(--champagne) 70%); }
.corporate .copy { left: 5.5%; top: 30%; width: 41%; }
.corporate h1 { font-size: 6.2cqw; }
.corporate .hero { inset: 2% 1.5% 2% 43%; clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%); }
.corporate .hero .art { object-position: center 67%; }
.corporate .copy::after { content: ""; display: block; margin-top: 2.7cqw; width: 4.6cqw; border-bottom: 1px solid #ac8c4a; }

@media (max-width: 740px) {
  .social .copy, .corporate .copy { top: 5%; left: 6%; width: 88%; }
  .social .hero { inset: 33% 29% 5% 4%; clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%); }
  .social .detail { inset: 60% 9% 10% 63%; border-width: 3px; transform: rotate(4deg); }
  .corporate .hero { inset: 35% 4% 6% 4%; clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%); }
  .corporate .copy::after { display: none; }
}

/* Bodas y XV años: fotografía de la edición actual. */

.weddings { background: linear-gradient(115deg, var(--paper) 0%, var(--champagne) 53%, #d5cbb0 53%); }
.weddings .copy { top: 10%; left: 5.5%; width: 42%; }
.weddings .hero { inset: 0 0 0 52%; clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%); }
.weddings .hero .art { object-position: 52% 43%; }
.weddings .detail {
  inset: 46% 52% 6% 5.5%; border: .4cqw solid var(--paper);
  transform: rotate(-2.8deg); clip-path: none;
  box-shadow: .2cqw .7cqw 1.8cqw #17204426;
}
.weddings .detail .art { object-position: 50% 65%; }

.social {
  color: var(--paper); --edge: var(--gold);
  background: linear-gradient(118deg, var(--navy) 44%, #23335c 65%, #453b59 100%);
}
.social .copy { left: 54.5%; top: 10%; width: 41.5%; }
.social .hero { inset: 0 52% 0 0; clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%); }
.social .hero .art { object-position: 54% 47%; }
.social .detail, .social .third {
  border: .45cqw solid var(--champagne); background: #302239;
  box-shadow: .45cqw .55cqw 1.6cqw #0b153260;
}
.social .detail { inset: 43% 20% 6% 50%; z-index: 2; transform: rotate(-3.5deg); }
.social .detail .art { object-position: center 45%; }
.social .third { inset: 54% 4% 9% 76%; transform: rotate(4.5deg); }
.social .third .art { object-position: center 40%; }

@media (max-width: 740px) {
  .weddings .copy, .social .copy { top: 5%; left: 6%; width: 88%; }
  .weddings .hero, .social .hero { inset: 33% 4% 5% 4%; clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%); }
  .weddings .hero .art { object-position: 50% 45%; }
  .weddings .detail { inset: 66% 50% 8% 8%; border-width: 3px; }
  .social .hero .art { object-position: center 40%; }
  .social .detail { inset: 68% 57% 7% 9%; border-width: 3px; }
  .social .third { inset: 74% 30% 6% 44%; z-index: 3; border-width: 3px; }
}
