/* Tori's website, in Fuji as the app is now: wisteria on a soft, faintly warm graphite. */

:root {
  --bg: #19181c;
  --bg-2: #1d1c20;
  --bg-3: #242228;
  --text: #edecef;
  --text-2: #bab7c2;
  --muted: #8d8a95;
  --line: rgba(237, 236, 239, .07);
  --line-2: rgba(237, 236, 239, .13);
  --accent: #ac9ddb;
  --accent-ink: #cdc3ec;
  --accent-soft: rgba(172, 157, 219, .14);
  --on-accent: #1b1233;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1180px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font: .86em var(--mono); color: var(--accent-ink); background: var(--accent-soft); padding: .1em .4em; border-radius: 5px; }
kbd {
  display: inline-block; min-width: 1.6em; padding: .05em .45em; margin: 0 .08em;
  font: 500 .8em var(--sans); text-align: center; color: var(--text-2);
  background: var(--bg-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px;
}
em { font-style: italic; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
/* Nothing animates from the browser's own styles on load (WebKit would fade links in from blue). */
html:not(.ready) *, html:not(.ready) *::before, html:not(.ready) *::after { transition: none !important; }

/* ---------- type */
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.02em; }
h1, h2 { font-family: var(--serif); text-wrap: balance; }
h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.03em; }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; }
h1 em, h2 em { color: var(--accent-ink); }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.eyebrow { margin: 0 0 16px; font-size: 15px; font-weight: 600; letter-spacing: -.005em; color: var(--accent); }
.lede { margin: 22px 0 0; max-width: 640px; text-wrap: pretty; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--text-2); }
.fine { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px;
  font: 600 16px var(--sans); text-decoration: none; color: var(--on-accent);
  background: linear-gradient(135deg, #c3b6ef, var(--accent) 55%, #9a8ad0);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 2px 6px -2px rgba(0, 0, 0, .45), 0 8px 20px -10px rgba(172, 157, 219, .35);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 4px 10px -3px rgba(0, 0, 0, .45), 0 12px 26px -12px rgba(172, 157, 219, .5); }
.btn-ghost { color: var(--text); background: rgba(236, 235, 240, .06); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(236, 235, 240, .1); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-small { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-large { height: 56px; padding: 0 32px; font-size: 17px; border-radius: 14px; }

/* ---------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(25, 24, 28, .74); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 18px var(--serif); letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 30px; height: auto; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { font-size: 14px; color: var(--text-2); text-decoration: none; transition: color .2s; }
.nav nav a:hover { color: var(--text); }

/* ---------- hero */
.hero { position: relative; padding: clamp(64px, 10vw, 128px) 0 0; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(42% 46% at 50% 38%, rgba(172, 157, 219, .20), transparent 70%),
    radial-gradient(24% 26% at 72% 28%, rgba(205, 195, 236, .07), transparent 70%);
}
.hero-copy { position: relative; text-align: center; }
.hero-copy h1 { max-width: 920px; margin-inline: auto; }
.hero-copy .lede { margin-inline: auto; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

.shot-wrap { position: relative; margin-top: clamp(56px, 7vw, 88px); }
.window {
  position: relative; margin: 0; border-radius: 14px; overflow: hidden;
  background: #211f24;
  box-shadow: 0 0 0 1px var(--line-2), 0 50px 120px -30px rgba(0, 0, 0, .85), 0 30px 80px -40px rgba(172, 157, 219, .35);
}
.hero .window { transform: perspective(2400px) rotateX(6deg); transform-origin: 50% 0; }
/* A hairline of wisteria under the window. */
.seam {
  height: 1px; margin: 0 8%; transform: translateY(-1px);
  background: linear-gradient(90deg, transparent, rgba(172, 157, 219, 0) 10%, var(--accent) 50%, rgba(172, 157, 219, 0) 90%, transparent);
  box-shadow: 0 0 18px 1px rgba(172, 157, 219, .35);
}

/* ---------- the bird: the illustration across the page, its few words beneath */
.bird { padding: clamp(40px, 6vw, 72px) 0 0; text-align: center; }
/* The illustration's own dark fades into the page on every side, so no edge of it shows. */
.bird-art { margin: 0 auto; max-width: 1400px; padding: 0 20px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 16%, #000 76%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 16%, #000 76%, transparent);
  mask-composite: intersect; }
.bird-copy { position: relative; margin-top: clamp(4px, 1vw, 12px); }
.bird-copy h2 { font-size: clamp(32px, 3.8vw, 48px); }
.bird-copy .lede { margin-inline: auto; }

/* ---------- principles */
.principles { padding: 72px 0 24px; }
.principles ul { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.principles li { font-size: 15px; color: var(--muted); line-height: 1.55; padding-top: 18px; border-top: 1px solid var(--line-2); }
.principles strong { display: block; margin-bottom: 4px; font: 500 21px var(--serif); color: var(--text); }

/* ---------- sections */
.section { padding: clamp(88px, 11vw, 140px) 0; }
.section-tint { background: linear-gradient(var(--bg-2), var(--bg) 85%); border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px); }

/* the page vs its source */
.compare { max-width: 900px; margin: 0 auto; }
.compare-frame {
  position: relative; margin: 0; overflow: hidden; border-radius: 14px; user-select: none; touch-action: pan-y;
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 100px -40px rgba(0, 0, 0, .9);
  cursor: ew-resize;
}
.compare-frame { aspect-ratio: 1304 / 912; }
/* The frame is the slider: no browser selection or tap flash while dragging, and a focus ring only
   from the keyboard, drawn around the handle rather than the whole picture. */
.compare-frame { -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; outline: none; }
.compare-frame img { pointer-events: none; -webkit-user-drag: none; }
.compare-frame.dragging { cursor: grabbing; }
.compare-frame.dragging .compare-handle span { transform: translate(-50%, -50%) scale(1.08); }
.compare-handle span { transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.compare-frame:focus-visible .compare-handle span { box-shadow: 0 6px 24px rgba(0, 0, 0, .5), 0 0 0 3px var(--bg), 0 0 0 5px var(--accent-ink); }
.compare-source { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.compare-page { position: absolute; inset: 0; width: var(--split, 55%); overflow: hidden; border-right: 1px solid rgba(172, 157, 219, .5); }
.compare-page img { width: 900px; max-width: none; height: 100%; object-fit: cover; object-position: left top; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split, 55%); width: 0; pointer-events: none;
}
.compare-handle span {
  position: absolute; top: 50%; left: 0; width: 44px; height: 44px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--accent); box-shadow: 0 6px 24px rgba(0, 0, 0, .5), 0 0 0 6px rgba(172, 157, 219, .22);
}
.compare-handle span::before, .compare-handle span::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border: solid var(--on-accent); border-width: 0 0 2px 2px;
}
.compare-handle span::before { left: 11px; transform: translateY(-50%) rotate(45deg); }
.compare-handle span::after { right: 11px; transform: translateY(-50%) rotate(-135deg); }
.compare-tag {
  position: absolute; top: 18px; padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  background: rgba(25, 24, 28, .82); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); pointer-events: none;
}
.compare-tag.left { left: 18px; }
.compare-tag.right { right: 18px; }
.compare-hint { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: clamp(64px, 8vw, 96px) 0 56px; }
.trio h3 { margin-bottom: 10px; }
.trio p { margin: 0; color: var(--text-2); font-size: 16px; }
.shot { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 40px 100px -40px rgba(0, 0, 0, .9); }
.shot-narrow { max-width: 760px; margin-inline: auto; }

/* alternating rows */
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.row + .row { margin-top: clamp(72px, 9vw, 120px); }
.row-flip .row-copy { order: 2; }
.row-copy h3 { font: 500 clamp(26px, 2.6vw, 32px)/1.15 var(--serif); letter-spacing: -.02em; margin-bottom: 20px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: calc(.8em - 4px); width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}

/* detail cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.cards li { padding: 30px 30px 32px; background: var(--bg); transition: background .3s; }
.cards li:hover { background: var(--bg-2); }
.cards h3 { margin-bottom: 8px; }
.cards p { margin: 0; color: var(--text-2); font-size: 15px; }

/* versus */
.versus { border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2); }
.versus-row { display: grid; grid-template-columns: 1fr 1fr; }
.versus-row span { padding: 20px 28px; font-size: 16px; border-top: 1px solid var(--line); }
.versus-row span:first-child { color: var(--muted); }
.versus-row span:last-child { color: var(--text); background: linear-gradient(90deg, rgba(172, 157, 219, .07), transparent); border-left: 1px solid var(--line); }
.versus-head span { border-top: 0; padding-block: 16px; font-size: 14px; font-weight: 600; }
.versus-head span:last-child { color: var(--accent); }

/* themes */
.theme-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.theme-tabs button {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px 0 12px;
  font: 600 15px var(--sans); color: var(--text-2); background: rgba(236, 235, 240, .04);
  border: 0; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; transition: color .2s, background .2s, box-shadow .2s;
}
.theme-tabs button::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--swatch) 0 38%, var(--swatch-bg) 40%); box-shadow: 0 0 0 1px var(--line-2); }
.theme-tabs button[aria-selected="true"] { color: var(--text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(172, 157, 219, .5); }
#theme-shot { transition: opacity .25s; }
#theme-shot.swapping { opacity: 0; }

/* files */
.files { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.files .lede { margin-bottom: 28px; }
.tree {
  margin: 0; padding: 28px 32px; border-radius: 16px; overflow-x: auto;
  font: 14.5px/1.85 var(--mono); color: var(--text-2); background: #141317; box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px -40px rgba(0, 0, 0, .9);
}
.tree .d { color: var(--accent-ink); }
.tree .p { color: var(--text); }

/* faq */
.faq { max-width: 780px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { position: relative; padding: 22px 40px 22px 0; font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 300; color: var(--accent); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: -6px 0 24px; color: var(--text-2); }

/* final call */
.final { position: relative; padding: clamp(110px, 14vw, 180px) 0; overflow: hidden; text-align: center; border-top: 1px solid var(--line); }
/* The birds and ribbons, faint, fading out toward the edges. */
.final-pattern { position: absolute; inset: 0; background: url(/img/pattern.jpg) center / 420px repeat; opacity: .16;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent 85%); mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent 85%); }
.final .hero-glow { inset: 0 -10% auto; }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.final-mark { width: 96px; height: auto; margin-bottom: 28px; filter: drop-shadow(0 10px 30px rgba(172, 157, 219, .4)); animation: float 7s ease-in-out infinite; }
.final .lede { margin: 18px 0 36px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
/* A page of its own, the final call filling the window: the 404 and the coming-soon page. */
.standalone { border: 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding-block: 64px; }
.standalone h1 { max-width: 820px; }
.standalone .lede { margin: 22px auto 0; }
.standalone .fine { margin-top: 48px; }
/* Coming soon: the field the key is typed into on phones, there but unseen; the page fades as it
   lets someone in. */
.soon-key { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; font-size: 16px; }
.welcome main { opacity: 0; transition: opacity .4s var(--ease); }

.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; align-items: center; gap: 24px; }
.footer-inner a:last-child { margin-left: auto; text-decoration: none; }
.footer-inner a:hover { color: var(--text); }
.brand-small { font-size: 15px; color: var(--text); }
.brand-small img { width: 22px; height: auto; }

/* ---------- arrival: things rise into place as they come into view */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .window { transform: none; }
  .final-mark { animation: none; }
}

/* ---------- smaller screens */
@media (max-width: 980px) {
  .nav nav { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .principles ul { grid-template-columns: repeat(2, 1fr); }
  .trio, .cards { grid-template-columns: 1fr 1fr; }
  .row, .files { grid-template-columns: 1fr; }
  .row-flip .row-copy { order: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .principles ul, .trio, .cards { grid-template-columns: 1fr; }
  .hero .window { transform: none; }
  .shot-wrap { margin-top: 44px; }
  .compare-handle span { width: 36px; height: 36px; }
  .compare-handle span::before { left: 8px; } .compare-handle span::after { right: 8px; }
  .versus-row { grid-template-columns: 1fr; }
  .versus-row span:last-child { border-left: 0; border-top: 0; padding-top: 0; }
  .versus-row span:first-child::before { content: "Typical: "; font-weight: 600; }
  .versus-row span:last-child::before { content: "Tori: "; font-weight: 600; color: var(--accent); }
  .versus-head { display: none; }
  .compare-tag { top: 10px; font-size: 11px; }
  .compare-tag.left { left: 10px; } .compare-tag.right { right: 10px; }
  .footer-inner { flex-wrap: wrap; gap: 10px 20px; }
}
