/* Plocka – plocka.nokkestudio.se (coming-soon page)
   Plain CSS, system fonts only, no external requests.
   The only artwork is the app icon (approved by the owner). */

:root {
  --bg: #fff4e8;
  --surface: #ffffff;
  --ink: #2a1d12;
  --muted: #6a5444;
  --line: #f0d9c2;
  --accent: #b93d0a;
  --accent-ink: #ffffff;
  --shadow-text: #ffb066;
  --bar-bg: #2a1d12;
  --bar-ink: #fff4e8;
  --focus: #1d4ed8;
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1410;
    --surface: #241b15;
    --ink: #f7ece2;
    --muted: #c7b2a1;
    --line: #3b2d23;
    --accent: #ff9a5a;
    --accent-ink: #1a1410;
    --shadow-text: #9a3d0c;
    --bar-bg: #ffc83d;
    --bar-ink: #1a1410;
    --focus: #93b4ff;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

main { flex: 1; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2 { margin: 0; line-height: 1.1; }

.wrap {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* "Under construction" bar */
.construction {
  background: var(--bar-bg);
  color: var(--bar-ink);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom: 6px solid transparent;
  border-image: repeating-linear-gradient(-45deg, #ffc83d 0 10px, #2a1d12 10px 20px) 6;
}
.construction p { margin: 0; padding: 0.55rem 1rem; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: clamp(2.5rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.3rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 650;
}
.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6);
  animation: pulse 2s ease-out infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 13vw, 7.25rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  text-shadow: 0 0.06em 0 var(--shadow-text);
}
.tagline {
  max-width: 33rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
  line-height: 1.5;
}

/* App icon */
.icon-stage { justify-self: center; }
.app-icon {
  display: block;
  width: clamp(8rem, 22vw, 12.5rem);
  height: auto;
  border-radius: 22.5%;
  box-shadow: 0 2px 4px rgba(42, 29, 18, 0.12), 0 18px 40px -12px rgba(185, 61, 10, 0.45);
  animation: float 4s ease-in-out infinite;
}

/* Facts */
.facts dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
}
.facts dl > div {
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.facts dt {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.facts dd {
  margin: 0.2rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

/* Still to come */
.todo {
  margin: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 6vw, 4rem);
  padding: 1.4rem 1.5rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
}
.todo h2 { font-size: 1.125rem; margin-bottom: 0.6rem; }
.todo ul { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.todo li { position: relative; padding-left: 1.75rem; margin: 0.3rem 0; }
.todo li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-radius: 4px;
  opacity: 0.7;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
}
.footer-row p { margin: 0; }

/* 404 */
.notfound { padding: clamp(3.5rem, 12vw, 8rem) 0; }
.notfound h1 { font-family: var(--font-display); font-size: clamp(2.25rem, 7vw, 3.5rem); font-weight: 900; letter-spacing: -0.02em; }
.notfound p { color: var(--muted); max-width: 32rem; }
.button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.7rem 1.2rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }

/* Small screens */
@media (max-width: 44rem) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .tagline { margin-left: auto; margin-right: auto; }
  .icon-stage { order: -1; }
}
@media (max-width: 30rem) {
  .facts dl { grid-template-columns: 1fr; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.55); }
  80%, 100% { box-shadow: 0 0 0 0.6rem rgba(249, 115, 22, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .app-icon, .dot { animation: none; }
}
