/* splash.css - the front door: one big CSS-drawn Instagram icon in the
   site's own colours, and a skip link to the shop. Colours come from tokens.css,
   so the light / dark themes apply here too. */

.splash {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vmin, 40px);
  padding: 24px 16px;
  text-align: center;
}

.splash__brand {
  font-family: 'Shrikhand', var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 6vmin, 2.8rem);
  letter-spacing: 0;
  margin: auto 0 clamp(10px, 2.5vmin, 24px);   /* with the logo's auto margin, keeps the stack centred */
}

/* The icon: rounded square, lens ring, viewfinder dot - all borders, no image. */
.ig {
  --s: min(62vmin, 440px);
  position: relative;
  display: block;
  width: var(--s);
  height: var(--s);
  border: calc(var(--s) * 0.085) solid var(--accent);
  border-radius: 27%;
  background: var(--color-bg);   /* lens + body read as the page itself */
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, background 0.18s ease;
}
.ig::before {            /* lens */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  height: 46%;
  border: calc(var(--s) * 0.085) solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
}
.ig::after {             /* viewfinder dot */
  content: "";
  position: absolute;
  top: 13%;
  right: 13%;
  width: 11%;
  height: 11%;
  border-radius: 50%;
  background: var(--accent);
}
.ig:hover,
.ig:focus-visible {
  transform: scale(1.04);
  background: var(--chip-hover);
}
.ig:focus-visible {
  outline: 4px solid var(--ink-bright);
  outline-offset: 8px;
}
.ig:active { transform: scale(0.98); }

/* 70s groovy type block (Shrikhand): every line the same width, stacked into
   a near-square. Brand yellow + brown only; the shadow is a stacked offset. */
.splash__block {
  width: min(90vw, 520px);
  height: auto;
  overflow: visible;
  font-family: 'Shrikhand', var(--font-serif);
  fill: var(--accent);
  filter: drop-shadow(2px 2px 0 var(--color-bg)) drop-shadow(3px 3px 0 var(--color-yellow-d));
}

/* The brand badge IS the skip button: the words "skip to main content" run
   around the logo as a ring (SVG textPath), all inside one round link. */
.splash__skip {
  --d: clamp(206px, 38vmin, 252px);
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: var(--d);
  height: var(--d);
  margin-top: auto;
  border-radius: 50%;
  color: var(--ink-bright);
  transition: transform 0.18s ease, background 0.18s ease;
}
.splash__skip:hover,
.splash__skip:focus-visible { transform: scale(1.05); }
.splash__skip:focus-visible { outline: 3px solid var(--ink-bright); outline-offset: 4px; }
.splash__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.splash__ring text {
  font-family: 'Shrikhand', var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 1.5px;
  text-anchor: middle;
  fill: currentColor;
}

/* Multiply lets the badge's cream disc sink into the yellow so only the
   linework reads; on espresso it is simply dimmed. */
.splash__logo {
  position: absolute;
  top: 50%;   /* concentric with the lettering that hugs its underside */
  left: 50%;
  width: 68%;
  height: auto;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
  opacity: 0.85;
}
[data-theme="dark"] .splash__logo { mix-blend-mode: normal; opacity: 0.6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .splash__logo { mix-blend-mode: normal; opacity: 0.6; }
}

/* ---- start.html: the fork (learn about us / order now) ---------------- */
.splash--fork { gap: clamp(18px, 3.5vmin, 32px); }
.fork__logo {
  width: clamp(96px, 22vmin, 140px); height: auto; margin-top: auto;
  mix-blend-mode: multiply; opacity: 0.9;
}
[data-theme="dark"] .fork__logo { mix-blend-mode: normal; opacity: 0.75; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fork__logo { mix-blend-mode: normal; opacity: 0.75; }
}
.fork__title { margin: 0; }
.fork { display: grid; gap: clamp(14px, 3vmin, 22px); width: min(90vw, 520px); }
.fork__btn {
  display: block; padding: clamp(20px, 4.5vmin, 32px) 20px;
  border: clamp(5px, 1.2vmin, 8px) solid var(--accent); border-radius: var(--radius-lg);
  color: var(--accent); text-decoration: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .16s cubic-bezier(.2, .9, .3, 1.2), filter .12s ease, background-color .12s ease;
}
.fork__btn--solid { background: var(--accent); color: var(--on-accent); }
.fork__btn:hover { transform: translateY(-1px); }
.fork__btn:active { transform: translateY(1px) scale(.97); filter: brightness(.94); transition-duration: .07s; }
.fork__btn:focus-visible { outline: 4px solid var(--ink-bright); outline-offset: 5px; }
.fork__big { display: block; font-family: 'Shrikhand', var(--font-serif); font-size: clamp(1.9rem, 8vmin, 3.2rem); line-height: 1.05; }
.fork__small { display: block; margin-top: 8px; font-family: 'Shrikhand', var(--font-serif); font-size: clamp(.95rem, 3vmin, 1.2rem); opacity: .85; }
.fork__back {
  margin-bottom: auto; font-family: 'Shrikhand', var(--font-serif); font-size: 1rem;
  color: var(--ink-bright); text-decoration: underline; text-underline-offset: 3px; padding: 10px 16px;
}

@media (prefers-reduced-motion: reduce) {
  .ig, .splash__skip { transition: none; }
}
