/* J L Yock author site. Built by DetailedByDenise. */
@font-face { font-family: "Dreamy Romance"; src: url("../fonts/dreamy-romance.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Dreamy Romance Serif"; src: url("../fonts/dreamy-romance-serif.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bilingual Serif Alternate"; src: url("../fonts/bilingual-serif-alternate.woff2") format("woff2"); font-display: swap; }

:root {
  --plum: #0b5a5e;
  --ink: #2b1038;
  --plum-lift: #0f6e73;
  --cream: #fdecef;
  --rose: #f47aa2;
  --rose-soft: #ffd6e2;
  --teal: #7b3fa9;
  --line: rgba(255, 228, 236, 0.6);
  --script: "Dreamy Romance", "Snell Roundhand", cursive;
  --logo: "Bilingual Serif Alternate", "Dreamy Romance Serif", Georgia, serif;
  --display: "Dreamy Romance Serif", "Playfair Display", Georgia, serif;
  --body: "Jost", "Century Gothic", "Segoe UI", sans-serif;
  --wrap: 1080px;
  --roses: url("../images/roses.jpg");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1.08rem; line-height: 1.7; color: var(--plum); background: var(--cream); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-underline-offset: 0.2em; }
a:hover { color: var(--plum); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.25; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.8vw, 1.9rem); }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; max-width: 60ch; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--cream); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.script { font-family: var(--script); text-transform: none; letter-spacing: 0; }
.caps { font-size: 0.74rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; }

/* Masthead */
.masthead { text-align: center; padding: 1.1rem 0 0.4rem; }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 0.4rem 0.1rem; color: var(--plum); text-decoration: none; font-size: 0.74rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--rose); }
.logo { position: relative; display: inline-block; margin-top: 1.2rem; color: var(--plum); text-decoration: none; }
.logo:hover { color: var(--plum); }
.logo .name { display: block; font-family: var(--script); font-size: clamp(3.2rem, 8vw, 4.4rem); line-height: 1.1; padding: 0 0.3em; }
.logo .arc { width: min(330px, 80vw); margin: -0.2rem auto 0; }
.logo .arc text { font-family: var(--body); font-size: 11px; font-weight: 500; letter-spacing: 2.4px; text-transform: uppercase; fill: var(--plum); }
.logo .spark { position: absolute; color: var(--rose); }
.logo .s1 { width: 30px; left: -34px; top: 34%; }
.logo .s2 { width: 16px; left: -8px; top: 12%; }
.logo .s3 { width: 26px; right: -30px; top: 18%; }
.logo .s4 { width: 14px; right: -10px; top: 58%; color: var(--plum); }
.home .logo { margin-top: 2rem; }
.home .logo .name { font-size: clamp(4.4rem, 15vw, 8.5rem); }
.home .logo .arc { width: min(460px, 86vw); margin-top: -0.4rem; }
.home .logo .s1 { width: 46px; left: -52px; }
.home .logo .s3 { width: 38px; right: -44px; }

/* Shapes */
.wave { width: 100%; height: clamp(36px, 6vw, 80px); margin-bottom: -1px; color: var(--plum); }
.wave.flip { transform: scaleY(-1); margin: -1px 0 0; }
.dark { background: var(--plum); color: var(--cream); }
.dark a:not(.btn) { color: var(--rose-soft); }
.dark a:not(.btn):hover { color: var(--cream); }
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.center { text-align: center; }
.center p { margin-inline: auto; }
.ruled { display: flex; align-items: center; gap: 1.2rem; justify-content: center; margin-bottom: 2.2rem; }
.ruled::before, .ruled::after { content: ""; height: 1px; background: currentColor; opacity: 0.45; flex: 1; max-width: 220px; }
.ruled h2 { margin: 0; }

/* Buttons */
.btn { display: inline-block; font: 500 0.78rem/1.3 var(--body); text-transform: uppercase; letter-spacing: 0.2em; padding: 0.95rem 1.7rem; border: 1px solid var(--rose); border-radius: 2px; background: var(--rose); color: var(--plum); text-decoration: none; cursor: pointer; text-align: center; transition: background-color 0.2s ease, color 0.2s ease; }
.btn:hover { background: var(--cream); border-color: var(--cream); color: var(--plum); }
.btn.line { background: transparent; border-color: currentColor; color: inherit; }
.btn.line:hover { background: var(--cream); color: var(--plum); border-color: var(--cream); }
.btn.plum { background: var(--plum); border-color: var(--plum); color: var(--cream); }
.btn.plum:hover { background: var(--teal); border-color: var(--teal); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.center .btn-row { justify-content: center; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vw, 4.5rem); }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; background: var(--roses) center / 300px; display: grid; place-items: center; outline: 1px solid var(--line); outline-offset: 10px; margin: 10px; }
.arch img { width: 58%; box-shadow: 0 22px 40px rgba(20, 5, 28, 0.65); }
.hero .hello { font-family: var(--script); font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.1; color: var(--rose-soft); margin-bottom: 0.5em; max-width: none; }
.hero h1 { margin-bottom: 0.5em; }
.hero .caps { color: var(--rose); margin-bottom: 0.6rem; }

