/* Woodoo Ink – startsidan. Mörk botten, rosa, grönt och etikettejp. */
:root {
  --bg: #141316;
  --card: #222126;
  --line: #3A393F;
  --cream: #F3EBD7;
  --muted: #CFC7B4;
  --soft: #DCD3BE;
  --ink: #150A10;
  --pink: #EA8398;
  --hotpink: #E82B6D;
  --green: #7FD177;
  --thread: #D3263F;
  --hand: 'Gochi Hand', cursive;
  --body: 'Onest', system-ui, sans-serif;
  --label: 'Azeret Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--cream); }
a:hover { color: #F5A9B8; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }
/* Knappnål som muspekare på hela sidan. Ljust huvud som vanlig pekare, rosa över det som går att klicka på. */
html { cursor: url(nal-ljus.svg) 3 29, auto; }
a, button, .patch, summary, label { cursor: url(nal.svg) 3 29, pointer; }

/* Den läskiga nedräkningen */
.doom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 14px;
  background: #0A0607;
  color: #FF2E4D;
  font-family: var(--label);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px 16px;
  border-bottom: 2px dashed #5A1420;
  text-shadow: 0 0 8px rgba(255, 46, 77, 0.7);
  /* Följer med när man scrollar, så att klockan alltid syns. */
  position: sticky;
  top: 0;
  z-index: 50;
}
.doom-clock {
  font-size: 22px;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  color: #FF4A63;
  animation: doom-flicker 4s infinite;
}
.doom-skull { font-size: 18px; color: var(--cream); text-shadow: none; }
.doom-over .doom-clock { animation: none; opacity: 0.6; }
@media (max-width: 520px) {
  .doom { flex-wrap: nowrap; gap: 8px; font-size: 10px; letter-spacing: 0.1em; padding: 8px 10px; }
  .doom-clock { font-size: 17px; letter-spacing: 0.06em; }
  .doom-skull { font-size: 14px; }
}
@keyframes doom-flicker {
  0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; }
  20% { opacity: 0.25; }
  63% { opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
  .doom-clock { animation: none; }
}

/* Remsan för korta besked */
.notice {
  background: var(--hotpink);
  color: var(--ink);
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 16px;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 56px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  position: relative;
  z-index: 0;
}

/* Den röda tråden bakom innehållet */
.thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: visible;
}

/* Etikettejp */
.dymo {
  display: inline-block;
  background: linear-gradient(180deg, #2B2A2C 0%, #0E0D0F 48%, #1C1B1D 100%);
  color: #F6F6F4;
  font-family: var(--label);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 0.45em 0.9em 0.45em 1.1em;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 0 0 1px #3A393F, 0 3px 8px rgba(0,0,0,0.5);
  text-shadow: 0 -1px 0 rgba(255,255,255,0.22), 0 1px 0 rgba(0,0,0,0.7);
  text-decoration: none;
}
a.dymo:hover { color: #F5A9B8; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  justify-content: space-between;
}
.site-header nav { display: flex; flex-wrap: wrap; gap: 10px; }
/* Menyn som sydda knappar, samma tråd som korten. Boka är huvudknappen. */
.site-header nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 11px 18px;
  border-radius: 999px;
  border: 2px dashed rgba(243, 235, 215, 0.55);
  color: var(--cream);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.site-header nav a:hover { border-style: solid; border-color: var(--pink); color: var(--pink); }
.site-header nav a[aria-current="page"] { background: var(--cream); border: 2px solid var(--cream); color: var(--ink); }
.site-header nav a.nav-book {
  background: var(--pink);
  border: 2px solid var(--ink);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--cream);
}
.site-header nav a.nav-book:hover { background: #F29AAC; color: var(--ink); }
.site-header nav a.nav-book:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--cream); }
.logo { font-size: 16px; transform: rotate(-1.5deg); }

h1, h2 { font-family: var(--hand); font-weight: 400; margin: 0; }

