/* Drawn at 90% (tools/dev/scalecss.py). Made from /styles.css (which the public pages share) for jovvy.app's
   host pages and the wedding's guest page, which load it right after it.
   Not edited by hand: run python3 tools/dev/scalecss.py base after changing styles.css. */
/* Jovvy site. Tokens mirror app/lib/config/tokens.dart and the brand palette. */
:root {
  --paper: #fbf8f3;
  --surface: #ffffff;
  --ink: #1f1b16;
  --muted: #645d54;
  --line: #e8e2d8;
  --accent: #a8502f;
  --tint: #f6e9e2;
  --deep: #5e2b18;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 15.3px;
  line-height: 1.5;
}
.wrap {
  max-width: 576px;
  margin: 0 auto;
  padding-inline: 21.5px;
  padding-block: 43px 57.5px;
  display: flex;
  flex-direction: column;
  gap: 29px;
  min-height: 100svh;
}
.brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: 30.6px;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand img { display: block; }
h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32.4px, 9vw, 48.6px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
.lede { color: var(--muted); font-size: 17.1px; max-width: 34em; }
.eyebrow { font-size: 11.7px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.points li { display: flex; gap: 14.5px; align-items: flex-start; }
.points strong { display: block; font-weight: 600; }
.points span { color: var(--muted); font-size: 13.5px; }

.card { background: var(--tint); border-radius: 20px; padding: 25px 21.5px; display: flex; flex-direction: column; gap: 12.5px; }
.card.plain { background: var(--surface); border: 1px solid var(--line); }
.code {
  font-family: var(--display);
  font-size: clamp(36px, 13vw, 54px);
  letter-spacing: 0.14em;
  color: var(--deep);
  line-height: 1;
  user-select: all;
  overflow-wrap: anywhere;
}
.btn {
  appearance: none;
  border: 0;
  border-radius: 12.5px;
  background: var(--accent);
  color: #fff;
  font: 600 14.4px var(--text);
  padding: 13.5px 20px;
  min-height: 47px;
  cursor: pointer;
  align-self: flex-start;
}
.btn.quiet { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2.5px; }

.steps { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 9px; }
.note { color: var(--muted); font-size: 13.5px; }
footer { margin-top: auto; color: var(--muted); font-size: 12.6px; border-top: 1px solid var(--line); padding-top: 18px; }
[hidden] { display: none !important; }

/* The website's footer, on its public pages: the name and a line about it, then where everything is, in columns. */
.sitefoot { margin-top: clamp(50.5px, 7vw, 99px); background: #f4eee4; border-top: 1px solid var(--ink); color: var(--ink); padding: clamp(36px, 5vw, 63px) 0 23.5px; text-align: left; font-size: 14px; display: block; }
.sitefoot-in { width: min(92vw, 1480px); margin: 0 auto; display: grid; grid-template-columns: minmax(216px, 1.6fr) repeat(3, minmax(117px, 1fr)); gap: 30.5px clamp(21.5px, 4vw, 57.5px); }
.sitefoot-brand .brand { font-size: 27px; }
.sitefoot-brand p { margin-top: 12.5px; color: var(--muted); max-width: 30em; line-height: 1.55; }
.sitefoot nav { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.sitefoot h2 { font: 600 10.8px/1.2 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 5.5px 0 5.5px; }
.sitefoot nav a { color: var(--ink); text-decoration: none; }
.sitefoot nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3.5px; }
.sitefoot-line { width: min(92vw, 1480px); margin: clamp(30.5px, 4vw, 48.5px) auto 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.6px; }
@media (max-width: 900px) {
  .sitefoot-in { grid-template-columns: 1fr 1fr; width: auto; padding: 0 20px; }
  .sitefoot-brand { grid-column: 1 / -1; }
  .sitefoot-line { width: auto; margin-left: 20px; margin-right: 20px; }
}

/* While something loads: Jovvy's heart, beating twice and resting, like a heart; a slow fade
   for anyone who has asked for less motion. The words are for screen readers (role="status").
   Made by heartbeat() in /invitations/heart.js, and written into each page's first paint.
   It comes into view only once a wait has gone on (.8 s): most pages are ready before then,
   and open on a calm page with no sign of loading. */
.opening { display: grid; place-items: center; min-height: 40svh; }
.opening.small { min-height: 0; padding: 16px 0; }
.opening img, img.beat { width: 65px; height: 65px; animation: appear .3s ease-out .8s both, beat 1.6s ease-in-out 1.1s infinite; transform-origin: 50% 60%; }
img.beat.small { width: 32.5px; height: 32.5px; }
.opening.small img { width: 32.5px; height: 32.5px; }
@keyframes beat { 0%, 40%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 26% { transform: scale(1.05); } 32% { transform: scale(1.1); } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .opening img, img.beat { animation: appear .3s ease-out .8s both, breathe 2.4s ease-in-out 1.1s infinite; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Scroll bars: a slim rounded thumb in the paper's warm tan on no track, in
   place of the browser's grey bar in its white gutter. It shows only while the
   pointer is over what it scrolls, and goes to the accent under the pointer. A
   touch screen keeps its own, which shows only as it scrolls. The page keeps
   the bar's room, so it doesn't jump when a page grows long enough to need one.
   The color is a value on the box that scrolls, not a rule on the thumb alone:
   Chrome redraws a bar only when its box's own style changes. It doesn't pass
   down, so a box shows its bar only when it is hovered itself. The page's bar
   takes its style from the body, and stands down over the sidebar, which has
   its own. */
@property --thumb { syntax: '<color>'; inherits: false; initial-value: transparent; }
@media (hover: hover) and (pointer: fine) {
  html { scrollbar-gutter: stable; }
  :hover { --thumb: #cdbda8; }
  body:has(.rail:hover) { --thumb: transparent; }
  ::-webkit-scrollbar { width: 9px; height: 9px; }
  ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
  ::-webkit-scrollbar-thumb { --thumb: inherit; border: 2px solid transparent; border-radius: 999px; background: var(--thumb) padding-box; }
  ::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background-color: var(--accent); }
}
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: #cdbda8 transparent; }
}
