/* Wolfcare website. Black and white and friendly: the wolf-and-moon badge, bold, tight Helvetica Neue, and a little
   Flare colour (assets/flare.js sets --f0 and fades it to the next palette every 8 s). */

@property --f0 { syntax: "<color>"; inherits: true; initial-value: #00c8ff; }
:root {
  --paper: #0e0e0e;
  --card: #171717;
  --ink: #ffffff;
  --dim: #9a9a9a;
  --line: #2e2e2e;
  --moon: #262626;
  --gold: var(--f0);
  --serif: "Helvetica Neue", Helvetica, Arial, sans-serif;   /* headings: bold and tight */
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r: 20px;
  transition: --f0 1.6s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: -.045em; }
body { letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.dim { color: var(--dim); }
::selection { background: var(--gold); color: var(--ink); }

/* The wolf-and-moon badge: the logo clipped to a circle */
.badge { display: block; border-radius: 50%; overflow: hidden; background: #000; flex: none; }
.badge img { width: 100%; height: 100%; transform: scale(1.13) translate(-.6%, -.4%); }   /* crop the logo's black square so only the moon shows */

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(14, 14, 14, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand-logo { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 700 28px/1 var(--serif); letter-spacing: -.045em; }
.brand-sub { font-size: 13px; color: var(--dim); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .nav button {
  padding: 8px 14px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font: 500 15px/1 var(--sans); color: var(--ink); text-decoration: none;
}
.nav a:hover, .nav button:hover { background: var(--moon); }
.lang { border: 1px solid var(--line) !important; margin-left: 6px; }
.lang span { color: var(--dim); }
.lang span.on { color: var(--ink); font-weight: 700; }
.lang .sep { margin: 0 .35em; color: var(--line); }

/* Hero: words on the left, the big moon badge on the right */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 48px;
  max-width: 1200px; margin: 0 auto; padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 48px) clamp(24px, 4vw, 48px);
}
.hero h1 { font-size: clamp(48px, 7vw, 96px); line-height: .95; letter-spacing: -.055em; margin-bottom: 24px; }
.hero p { font-size: clamp(18px, 1.7vw, 21px); color: var(--dim); margin: 0; max-width: 34em; }
.hero .tagline {
  display: inline-block; margin-top: 18px; color: var(--ink); font: 700 clamp(19px, 1.9vw, 24px)/1.3 var(--serif); letter-spacing: -.02em;
  text-decoration: underline 3px var(--f0); text-underline-offset: 7px;
}
.hero-badge { width: min(100%, 380px); aspect-ratio: 1; justify-self: center; box-shadow: 0 0 0 10px var(--paper), 0 0 0 13px var(--f0); }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; padding: 13px 22px; border-radius: 999px;
  background: #fff; color: #000; border: 1.5px solid #fff;
  font: 600 16px/1 var(--sans); text-decoration: none;
}
.btn:hover { background: var(--f0); border-color: var(--f0); color: #000; }
.btn-ghost, .cell .btn { background: transparent; color: var(--ink); }
.btn-ghost:hover, .cell .btn:hover { background: #fff; border-color: #fff; color: #000; }

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 48px); }
.section-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; margin-bottom: 28px; }
.section-title .dim { font: 400 18px var(--sans); letter-spacing: -.01em; }

/* Cards */
.cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
#contact .cells { align-items: stretch; }
.cell { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; min-width: 0; }
.cell h3 { font-size: 26px; margin-bottom: 14px; }
.cell ul { list-style: none; margin: 0; padding: 0; }
.cell li { position: relative; padding: 9px 0 9px 26px; border-top: 1px dashed var(--line); }
.cell li:first-child { border-top: 0; }
.cell li::before {           /* a small moon as the bullet */
  content: ""; position: absolute; left: 2px; top: 17px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold); box-shadow: inset -4px -1px 0 0 var(--card);
}
.cell .big { font: 700 21px/1.35 var(--serif); letter-spacing: -.02em; margin: 0; }
.cell .note { color: var(--dim); font-size: 15px; margin: 10px 0 0; }
.cell a:not(.btn) { text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cell .btns { margin-top: 18px; }
.cell .btn { font-size: 14px; padding: 10px 16px; }

.shot { margin-top: 36px; }
.shot img { width: 100%; max-width: 1100px; margin: 0 auto; }

/* Open now: a moon-gold pill while open */
.open-now { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.open-now:empty { display: none; }
.open-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-now.is-open { background: var(--f0); color: #000; }
.open-now.is-closed { background: var(--moon); color: var(--dim); }

/* Payment band */
.pay {
  max-width: 1104px; margin: 0 auto; padding: 22px 28px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line); color: #fff; text-align: center;
  font: 700 clamp(19px, 2.2vw, 26px)/1.3 var(--serif); letter-spacing: -.03em;
}
.pay span { color: var(--gold); }

/* Legal fold-outs */
.legal-body { display: grid; gap: 10px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
summary { cursor: pointer; list-style: none; padding: 16px 20px; font: 700 17px var(--serif); letter-spacing: -.01em; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--dim); font-family: var(--sans); }
details[open] summary::after { content: "–"; }
summary:hover { background: var(--moon); }
details .body { padding: 4px 20px 20px; font-size: 15px; overflow-wrap: anywhere; }

/* AGB page */
.legal .wrap { max-width: 860px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px) 56px; overflow-wrap: break-word; }
.legal .eyebrow { color: var(--dim); font-size: 15px; margin-bottom: 6px; }
.legal h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; margin-bottom: 20px; hyphens: auto; -webkit-hyphens: auto; }
.legal .intro { font-size: 18px; margin-bottom: 4px; }
.legal .stand { color: var(--dim); font-size: 15px; }
.legal section { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px 12px; margin-top: 14px; }
.legal h2 { font-size: 21px; margin: 0 0 12px; }
.legal h2 .num { color: var(--dim); margin-right: 10px; }
.legal ol { margin: 0 0 10px; padding-left: 24px; }
.legal ol li { margin: 0 0 10px; }
.legal ol.alpha { list-style: lower-alpha; }
.legal .btns { margin: 22px 0 8px; }
.legal button.btn { font-family: var(--sans); cursor: pointer; }
.legal a.btn { background: transparent; color: #fff; }
.legal a.btn:hover { background: var(--moon); }

/* Footer: night ink */
.site-footer { margin-top: clamp(24px, 4vw, 48px); background: #000; border-top: 1px solid var(--line); color: #fff; font-size: 15px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin: 0; font: 700 20px var(--serif); letter-spacing: -.03em; margin-right: auto; }
.footer-logo { width: 34px; height: 34px; object-fit: contain; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.footer-links a { text-decoration: none; opacity: .8; }
.footer-links a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--gold); }
.fineprint { flex-basis: 100%; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; opacity: .6; }

/* Animated logo in the hero (drawn in logo-redraw/): the moon rises, the wolf draws itself, the ring lights up,
   the wolf howls, the moon flashes, a Flare arc runs round, the eye winks, then the moon sets. */
.hero-logo { width: min(100%, 400px); justify-self: center; }
.wc-logo { display: block; width: 100%; height: auto; overflow: visible; }
.wc-moon { fill: #fff; }
.wc-wolf { fill: #000; }
.wc-ring { stroke: var(--f0); }
.wc-moon-line { stroke: #fff; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.wc-wolf-line { stroke: #000; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.wc-eye { fill: var(--f0); opacity: 0; transform-box: fill-box; transform-origin: center; }
.wc-sweep { stroke: var(--f0); stroke-dasharray: .16 .84; stroke-dashoffset: 0; opacity: 0; }
.wc-head { transform-box: view-box; transform-origin: 172px 304px; }   /* pivot at the throat */

/* 5. All in sequence, 17 s loop: the moon rises (0-2 s), the wolf draws itself (2-3.6 s) and fills, the ring lights up
   in the Flare colour (4-5 s), the wolf howls (5.2-8 s), the moon flashes the Flare colour (8.5-10 s), a Flare arc runs
   once around the moon (10-11.4 s), the wolf's eye opens (4.3-4.8 s, before the howl), flashes and winks (11.6-12.6 s), then the wolf fades and the moon
   sets (14-16.3 s) */
.hero-logo .wc-moon      { animation: seq-moon 17s ease-in-out infinite; }
.hero-logo .wc-wolf-line { animation: seq-line 17s linear infinite; }
.hero-logo .wc-wolf      { animation: seq-wolf 17s ease infinite; }
.hero-logo .wc-ring      { animation: seq-ring 17s ease infinite; }
.hero-logo .wc-head      { animation: seq-howl 17s ease-in-out infinite; }
.hero-logo .wc-sweep     { animation: seq-sweep 17s ease-in-out infinite; }
.hero-logo .wc-eye       { animation: seq-eye 17s ease infinite; }
@keyframes seq-moon {
  0%       { transform: translateY(105%); fill: #fff; }
  11.8%  { transform: translateY(0); }
  50.0% { fill: #fff; }
  52.4%, 55.9% { fill: var(--f0); }
  58.8% { fill: #fff; }
  87.1% { transform: translateY(0); }
  95.9%, 100% { transform: translateY(105%); fill: #fff; }
}
@keyframes seq-line {
  0%, 11.8% { opacity: 0; stroke-dashoffset: 1; }
  12.1% { opacity: 1; stroke-dashoffset: 1; }
  21.2% { opacity: 1; stroke-dashoffset: 0; }
  24.1%, 100% { opacity: 0; stroke-dashoffset: 0; }
}
@keyframes seq-wolf { 0%, 21.2% { opacity: 0; } 24.1%, 82.4% { opacity: 1; } 87.1%, 100% { opacity: 0; } }
@keyframes seq-ring { 0%, 24.1% { opacity: 0; } 29.4%, 82.4% { opacity: 1; } 87.1%, 100% { opacity: 0; } }
@keyframes seq-howl {
  0%, 30.6% { transform: rotate(0); } 34.1% { transform: rotate(17deg); } 36.5% { transform: rotate(15deg); }
  38.8% { transform: rotate(17deg); } 41.2% { transform: rotate(15deg); } 43.5% { transform: rotate(16deg); } 47.1%, 100% { transform: rotate(0); }
}
@keyframes seq-sweep {
  0%, 58.8% { opacity: 0; stroke-dashoffset: 0; }
  60.0% { opacity: 1; }
  65.9% { opacity: 1; }
  67.1%, 100% { opacity: 0; stroke-dashoffset: -1; }
}
@keyframes seq-eye {
  0%, 25.3% { opacity: 0; transform: scale(1, .08); }
  25.6% { opacity: 1; transform: scale(1, .08); }
  28.2% { opacity: 1; transform: scale(1, 1); }
  68.2% { transform: scale(1); }
  69.1% { transform: scale(1.6); }
  70.6% { transform: scale(1); }
  72.4% { transform: scale(1, 1); }
  72.9% { transform: scale(1, .08); }
  73.8% { transform: scale(1, 1); }
  87.1% { opacity: 1; transform: scale(1, 1); }
  87.6%, 100% { opacity: 0; transform: scale(1, .08); }
}

@media (prefers-reduced-motion: reduce) {   /* nothing moves: the logo just stands, the colours still change */
  .hero-logo .wc-moon, .hero-logo .wc-head, .hero-logo .wc-wolf, .hero-logo .wc-ring { animation: none; opacity: 1; }
  .hero-logo .wc-wolf-line, .hero-logo .wc-sweep { display: none; }
}

/* Smaller screens */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-badge, .hero-logo { width: min(70%, 280px); grid-row: 1; justify-self: start; }
  .cells { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .site-header { gap: 10px; padding: 12px 16px; }
  .brand-name { font-size: 22px; }
  .brand-logo { width: 40px; height: 40px; }
  .nav { width: 100%; justify-content: space-between; }
  .nav a, .nav button { padding: 8px 10px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .hero-badge { width: 150px; box-shadow: 0 0 0 8px var(--moon), 0 0 0 9px var(--line); }
  .hero-logo { width: 170px; }
  .cell { padding: 22px 18px; }
  .pay { margin: 0 16px; }
}

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

/* Print (AGB): plain black on white */
@media print {
  :root { --paper: #fff; --card: #fff; --line: #ccc; --ink: #000; --dim: #444; }
  body { color: #000; }
  .site-header, .btns, .site-footer { display: none; }
  .legal section { border: 0; padding: 0; }
}