/* Ticker */
.ticker { overflow: hidden; background: var(--rose); color: var(--plum); border-block: 1px solid var(--plum); }
.ticker .track { display: flex; width: max-content; }
.ticker span { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.55rem 0; white-space: nowrap; }
.ticker span::after { content: "\2726"; margin-inline: 1.4rem; font-family: var(--body); }
@media (prefers-reduced-motion: no-preference) {
  .ticker .track { animation: slide 40s linear infinite; }
  @keyframes slide { to { transform: translateX(-50%); } }
}

/* Framed cards */
.frame { background: var(--plum); color: var(--cream); padding: 1.6rem 1.4rem 1.8rem; box-shadow: inset 0 0 0 8px var(--plum), inset 0 0 0 9px var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; }
.frame img { box-shadow: 0 14px 28px rgba(20, 5, 28, 0.6); }
.frame h3 { margin: 1.3rem 0 0.4rem; }
.frame p { font-size: 0.98rem; margin-bottom: 1.2rem; }
.frame .btn { margin-top: auto; }
.frame .num { font-family: var(--script); font-size: 1.7rem; line-height: 1; color: var(--rose); margin: 1.2rem 0 -0.9rem; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 330px)); gap: 2rem; justify-content: center; }
.duo .frame img { width: 62%; }

/* About teaser and page */
.about { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.portrait { border-radius: 999px 999px 0 0; outline: 1px solid var(--plum); outline-offset: 10px; margin: 10px; aspect-ratio: 4 / 5; object-fit: cover; width: calc(100% - 20px); }
.bio { font-family: var(--script); font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.2; max-width: 20ch; margin-bottom: 0.7em; }
.links { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 1rem 0 0; }

/* Newsletter and forms */
.roses { background: var(--roses) center / 380px; border-block: 1px solid var(--plum); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.boxed { background: var(--plum); color: var(--cream); max-width: 620px; margin-inline: auto; padding: clamp(2rem, 5vw, 3rem) clamp(1.4rem, 5vw, 3rem); text-align: center; box-shadow: inset 0 0 0 10px var(--plum), inset 0 0 0 11px var(--line), 0 20px 40px rgba(20, 5, 28, 0.4); }
.boxed p { margin-inline: auto; font-size: 1rem; }
form { display: grid; gap: 0.8rem; text-align: left; max-width: 26rem; margin: 1.4rem auto 0; }
label { display: grid; gap: 0.3rem; font-size: 0.74rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; }
input[type="text"], input[type="email"], textarea { font: 400 1rem var(--body); letter-spacing: 0; padding: 0.75rem 0.9rem; border: 1px solid var(--plum); border-radius: 2px; background: var(--cream); color: var(--plum); width: 100%; }
textarea { min-height: 8rem; resize: vertical; }
.check { display: flex; gap: 0.6rem; align-items: center; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--rose); flex: none; }
.hp { position: absolute; left: -9999px; }
form .btn { width: 100%; }

/* Icon trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; list-style: none; padding: 0; margin: 0; }
.trio a { display: grid; justify-items: center; gap: 1.1rem; text-decoration: none; color: var(--cream); font-family: var(--display); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }
.trio svg { width: 104px; height: 104px; color: var(--rose-soft); transition: transform 0.25s ease, color 0.25s ease; }
.trio a:hover svg { transform: translateY(-6px); color: var(--rose); }

/* Page title */
.title-band { text-align: center; padding-block: 0.5rem clamp(2.2rem, 5vw, 3.2rem); }
.title-band h1 { margin-bottom: 0.3em; }
.title-band p { margin: 0 auto; color: var(--rose-soft); }

/* Books page */
.notice { border: 1px solid var(--plum); padding: 1.2rem 1.5rem; margin: 0 auto 3.5rem; max-width: 760px; text-align: center; box-shadow: 6px 6px 0 var(--rose-soft); }
.notice p { margin: 0 auto; }
.book { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.book + .book { margin-top: clamp(3.5rem, 8vw, 6rem); }
.book:nth-of-type(even) .arch { order: 2; }
.book .arch { outline-color: var(--plum); }
.book .num { font-family: var(--script); font-size: 2.1rem; line-height: 1; color: var(--teal); margin-bottom: 0.3rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; list-style: none; padding: 0; margin: 0 0 1.2rem; font-size: 0.74rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; color: var(--teal); }

/* Shop */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; list-style: none; padding: 0; margin: 0 0 3.5rem; counter-reset: step; text-align: center; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--script); font-size: 2.8rem; line-height: 1; color: var(--teal); display: block; margin-bottom: 0.4rem; }
.goods { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 300px)); justify-content: center; gap: 2rem; list-style: none; padding: 0; margin: 0; }
.goods img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; box-shadow: none; filter: drop-shadow(0 12px 18px rgba(20, 5, 28, 0.55)); }
.goods .frame { height: 100%; padding: 1.4rem 1.4rem 1.7rem; }
.goods .format { color: var(--rose-soft); margin: 0; }
.goods .price { font-family: var(--display); font-size: 1.5rem; margin: 0.5rem 0 1.1rem; }
.goods .btn { width: 100%; }

