/* mirinapp.com until the app is live: one page in the app's own identity (the full site waits in Web/launch/). Paper and
   ink, one rust accent, New York with an italic turn, SF Mono for anything printed. Content is square, everything you
   press is round, glass only over the photograph. Light and dark follow the device. */

:root {
  color-scheme: light dark;
  --paper: #F5F0E6; --ink: #1A1814; --muted: #6E675C; --hairline: rgba(26, 24, 20, .3); --rust: #A8562A;
  --bone: #ECE5D6;
  --ticket: #FBF7EE; --ticket-ink: #1A1814; --ticket-rust: #A8562A; --ticket-dim: rgba(26, 24, 20, .62);
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4.5vw, 64px);
  --shot: min(50vw, 75svh);
  --ease: cubic-bezier(.2, .75, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #141311; --ink: #ECE5D6; --muted: #9D9588; --hairline: rgba(236, 229, 214, .28); --rust: #D68A52; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans);
       -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: 400; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
           clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 10; padding: 12px 20px; border-radius: 999px;
        background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
.skip:focus { top: max(12px, env(safe-area-inset-top)); }

/* The bar: the wordmark and the three languages. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px;
       padding: max(20px, env(safe-area-inset-top)) var(--gutter) 20px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: inherit; border-radius: 4px; }
.logo { display: block; height: 34px; background: currentColor; aspect-ratio: 1572 / 614;
  -webkit-mask: url(/assets/brand/mirin-logo.webp) center / contain no-repeat;
  mask: url(/assets/brand/mirin-logo.webp) center / contain no-repeat; }
.langs ul { display: flex; list-style: none; margin: 0; padding: 0; }
.langs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 9px; border-radius: 999px;
           font: 500 12px/1 var(--mono); letter-spacing: .14em; text-decoration: none; }
.langs a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.langs [aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* The words. */
.kicker { display: flex; align-items: center; gap: 14px; font: 500 12px/1.4 var(--mono); letter-spacing: .3em;
          text-transform: uppercase; color: var(--rust); }
.kicker::before { content: ""; flex: none; width: 36px; height: 1px; background: currentColor; }
.display { margin-top: 24px; padding-bottom: .08em; font: 400 clamp(46px, 15.4vw, 96px)/.95 var(--serif); letter-spacing: -.028em; }
.display em { font-style: italic; }
.lede { margin-top: 20px; max-width: 30ch; font: 400 clamp(19px, 1.9vw, 24px)/1.42 var(--serif); color: var(--muted);
        text-wrap: pretty; }

/* The ticket, as the app prints it. */
.ticket-shadow { margin-top: 32px; max-width: 340px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .1)) drop-shadow(0 18px 26px rgba(0, 0, 0, .18)); }
.ticket { --tear: 58px; position: relative; padding: 18px 20px 22px; background: var(--ticket); color: var(--ticket-ink);
          font: 500 12.5px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase;
          -webkit-mask: radial-gradient(circle at 0 calc(100% - var(--tear)), #0000 8px, #000 8.5px),
                        radial-gradient(circle at 100% calc(100% - var(--tear)), #0000 8px, #000 8.5px),
                        linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 6px) no-repeat,
                        conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) 0 100% / 12px 6px repeat-x;
          -webkit-mask-composite: source-in, source-in, source-over;
          mask: radial-gradient(circle at 0 calc(100% - var(--tear)), #0000 8px, #000 8.5px),
                radial-gradient(circle at 100% calc(100% - var(--tear)), #0000 8px, #000 8.5px),
                linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 6px) no-repeat,
                conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) 0 100% / 12px 6px repeat-x;
          mask-composite: intersect, intersect, add; }
.ticket .row { display: flex; justify-content: space-between; gap: 12px; }
.ticket .dim { color: var(--ticket-dim); }
.t-title { margin-top: 10px; font-weight: 700; font-size: 18px; letter-spacing: .08em; line-height: 1.25; }
.t-lines { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid rgba(26, 24, 20, .14); }
.t-lines li { display: flex; align-items: baseline; gap: 8px; padding: 1px 0; }
.t-lines .dots { flex: 1; min-width: 12px; border-bottom: 1px dotted rgba(26, 24, 20, .45); transform: translateY(-4px); }
.t-lines .v { white-space: nowrap; text-align: right; }
.t-lines .em { color: var(--ticket-rust); font-weight: 700; }
.t-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: var(--tear);
          margin: 14px -20px -22px; padding: 0 20px 6px; border-top: 1px dashed rgba(26, 24, 20, .32); }
