/* Oyami's site: what every page shares (the landing page and the blog). Page-specific styles stay in the page; the
   motion vocabulary and the page transitions are in motion.css (the legal pages share it too). */
@font-face{font-family:"Bricolage";src:url(/fonts/bricolage_grotesque.woff2) format("woff2");font-weight:600 800;font-display:swap}
@font-face{font-family:"Figtree";src:url(/fonts/figtree.woff2) format("woff2");font-weight:300 900;font-display:swap}
:root{
  --night:#0e141b;--ink:#14171f;--paper:#f5f7fb;--muted:#5b6472;
  color-scheme:light;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;min-height:100dvh;display:flex;flex-direction:column;background:var(--paper);color:var(--ink);font:400 17px/1.5 Figtree,system-ui,-apple-system,Roboto,sans-serif;-webkit-font-smoothing:antialiased}
main{flex:1}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
h1,h2,h3{font-family:Bricolage,Figtree,system-ui,sans-serif;font-weight:800;letter-spacing:-.025em;line-height:1.04;margin:0;text-wrap:balance}
h1{font-size:clamp(2.6rem,7vw,4.6rem)}
h2{font-size:clamp(2.1rem,5.2vw,3.5rem)}
p{margin:0}
:focus-visible{outline:3px solid currentColor;outline-offset:3px;border-radius:6px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Each band is one of the app's colours, as in the store screenshots. */
.band{--top:#ffc261;--bottom:#feb136;--fg:#3a2600;background:linear-gradient(var(--top),var(--bottom));color:var(--fg);overflow:hidden}
.mango{--top:#ffc261;--bottom:#feb136;--fg:#3a2600}
.coral{--top:#f39583;--bottom:#f07961;--fg:#4a1206}
.sky{--top:#7bc4ff;--bottom:#58b3fe;--fg:#062a52}
.green{--top:#7dd4a4;--bottom:#5ac88b;--fg:#063a1f}
.lilac{--top:#c7b8ff;--bottom:#b6a3fe;--fg:#2a1a66}
.night{--top:#141c25;--bottom:#0e141b;--fg:#eef2f5}
.wrap{max-width:1080px;margin:0 auto;padding:0 20px}

/* Header: over the first band. */
header{position:absolute;inset:0 0 auto;z-index:2}
header .wrap{display:flex;align-items:center;justify-content:space-between;height:72px}
header nav{display:flex;align-items:center;gap:20px}
header nav>a:not(.cta){font-weight:700;text-decoration:none;opacity:.8;transition:opacity .3s ease}
.brand{display:flex;align-items:center;gap:10px;font:800 1.35rem/1 Bricolage,Figtree,sans-serif;letter-spacing:-.02em;text-decoration:none}
.brand img{width:36px;height:36px;border-radius:10px}

/* The one button: dark on the colours, mango on the night band. Press answers at once; hover only with a real
   pointer (a phone keeps a fake hover after a tap). */
.cta{--bg:var(--ink);--bg-hover:#2b3140;--fg-cta:#fff;display:inline-flex;align-items:center;gap:10px;margin-top:28px;padding:16px 26px;border-radius:999px;background:var(--bg);color:var(--fg-cta);font:700 1.05rem/1 Figtree,sans-serif;text-decoration:none;box-shadow:0 10px 24px -10px rgb(20 23 31/.5);transition:transform .5s var(--expo),background-color .35s ease,box-shadow .5s var(--expo);-webkit-tap-highlight-color:transparent;touch-action:manipulation;user-select:none}
.cta svg{width:18px;height:18px;flex:none;transition:transform .5s var(--expo)}
.cta:active{transform:scale(.98);transition-duration:.12s}
.small{margin:0;padding:10px 16px;font-size:.95rem;box-shadow:none}
.night .cta{--bg:#ffc261;--bg-hover:#ffd27f;--fg-cta:#3a2600}
@media (hover:hover) and (pointer:fine){
  .cta:hover{background:var(--bg-hover);transform:translateY(-2px);box-shadow:0 18px 34px -14px rgb(20 23 31/.5)}
  .cta:hover svg{transform:translateX(2px)}
  .cta:active{transform:translateY(0) scale(.98)}
  header nav>a:not(.cta):hover{opacity:1}
  footer a:hover{color:#eef2f5}
}

footer{background:var(--night);color:#9aa6b2;font-size:.9rem;padding:0 0 calc(32px + env(safe-area-inset-bottom))}
footer .wrap{display:flex;flex-wrap:wrap;gap:12px 24px;justify-content:center;border-top:1px solid rgb(255 255 255/.08);padding-top:28px}
footer a{text-decoration:none;transition:color .3s ease}

/* Blog */
.blog-hero{padding:136px 0 64px}
.blog-hero p{margin-top:14px;font-size:clamp(1.05rem,2.2vw,1.25rem);opacity:.8;max-width:34rem}
.posts{display:grid;gap:20px;padding-top:48px;padding-bottom:96px}
@media (min-width:760px){.posts{grid-template-columns:1fr 1fr}}
.post-card{display:flex;flex-direction:column;gap:12px;padding:28px;border-radius:26px;background:linear-gradient(var(--top),var(--bottom));color:var(--fg);text-decoration:none;transition:transform .6s var(--expo),box-shadow .6s var(--expo)}
.post-card h2{font-size:clamp(1.6rem,3.4vw,2.1rem)}
.post-card p{opacity:.8}
.post-card small{font-weight:700;opacity:.7;font-size:.85rem}
.post-card:active{transform:scale(.99);transition-duration:.15s}
@media (hover:hover) and (pointer:fine){.post-card:hover{transform:translateY(-4px);box-shadow:0 24px 44px -20px rgb(20 23 31/.4)}}
.post-head{padding:136px 0 56px}
.post-head .wrap,.article{max-width:44rem}
.post-head p{margin-top:16px;font-size:1.15rem;opacity:.8}
.post-head small{display:block;margin-top:18px;font-weight:700;opacity:.7}
.article{margin:0 auto;padding:48px 20px 72px;font-size:1.12rem;line-height:1.7}
.article h2{font-size:clamp(1.6rem,3.6vw,2.2rem);margin:44px 0 12px}
.article h3{font-size:1.35rem;margin:32px 0 8px}
.article p,.article ul,.article ol{margin:0 0 18px}
.article li{margin:6px 0}
.article strong{font-weight:800}
.article a{color:#1f6fc2}
.article blockquote{margin:24px 0;padding:18px 22px;border-radius:18px;background:#fff;box-shadow:0 10px 30px -18px rgb(20 23 31/.3)}
.article blockquote p:last-child{margin:0}
.article code{font:600 .95em/1 ui-monospace,SFMono-Regular,Menlo,monospace;background:#e9edf5;padding:2px 6px;border-radius:6px}
.post-end{text-align:center;padding:80px 20px}
.post-end p{margin-top:14px;opacity:.75;font-size:1.15rem}
.back{display:inline-block;margin-bottom:18px;font-weight:700;text-decoration:none;opacity:.75}
