@charset "UTF-8";

/* ゆるふわピンクと天使: a light chapter of the same book. Grounds are sampled from the
   photographs (the studio pink, the pale blue, the grey-blue behind the black wings), so each
   photo sits in its own light. Photographs stay whole and unfiltered; the white mat is paper,
   not a frame drawn over the picture. Everything here is scoped to .angel. */

.angel {
  --a-pink: #ee9cb6;
  --a-pink-deep: #e58aa6;
  --a-blush: #fbeef2;
  --a-ice: #edf4fb;
  --a-cream: #f8f2e8;
  --a-mist: #d5dfe7;
  --a-plum: #4a1c33;
  --a-plum-soft: #6e4257;
  --a-wine: #661a3e; /* text on the prologue pinks: 4.78:1 or more on the darkest stop */
  --a-rose: #a8345f;
  --a-night: #140f17;
  background: var(--a-blush);
  color: var(--a-plum);
}
.angel .k-header { color: var(--a-plum); }
.angel .k-nav a { color: inherit; }

/* Shared pieces */
.a-photo { margin: 0; min-width: 0; --tilt: 0deg; }
.a-prints { display: grid; gap: clamp(.8rem, 1.6vw, 1.6rem); }
.a-pair .a-prints { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.a-print { background: #fff; padding: clamp(6px, .65vw, 11px); box-shadow: 0 1px 2px rgba(74, 28, 51, .08), 0 22px 54px -18px rgba(120, 40, 72, .28);
  transform: rotate(var(--tilt)); transition: transform .8s cubic-bezier(.2, .7, .2, 1), box-shadow .8s; }
.a-print img { display: block; width: 100%; height: auto; }
.a-photo:hover .a-print { transform: rotate(0deg) translateY(-4px); box-shadow: 0 1px 2px rgba(74, 28, 51, .08), 0 30px 64px -18px rgba(120, 40, 72, .34); }
.a-caption { margin-top: .9rem; font-size: .72rem; letter-spacing: .12em; line-height: 1.75; color: var(--a-plum-soft); }
.a-caption a { color: inherit; text-underline-offset: .3em; white-space: nowrap; }
.a-orn { color: var(--a-rose); font-family: var(--k-latin); }
.a-no { margin: 0 0 1.1rem; font-family: var(--k-latin); font-style: italic; font-size: 1.1rem; letter-spacing: .08em; color: var(--a-rose); }
.a-no span { font-size: 1.45em; }

/* Chapter titles are her captions, framed the way she frames them: ✧─── words ───✧ */
.a-head { margin: 0 auto clamp(3.2rem, 6.5vw, 5.6rem); text-align: center; }
.a-quote { margin: 0; }
.a-quote .a-q, .a-wish-quote .a-q { display: flex; align-items: center; justify-content: center; gap: clamp(.7rem, 1.4vw, 1.3rem); margin: 0;
  font-family: var(--k-display); font-weight: 600; font-size: clamp(1.75rem, 3.5vw, 3.3rem); line-height: 1.45; letter-spacing: .12em; }
.a-quote .a-q::before, .a-quote .a-q::after, .a-wish-quote .a-q::before, .a-wish-quote .a-q::after {
  content: ""; flex: 0 1 clamp(2rem, 9vw, 8rem); height: 1px; background: currentColor; opacity: .35; }
.a-quote .a-q::before, .a-wish-quote .a-q::before { transform-origin: right; }
.a-quote .a-q::after, .a-wish-quote .a-q::after { transform-origin: left; }
.a-quote .a-orn, .a-wish-quote .a-orn { font-size: .55em; }
.a-words { text-wrap: balance; word-break: auto-phrase; }
.a-src { margin: 1.3rem 0 0; font-size: .74rem; letter-spacing: .14em; }
.a-src a { color: var(--a-plum-soft); text-underline-offset: .3em; }

.a-chapter { position: relative; padding: clamp(6rem, 11vw, 10rem) 0 clamp(4rem, 7vw, 6.5rem); overflow: hidden; }

/* Prologue: the studio pink becomes the page. */
.a-prologue { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 6rem); padding: 7rem 3.5rem 4.5rem; overflow: hidden;
  background: radial-gradient(ellipse 70% 80% at 70% 46%, #f6b6cb 0%, var(--a-pink) 46%, var(--a-pink-deep) 100%); }
.a-prologue-copy { justify-self: end; max-width: 33rem; }
.a-kicker { margin: 0 0 1.2rem; font-family: var(--k-latin); font-style: italic; font-size: 1.15rem; letter-spacing: .06em; color: var(--a-plum); }
.a-kicker a { color: inherit; text-underline-offset: .3em; }
.a-orn-line { margin: 0 0 .9rem; font-size: 1rem; letter-spacing: .35em; color: #fff; text-shadow: 0 1px 10px rgba(168, 52, 95, .35); }
.a-prologue h1 { display: flex; flex-direction: column; gap: .5rem; }
.a-title-ja { font-size: clamp(2.4rem, 4.1vw, 4.6rem); font-weight: 800; letter-spacing: .08em; line-height: 1.18; color: var(--a-plum); }
.a-nowrap { white-space: nowrap; }
.a-title-and { font-size: .5em; font-weight: 600; letter-spacing: .1em; color: var(--a-wine); margin-right: .15em; }
.a-title-and::before { content: "\A"; white-space: pre; }
.a-title-en { font-family: var(--k-latin); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 2.8vw, 2.6rem); letter-spacing: .04em; color: var(--a-wine); }
.a-lead { margin: 2rem 0 0; font-family: var(--k-display); font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 2.2; letter-spacing: .1em; }
.a-index { list-style: none; margin: 2.4rem 0 0; padding: 0; border-top: 1px solid rgba(74, 28, 51, .2); }
.a-index a { display: flex; align-items: baseline; gap: 1.1rem; padding: .62rem 0; border-bottom: 1px solid rgba(74, 28, 51, .2); color: inherit; text-decoration: none; font-family: var(--k-display); font-size: .92rem; letter-spacing: .12em; transition: padding .3s, color .3s; }
.a-index a:hover { padding-left: .7rem; }
.a-index a:hover span { color: var(--a-plum); }
.a-index span { width: 2rem; flex: none; font-family: var(--k-latin); font-style: italic; color: var(--a-wine); }
.a-open-wrap { justify-self: start; width: min(100%, calc((100svh - 14rem) * .667)); }
.a-open .a-print { padding: clamp(8px, .8vw, 14px); box-shadow: 0 40px 90px -30px rgba(120, 30, 64, .45), 0 0 0 1px rgba(255, 255, 255, .5); }
.a-open .a-caption { color: var(--a-plum); }
.a-open-quote { margin: 1.4rem 0 0; font-family: var(--k-display); font-size: 1.05rem; letter-spacing: .3em; color: var(--a-plum); display: flex; gap: .8rem; align-items: center; }
.a-open-quote .a-orn { color: #fff; }

/* I 猫天使にゃん: from the studio pink to its pale blue, an album page of three prints. */
.a-neko { background: linear-gradient(180deg, var(--a-pink-deep) 0%, #f2b4c8 30%, #f4e2ec 62%, var(--a-ice) 100%); }
.a-neko-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3.5vw, 4rem); align-items: start; max-width: 66rem; margin: 0 auto; }
.a-neko-a { --tilt: -1.4deg; }
.a-neko-b { --tilt: 1.1deg; margin-top: clamp(3rem, 7vw, 7rem); }
.a-neko-c { --tilt: -.6deg; margin-top: clamp(1rem, 2.5vw, 2.5rem); }

/* II ゆるふわピンクろあぴ */
.a-pink { background: linear-gradient(180deg, var(--a-ice) 0%, var(--a-blush) 22%, var(--a-blush) 100%); }
.a-pink-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.a-pink-a { grid-column: 1 / 7; grid-row: 1 / 3; }
.a-pink-b { grid-column: 8 / 12; grid-row: 1; margin-top: clamp(2rem, 5vw, 5rem); --tilt: .8deg; }
.a-pink-c { grid-column: 7 / 10; grid-row: 2; margin-top: clamp(1rem, 3vw, 3rem); --tilt: -1deg; }

/* III 満開だよ: blossom and sky. The middle print leads. */
.a-sakura { background: linear-gradient(180deg, var(--a-blush) 0%, #f3f2f8 30%, var(--a-ice) 100%); }
.a-sakura-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.a-sakura-a { grid-column: 1 / 4; margin-top: clamp(5rem, 11vw, 11rem); }
.a-sakura-b { grid-column: 4 / 10; }
.a-sakura-c { grid-column: 10 / 13; margin-top: clamp(2.5rem, 5vw, 5rem); }

/* IV 花も、光も、すべては天使のために: warm garden paper. */
.a-flowers { background: linear-gradient(180deg, var(--a-ice) 0%, var(--a-cream) 26%, #f9efe9 100%); }
.a-flowers-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.a-flowers-a { grid-column: 1 / 6; grid-row: 1 / 3; }
.a-flowers-b { grid-column: 6 / 13; grid-row: 1; margin-top: clamp(1rem, 3vw, 3rem); }
.a-flowers-c { grid-column: 8 / 12; grid-row: 2; margin-top: clamp(1rem, 2vw, 2rem); --tilt: .7deg; }

/* V 天使…？: close, playful, a little askew. */
.a-question { background: linear-gradient(180deg, #f9efe9 0%, var(--a-blush) 30%, #f6e6ee 100%); }
.a-question-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.a-question-a { grid-column: 1 / 7; --tilt: -.8deg; }
.a-question-b { grid-column: 7 / 10; margin-top: clamp(-4rem, -4vw, -1rem); --tilt: 1.6deg; }
.a-question-c { grid-column: 10 / 13; margin-top: clamp(4rem, 8vw, 8rem); --tilt: -1.2deg; }

/* VI 光と影の狭間に、天使は微笑む。: the range. The page goes dark; prints lose their mat. */
.a-shadow { background: radial-gradient(ellipse 80% 70% at 40% 40%, #2c1f2c 0%, var(--a-night) 70%); color: #f1e6ec; }
.a-shadow .a-no, .a-shadow .a-orn { color: #e7b4c8; }
.a-shadow .a-src a, .a-shadow .a-caption { color: rgba(241, 230, 236, .66); }
.a-shadow .a-print { background: none; padding: 0; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); }
.a-shadow-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.a-shadow-a { grid-column: 2 / 8; }
.a-shadow-b { grid-column: 8 / 12; margin-top: clamp(5rem, 12vw, 12rem); }

/* いつか天使になりたいな: the grey-blue behind the black wings becomes the page, so the photo floats. */
.a-wish { background: var(--a-mist); color: #2a2834; padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem); }
.a-wish-photo { max-width: 60rem; margin: 0 auto; }
/* The studio wall is this page's colour; feathering the outer edge lets the photo float in it. */
.a-wish-photo img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 3.5%, #000 97%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 3.5%, #000 97%, transparent); mask-composite: intersect; }
.a-wish-photo .a-print { background: none; padding: 0; box-shadow: none; }
.a-wish-photo .a-caption { color: #555a68; text-align: center; }
.a-wish-quote { margin: clamp(3rem, 6vw, 5rem) auto 0; text-align: center; }
.a-wish-quote .a-orn { color: #8a5a72; }
.a-wish-quote footer { margin-top: 1.2rem; font-size: .74rem; letter-spacing: .14em; }
.a-wish-quote footer a { color: #555a68; text-underline-offset: .3em; }

.a-finale { background: linear-gradient(180deg, var(--a-mist) 0%, #ecdfe7 60%, var(--a-blush) 100%); padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 9vw, 8rem); text-align: center; }
.a-finale-en { margin: 0 0 2.4rem; font-family: var(--k-latin); font-style: italic; font-weight: 300; font-size: clamp(2.6rem, 5vw, 4.4rem); color: var(--a-rose); opacity: .7; }
.a-exits { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.a-exits a { display: inline-flex; flex-direction: column; gap: .3rem; min-width: 15rem; padding: 1.05rem 1.5rem; border: 1px solid rgba(74, 28, 51, .25); background: rgba(255, 255, 255, .45); color: var(--a-plum); text-decoration: none; text-align: left; transition: background .3s, border-color .3s; }
.a-exits a:hover { background: #fff; border-color: var(--a-rose); }
.a-exits small { font-family: var(--k-latin); font-style: italic; font-size: .9rem; color: var(--a-rose); }
.a-exits span { font-family: var(--k-display); font-size: .92rem; letter-spacing: .1em; }
.a-exits span span { display: inline-block; transition: transform .3s; }
.a-exits a:hover span span { transform: translateX(6px); }

/* しおり: a ribbon in the margin that rests on the chapter being read. Wide screens with
   scripting only; without it the prologue index is the same set of links. */
.a-ribbon { display: none; }
@media (min-width: 1180px) {
  .js .a-ribbon { display: block; position: fixed; z-index: 15; right: 1.1rem; top: 50%; transform: translate(0, -50%); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .6s ease, visibility 0s linear .6s; }
  .js .a-ribbon.is-shown { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .6s ease, visibility 0s; }
  .a-ribbon ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
  .a-ribbon a { position: relative; display: flex; align-items: center; justify-content: flex-end; height: 2.1rem; color: var(--a-plum); text-decoration: none; }
  .a-ribbon-no { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; font-family: var(--k-latin); font-style: italic; font-size: .95rem; transition: color .4s; }
  .a-ribbon-label { position: absolute; right: 2.6rem; white-space: nowrap; padding: .3rem .8rem; background: #fff; color: var(--a-plum); font-family: var(--k-display); font-size: .78rem; letter-spacing: .1em; box-shadow: 0 8px 24px -10px rgba(74, 28, 51, .35); opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
  .a-ribbon a:hover .a-ribbon-label, .a-ribbon a:focus-visible .a-ribbon-label { opacity: 1; transform: none; }
  .a-ribbon a::before { content: ""; position: absolute; right: 0; top: 0; width: 2.1rem; height: 2.6rem; background: var(--a-rose);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); transform: scaleY(0); transform-origin: top; transition: transform .45s cubic-bezier(.2, .7, .2, 1); z-index: -1; }
  .a-ribbon a[aria-current="true"]::before { transform: scaleY(1); }
  .a-ribbon a[aria-current="true"] .a-ribbon-no { color: #fff; }
  .a-ribbon.is-dark a { color: #f1e6ec; }
}

@media (max-width: 1080px) {
  .a-prologue { padding: 7rem 2rem 4rem; }
  .a-neko-layout { gap: 1.4rem; }
}

/* Phones: one column, the album rhythm kept by alternating insets. */
@media (max-width: 700px) {
  .a-prologue { grid-template-columns: 1fr; gap: 0; min-height: 0; padding: 6.4rem 1rem 3.4rem; text-align: left; }
  .a-prologue-copy { display: contents; }
  .a-kicker { order: 1; font-size: 1rem; }
  .a-orn-line { order: 2; }
  .a-prologue h1 { order: 3; }
  .a-open-wrap { order: 4; justify-self: center; width: min(86%, 22rem); margin-top: 1.8rem; }
  .a-lead { order: 5; }
  .a-index { order: 6; }
  .a-title-ja { font-size: clamp(2.2rem, 11vw, 2.9rem); }
  .a-title-en { font-size: 1.45rem; }
  .a-lead { font-size: 1rem; }
  .a-index a { font-size: .95rem; padding: .7rem 0; }
  .a-open-quote { justify-content: center; }

  .a-chapter { padding: 4.6rem 0; }
  .a-head { margin-bottom: 2.6rem; }
  .a-quote .a-q, .a-wish-quote .a-q { font-size: clamp(1.3rem, 6vw, 1.8rem); letter-spacing: .06em; gap: .55rem; }
  .a-quote .a-q::before, .a-quote .a-q::after, .a-wish-quote .a-q::before, .a-wish-quote .a-q::after { display: none; }
  .a-neko-layout, .a-pink-layout, .a-sakura-layout, .a-flowers-layout, .a-question-layout, .a-shadow-layout { display: flex; flex-direction: column; gap: 2.6rem; }
  .a-photo { width: 84%; margin: 0 !important; }
  .a-photo:nth-child(even) { align-self: flex-end; }
  .a-land, .a-pair { width: 100%; }
  .a-pair .a-prints { grid-template-columns: 1fr; }
  .a-caption { font-size: .78rem; }
  .a-exits a { min-width: 0; width: 100%; }
  .a-wish-photo { width: 100%; }
}

/* Motion: only with scripting and motion allowed; the still page is complete. Photographs
   arrive like prints laid on a table and settle at their angle; her frame lines draw outward. */
@media (prefers-reduced-motion: no-preference) {
  .js .a-open .a-print { animation: a-lay 1.6s cubic-bezier(.2, .7, .2, 1) .15s both; }
  .js .a-open .a-caption, .js .a-open-quote { animation: k-fade 1.2s 1.1s ease both; }
  .js .a-prologue-copy > * { animation: a-rise 1.3s cubic-bezier(.2, .7, .2, 1) both; }
  .js .a-prologue-copy > :nth-child(2) { animation-delay: .25s; }
  .js .a-prologue-copy > :nth-child(3) { animation-delay: .4s; }
  .js .a-prologue-copy > :nth-child(4) { animation-delay: .6s; }
  .js .a-prologue-copy > :nth-child(5) { animation-delay: .8s; }
  .js .a-photo[data-reveal] .a-print { opacity: 0; transform: translateY(40px) rotate(calc(var(--tilt) + 2.5deg)); transition: opacity 1.1s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1), box-shadow .8s; }
  .js .a-photo[data-reveal].is-visible .a-print { opacity: 1; transform: rotate(var(--tilt)); }
  .js .a-photo[data-reveal].is-visible:hover .a-print { transform: rotate(0deg) translateY(-4px); }
  .js .a-pair.is-visible .a-print:nth-child(2) { transition-delay: .18s; }
  .js .a-neko-b.is-visible .a-print, .js .a-pink-b.is-visible .a-print, .js .a-sakura-b.is-visible .a-print,
  .js .a-flowers-b.is-visible .a-print, .js .a-question-b.is-visible .a-print, .js .a-shadow-b.is-visible .a-print { transition-delay: .15s; }
  .js .a-neko-c.is-visible .a-print, .js .a-pink-c.is-visible .a-print, .js .a-sakura-c.is-visible .a-print,
  .js .a-flowers-c.is-visible .a-print, .js .a-question-c.is-visible .a-print { transition-delay: .3s; }
  .js .a-head[data-reveal] .a-q::before, .js .a-head[data-reveal] .a-q::after,
  .js .a-wish-quote[data-reveal] .a-q::before, .js .a-wish-quote[data-reveal] .a-q::after { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1) .25s; }
  .js .a-head[data-reveal].is-visible .a-q::before, .js .a-head[data-reveal].is-visible .a-q::after,
  .js .a-wish-quote[data-reveal].is-visible .a-q::before, .js .a-wish-quote[data-reveal].is-visible .a-q::after { transform: scaleX(1); }
  .js .a-head[data-reveal] .a-words, .js .a-wish-quote[data-reveal] .a-words { opacity: 0; letter-spacing: .3em; transition: opacity 1.2s ease, letter-spacing 1.6s cubic-bezier(.2, .7, .2, 1); }
  .js .a-head[data-reveal].is-visible .a-words, .js .a-wish-quote[data-reveal].is-visible .a-words { opacity: 1; letter-spacing: .12em; }
  .js .a-wish-photo[data-reveal] .a-print { transform: translateY(24px); transition: opacity 2.2s ease, transform 2.6s cubic-bezier(.2, .7, .2, 1); }
  .js .a-wish-photo[data-reveal].is-visible .a-print { transform: none; }
}
@keyframes a-lay { from { opacity: 0; transform: translateY(46px) rotate(3deg) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes a-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .a-print, .a-ribbon, .js .a-ribbon, .js .a-ribbon.is-shown, .a-ribbon a::before, .a-ribbon-label, .a-ribbon-no, .a-index a, .a-exits a, .a-exits span span { transition: none; }
}
