@font-face {
  font-family: "Shrikhand";
  src: url("/assets/shrikhand.woff2") format("woff2");
  font-display: swap;
}

:root {
  --paper: #f3f5fa;
  --card: #fdfcfa;
  --ink: #1f2a5c;
  --ink-soft: #46507a;
  --pink: #ff48b0;
  --blue: #0078bf;
  --yellow: #ffe800;
  --green: #00a95c;
  --line: #d9dcea;
  --display: "Shrikhand", "Cooper Black", Georgia, serif;
  --text: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: min(1160px, 100% - 2.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scrollbar-color: var(--blue) var(--paper); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

/* riso grain over everything, very faint */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--yellow); color: var(--ink); }

a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { color: var(--pink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

img { display: block; max-width: 100%; height: auto; }

.wrap { width: var(--wrap); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }

/* ---------- header ---------- */
.site-head { position: relative; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; font-family: var(--display); font-size: 1.45rem; }
.logo:hover { color: inherit; }
.logo svg { width: 34px; height: 34px; flex: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.logo:hover svg { transform: rotate(-8deg); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: inherit; text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--pink); }
.on-blue .site-head { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font: 700 1rem/1 var(--text); text-decoration: none;
  border: 2px solid transparent;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { color: var(--ink); background: #fff27a; }
.btn-line { border-color: currentColor; color: #fff; }
.btn-line:hover { color: var(--yellow); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--blue); color: #fff; }
.btn-small { padding: .6rem 1.05rem; font-size: .92rem; }

/* ---------- hero ---------- */
.hero { background: var(--blue); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem; padding-block: 3rem 5.5rem; }
.hero h1 { color: #fff; text-shadow: .045em .035em 0 var(--pink); }
.hero p { margin-top: 1.4rem; font-size: 1.2rem; color: #e6f2fb; max-width: 34ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }

.stack { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; margin-inline: auto; }
.stack::before { content: ""; position: absolute; inset: 9% 6%; border-radius: 50%; background: var(--yellow); }
.stack img {
  position: absolute; width: 46%; top: 18%; left: 27%;
  border-radius: 10px;
  box-shadow: 0 18px 30px -12px rgba(16, 24, 64, .55);
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}
.stack img:nth-child(1) { transform: rotate(-14deg) translate(-38%, 6%); }
.stack img:nth-child(2) { transform: rotate(9deg) translate(36%, 4%); }
.stack img:nth-child(3) { transform: rotate(-2deg) translateY(-4%); }
.stack:hover img:nth-child(1) { transform: rotate(-20deg) translate(-52%, 9%); }
.stack:hover img:nth-child(2) { transform: rotate(15deg) translate(50%, 6%); }
.stack:hover img:nth-child(3) { transform: rotate(0deg) translateY(-9%); }

/* ---------- how it works ---------- */
.how { padding-block: 6rem; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.how h2 { margin-bottom: 2.2rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.9rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 3.1rem 1fr; gap: 1rem; align-items: start; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%;
  font: 1.35rem/1 var(--display); color: var(--ink); background: var(--yellow);
}
.steps li:nth-child(2)::before { background: var(--pink); }
.steps li:nth-child(3)::before { background: #7fd3ff; }
.steps h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.steps p { color: var(--ink-soft); }

/* mock editor, CSS only */
.editor { background: #fff; border-radius: 22px; padding: 1.4rem; box-shadow: 0 30px 60px -30px rgba(31, 42, 92, .35); border: 1px solid var(--line); }
.editor-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.1rem; font-size: .9rem; color: var(--ink-soft); }
.editor-bar strong { color: var(--ink); }
.inks { display: flex; gap: .45rem; }
.inks input { position: absolute; opacity: 0; pointer-events: none; }
.inks label { width: 28px; height: 28px; border-radius: 50%; cursor: pointer; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); transition: box-shadow .2s, transform .2s; }
.inks label:hover { transform: scale(1.1); }
.inks input:checked + label { box-shadow: 0 0 0 2px var(--ink); }
.inks input:focus-visible + label { outline: 3px solid var(--pink); outline-offset: 2px; }
.ink-pink { background: var(--pink); }
.ink-blue { background: var(--blue); }
.ink-yellow { background: var(--yellow); }
.ink-green { background: var(--green); }

.preview {
  --c: var(--pink);
  position: relative; aspect-ratio: 7 / 5; border-radius: 14px; overflow: hidden;
  background: var(--c); color: #fff; display: grid; place-items: center; text-align: center; padding: 1.5rem;
  transition: background-color .45s cubic-bezier(.16, 1, .3, 1);
}
.editor:has(#ink-blue:checked) .preview { --c: var(--blue); }
.editor:has(#ink-yellow:checked) .preview { --c: var(--yellow); color: var(--ink); }
.editor:has(#ink-green:checked) .preview { --c: var(--green); }
.preview::before, .preview::after { content: ""; position: absolute; border-radius: 50%; mix-blend-mode: multiply; }
.preview::before { width: 46%; aspect-ratio: 1; background: var(--yellow); left: -10%; bottom: -18%; }
.preview::after { width: 30%; aspect-ratio: 1; background: #7fd3ff; right: -6%; top: -10%; }
.preview-text { position: relative; z-index: 1; font: clamp(1.7rem, 3.4vw, 2.5rem)/1.05 var(--display); }
.preview-text small { display: block; margin-top: .6rem; font: 600 1rem/1.4 var(--text); opacity: .92; }

.field { margin-top: 1rem; border: 2px solid var(--line); border-radius: 12px; padding: .75rem .9rem; font-size: .98rem; color: var(--ink-soft); }
.field span::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--pink); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- occasions ---------- */
.occasions { background: var(--pink); padding-block: 5rem; }
.occasions-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.occasions h2 { color: var(--ink); }
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.shelf a { color: var(--ink); text-decoration: none; font-weight: 700; }
.shelf img { border-radius: 10px; box-shadow: 0 16px 26px -14px rgba(31, 42, 92, .6); transition: transform .35s cubic-bezier(.16, 1, .3, 1); margin-bottom: .8rem; }
.shelf a:nth-child(odd) img { transform: rotate(-2deg); }
.shelf a:nth-child(even) img { transform: rotate(2deg); }
.shelf a:hover img { transform: rotate(0) translateY(-6px); }

/* ---------- studio note ---------- */
.note { padding-block: 6rem; }
.note-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3.5rem; align-items: center; }
.note p + p { margin-top: 1rem; }
.note p { color: var(--ink-soft); font-size: 1.12rem; }
.note h2 { margin-bottom: 1.4rem; }
.stamp { width: min(320px, 100%); margin-inline: auto; transform: rotate(-6deg); }

/* ---------- inner pages ---------- */
.page-head { padding-block: 3.5rem 2.5rem; }
.page-head p { margin-top: 1rem; font-size: 1.15rem; color: var(--ink-soft); }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.8rem; }
.chips a { padding: .5rem 1rem; border-radius: 999px; background: #fff; border: 2px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.chips a:hover { border-color: var(--ink); color: var(--ink); }
.chips a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2.4rem 1.8rem; padding-bottom: 6rem; }
.tpl { scroll-margin-top: 2rem; }
.tpl figure { margin: 0; }
.tpl img { border-radius: 10px; background: #fff; box-shadow: 0 16px 28px -16px rgba(31, 42, 92, .5); transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.tpl:hover img { transform: translateY(-6px) rotate(-1deg); }
.tpl figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-top: .9rem; }
.tpl figcaption strong { font-size: 1.05rem; }
.tpl figcaption span { font-size: .88rem; color: var(--ink-soft); }

.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: start; padding-bottom: 6rem; }
.about p { color: var(--ink-soft); font-size: 1.12rem; }
.about p + p { margin-top: 1.1rem; }
.about h2 { font-size: 1.9rem; margin: 2.8rem 0 1rem; }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.values li { padding-left: 1.6rem; position: relative; color: var(--ink-soft); }
.values li::before { content: ""; position: absolute; left: 0; top: .45em; width: .75rem; height: .75rem; border-radius: 50%; background: var(--pink); }
.values li:nth-child(2)::before { background: var(--blue); }
.values li:nth-child(3)::before { background: var(--yellow); }
.values strong { color: var(--ink); }
.about-art { position: sticky; top: 2rem; }

.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.lost img { width: 220px; margin: 0 auto 2rem; transform: rotate(-8deg); }
.lost p { margin: 1rem auto 2rem; color: var(--ink-soft); font-size: 1.15rem; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #c9cfe8; padding-block: 3rem; font-size: .95rem; }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.site-foot .logo { color: #fff; font-size: 1.25rem; }
.site-foot nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { color: var(--yellow); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .how-grid, .note-grid, .about { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 1.5rem 4rem; gap: 1rem; }
  .stack { max-width: 400px; }
  .how-grid { gap: 3rem; }
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .about-art { position: static; max-width: 320px; }
}
@media (max-width: 640px) {
  .nav { gap: 1rem; font-size: .95rem; }
  .nav .hide-sm { display: none; }
  .how, .note { padding-block: 4rem; }
  .occasions { padding-block: 3.5rem; }
  .editor { padding: 1rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
  .tpl figcaption { flex-direction: column; gap: .1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.shelf img, .tpl img, .stack img { width: 100%; }
.shelf > *, .gallery > *, .hero-grid > *, .how-grid > * { min-width: 0; }
.stack img { width: 46%; }
@media (max-width: 640px) {
  .logo { font-size: 1.15rem; gap: .4rem; }
  .logo svg { width: 28px; height: 28px; }
  .nav { gap: .9rem; font-size: .92rem; }
  .stamp { width: 220px; }
  .note-grid { gap: 2.5rem; }
}

/* contrast */
:root { --ink: #1a234f; }
.hero p { color: #fff; }
.preview { color: var(--ink); }
.editor:has(#ink-blue:checked) .preview, .editor:has(#ink-green:checked) .preview { color: #fff; }
.preview-text small { opacity: 1; }
.preview::before { width: 34%; left: -8%; bottom: -16%; }