/* Toppen */
.hero { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; }
.hero-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(52px, 7.6vw, 108px); line-height: 0.95; text-wrap: balance; }
.hero p { margin: 0; max-width: 44ch; font-size: 19px; color: var(--soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.status { font-size: 13px; align-self: flex-start; }
.status .dot-open { color: var(--green); }
.status .dot-closed { color: var(--hotpink); }

.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--pink);
  color: var(--ink);
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--cream);
}
.btn:hover { color: var(--ink); background: #F29AAC; }
.btn-light { background: var(--cream); box-shadow: 4px 4px 0 var(--pink); }
.btn-light:hover { background: #FFF6E4; }

.doll {
  flex: 1 1 320px;
  margin: 0;
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
}
.doll-circle {
  position: absolute;
  left: 0;
  bottom: 6%;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pink);
  border: 4px solid var(--cream);
}
.doll img { position: absolute; left: 6%; bottom: 0; width: 88%; height: auto; display: block; }

.stitches { display: block; width: 100%; height: 28px; }

/* Arbeten */
.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  align-items: flex-end;
  justify-content: space-between;
}
.section-head h2 { font-size: clamp(48px, 6vw, 84px); line-height: 0.95; }
.section-head p { margin: 0; max-width: 30ch; color: var(--muted); }
.arrows { display: flex; gap: 12px; }
.arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 3px 3px 0 var(--ink);
}
.arrow.next { background: var(--pink); }
.arrow:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.strip-wrap { position: relative; margin-top: 28px; }
.strip-fade {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 90px;
  background: linear-gradient(90deg, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.25s ease;
}
/* Ingen toning när man har kommit till sista kortet. */
.strip-wrap.at-end .strip-fade { opacity: 0; }
.strip {
  overflow-x: auto;
  padding: 6px 4px 40px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip-row { display: flex; gap: 20px; width: max-content; }
.work {
  margin: 0;
  width: 280px;
  flex: none;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.work:nth-child(even) { transform: translateY(28px); }
.patch {
  display: block;
  width: 280px;
  height: 380px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--card);
  outline: 2px dashed var(--cream);
  outline-offset: -10px;
}
.caption { display: flex; flex-wrap: wrap; gap: 8px; }
.caption .dymo { font-size: 12px; }
.caption .dymo:last-child { transform: rotate(-1deg); }
a.work { text-decoration: none; color: var(--cream); }
a.work:hover .patch { outline-color: var(--pink); }
.patch-wrap { position: relative; display: block; }
.play {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(20, 19, 22, 0.8);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 14px;
}
.more-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 8px; }

/* Galleri */
.gallery-head { display: flex; flex-direction: column; gap: 12px; }
.gallery-head h1 { font-size: clamp(56px, 8vw, 104px); line-height: 0.95; }
.gallery-head p { margin: 0; max-width: 52ch; color: var(--soft); }
.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px 20px;
}
.gallery-grid li { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gallery-grid li:nth-child(3n+2) { transform: rotate(0.8deg); }
.gallery-grid li:nth-child(3n) { transform: rotate(-0.8deg); }
.g-open { padding: 0; border: 0; background: none; display: block; width: 100%; }
.g-open .patch { width: 100%; height: auto; aspect-ratio: 3 / 4; }
.g-open:hover .patch { outline-color: var(--pink); }
.gallery-empty { color: var(--muted); }

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 900px);
  max-height: 92vh;
}
.lightbox::backdrop { background: rgba(10, 8, 10, 0.88); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 8px;
  outline: 2px dashed var(--cream);
  outline-offset: -10px;
}
.lightbox .caption { justify-content: center; }
.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-size: 22px;
  box-shadow: 3px 3px 0 var(--ink);
}
.your-turn {
  text-decoration: none;
  width: 280px;
  height: 380px;
  flex: none;
  scroll-snap-align: start;
  background: var(--pink);
  color: var(--ink);
  border-radius: 6px;
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 3px var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 20px;
}
.your-turn:hover { color: var(--ink); }
.your-turn img { width: 150px; height: auto; }
.your-turn span:first-of-type { font-family: var(--hand); font-size: 42px; line-height: 1; }
.strip-end { width: 24px; flex: none; }

/* Så bokar du */
.booking { display: flex; flex-direction: column; gap: 28px; }
.booking h2 { font-size: 56px; line-height: 1; }
.steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 44px 18px;
}
.step {
  position: relative;
  background: var(--card);
  border: 2px dashed var(--cream);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.step span { color: var(--muted); }
.pin { position: absolute; top: -30px; width: 44px; height: 64px; pointer-events: none; }
.contact-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Om mig */
.about { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; }
.portrait { flex: 1 1 280px; max-width: 420px; margin: 0; position: relative; transform: rotate(-2deg); }
.portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border: 3px solid var(--cream);
  border-radius: 6px;
}
.portrait figcaption { position: absolute; left: -10px; bottom: 22px; font-size: 13px; transform: rotate(3deg); }
.about-text { flex: 2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.about-text h2 { font-size: 56px; line-height: 1; }
.about-text p { margin: 0; max-width: 56ch; color: var(--soft); white-space: pre-line; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags .dymo { font-size: 13px; }

/* Hitta hit */
.find { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; }
.find-text { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.find h2 { font-size: 56px; line-height: 1; }
.find p { margin: 0; color: var(--soft); }
.find-address { font-size: 20px; color: var(--cream) !important; }
.find-note { color: var(--muted) !important; }
.map {
  flex: 2 1 420px;
  min-width: 0;
  margin: 0;
  border-radius: 14px;
  padding: 8px;
  border: 2px dashed var(--cream);
  background: var(--card);
}
.map iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 8px;
  /* Mörk karta som passar sidan. */
  filter: invert(0.9) hue-rotate(180deg) saturate(0.6) contrast(0.95);
}

/* Sidfot */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: flex-end;
  border-top: 2px dashed var(--line);
  padding-top: 28px;
  font-size: 15px;
  color: var(--muted);
}
.site-footer > img { width: 120px; height: auto; transform: rotate(-6deg); flex: none; }
.footer-text { display: flex; flex-direction: column; gap: 10px; flex: 1 1 260px; min-width: 0; }
.footer-text strong { font-family: var(--hand); font-weight: 400; font-size: 34px; line-height: 1; color: var(--cream); }
.footer-info { display: flex; flex-wrap: wrap; gap: 6px 32px; }
.hours { white-space: pre-line; }

@media (max-width: 700px) {
  /* På smal skärm finns ingen marginal för tråden, så den skulle korsa texten. */
  .thread { display: none; }
  /* Större tryckytor för tummen. */
  .site-header nav { gap: 8px; }
  .site-header nav a { font-size: 14px; padding: 11px 14px; }
  .footer-info { gap: 0 24px; }
  .footer-info > * { display: inline-block; padding: 10px 0; }
  .doll { max-width: 320px; margin-inline: auto; }
  .arrows { display: none; }
  .map iframe { height: 280px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { gap: 48px; padding-inline: 16px; }
  .work, .patch, .your-turn { width: 240px; }
  .patch, .your-turn { height: 326px; }
  .contact-row .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .strip { scroll-behavior: auto; }
}
