/* Kremaet — shared styles (landing + legal pages). No framework, no build step. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #462201;
  --ink-2: rgba(70, 34, 1, 0.72);
  --ink-3: rgba(70, 34, 1, 0.5);
  --line: rgba(70, 34, 1, 0.12);
  --amber: #efa30b;
  --amber-2: #ffc94d;
  --cream: #fff6e6;
  --cream-2: #f5ebdd;
  --paper: #fffdf9;
  --white: #ffffff;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --text: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::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.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 800 22px/1 var(--display);
  letter-spacing: -0.5px;
}
.brand img {
  width: 30px;
  height: 30px;
}

/* ---------- Play button ---------- */
.play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  line-height: 1.15;
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.4), box-shadow 0.2s;
  box-shadow: 0 10px 24px -12px rgba(70, 34, 1, 0.6);
}
.play:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(70, 34, 1, 0.7);
}
.play svg {
  flex: none;
}
.play small {
  display: block;
  font-size: 11px;
  opacity: 0.72;
  letter-spacing: 0.3px;
}
.play strong {
  font-size: 17px;
  font-weight: 600;
}
.play--sm {
  padding: 8px 16px 8px 12px;
  gap: 8px;
  box-shadow: none;
}
.play--sm strong {
  font-size: 14px;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 56px 0 40px;
  color: var(--ink-2);
  font-size: 15px;
}
.site-footer .wrap {
  display: grid;
  gap: 24px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer nav a {
  text-decoration: none;
}
.site-footer nav a:hover {
  text-decoration: underline;
}
.site-footer .fine {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

/* ---------- legal pages ---------- */
.legal {
  max-width: 740px;
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: 32px;
}
.legal h1 {
  font: 800 clamp(34px, 6vw, 52px) / 1.02 var(--display);
  letter-spacing: -1.2px;
  margin: 0 0 12px;
}
.legal h2 {
  font: 800 22px/1.2 var(--display);
  letter-spacing: -0.3px;
  margin: 44px 0 10px;
}
.legal h3 {
  font-size: 17px;
  margin: 26px 0 4px;
}
.legal p,
.legal li {
  color: var(--ink-2);
}
.legal em {
  color: var(--ink-3);
}
.legal .updated {
  color: var(--ink-3);
  font-size: 14px;
  margin: 0 0 28px;
}
.legal .box {
  background: var(--cream);
  border-radius: 16px;
  padding: 6px 20px;
}
.legal ol li,
.legal ul li {
  margin: 4px 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
