/* Mihara Studio, shared styles. Fonts: Kalnia (display) + Familjen Grotesk (text), both OFL. */
@font-face { font-family: 'Kalnia'; font-style: normal; font-display: swap; font-weight: 100 700; font-stretch: 100% 125%;
  src: url('../fonts/kalnia-latin-standard-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Kalnia'; font-style: normal; font-display: swap; font-weight: 100 700; font-stretch: 100% 125%;
  src: url('../fonts/kalnia-latin-ext-standard-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Familjen'; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url('../fonts/familjen-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Familjen'; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url('../fonts/familjen-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Familjen'; font-style: italic; font-display: swap; font-weight: 400 700;
  src: url('../fonts/familjen-grotesk-latin-wght-italic.woff2') format('woff2-variations'); }

:root {
  --oat: #F3EEE6;
  --lilac: #DDD3EF;
  --pistachio: #DCE5B5;
  --peach: #F6D5C2;
  --plum: #2D2331;
  --plum-soft: #6A5E6E;
  --matcha: #56632A;
  --line: rgba(45,35,49,.2);
  --display: 'Kalnia', 'Times New Roman', serif;
  --text: 'Familjen', system-ui, sans-serif;
  --edge: clamp(20px, 4vw, 60px);
  --pad: max(var(--edge), calc((100vw - 1320px) / 2));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body { background: var(--oat); color: var(--plum); font-family: var(--text); font-size: 18px; line-height: 1.55; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--matcha); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* type */
.display { font-family: var(--display); font-weight: 400; font-stretch: 100%; line-height: 1.04; letter-spacing: -0.015em; }
.wide { font-stretch: 125%; font-weight: 300; letter-spacing: -0.01em; }
.h-xl { font-size: clamp(40px, 6vw, 92px); }
.h-lg { font-size: clamp(34px, 4.4vw, 64px); }
.h-md { font-size: clamp(26px, 2.6vw, 38px); }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; max-width: 52ch; }
.muted { color: var(--plum-soft); }

/* banner + nav */
.banner { background: var(--plum); color: var(--oat); font-size: 14px; text-align: center; padding: 8px var(--pad); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--pad); position: relative; z-index: 20; }
.logo { font-family: var(--display); font-stretch: 125%; font-weight: 300; font-size: 28px; text-decoration: none; letter-spacing: 0.01em; }
.logo small { font-family: var(--text); font-size: 13px; letter-spacing: 0; margin-left: 6px; color: var(--plum-soft); }
.nav ul { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav a:not(.logo) { text-decoration: none; font-size: 16px; }
.nav a:not(.logo):not(.pill):hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.pill { display: inline-block; text-decoration: none; background: var(--plum); color: var(--oat) !important; padding: 10px 20px; border-radius: 999px; font-size: 16px; border: 0; cursor: pointer; font-family: var(--text); transition: transform .3s cubic-bezier(.3,1.6,.5,1), background .3s; }
.pill:hover { transform: rotate(-3deg) scale(1.04); background: var(--matcha); }
.nav-toggle { display: none; background: none; border: 0; font: inherit; font-size: 16px; cursor: pointer; color: var(--plum); }

/* marquee */
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--plum); background: var(--pistachio); }
.marquee-track { display: inline-flex; animation: run 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 26px; padding: 14px 13px; font-size: 18px; }
.marquee svg { width: 18px; height: 18px; flex: none; }
.marquee.big { background: transparent; border: 0; }
.marquee.big .marquee-track span { font-family: var(--display); font-stretch: 125%; font-weight: 300; font-size: clamp(56px, 9vw, 140px); line-height: 1.05; gap: 40px; padding: 0 20px; }
.marquee.big svg { width: clamp(36px, 5vw, 72px); height: clamp(36px, 5vw, 72px); }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 46s; }
@keyframes run { to { transform: translateX(-50%); } }

/* stickers */
.sticker { position: absolute; z-index: 6; pointer-events: none; }
.sticker svg { width: 100%; height: 100%; overflow: visible; }
.spin { animation: spin 22s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.bubble { position: absolute; z-index: 6; background: var(--oat); border: 1px solid var(--plum); border-radius: 22px; padding: 12px 18px; font-size: 16px; line-height: 1.3; max-width: 230px; box-shadow: 4px 4px 0 var(--plum); }
.bubble::after { content: ""; position: absolute; left: 26px; bottom: -11px; width: 18px; height: 18px; background: inherit; border-right: 1px solid var(--plum); border-bottom: 1px solid var(--plum); transform: rotate(45deg) skew(8deg, 8deg); }
.tag-sticker { position: absolute; z-index: 6; background: var(--peach); border: 1px solid var(--plum); border-radius: 999px; padding: 8px 18px; font-size: 16px; white-space: nowrap; }

/* round CTA sticker */
.round-cta { position: relative; display: inline-grid; place-items: center; width: 150px; height: 150px; text-decoration: none; flex: none; }
.round-cta svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.round-cta .core { position: relative; z-index: 1; width: 70px; height: 70px; border-radius: 50%; background: var(--plum); display: grid; place-items: center; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.round-cta:hover .core { transform: scale(1.12) rotate(18deg); }
.round-cta .core svg { position: static; width: 30px; height: 30px; }

/* photo cards */
.photo { background: #fff; padding: 8px 8px 8px; box-shadow: 0 1px 0 rgba(45,35,49,.08), 0 14px 30px -18px rgba(45,35,49,.45); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* section shells */
section { position: relative; }
.wrap { padding: clamp(80px, 9vw, 140px) var(--pad); }
.bg-lilac { background: var(--lilac); }
.bg-pistachio { background: var(--pistachio); }
.bg-peach { background: var(--peach); }
.bg-plum { background: var(--plum); color: var(--oat); }

/* footer */
.footer { padding: 34px var(--pad) 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; color: var(--plum-soft); border-top: 1px solid var(--line); }
.footer a { text-decoration: none; margin-left: 18px; }
.footer a:hover { color: var(--plum); }

@media (max-width: 900px) {
  .nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--oat); flex-direction: column; align-items: flex-start; padding: 10px var(--pad) 26px; gap: 18px; border-bottom: 1px solid var(--line); }
  .nav ul.open { display: flex; }
  .nav-toggle { display: block; }
  body { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- cursor ---------- */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-cursor] { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }
.cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; width: 0; height: 0; opacity: 0; transition: opacity .25s; }
.cursor.show { opacity: 1; }
.cursor.field { opacity: 0; }
.cursor span { position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--plum); transform: translate(-50%, -50%); display: grid; place-items: center; color: var(--plum); font-size: 16px; line-height: 1; border: 1.5px solid var(--plum); transition: width .35s cubic-bezier(.3,1.6,.5,1), height .35s cubic-bezier(.3,1.6,.5,1), background .3s; }
.cursor span::after { content: "\2726"; position: absolute; top: -10px; left: 50%; transform: translateX(-50%) scale(0); font-size: 18px; color: var(--plum); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.cursor.big span { width: 70px; height: 70px; background: transparent; animation: cursor-spin 3s linear infinite; }
.cursor.big span::after { transform: translateX(-50%) scale(1); }
.cursor.big.word span { width: 84px; height: 84px; background: var(--peach); font-family: var(--text); animation: none; }
.cursor.big.word span::after { transform: translateX(-50%) scale(0); }
.cursor.press span { width: 46px; height: 46px; }
@keyframes cursor-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
