/* A keepsake universe. These colors belong to Us, not to the main journal. */
body.us-romance {
  --paper: #fcf5ee;
  --ink: #653741;
  --muted: #76515e;
  --ink-soft: var(--muted);
  --ink-faint: color-mix(in srgb, var(--ink) 50%, transparent);
  --gold: #9b5865;
  --line: #e7d2cc;
  --line-strong: #c8a5a0;
  --us-surface: #fffaf5;
  background: var(--paper);
  color: var(--ink);
  transition: background-color .9s, color .9s;
}
html[data-theme="night"] body.us-romance {
  --paper: #160f20;
  --ink: #f4e7ec;
  --muted: #c8acba;
  --gold: #deb2bd;
  --line: #49313f;
  --line-strong: #805466;
  --us-surface: #211729;
}
.us-romance .site-header { background: color-mix(in srgb, var(--paper) 88%, transparent); border-bottom-color: var(--line); }
.us-romance .site-header.is-scrolled { background: color-mix(in srgb, var(--paper) 94%, transparent); }
body.us-romance .site-header .language-switcher a.is-active { background: var(--ink); color: var(--paper); }
.us-romance .theme-toggle[aria-pressed="true"] { background: var(--us-surface); color: var(--ink); }
.us-romance .us-space { --us-gold: var(--gold); --us-line: var(--line); padding-top: 80px; }
.us-cosmos { position: relative; isolation: isolate; min-height: 780px; height: calc(100svh - 80px); max-height: 1100px; overflow: hidden; display: grid; place-items: center; color: var(--ink); background: #faece3; }
.us-cosmos__sky, .us-cosmos__sky > div, .us-cosmos__grain, .us-cosmos__canvas, .us-cosmos__still { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.us-cosmos__sky { z-index: -5; overflow: hidden; }
.us-cosmos__dawn { background: radial-gradient(ellipse at 77% 15%, #fffcf2 0, transparent 45%), radial-gradient(ellipse at 4% 90%, #dda5af 0, transparent 50%), radial-gradient(ellipse at 90% 84%, #efd5bc 0, transparent 50%), #faece3; }
.us-cosmos__night { opacity: 0; background: radial-gradient(ellipse at 50% 48%, #482b56 0, #21132e 44%, #0e0d1e 85%); transition: opacity 1.2s; }
html[data-theme="night"] .us-cosmos__night { opacity: 1; }
.us-cosmos__sky .us-cosmos__veil { width: 110%; height: 52%; inset: -20% -10% auto; filter: blur(50px); opacity: .45; border-radius: 0 0 70% 45%; transform-origin: 50% 20%; animation: us-veil 18s ease-in-out infinite alternate; background: linear-gradient(110deg, transparent 15%, #e5b59d 32%, #f2cadb 55%, transparent 78%); }
.us-cosmos__sky .us-cosmos__veil--two { top: 38%; left: 8%; height: 30%; opacity: .35; animation-delay: -9s; transform: rotate(-24deg); background: linear-gradient(120deg, transparent 12%, #e9bbcc 35%, #f8dac4 55%, transparent 75%); }
html[data-theme="night"] .us-cosmos__sky .us-cosmos__veil--one { background: linear-gradient(115deg, transparent 15%, #385b70 32%, #644d97 47%, #b64885 58%, transparent 80%); opacity: .75; }
html[data-theme="night"] .us-cosmos__sky .us-cosmos__veil--two { background: linear-gradient(120deg, transparent 10%, #684aab 34%, #a23f77 48%, transparent 72%); opacity: .5; }
.us-cosmos__sky .us-cosmos__halo { inset: 4% 8% auto auto; width: min(20vw,260px); height: auto; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffbed 0, #f9e3b6 48%, #eccba2 70%, transparent 73%); box-shadow: 0 0 80px 35px #fff4d855; opacity: .48; transition: opacity 1s, box-shadow 1s; }
html[data-theme="night"] .us-cosmos__sky .us-cosmos__halo { width: min(9vw, 120px); top: 12%; right: 11%; background: transparent; opacity: .62; box-shadow: inset -4px -2px 1px #f8dfd5, inset -9px -6px 12px #dfb9d333, 6px 5px 45px #cba3f11c; transform: rotate(-22deg); }
.us-cosmos__canvas { z-index: -2; }
.us-cosmos__still { z-index: -3; opacity: .8; transition: opacity 1.2s; }
.us-cosmos[data-canvas-ready] .us-cosmos__still { opacity: 0; }
.us-cosmos__grain { z-index: 2; opacity: .08; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%239c7777' opacity='.6' d='M0 0h160v160H0z' filter='url(%23n)'/%3E%3C/svg%3E"); }
.us-cosmos::after { content: ''; position: absolute; z-index: -1; bottom: -1px; left: 0; right: 0; height: 150px; background: linear-gradient(transparent, var(--paper)); pointer-events: none; }
.us-cosmos__top, .us-cosmos__bottom { position: absolute; z-index: 3; left: 4.5%; right: 4.5%; display: flex; justify-content: space-between; align-items: center; }
.us-cosmos__top { top: 28px; }
.us-cosmos__top > span, .us-cosmos__bottom { font: 9px/1.5 var(--mono); letter-spacing: .15em; }
.us-cosmos__top > span { opacity: .7; }
.us-scene-modes { display: inline-flex; padding: 4px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); background: color-mix(in srgb, var(--paper) 35%, transparent); backdrop-filter: blur(14px); border-radius: 30px; gap: 3px; }
.us-scene-modes button { border: 0; background: transparent; color: var(--ink); padding: 7px 14px; font: 11px/1.5 var(--sans); border-radius: 24px; cursor: pointer; transition: background .4s, box-shadow .4s; min-height: 34px; }
.us-scene-modes button span { font-size: 16px; display: inline-block; vertical-align: -1px; margin-right: 3px; }
.us-scene-modes button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: 0 2px 10px #4d173518; }
.us-cosmos__copy { width: 90%; max-width: 950px; padding: 105px 0 135px; position: relative; text-align: center; }
.us-cosmos__eyebrow { margin: 0 0 34px; font: 11px/1.6 var(--sans); letter-spacing: .32em; display: flex; justify-content: center; align-items: center; gap: 15px; color: var(--gold); }
.us-cosmos__eyebrow span { width: 26px; height: 1px; background: currentColor; opacity: .5; }
.us-cosmos__names { position: relative; max-width: 730px; margin: 0 auto 36px; font-family: var(--display-serif), Georgia, serif; font-size: clamp(96px, 10.8vw, 156px); font-weight: 400; font-style: italic; line-height: .83; letter-spacing: -.065em; text-shadow: 0 4px 30px #ffefdf77; }
.us-cosmos__names > span { display: block; }
.us-cosmos__names > span:first-child { padding-right: 1.3em; }
.us-cosmos__names > span:last-child { padding-left: 1.2em; margin-top: .06em; }
.us-cosmos__names > em { position: absolute; font-size: .33em; font-weight: 400; color: var(--gold); left: 29%; top: 61%; letter-spacing: -.1em; }
html[data-theme="night"] .us-cosmos__names { text-shadow: 0 0 45px #f2aacd28; }
.us-cosmos__line { font: 400 clamp(19px, 1.8vw, 25px)/1.8 var(--serif); letter-spacing: .13em; margin: 0 0 8px; }
html[lang^="en"] .us-cosmos__line { font-family: var(--display-serif); font-style: italic; letter-spacing: .015em; max-width: 400px; margin-inline: auto; line-height: 1.45; }
.us-cosmos__note { margin: 0; color: var(--muted); font: 11px/1.8 var(--sans); letter-spacing: .17em; }
html[lang^="en"] .us-cosmos__note { letter-spacing: .08em; }
.us-cosmos__actions { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 32px; }
.us-romance .us-button { border-radius: 40px; background: var(--ink); border-color: var(--ink); color: var(--paper); padding: 14px 25px; transition: transform .3s, box-shadow .3s, background .4s; }
.us-romance .us-button:hover { transform: translateY(-3px); box-shadow: 0 8px 26px color-mix(in srgb, var(--gold) 20%, transparent); background: var(--gold); border-color: var(--gold); color: var(--paper); }
.us-romance .us-button--small { padding: 9px 18px; }
.us-romance .us-button--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.us-romance .us-button--outline:hover { background: var(--us-surface); color: var(--ink); border-color: var(--gold); }
.us-cosmos__open { gap: 30px; font-size: 12px; }
.us-cosmos__wish { border: 0; background: transparent; padding: 12px 0; color: var(--ink); font: 11px/1.8 var(--sans); letter-spacing: .05em; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.us-cosmos__wish > span:first-child { font-size: 22px; transition: transform .7s; }
.us-cosmos__wish:hover > span:first-child { transform: rotate(90deg) scale(1.2); }
.us-only-night { display: none; }
html[data-theme="night"] .us-only-day { display: none; }
html[data-theme="night"] .us-only-night { display: inline; }
.us-cosmos__bottom { bottom: 32px; color: var(--muted); }
.us-cosmos__scroll { display: flex; align-items: center; gap: 13px; position: absolute; left: 50%; transform: translateX(-50%); font-size: 8px; text-decoration: none; color: var(--ink); }
.us-cosmos__scroll span { display: block; height: 34px; width: 1px; background: color-mix(in srgb, var(--ink) 20%, transparent); overflow: hidden; }
.us-cosmos__scroll span::after { content: ''; display: block; height: 17px; width: 1px; background: var(--gold); animation: us-scroll 2.6s ease-in-out infinite; }
.us-cosmos__pause { min-height: 44px; background: transparent; border: 0; color: var(--muted); padding: 8px 0 8px 12px; font: 10px/1.5 var(--sans); cursor: pointer; letter-spacing: .05em; }
.us-cosmos__pause::before { content: 'Ⅱ'; margin-right: 6px; }
.us-cosmos__pause[aria-pressed="true"]::before { content: '▷'; }
.us-romance :is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.us-cosmos .us-day-count { margin: 20px 0 0; color: var(--ink); font-size: 12px; }
.us-cosmos .us-day-count strong { font-size: 25px; color: var(--ink); }
.us-cosmos .us-next-date { margin: 7px 0 0; color: var(--muted); }
.us-cosmos .us-day-count ~ .us-cosmos__actions { margin-top: 20px; }

/* The pages below the scene feel like paper kept in a box of letters. */
.us-romance .us-shell { padding-top: 54px; }
.us-romance .us-toolbar { padding-bottom: 28px; border-color: var(--line); }
.us-romance .us-wordmark { font-family: var(--display-serif); font-size: 29px; font-style: italic; }
.us-romance .us-wordmark small { font-style: normal; color: var(--muted); }
.us-romance .us-tools { color: var(--muted); }
.us-romance .us-empty { position: relative; max-width: 790px; margin: 40px auto 20px; padding: 95px 35px 75px; border: 1px solid var(--line); background: linear-gradient(154deg, color-mix(in srgb, var(--us-surface) 60%, transparent), transparent 65%); }
.us-romance .us-empty::before, .us-romance .us-empty::after { content: ''; position: absolute; top: 12px; width: 70px; height: 1px; background: var(--line); }
.us-romance .us-empty::before { left: 12px; transform: rotate(35deg); transform-origin: left; }
.us-romance .us-empty::after { right: 12px; transform: rotate(-35deg); transform-origin: right; }
.us-romance .us-empty > span { color: var(--gold); display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 24px; border: 1px solid var(--line); border-radius: 50%; font: italic 30px var(--display-serif); background: var(--paper); box-shadow: 0 4px 15px #542e3710; }
.us-romance .us-empty > span::before { content: '♡'; }
.us-romance .us-empty > span { font-size: 0; }
.us-romance .us-empty > span::before { font-size: 27px; }
.us-romance .us-empty h2 { font-size: clamp(23px, 2.5vw, 32px); font-weight: 400; letter-spacing: .06em; }
.us-romance .us-empty p { color: var(--muted); max-width: 390px; margin-inline: auto; line-height: 2; }
.us-romance .us-empty--small { padding: 45px 20px; margin: 15px 0; }
.us-romance .us-card--text, .us-romance .us-envelope, .us-romance .us-anniversary { background: var(--us-surface); border-color: var(--line); }
.us-romance .us-card__photo { border-radius: 3px; box-shadow: 0 10px 32px #32182a0c; }
.us-romance .us-envelope::before { border-color: var(--line); }
.us-romance .us-section__heading h2 { font-weight: 400; }
.us-romance .us-colophon { padding: 80px 0 55px; border: 0; }
.us-romance .us-colophon > span:first-child { font: italic 42px var(--display-serif); color: var(--gold); }
.us-romance .us-colophon p { color: var(--muted); font-size: 12px; }
.us-romance .us-colophon > span:last-child { color: var(--muted); letter-spacing: .24em; font-size: 8px; }
.us-romance .us-footer { border-color: var(--line); color: var(--muted); }
.us-romance .us-dialog { background: var(--paper); color: var(--ink); }
.us-romance :is(.us-editor,.us-settings) :is(input,textarea,select) { border-color: var(--line-strong); }
.us-romance .us-setup-note { background: var(--us-surface); border-color: var(--line); }

@keyframes us-veil { from { transform: translate3d(-5%, -4%, 0) rotate(-17deg) scale(1); } to { transform: translate3d(8%, 9%, 0) rotate(17deg) scale(1.2); } }
@keyframes us-scroll { 0% { transform: translateY(-18px); } 65%,100% { transform: translateY(36px); } }
@keyframes us-arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  .us-cosmos__eyebrow { animation: us-arrive 1.1s .05s both; }
  .us-cosmos__names { animation: us-arrive 1.5s .15s both; }
  .us-cosmos__line, .us-cosmos__note { animation: us-arrive 1.2s .35s both; }
  .us-cosmos__actions { animation: us-arrive 1.2s .5s both; }
}
.us-cosmos[data-scene-state="paused"] *, .us-cosmos[data-scene-state="still"] *, .us-cosmos[data-scene-state="offscreen"] * { animation-play-state: paused !important; }
.us-cosmos[data-scene-state="still"] :is(.us-cosmos__eyebrow,.us-cosmos__names,.us-cosmos__line,.us-cosmos__note,.us-cosmos__actions) { animation: none !important; }
.us-cosmos[data-scene-state="still"] :is(.us-cosmos__wish,.us-cosmos__pause) { display: none; }
.no-js .us-scene-modes { display: none; }
@media (min-width: 1500px) { .us-cosmos__copy { transform: translateY(-10px); } }
@media (max-width: 860px) {
  .us-romance .us-space { padding-top: 70px; }
  .us-cosmos { height: calc(100svh - 70px); min-height: 740px; max-height: 1000px; }
  .us-cosmos__top { top: 22px; left: 6%; right: 6%; }
  .us-cosmos__top > span { max-width: 110px; font-size: 8px; line-height: 1.8; }
  .us-cosmos__copy { width: 94%; padding-top: 110px; padding-bottom: 135px; }
  .us-cosmos__eyebrow { font-size: 10px; margin-bottom: 32px; }
  .us-cosmos__names { font-size: clamp(85px, 15vw, 125px); max-width: 630px; margin-bottom: 33px; }
  .us-cosmos__names > span:first-child { padding-right: .75em; }
  .us-cosmos__names > span:last-child { padding-left: .7em; margin-top: .18em; }
  .us-cosmos__names > em { left: 21%; top: 62%; }
  .us-cosmos__line { font-size: 19px; letter-spacing: .1em; }
  .us-cosmos__note { font-size: 10px; letter-spacing: .13em; }
  .us-cosmos__sky .us-cosmos__halo { width: 25vw; top: 15%; right: 5%; }
  .us-cosmos__bottom { left: 6%; right: 6%; bottom: 23px; }
  .us-cosmos__bottom > span { max-width: 100px; font-size: 8px; line-height: 1.9; }
  .us-cosmos__scroll { font-size: 0; }
  .us-cosmos__scroll span { height: 40px; }
  .us-romance .us-shell { padding-top: 40px; }
}
@media (max-width: 520px) {
  .us-cosmos { min-height: 700px; }
  .us-cosmos__top { top: 15px; }
  .us-scene-modes { padding: 3px; }
  .us-scene-modes button { padding: 5px 11px; min-height: 32px; font-size: 10px; }
  .us-cosmos__copy { padding-top: 102px; padding-bottom: 120px; }
  .us-cosmos__names { font-size: clamp(80px, 21vw, 112px); width: 96%; line-height: .87; margin-bottom: 34px; }
  .us-cosmos__names > span:first-child { padding-right: .45em; }
  .us-cosmos__names > span:last-child { padding-left: .3em; margin-top: .22em; }
  .us-cosmos__names > em { top: 63%; left: 15%; font-size: .32em; }
  .us-cosmos__line { font-size: 17px; }
  html[lang^="en"] .us-cosmos__line { max-width: 265px; font-size: 22px; }
  .us-cosmos__actions { flex-direction: column; gap: 4px; margin-top: 26px; }
  .us-cosmos__open { padding: 12px 26px !important; font-size: 11px; }
  .us-cosmos__wish { padding: 12px; font-size: 10px; }
  .us-cosmos__eyebrow { margin-bottom: 32px; letter-spacing: .25em; }
  .us-cosmos__sky .us-cosmos__veil { filter: blur(30px); }
  .us-cosmos__sky .us-cosmos__halo { top: 16%; width: 90px; right: 7%; }
  html[data-theme="night"] .us-cosmos__sky .us-cosmos__halo { width: 46px; top: 18%; right: 11%; box-shadow: inset -2px -1px 1px #f8dfd5, 5px 5px 35px #cba3f12c; }
  .us-cosmos:has(.us-day-count) { min-height: 860px; }
  .us-romance .us-toolbar { gap: 18px; }
  .us-romance .us-wordmark { font-size: 26px; }
  .us-romance .us-wordmark small { font-size: 10px; }
  .us-romance .us-tools { font-size: 10px; }
  .us-romance .us-empty { padding: 65px 25px 55px; margin-top: 25px; }
  .us-romance .us-empty h2 { font-size: 23px; line-height: 1.65; }
  .us-romance .us-empty p { font-size: 12px; }
  .us-romance .us-colophon { padding: 60px 5px 35px; }
}
@media (prefers-reduced-motion: reduce) {
  .us-romance, .us-romance * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
