/*
Theme Name: Tabeagrafiert Coming Soon
Theme URI: https://www.tabeagrafiert.de
Author: Justin Pittner
Author URI: https://www.pc-werkstatt-pittner.de
Description: Eine schlanke, responsive Coming-Soon-Seite für tabeagrafiert.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tabeagrafiert
*/

:root {
  --paper: #f7f3ed;
  --ink: #171714;
  --muted: #6f6a63;
  --accent: #ff6f61;
  --accent-dark: #dc5147;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(23, 23, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 111, 97, 0.16), transparent 32rem),
    radial-gradient(circle at 88% 84%, rgba(255, 190, 110, 0.18), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.site-shell::before,
.site-shell::after {
  position: fixed;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.site-shell::before {
  top: -9rem;
  right: -7rem;
}

.site-shell::after {
  bottom: -11rem;
  left: -6rem;
}

.site-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(19rem, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  width: min(70rem, calc(100% - 2rem));
  margin: auto;
  padding: clamp(2.5rem, 7vw, 6rem) 0 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.2rem;
  height: 2px;
  background: currentColor;
  content: "";
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.83;
}

h1 span {
  display: block;
  color: var(--accent);
  font-style: italic;
}

.intro {
  max-width: 35rem;
  margin: clamp(1.7rem, 4vw, 2.6rem) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 720;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.social-link:first-child {
  color: #fff;
  background: var(--ink);
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
}

.social-link:focus-visible,
.credit a:focus-visible {
  outline: 3px solid rgba(255, 111, 97, 0.45);
  outline-offset: 3px;
}

.media-card {
  position: relative;
  width: min(100%, 24rem);
  margin-inline: auto;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  background: var(--card);
  box-shadow: 0 2rem 5rem rgba(53, 41, 31, 0.13);
  backdrop-filter: blur(12px);
}

.media-card::before {
  position: absolute;
  z-index: -1;
  inset: 8% -8% -5% 12%;
  border-radius: 2rem;
  background: var(--accent);
  opacity: 0.13;
  transform: rotate(4deg);
  content: "";
}

.tiktok-embed {
  min-width: 0 !important;
  margin: 0 !important;
  border-radius: 1.25rem;
  overflow: hidden;
}

.site-footer {
  position: relative;
  z-index: 2;
  width: min(70rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.credit {
  margin: 0;
}

.credit a {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

/* Public guest chat. */
.chat-launcher {
  position: fixed;
  z-index: 20;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  box-shadow: 5px 6px 0 rgba(255, 111, 97, 0.45);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
}

.chat-launcher:hover,
.chat-launcher:focus-visible {
  transform: translateY(-2px);
}

.chat-launcher:focus-visible,
.chat-close:focus-visible,
.chat-form input:focus-visible,
.chat-form textarea:focus-visible,
.chat-submit:focus-visible {
  outline: 3px solid rgba(255, 111, 97, 0.55);
  outline-offset: 3px;
}

.chat-panel {
  position: fixed;
  z-index: 21;
  right: 1rem;
  bottom: 5.2rem;
  display: grid;
  grid-template-rows: auto minmax(10rem, 1fr) auto;
  width: min(23rem, calc(100vw - 2rem));
  max-height: min(36rem, calc(100svh - 7rem));
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 1.25rem;
  background: #fffaf4;
  box-shadow: 10px 12px 0 rgba(23, 23, 20, 0.14), 0 1.5rem 4rem rgba(23, 23, 20, 0.22);
}

.chat-panel[hidden] {
  display: none;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 2px solid var(--ink);
  background: #f6c945;
}

.chat-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.chat-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.7rem;
  opacity: 0.75;
}

.chat-close {
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #fffaf4;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  place-items: center;
  cursor: pointer;
}

.chat-messages {
  min-height: 12rem;
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-empty,
.chat-loading {
  margin: 2rem auto;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.chat-message {
  max-width: 88%;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.2rem 0.9rem 0.9rem;
  background: #fff;
  box-shadow: 3px 3px 0 rgba(23, 23, 20, 0.06);
}

.chat-message-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.22rem;
}

.chat-message-name {
  font-size: 0.74rem;
  font-weight: 800;
}

.chat-message-time {
  color: var(--muted);
  font-size: 0.64rem;
}

.chat-message-text {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
  white-space: pre-wrap;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  padding: 0.8rem;
  border-top: 2px solid var(--ink);
  background: #fff;
}

.chat-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.chat-form input,
.chat-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 23, 20, 0.25);
  border-radius: 0.45rem;
  color: var(--ink);
  background: #fbf8f3;
  font: inherit;
  font-size: 0.8rem;
}

.chat-name {
  grid-column: 1 / -1;
  min-height: 2.25rem;
  padding: 0.45rem 0.6rem;
}

.chat-text {
  min-height: 3.2rem;
  max-height: 7rem;
  padding: 0.55rem 0.6rem;
  resize: vertical;
}

.chat-submit {
  align-self: stretch;
  min-width: 4.5rem;
  border: 2px solid var(--ink);
  border-radius: 0.45rem;
  color: #fff;
  background: var(--accent-dark);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.chat-submit:disabled {
  cursor: wait;
  opacity: 0.55;
}

.chat-status {
  grid-column: 1 / -1;
  min-height: 1em;
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.chat-honeypot {
  position: fixed !important;
  left: -9999px !important;
}

/* Decorative pixel-art photo scene. */
.pixel-world {
  position: fixed;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.pixel-camera {
  position: absolute;
  top: 0;
  left: 0;
  width: 76px;
  height: 62px;
  filter: drop-shadow(6px 7px 0 rgba(23, 23, 20, 0.14));
  will-change: transform;
}

.camera-body {
  position: absolute;
  top: 14px;
  left: 3px;
  width: 68px;
  height: 43px;
  border: 4px solid var(--ink);
  background: #f6c945;
  box-shadow: inset 0 -8px 0 #e6a82f;
}

.camera-body::before {
  position: absolute;
  top: -12px;
  left: 9px;
  width: 23px;
  height: 9px;
  border: 4px solid var(--ink);
  border-bottom: 0;
  background: #f6c945;
  content: "";
}

.camera-body::after {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background: #fff5d6;
  box-shadow: 0 0 0 3px var(--ink);
  content: "";
}

.camera-lens {
  position: absolute;
  top: 7px;
  left: 16px;
  width: 24px;
  height: 24px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: #7cc5d6;
  box-shadow: inset 4px 4px 0 rgba(255, 255, 255, 0.65);
}

.camera-flash {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 8px;
  width: 18px;
  height: 14px;
  border: 4px solid var(--ink);
  background: #fff8ca;
}

.photo-flash {
  position: absolute;
  z-index: 5;
  inset: 0;
  background: #fff;
  opacity: 0;
}

.pixel-world.is-flashing .photo-flash {
  animation: photoFlash 440ms steps(2, end);
}

.pixel-world.is-flashing .pixel-camera {
  filter: drop-shadow(0 0 16px #fff) drop-shadow(6px 7px 0 rgba(23, 23, 20, 0.14));
}

.pixel-world.is-flashing .pixel-person {
  animation-play-state: paused;
}

.pixel-person {
  --skin: #b86c43;
  --shirt: #ff6f61;
  --scale: 1;
  position: absolute;
  top: var(--lane);
  left: 0;
  width: 28px;
  height: 50px;
  opacity: 0.62;
  image-rendering: pixelated;
  animation: pixelRun var(--duration) linear var(--delay) infinite;
  will-change: transform;
}

.pixel-head,
.pixel-body,
.pixel-arm,
.pixel-leg {
  position: absolute;
  display: block;
}

.pixel-head {
  top: 0;
  left: 8px;
  width: 14px;
  height: 14px;
  border-top: 4px solid var(--ink);
  background: var(--skin);
  box-shadow: -3px 4px 0 var(--skin), 3px 4px 0 var(--skin);
}

.pixel-body {
  top: 17px;
  left: 6px;
  width: 18px;
  height: 19px;
  background: var(--shirt);
  box-shadow: inset 0 -4px 0 rgba(23, 23, 20, 0.18);
}

.pixel-arm {
  top: 19px;
  width: 5px;
  height: 18px;
  background: var(--skin);
  transform-origin: 50% 2px;
  animation: pixelSwing 420ms steps(2, end) infinite;
}

.arm-left {
  left: 1px;
}

.arm-right {
  right: 1px;
  animation-direction: reverse;
}

.pixel-leg {
  top: 35px;
  width: 6px;
  height: 15px;
  background: var(--ink);
  transform-origin: 50% 2px;
  animation: pixelStep 420ms steps(2, end) infinite;
}

.leg-left {
  left: 7px;
}

.leg-right {
  right: 7px;
  animation-direction: reverse;
}

.person-1 { --lane: 10%; --duration: 15s; --delay: -7s; --scale: 0.78; --shirt: #ff6f61; }
.person-2 { --lane: 25%; --duration: 19s; --delay: -14s; --scale: 0.62; --shirt: #57a99a; animation-direction: reverse; }
.person-3 { --lane: 43%; --duration: 13s; --delay: -3s; --scale: 0.9; --shirt: #e9a63a; --skin: #7d432d; }
.person-4 { --lane: 61%; --duration: 18s; --delay: -11s; --scale: 0.68; --shirt: #8d72c7; animation-direction: reverse; }
.person-5 { --lane: 74%; --duration: 14s; --delay: -9s; --scale: 0.82; --shirt: #58a7d8; --skin: #d99a73; }
.person-6 { --lane: 87%; --duration: 21s; --delay: -17s; --scale: 0.58; --shirt: #ea698b; animation-direction: reverse; }
.person-7 { --lane: 34%; --duration: 24s; --delay: -21s; --scale: 0.5; --shirt: #75b85a; }

@keyframes pixelRun {
  from { transform: translate3d(-10vw, 0, 0) scale(var(--scale)); }
  to { transform: translate3d(112vw, 0, 0) scale(var(--scale)); }
}

@keyframes pixelSwing {
  0% { transform: rotate(38deg); }
  100% { transform: rotate(-38deg); }
}

@keyframes pixelStep {
  0% { transform: rotate(34deg); }
  100% { transform: rotate(-34deg); }
}

@keyframes photoFlash {
  0%, 100% { opacity: 0; }
  22% { opacity: 0.68; }
  48% { opacity: 0.08; }
}

@media (max-width: 760px) {
  .site-main {
    grid-template-columns: 1fr;
    gap: 2.6rem;
    width: min(32rem, calc(100% - 2rem));
    padding-top: 3rem;
  }

  .copy {
    text-align: center;
  }

  .eyebrow,
  .socials {
    justify-content: center;
  }

  h1,
  .intro {
    margin-inline: auto;
  }

  .media-card {
    width: min(100%, 22rem);
  }

  .chat-panel {
    right: 0.6rem;
    bottom: 4.8rem;
    width: calc(100vw - 1.2rem);
    max-height: calc(100svh - 6rem);
  }

  .chat-launcher {
    right: 0.6rem;
    bottom: 0.6rem;
  }
}

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

  .social-link {
    transition: none;
  }

  .pixel-person {
    display: none;
  }

  .pixel-camera {
    top: 1rem;
    right: 1rem;
    left: auto;
    transform: scale(0.8);
  }
}