/* Footer */
.site-footer { background: var(--plum); color: var(--cream); text-align: center; padding-block: 2.5rem 2rem; border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; gap: 1.2rem; justify-items: center; }
.site-footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.8rem; list-style: none; padding: 0; margin: 0; }
.site-footer ul a { font-size: 0.74rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--rose); padding-bottom: 0.2rem; }
.site-footer p { margin: 0; font-size: 0.9rem; max-width: 70ch; color: #dccbe3; }
.site-footer p a { color: var(--rose-soft); }

@media (max-width: 800px) {
  .hero .wrap, .about, .book { grid-template-columns: 1fr; text-align: center; }
  .hero p, .about p, .book p, .bio { margin-inline: auto; }
  .btn-row, .links, .tags { justify-content: center; }
  .arch, .portrait { max-width: 290px; margin-inline: auto; }
  .portrait { width: min(270px, 100%); }
  .book:nth-of-type(even) .arch { order: 0; }
  .duo { grid-template-columns: minmax(0, 330px); }
  .steps { grid-template-columns: 1fr; gap: 1.4rem; }
  .trio { gap: 0.8rem; }
  .trio svg { width: 72px; height: 72px; }
  .trio a { font-size: 0.72rem; }
  .logo .s1, .logo .s3 { display: none; }
  .nav { gap: 0.2rem 1.2rem; }
}

/* Keep covers centered inside framed cards */
.frame > a { display: block; width: 100%; }
.frame img { margin-inline: auto; }

/* Palette pass: teal dark sections, pink accents, purple for text and small touches */
body, .nav a, .logo, .logo:hover, .btn, .btn:hover, .ticker, input[type="text"], input[type="email"], textarea { color: var(--ink); }
.logo .arc text { fill: var(--ink); }
.logo .s4 { color: var(--teal); }
.dark { color: #fff5f7; }
.hero .caps, .frame .num { color: var(--rose-soft); }
.frame, .trio a { color: #fff5f7; }
.btn.line { color: inherit; }
.btn.line:hover { color: var(--ink); }
.btn.plum { background: var(--ink); border-color: var(--ink); color: #fff5f7; }
.btn.plum:hover { background: var(--rose); border-color: var(--rose); color: var(--ink); }
.boxed { background: var(--ink); color: #fff5f7; box-shadow: inset 0 0 0 10px var(--ink), inset 0 0 0 11px var(--line), 0 20px 40px rgba(20, 5, 28, 0.4); }
.ticker { border-block-color: var(--ink); }
.roses { border-block-color: var(--ink); }
.notice { border-color: var(--ink); box-shadow: 6px 6px 0 var(--rose); background: #fff8fa; }
.portrait { outline-color: var(--rose); outline-width: 2px; }
.book .arch { outline-color: var(--rose); outline-width: 2px; }
.ruled::before, .ruled::after { background: var(--rose); opacity: 1; height: 2px; }
.site-footer p { color: #d9eeee; }
a { color: var(--teal); }
.duo .frame > a.btn { display: inline-block; width: auto; }
.about.long { align-items: start; }
.about.long .bio { max-width: 24ch; }
.aside { border-top: 2px solid var(--rose); padding-top: 1.1rem; margin-top: 1.6rem; font-style: italic; }
@media (max-width: 800px) { .about.long p:not(.bio) { text-align: left; } }

/* Trailer and excerpt band */
.peek { padding-block: clamp(1rem, 3vw, 2rem) clamp(2rem, 5vw, 3.5rem); }
.peek .wrap { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.peek video { width: calc(100% - 20px); margin: 10px; aspect-ratio: 9 / 16; object-fit: cover; background: var(--ink); border-radius: 999px 999px 0 0; outline: 1px solid var(--line); outline-offset: 10px; }
.peek .caps { color: var(--rose-soft); margin-bottom: 0.4rem; }
.peek p { max-width: 62ch; }
.released { color: var(--teal); margin-bottom: 0.9rem; }
.book.flip .arch { order: 2; }
@media (max-width: 800px) {
  .peek .wrap { grid-template-columns: 1fr; }
  .peek video { max-width: 250px; margin-inline: auto; display: block; }
  .peek h2, .peek .caps { text-align: center; margin-inline: auto; }
  .book.flip .arch { order: 0; }
}
@media (min-width: 801px) { .book.flip { grid-template-columns: 1fr minmax(200px, 320px); } }
@media (min-width: 801px) { .book { align-items: start; } }

/* Glitter borders */
:root { --glitter: url("../images/glitter.jpg"); }
.ticker, .roses { border-block: 7px solid var(--rose); border-image: var(--glitter) 60 round; }
.hero { border-bottom: 0; }
.frame { border: 6px solid transparent; background: linear-gradient(var(--plum), var(--plum)) padding-box, var(--glitter) border-box; background-size: auto, 88px; box-shadow: 0 14px 30px rgba(20, 5, 28, 0.25); }
.boxed { border: 7px solid transparent; background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--glitter) border-box; background-size: auto, 88px; box-shadow: 0 20px 40px rgba(20, 5, 28, 0.4); }
.notice { border: 5px solid transparent; background: linear-gradient(#fff8fa, #fff8fa) padding-box, var(--glitter) border-box; background-size: auto, 88px; box-shadow: none; }
.arch, .book .arch { outline: none; }
.arch::before { content: ""; position: absolute; inset: -14px; border-radius: inherit; padding: 6px; background: var(--glitter) center / 88px; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0); pointer-events: none; }
.arch { margin: 14px; }
.portrait { outline: none; margin: 0; width: 100%; padding: 8px; border: 6px solid transparent; background: linear-gradient(var(--cream), var(--cream)) padding-box, var(--glitter) border-box; background-size: auto, 88px; }
.peek video { outline: none; margin: 0; width: 100%; padding: 8px; border: 6px solid transparent; background: linear-gradient(var(--plum), var(--plum)) padding-box, var(--glitter) border-box; background-size: auto, 88px; }
.site-footer { border-top: 7px solid var(--rose); border-image: var(--glitter) 60 round; }
.ruled::before, .ruled::after { background: var(--glitter) center / 88px; height: 4px; }
@media (max-width: 800px) { .portrait { width: min(270px, 100%); } }

/* Animated glitter. People who ask their device for reduced motion get the still version. */
.ticker, .roses, .site-footer { border-image: var(--glitter) 30 round; }
@media (prefers-reduced-motion: no-preference) { :root { --glitter: url("../images/glitter.webp"); } }

/* Font pass: Endless Love logo, Grandique Romance headings, Timeless Romantic display lines */
h1 { font-family: var(--display); font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: 0.05em; }
h3 { font-size: 1.15rem; letter-spacing: 0.05em; }
.goods h3 { font-size: 1.08rem; }
.shelf-item h3, .frame h3 { font-size: 1.12rem; }
.ticker span { font-size: 0.92rem; letter-spacing: 0.12em; }
.trio a { font-size: 1.05rem; }
.goods .price { font-size: 1.7rem; }
.logo .name { font-family: var(--logo); font-size: clamp(2.6rem, 7vw, 3.6rem); line-height: 1.5; padding: 0.15em 0.5em 0; letter-spacing: 0.02em; }
.home .logo .name { font-size: clamp(3.3rem, 12.5vw, 7rem); }
.logo .arc, .home .logo .arc { margin-top: -0.9rem; }
.logo .s2, .logo .s4 { display: none; }
.hero .hello { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.08; }
.bio { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.15; max-width: 22ch; }
.frame .num, .book .num { font-size: 2rem; }
.book .num { font-size: 2.3rem; }
@media (max-width: 800px) { .trio a { font-size: 0.8rem; } }
.logo .name { word-spacing: -0.18em; }
.logo .arc, .home .logo .arc { margin-top: 0.2rem; }

/* Font pass 3: Celestia Romance script for the logo and accent lines, Magic Romance for headings */
h1, h2, h3, .trio a { text-transform: none; letter-spacing: 0.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; }
h3, .goods h3, .shelf-item h3, .frame h3 { font-size: 1.15rem; line-height: 1.25; }
.ticker span { font-size: 0.8rem; letter-spacing: 0.1em; }
.trio a { font-size: 1.1rem; }
.goods .price { font-size: 1.6rem; }
.logo .name { font-size: clamp(3.4rem, 9vw, 4.6rem); line-height: 1.25; word-spacing: 0; letter-spacing: 0; padding: 0.1em 0.4em 0; }
.home .logo .name { font-size: clamp(4.2rem, 15vw, 8.5rem); }
.logo .arc, .home .logo .arc { margin-top: -0.3rem; }
.hero .hello { font-size: clamp(2.8rem, 6.4vw, 4.6rem); line-height: 1.05; }
.bio { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.12; max-width: 20ch; }
.frame .num { font-size: 2.3rem; }
.book .num { font-size: 2.8rem; }
@media (max-width: 800px) { .trio a { font-size: 0.85rem; } }

/* Font pass 4: Bilingual Serif throughout, with the Alternate cut for the logo and opening swash letters */
h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.logo .name { font-size: clamp(2.8rem, 8vw, 4rem); line-height: 1.2; padding: 0.1em 0.3em 0; }
.home .logo .name { font-size: clamp(3.2rem, 12.5vw, 7.2rem); }
.logo .arc, .home .logo .arc { margin-top: 0.5rem; }
.hero .hello { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.12; }
.hero h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.bio { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.2; max-width: 24ch; }
.about.long .bio { max-width: 26ch; }
.hero .hello::first-letter, .bio::first-letter { font-family: var(--logo); }
.frame .num { font-size: 1.05rem; color: var(--rose-soft); margin-bottom: -0.6rem; }
.book .num { font-size: 1.25rem; margin-bottom: 0.5rem; }
.logo .name { letter-spacing: -0.03em; }

/* Type tune-up: stronger heading sizes, no swash first letters, labels in the small caps style */
.hero .hello::first-letter, .bio::first-letter { font-family: inherit; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3, .goods h3, .shelf-item h3, .frame h3 { font-size: 1.4rem; line-height: 1.2; }
.hero .hello { font-size: clamp(2.5rem, 5.4vw, 4.2rem); line-height: 1.08; }
.hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.bio { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.trio a { font-size: 1.3rem; }
.goods .price { font-size: 1.9rem; }
.frame .num, .book .num { font-family: var(--body); font-size: 0.74rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; line-height: 1.4; }
.frame .num { margin: 0.6rem 0 -0.7rem; }
.book .num { margin-bottom: 0.6rem; }
.frame h3 { margin-bottom: 0.9rem; }
.duo { grid-template-columns: repeat(2, minmax(0, 380px)); }
@media (max-width: 800px) { .duo { grid-template-columns: minmax(0, 380px); } .trio a { font-size: 0.95rem; } }

/* Final type: Dreamy Romance Serif headings and Dreamy Romance script accents, Bilingual Serif Alternate logo */
h1, h2, h3, .trio a { text-transform: uppercase; letter-spacing: 0.04em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.25; }
h2 { font-size: clamp(1.35rem, 2.8vw, 1.9rem); line-height: 1.25; }
h3, .shelf-item h3, .frame h3 { font-size: 1rem; line-height: 1.3; }
.goods h3 { font-size: 0.98rem; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.hero .hello { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.1; }
.bio, .about.long .bio { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.2; max-width: 22ch; }
.frame .num, .book .num { font-family: var(--script); text-transform: none; letter-spacing: 0; font-weight: 400; line-height: 1; }
.frame .num { font-size: 1.7rem; margin: 1.2rem 0 -0.9rem; }
.frame h3 { margin: 1.3rem 0 0.9rem; }
.book .num { font-size: 2.1rem; margin-bottom: 0.3rem; }
.ticker span { font-size: 0.8rem; letter-spacing: 0.08em; }
.trio a { font-size: 0.95rem; letter-spacing: 0.06em; }
.goods .price { font-size: 1.5rem; }
@media (max-width: 800px) { .trio a { font-size: 0.72rem; } }

/* Phone pass: bigger tap targets, left-aligned long text, tighter spacing */
.nav a { padding: 0.85rem 0.2rem; }
.site-footer ul { gap: 0 1.4rem; }
.site-footer ul a { display: inline-block; padding: 0.85rem 0.15rem 0.3rem; margin-bottom: 0.5rem; }
.check { min-height: 44px; cursor: pointer; }
.check input { width: 1.5rem; height: 1.5rem; }
@media (max-width: 800px) {
  .book p:not(.num):not(.caps), .book h3 { text-align: left; margin-inline: 0; }
  .book h3 { margin-top: 1.4em; }
  .masthead { padding-top: 0.3rem; }
  .logo { margin-top: 0.4rem; }
  .home .logo { margin-top: 0.8rem; }
  .trio a { font-size: 0.78rem; line-height: 1.4; }
  .btn-row .btn { flex: 1 1 100%; }
  .boxed { padding-inline: 1.2rem; }
  .roses .wrap { width: min(var(--wrap), 100% - 1.6rem); }
}
.site-footer ul a { padding: 1rem 0.15rem 0.4rem; }

/* Center the image blocks when the layout stacks (phones and tablets) */
@media (max-width: 800px) {
  .arch, .book .arch { margin: 14px auto; width: min(290px, 100% - 28px); max-width: none; }
  .portrait { display: block; margin-inline: auto; }
  .peek video { display: block; margin-inline: auto; width: min(250px, 100%); max-width: none; }
}

/* Everything centered on phones and tablets */
.goods { display: flex; flex-wrap: wrap; justify-content: center; }
.goods li { flex: 0 1 300px; min-width: 230px; }
@media (max-width: 800px) {
  main :is(p, h1, h2, h3, li, label, ul, ol, div), .site-footer :is(p, li) { text-align: center !important; }
  main :is(p, h1, h2, h3) { margin-inline: auto !important; }
  .check { justify-content: center; }
  .tags, .links, .btn-row { justify-content: center; }
  form { margin-inline: auto; }
  .goods li { flex-basis: 100%; max-width: 340px; }
}

/* Accessibility */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; border-radius: 2px; }
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 20; font-weight: 500; color: var(--ink); background: #fff; }
.ticker:hover .track, .ticker:focus-within .track { animation-play-state: paused; }
.no-motion .ticker .track { animation: none; }
.no-motion { --glitter: url("../images/glitter.jpg"); scroll-behavior: auto; }
.no-motion *, .no-motion *::before, .no-motion *::after { transition: none !important; }
.motion-toggle { font: 500 0.74rem/1.3 var(--body); text-transform: uppercase; letter-spacing: 0.2em; min-height: 44px; padding: 0.7rem 1.3rem; background: transparent; color: #fff5f7; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; }
.motion-toggle:hover { background: #fff5f7; color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media (forced-colors: active) {
  .btn, .motion-toggle { border: 1px solid ButtonText; }
  .arch::before { display: none; }
}

/* SEO pass: the logo is the home page h1, the hero book title is an h2 */
h1.brand { all: unset; display: block; }
.hero .hero-title { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.25; margin-bottom: 0.5em; }
.goods .price-note { margin: 0.6rem 0 1.2rem; color: var(--rose-soft); font-size: 0.95rem; }

/* ===== Accessibility menu ===== */
html { font-size: calc(100% * var(--a11y-font, 1)); }
.a11y-open { position: fixed; left: 16px; bottom: 16px; z-index: 900; width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; background: var(--plum); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(20, 5, 28, 0.35); padding: 0; }
.a11y-open:hover { background: var(--ink); }
.a11y-menu-open .a11y-open { display: none; }
.a11y-panel { position: fixed; z-index: 1000; left: 16px; bottom: 16px; width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: #fff; color: #1d1020; border-radius: 18px; box-shadow: 0 20px 60px rgba(20, 5, 28, 0.45); overflow: hidden; font-family: var(--body); font-size: 16px; line-height: 1.4; letter-spacing: 0; text-align: left; }
.a11y-panel[hidden] { display: none; }
.a11y-panel * { font-family: var(--body) !important; letter-spacing: 0 !important; text-transform: none !important; text-align: left !important; filter: none !important; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; background: var(--plum); color: #fff; padding: 14px 14px 14px 20px; }
.a11y-head h2 { margin: 0; font-size: 20px; font-weight: 500; color: #fff; }
.a11y-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.a11y-body { overflow-y: auto; padding: 16px 18px 20px; overscroll-behavior: contain; }
.a11y-body section { margin-top: 18px; }
.a11y-body h3 { margin: 0 0 10px; font-size: 13px; font-weight: 500; text-transform: uppercase !important; letter-spacing: 0.12em !important; color: var(--teal); }
.a11y-reset { width: 100%; min-height: 46px; border: 2px solid var(--plum); border-radius: 999px; background: #fff; color: var(--plum); font-size: 15px; font-weight: 500; cursor: pointer; text-align: center !important; }
.a11y-profiles { list-style: none; margin: 0; padding: 0; }
.a11y-prof { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee; text-align: left !important; }
.a11y-prof-name { display: block; font-weight: 500; }
.a11y-prof-desc { display: block; font-size: 13px; color: #5c4a63; }
.a11y-switch { flex: none; display: flex; width: 92px; height: 40px; border-radius: 999px; border: 2px solid #c9bccd; background: #f3eef4; padding: 2px; cursor: pointer; }
.a11y-switch span { flex: 1; display: grid; place-items: center; border-radius: 999px; font-size: 13px; font-weight: 500; color: #5c4a63; text-align: center !important; }
.a11y-switch[aria-checked="false"] span:first-child, .a11y-switch[aria-checked="true"] span:last-child { background: #fff; color: #1d1020; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18); }
.a11y-switch[aria-checked="true"] { background: var(--plum); border-color: var(--plum); }
.a11y-switch[aria-checked="true"] span:first-child { color: #fff; }
.a11y-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.a11y-tile { min-height: 52px; padding: 8px 10px; border: 2px solid #e4dbe7; border-radius: 12px; background: #f7f3f8; color: #1d1020; font-size: 14px; font-weight: 500; cursor: pointer; text-align: center !important; }
.a11y-tile[aria-pressed="true"] { border-color: var(--plum); background: #e2f1f1; box-shadow: inset 0 0 0 1px var(--plum); }
.a11y-tile[aria-pressed="true"]::before { content: "\2713  "; color: var(--plum); }
.a11y-step { background: #f7f3f8; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.a11y-step-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.a11y-step-row { display: flex; align-items: center; gap: 10px; }
.a11y-step-row button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--plum); color: #fff; font-size: 22px; cursor: pointer; }
.a11y-step-row button:disabled { opacity: 0.35; cursor: default; }
.a11y-step-row output { flex: 1; text-align: center !important; font-weight: 500; color: var(--plum); }
.a11y-note { margin: 18px 0 0; font-size: 13px; color: #5c4a63; }
.a11y-panel :focus-visible, .a11y-open:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px #ffd6e2; }
@media (max-width: 480px) { .a11y-panel { left: 0; bottom: 0; width: 100vw; max-height: 92vh; max-height: 92dvh; border-radius: 18px 18px 0 0; } }

/* Settings applied to the page (never to the menu) */
.a11y-readable :is(.masthead, main, .site-footer) * { font-family: Verdana, Arial, Helvetica, sans-serif !important; letter-spacing: 0.01em; }
.a11y-readable .logo .name { font-family: Verdana, Arial, sans-serif !important; font-size: clamp(2.2rem, 7vw, 3.4rem); }
.a11y-line-1 :is(main, .site-footer) :is(p, li, label, h1, h2, h3, a, span) { line-height: 2 !important; }
.a11y-line-2 :is(main, .site-footer) :is(p, li, label, h1, h2, h3, a, span) { line-height: 2.4 !important; }
.a11y-spacing-1 :is(main, .site-footer) :is(p, li, label, h1, h2, h3, a, span) { letter-spacing: 0.08em !important; word-spacing: 0.12em; }
.a11y-spacing-2 :is(main, .site-footer) :is(p, li, label, h1, h2, h3, a, span) { letter-spacing: 0.16em !important; word-spacing: 0.24em; }
.a11y-titles main :is(h1, h2, h3) { outline: 3px solid var(--rose); outline-offset: 4px; }
.a11y-links :is(.masthead, main, .site-footer) a:not(.btn) { background: #fff200 !important; color: #000 !important; text-decoration: underline !important; text-decoration-thickness: 2px !important; outline: 2px solid #000; }
.a11y-links :is(main, .site-footer) a.btn { outline: 3px solid #fff200; outline-offset: 2px; text-decoration: underline !important; }
html[class*="a11y-align-"] main :is(p, h1, h2, h3, li, label) { text-align: var(--a11y-align) !important; }
.a11y-align-left { --a11y-align: left; } .a11y-align-center { --a11y-align: center; } .a11y-align-right { --a11y-align: right; }
:is(.masthead, main, .site-footer) { filter: var(--a11y-filter, none); }
.a11y-dark :is(.masthead, main, .site-footer), .a11y-dark :is(.masthead, main, .site-footer) *:not(img):not(video):not(svg):not(path):not(use) { background-color: #000 !important; background-image: none !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; }
.a11y-dark body { background: #000; } .a11y-dark .wave { color: #000 !important; }
.a11y-light :is(.masthead, main, .site-footer), .a11y-light :is(.masthead, main, .site-footer) *:not(img):not(video):not(svg):not(path):not(use) { background-color: #fff !important; background-image: none !important; color: #000 !important; border-color: #000 !important; box-shadow: none !important; }
.a11y-light body { background: #fff; } .a11y-light .wave { color: #fff !important; }
:is(.a11y-dark, .a11y-light) .arch::before { display: none; }
:is(.a11y-dark, .a11y-light) :is(.btn, input, textarea, .notice, .frame, .boxed) { border: 2px solid currentColor !important; }
.a11y-noimg :is(main, .masthead) :is(img, video) { visibility: hidden !important; }
.a11y-noimg :is(main) :is(.arch, .roses, .hero, .peek) { background-image: none !important; }
.a11y-focus :focus { outline: 4px solid #fff200 !important; outline-offset: 2px !important; box-shadow: 0 0 0 8px #000 !important; }
.a11y-guidebar { display: none; position: fixed; left: 0; right: 0; height: 44px; top: 40%; z-index: 800; pointer-events: none; border-block: 3px solid var(--rose); background: rgba(255, 214, 226, 0.18); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.35); }
html.a11y-guide > body > .a11y-guidebar { display: block; }
.a11y-stop *, .a11y-stop *::before, .a11y-stop *::after { animation: none !important; transition: none !important; }
.a11y-dark .logo .arc text { fill: #fff !important; }
.a11y-light .logo .arc text { fill: #000 !important; }

/* ===== Accessibility menu: phone layout ===== */
.a11y-backdrop { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(15, 8, 20, 0.55); }
.a11y-menu-open .a11y-backdrop { display: block; }
html.a11y-menu-open, html.a11y-menu-open body { overflow: hidden !important; }
.a11y-switch { height: 44px; }
.a11y-body { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); -webkit-overflow-scrolling: touch; }
@media (max-width: 600px) {
  .a11y-panel, .a11y-panel.a11y-left, .a11y-panel.a11y-right { left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto; width: 100% !important; max-width: none; height: 88vh; height: 88dvh; max-height: none; border-radius: 20px 20px 0 0; }
  .a11y-head { padding: 10px 10px 10px 18px; position: relative; }
  .a11y-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(255, 255, 255, 0.5); }
  .a11y-head h2 { font-size: 18px; }
  .a11y-body { padding: 12px 14px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .a11y-body section { margin-top: 16px; }
  .a11y-reset { min-height: 44px; }
  .a11y-prof { padding: 8px 0; }
  .a11y-prof-desc { font-size: 12.5px; }
  .a11y-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .a11y-tile { min-height: 48px; padding: 6px 8px; font-size: 13.5px; border-radius: 10px; }
  .a11y-step { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 12px; }
  .a11y-step-label { margin: 0 !important; font-size: 14px; }
  .a11y-step-row { flex: none; gap: 4px; }
  .a11y-step-row output { flex: none; width: 62px; font-size: 14px; }
  .a11y-open { width: 50px; height: 50px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .a11y-open.a11y-left, .a11y-open:not(.a11y-right) { left: 12px; }
  .a11y-open.a11y-right { right: 12px; }
  .a11y-open svg { width: 26px; height: 26px; }
}
@media (max-width: 360px) { .a11y-tile { font-size: 12.5px; padding: 6px 4px; } .a11y-step-row output { width: 52px; } .a11y-prof-name { font-size: 15px; } }
@media (max-width: 600px) { .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 600px) { .a11y-grid[role="group"] { grid-template-columns: repeat(3, 1fr); } }

/* ===== Background music player (bottom right; accessibility button is bottom left) ===== */
.music-player { position: fixed; right: 16px; bottom: 16px; z-index: 900; display: flex; align-items: center; gap: 8px; }
.music-btn, .music-next { display: inline-flex; align-items: center; justify-content: center; border: 3px solid #fff; background: var(--ink); color: #fff; cursor: pointer; box-shadow: 0 6px 18px rgba(20, 5, 28, 0.35); }
.music-btn { gap: 0.5rem; min-height: 56px; padding: 0 1.1rem 0 0.9rem; border-radius: 999px; font: 500 0.78rem/1 var(--body); text-transform: uppercase; letter-spacing: 0.14em; }
.music-icon { display: inline-flex; }
.music-next { width: 46px; height: 46px; border-radius: 50%; padding: 0; }
.music-btn:hover, .music-next:hover { background: var(--plum); }
.music-player.is-playing .music-btn { background: var(--rose); color: var(--ink); }
.music-player:not(.is-playing) .music-next { display: none; }
.music-btn:focus-visible, .music-next:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px #ffd6e2; }
.a11y-menu-open .music-player { display: none; }
@media (max-width: 600px) {
  .music-player { right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); gap: 6px; }
  .music-btn { min-height: 50px; width: 50px; padding: 0; }
  .music-next { width: 44px; height: 44px; }
  .music-btn .music-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}
@media (prefers-reduced-motion: no-preference) { .music-player.is-playing .music-icon svg { animation: musicPulse 1.6s ease-in-out infinite; } }
@keyframes musicPulse { 50% { transform: scale(1.15); } }
.a11y-stop .music-icon svg { animation: none !important; }

/* Reading guide: moved with transform (no repaint), hidden while the menu is open */
.a11y-guidebar { top: 0 !important; will-change: transform; transition: none !important; }
html.a11y-menu-open .a11y-guidebar { display: none !important; }
