/* ------------------------------------------------------------------
   Sokko ApS — sokko.io
   A small site for a small studio. Toy colors, quiet type.
------------------------------------------------------------------- */

:root {
  --paper: #fbfaf6;
  --ink: #23262f;
  --muted: #6b6f7a;
  --line: #e7e3d8;

  --cherry: #d6453b;
  --bluebell: #4a7fd4;
  --sun: #f0b429;
  --leaf: #57a773;

  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --wrap: 1060px;
  --gutter: clamp(1.25rem, 5vw, 3rem);

  color-scheme: light;
}

/* ---- base ---- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px dashed var(--cherry);
  outline-offset: 4px;
  border-radius: 2px;
}

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

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

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- header ---- */

.site-header {
  padding-block: 1.75rem;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}

.wordmark span {
  color: var(--cherry);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--sun);
}

/* ---- hero ---- */

.hero {
  padding-block: clamp(3rem, 9vh, 6.5rem) 0;
  text-align: center;
}

.hero .eyebrow {
  display: block;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 16ch;
  margin-inline: auto;
}

.hero h1 em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 0.04em;
  height: 0.13em;
  background: var(--sun);
  border-radius: 999px;
  z-index: -1;
}

.hero .lede {
  max-width: 44ch;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

/* ---- toy shelf scene ---- */

.scene {
  display: block;
  width: min(680px, 92%);
  height: auto;
  margin: clamp(2rem, 6vh, 4rem) auto 0;
}

.bob-a,
.bob-b,
.bob-c {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.bob-a { animation: bob 5.5s ease-in-out infinite; }
.bob-b { animation: bob 4.5s ease-in-out 0.8s infinite; }
.bob-c { animation: bob 6.5s ease-in-out 1.6s infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.blink {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  transform: scaleY(0);
  animation: blink 5s ease-in-out infinite;
}

@keyframes blink {
  0%, 91%, 99%, 100% { transform: scaleY(0); }
  94%, 96% { transform: scaleY(1); }
}

.spark {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: spark 2.6s ease-in-out infinite;
}

@keyframes spark {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.78); opacity: 0.6; }
}

/* ---- wire divider ---- */

.wire {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -2px;
  color: var(--line);
}

/* ---- contact ---- */

.contact {
  padding-block: clamp(3.5rem, 10vh, 7rem);
  text-align: center;
}

.contact h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.contact p {
  color: var(--muted);
  max-width: 40ch;
  margin: 1rem auto 2rem;
}

.email {
  display: inline-block;
  font-size: clamp(1.35rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 3px solid var(--cherry);
  padding-bottom: 0.15em;
  transition: color 160ms ease;
}

.email:hover {
  color: var(--cherry);
}

/* ---- footer ---- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem 3rem;
}

.footer-love {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-love .tagline {
  font-size: 0.95rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.heart {
  width: 0.85em;
  height: 0.85em;
  fill: var(--cherry);
  flex: none;
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: right;
}

.footer-legal a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.footer-legal a:hover {
  border-bottom-color: var(--cherry);
}

.footer-legal .links {
  margin-top: 0.5rem;
}

/* ---- legal pages ---- */

.legal {
  padding-block: clamp(2.5rem, 7vh, 5rem) clamp(4rem, 10vh, 7rem);
}

.legal-head {
  max-width: 68ch;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.legal-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 0.75rem;
}

.legal-head .meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 1.25rem;
}

.legal article {
  max-width: 68ch;
}

.legal h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 2.75rem 0 0.85rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.legal h2 .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cherry);
  flex: none;
}

.legal p {
  margin-bottom: 1rem;
  color: #3d414c;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: #3d414c;
}

.legal li {
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
}

.legal li::marker {
  color: var(--cherry);
}

.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--bluebell);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal a:hover {
  text-decoration-color: var(--cherry);
}

.legal .address {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  border-left: 3px solid var(--sun);
  padding-left: 1.1rem;
  margin: 1.25rem 0;
  font-style: normal;
}

/* ---- small screens ---- */

@media (max-width: 640px) {
  .site-footer .wrap {
    flex-direction: column;
  }

  .footer-legal {
    text-align: left;
  }
}

/* ---- motion & print ---- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bob-a,
  .bob-b,
  .bob-c,
  .blink,
  .spark {
    animation: none;
  }
}

@media print {
  .site-nav,
  .scene,
  .wire {
    display: none;
  }
}