.barcode { width: 96px; height: 22px; flex: none;
           background: repeating-linear-gradient(90deg, #1A1814 0 2px, #0000 2px 4px, #1A1814 4px 5px, #0000 5px 8px,
                                                 #1A1814 8px 11px, #0000 11px 13px, #1A1814 13px 14px, #0000 14px 17px); }
.t-state { display: inline-flex; align-items: center; gap: 7px; color: var(--ticket-rust); font-weight: 700; text-align: right; }
.t-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* The way out: help, the legal pages, a person. */
.foot { padding: 20px var(--gutter) max(22px, env(safe-area-inset-bottom)); }
.foot ul { display: flex; flex-wrap: wrap; gap: 0 18px; list-style: none; margin: 0; padding: 0; }
.foot a { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fine { margin-top: 8px; max-width: 72ch; font-size: 12px; line-height: 1.5; color: var(--muted); }

/* The page: the photograph first on a phone, on the right on anything wider. */
.soon { position: relative; display: flex; flex-direction: column; min-height: 100svh; }
.soon main { flex: 1; display: flex; flex-direction: column; }
.shot { order: -1; height: min(56svh, 125vw); overflow: hidden; background: #141311; }
.shot picture, .shot img { width: 100%; height: 100%; }
.shot img { object-fit: cover; object-position: 50% 60%; }
.copy { padding: 28px var(--gutter) 12px; }
/* Glass over the photograph: dark whatever the device's appearance, near the screen's edges. */
.soon .top { position: absolute; z-index: 2; top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left));
             right: max(10px, env(safe-area-inset-right)); padding: 0 10px 0 20px; min-height: 56px; border-radius: 999px;
             color: var(--bone); background: rgba(20, 19, 17, .7); box-shadow: inset 0 0 0 .75px rgba(236, 229, 214, .18);
             -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); }
.soon .top :focus-visible { outline-color: var(--bone); }
.soon .logo { height: 28px; }

@media (min-width: 900px) {
  .soon { padding-right: var(--shot); }
  .soon .top { position: static; padding: max(24px, env(safe-area-inset-top)) var(--gutter) 24px; min-height: 0; border-radius: 0;
               color: inherit; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .soon .top :focus-visible { outline-color: var(--rust); }
  .soon .logo { height: 36px; }
  .soon main { justify-content: center; }
  .copy { padding: 24px var(--gutter); }
  .shot { position: absolute; top: 0; right: 0; bottom: 0; width: var(--shot); height: auto; }
  .shot img { object-position: 50% 50%; }
  .display { font-size: clamp(84px, min(10vw, 21svh), 176px); }
  .display .line { display: block; }
  /* The ticket lies on the calm, dark foot of the photograph. */
  .ticket-shadow { position: absolute; z-index: 1; margin: 0; right: calc((var(--shot) - min(340px, var(--shot) - 40px)) / 2);
                   bottom: clamp(20px, 3.4svh, 40px); width: min(340px, var(--shot) - 40px); max-width: none;
                   filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .5)); }
}

/* Once, on arrival, and never if the device asks for less motion. */
@media (prefers-reduced-motion: no-preference) {
  .shot img { animation: settle 3s var(--ease) both; }
  .kicker, .display .line, .lede { animation: rise 1s var(--ease) both; }
  .display .line { animation-delay: .08s; }
  .display em.line { animation-delay: .18s; }
  .lede { animation-delay: .3s; }
  .ticket { animation: print 1.2s var(--ease) .55s both; }
  @keyframes settle { from { transform: scale(1.05); } to { transform: none; } }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-16px); } to { clip-path: inset(0); transform: none; } }
}

/* A page of words: the accessibility statement. */
.page { display: flex; flex-direction: column; min-height: 100svh; }
.prose { flex: 1; width: 100%; max-width: calc(680px + 2 * var(--gutter)); padding: 32px var(--gutter) 64px; }
.prose h1 { margin-top: 22px; font: 400 clamp(38px, 6.4vw, 72px)/1.02 var(--serif); letter-spacing: -.022em; }
.prose h2 { margin-top: 48px; font: 400 30px/1.2 var(--serif); letter-spacing: -.01em; }
.prose p, .prose li { font: 400 18.5px/1.65 var(--serif); }
.prose p { margin-top: 14px; }
.prose .kicker { margin-top: 0; font: 500 12px/1.4 var(--mono); }
.prose .lede { margin-top: 20px; max-width: none; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.42; }
.prose ul { margin: 16px 0 0; padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.prose a { text-underline-offset: 3px; }
.prose .updated { margin-top: 48px; font: 500 12px/1.5 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

@media (forced-colors: active) {
  .soon .top, .ticket { border: 1px solid CanvasText; }
  .kicker::before, .t-state::before { background: CanvasText; }
  .ticket { -webkit-mask: none; mask: none; }
}
