/* =====================================================
   NEBELSCHAF STUDIO — dual link page (CozyPawTales + Art)
   Load order: fonts.css → style.css → studio.css
   ===================================================== */

.dl-page {
  --cozy: #ff6b9d;
  --cozy-deep: #d94b7d;
  --cozy-tint: #fff3f7;
  --cozy-line: rgba(255, 107, 157, .3);

  --neb: #2f9e6a;
  --neb-deep: #1f7a52;
  --neb-tint: #f0f9f4;
  --neb-line: rgba(47, 158, 106, .3);

  --dl-ink: var(--ink, #66558f);
  --dl-soft: var(--ink-soft, #6f6486);
  --dl-mute: var(--ink-mute, #9a91ab);

  min-height: 100vh;
  min-height: 100svh;
  /* phones: pink at the top (cozy first), green towards the bottom */
  background:
    radial-gradient(circle at 4% 6%, rgba(255, 107, 157, .22), transparent 46%),
    radial-gradient(circle at 96% 94%, rgba(47, 158, 106, .2), transparent 46%),
    linear-gradient(168deg, #fff0f6 0%, #fff8f2 52%, #f2faf5 100%);
  background-repeat: no-repeat;
}

.dl {
  max-width: 940px;
  margin: 0 auto;
  padding: 1.4rem 1rem 2.5rem;
}

/* ---------- header ---------- */
.dl-head { text-align: center; margin-bottom: 1.1rem; }

.dl-avatars {
  display: flex; justify-content: center; align-items: center;
  margin-bottom: .7rem;
}
.dl-av {
  width: 72px; height: 72px; padding: 4px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 14px 30px -18px rgba(42, 31, 61, .55);
}
.dl-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.dl-av--cozy { border: 2px solid var(--cozy); margin-right: -16px; z-index: 1; }
.dl-av--neb { border: 2px solid var(--neb); margin-left: -16px; }

.dl-title {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 300; font-size: 1.95rem; line-height: 1;
  letter-spacing: -.03em; color: var(--dl-ink);
}
.dl-title em {
  font-style: italic; font-weight: 500;
  background: linear-gradient(95deg, var(--cozy), var(--neb));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dl-tag {
  margin: .45rem auto 0; max-width: 26rem;
  font-family: var(--font-display, Georgia, serif); font-style: italic; font-weight: 300;
  font-size: .95rem; line-height: 1.45; color: var(--dl-soft);
}

/* ---------- switcher (phones only) ---------- */
.dl-tabs { display: none; }
.js .dl-tabs {
  position: sticky; top: .5rem; z-index: 5;
  display: flex; gap: .35rem; margin-bottom: 1rem;
  padding: .3rem; border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px -14px rgba(42, 31, 61, .55), inset 0 0 0 1px rgba(42, 31, 61, .08);
}
.dl-tab {
  flex: 1 1 0; min-width: 0; min-height: 46px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  padding: .4rem .3rem;
  font-family: var(--font-body, system-ui, sans-serif); font-weight: 600;
  font-size: clamp(.78rem, 3.4vw, .95rem);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--dl-mute);
  transition: background .2s, color .2s;
}
body[data-active="cozy"] .dl-tab--cozy { background: var(--cozy); color: #fff; }
body[data-active="neb"] .dl-tab--neb { background: var(--neb); color: #fff; }

/* ---------- columns ---------- */
.dl-grid { display: grid; gap: 1.1rem; }

.dl-col {
  border-radius: 24px; padding: 1.3rem 1rem 1.4rem;
  background: #fff;
  box-shadow: 0 20px 44px -32px rgba(42, 31, 61, .6);
}
.dl-col--cozy { border: 1.5px solid var(--cozy-line); background: linear-gradient(180deg, var(--cozy-tint), #fff 38%); }
.dl-col--neb { border: 1.5px solid var(--neb-line); background: linear-gradient(180deg, var(--neb-tint), #fff 38%); }

.dl-colhead { text-align: center; margin-bottom: 1.1rem; }
.dl-brand {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 400; font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.1;
  overflow-wrap: anywhere;
}
.dl-col--cozy .dl-brand { color: var(--cozy-deep); }
.dl-col--neb .dl-brand { color: var(--neb-deep); }
.dl-sub {
  margin-top: .2rem;
  font-family: var(--font-display, Georgia, serif); font-style: italic; font-weight: 300;
  font-size: .95rem; color: var(--dl-soft);
}

.dl-label {
  margin: 1.2rem 0 .55rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dl-mute);
}
.dl-label:first-of-type { margin-top: 0; }

/* ---------- shop rows ---------- */
.dl-shops { display: flex; flex-direction: column; gap: .65rem; }

.dl-shop {
  display: flex; align-items: stretch;
  min-height: 104px; padding: 0; overflow: hidden;
  border: 1.5px solid rgba(42, 31, 61, .1); border-radius: 20px;
  background: #fff; color: var(--dl-ink);
  box-shadow: 0 10px 22px -20px rgba(42, 31, 61, .6);
  transition: transform .18s, border-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
a.dl-shop:active { transform: scale(.985); }

.dl-thumb {
  position: relative; flex: 0 0 auto;
  width: 116px; align-self: stretch;
  display: grid; place-items: center;
}
.dl-col--cozy .dl-thumb { background: var(--cozy-tint); }
.dl-col--neb .dl-thumb { background: var(--neb-tint); }
.dl-thumb i { font-style: normal; font-size: 2rem; line-height: 1; }
.dl-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.dl-shoptext {
  display: flex; flex-direction: column; justify-content: center; gap: .18rem;
  min-width: 0; padding: .8rem 1rem;
}
.dl-shoptext strong {
  font-family: var(--font-body, system-ui, sans-serif); font-weight: 700; font-size: 1.05rem;
}
.dl-shoptext small {
  font-family: var(--font-body, system-ui, sans-serif); font-size: .83rem; line-height: 1.35;
  color: var(--dl-mute);
}

.dl-shop--kofi {
  border-color: transparent; color: #fff;
  background: linear-gradient(120deg, #ff6b9d, #ff8a4c);
  box-shadow: 0 14px 26px -16px rgba(255, 107, 157, .8);
}
.dl-shop--kofi .dl-shoptext small { color: rgba(255, 255, 255, .9); }
.dl-shop--kofi .dl-thumb { background: rgba(255, 255, 255, .28); }

.dl-shop--soon {
  cursor: default; color: var(--dl-mute);
  background: rgba(255, 255, 255, .5);
  border-style: dashed; box-shadow: none;
}
.dl-shop--soon .dl-thumb img { opacity: .5; }

/* ---------- socials ---------- */
.dl-socials { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.dl-social {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 54px; padding: .6rem .5rem;
  border: 1.5px solid rgba(42, 31, 61, .12); border-radius: 15px;
  background: #fff; color: var(--dl-ink);
  font-family: var(--font-body, system-ui, sans-serif); font-weight: 600;
  font-size: clamp(.82rem, 3.6vw, .92rem); white-space: nowrap;
  transition: background .2s, border-color .2s, transform .18s;
  -webkit-tap-highlight-color: transparent;
}
.dl-social:active { transform: scale(.97); }
.dl-ic { flex: 0 0 auto; width: 22px; height: 22px; display: block; }

/* ---------- section button ---------- */
.dl-cta {
  display: flex; align-items: center; justify-content: center;
  min-height: 54px; margin-top: 1.1rem; padding: .7rem 1rem;
  border-radius: 16px; color: #fff; text-align: center;
  font-family: var(--font-body, system-ui, sans-serif); font-weight: 700; font-size: .98rem;
  transition: transform .18s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.dl-cta:active { transform: scale(.985); }
.dl-col--cozy .dl-cta { background: var(--cozy); box-shadow: 0 14px 26px -16px rgba(255, 107, 157, .9); }
.dl-col--neb .dl-cta { background: var(--neb); box-shadow: 0 14px 26px -16px rgba(47, 158, 106, .9); }

/* ---------- footer ---------- */
.dl-foot {
  margin-top: 1.8rem;
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: .72rem; color: var(--dl-mute);
}
.dl-foot a { color: var(--dl-mute); border-bottom: 1px solid rgba(42, 31, 61, .2); }

/* ---------- focus ---------- */
.dl a:focus-visible, .dl-tab:focus-visible {
  outline: 2px solid var(--dl-ink); outline-offset: 3px; border-radius: 14px;
}

/* ---------- hover only where a real pointer exists ---------- */
@media (hover: hover) and (pointer: fine) {
  .dl-col--cozy .dl-shop:hover { transform: translateY(-2px); border-color: var(--cozy); box-shadow: 0 16px 28px -20px rgba(255, 107, 157, .8); }
  .dl-col--neb .dl-shop:hover { transform: translateY(-2px); border-color: var(--neb); box-shadow: 0 16px 28px -20px rgba(47, 158, 106, .8); }
  .dl-col--cozy .dl-shop--kofi:hover { border-color: transparent; }
  .dl-col--cozy .dl-shop--soon:hover { transform: none; border-color: rgba(42, 31, 61, .1); box-shadow: none; }
  .dl-col--cozy .dl-social:hover { background: var(--cozy-tint); border-color: var(--cozy); transform: translateY(-2px); }
  .dl-col--neb .dl-social:hover { background: var(--neb-tint); border-color: var(--neb); transform: translateY(-2px); }
  .dl-cta:hover { transform: translateY(-2px); }
  .dl-col--cozy .dl-cta:hover { box-shadow: 0 18px 30px -16px rgba(255, 107, 157, 1); }
  .dl-col--neb .dl-cta:hover { box-shadow: 0 18px 30px -16px rgba(47, 158, 106, 1); }
  .dl-foot a:hover { color: var(--cozy); }
}

/* ---------- one column at a time on phones ---------- */
@media (max-width: 819px) {
  .js body[data-active="cozy"] .dl-col--neb { display: none; }
  .js body[data-active="neb"] .dl-col--cozy { display: none; }
}

/* ---------- very narrow phones ---------- */
@media (max-width: 359px) {
  .dl-socials { grid-template-columns: 1fr; }
  .dl-thumb { width: 92px; }
  .dl-shop { min-height: 88px; }
}

/* ---------- two columns from tablet up ---------- */
@media (min-width: 820px) {
  .js .dl-tabs { display: none; }
  .dl-page {
    background:
      radial-gradient(circle at 2% 20%, rgba(255, 107, 157, .24), transparent 40%),
      radial-gradient(circle at 98% 80%, rgba(47, 158, 106, .22), transparent 40%),
      linear-gradient(100deg, #fff0f6 0%, #fff8f2 50%, #f2faf5 100%);
    background-attachment: fixed;
  }
  .dl { padding: 3rem 1.1rem 3rem; }
  .dl-head { margin-bottom: 1.8rem; }
  .dl-av { width: 96px; height: 96px; }
  .dl-title { font-size: 2.8rem; }
  .dl-tag { font-size: 1.02rem; }
  .dl-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
  .dl-col { padding: 1.7rem 1.5rem 1.8rem; }
  .dl-brand { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .dl-shop, .dl-social, .dl-tab, .dl-cta { transition: none; }
  .dl-shop:hover, .dl-social:hover, .dl-cta:hover,
  .dl-shop:active, .dl-social:active, .dl-cta:active { transform: none; }
}
