/*
Theme Name: Squircle Games
Theme URI: https://squircle.games
Author: Squircle Games
Description: Theme for squircle.games — games, news, team, Patreon access codes and contact. Explicit game art stays blurred until visitors confirm they are 18+.
Version: 2.0.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: squircle
*/

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  --sq-bg: #FDFBF7;
  --sq-text: #2D2B2A;
  --sq-text-soft: #4A4846;
  --sq-muted: #5F5C5A;
  --sq-accent: #F0AE67;
  --sq-accent-hover: #E29C52;
  --sq-accent-ink: #9A5B17;
  --sq-card: #FFFFFF;
  --sq-sand: #F6F1EA;
  --sq-tint: rgba(240, 174, 103, 0.12);
  --sq-line: rgba(45, 43, 42, 0.1);
  --sq-line-strong: rgba(45, 43, 42, 0.16);

  --sq-mint-bg: #D1FAE5;      --sq-mint-ink: #065F46;
  --sq-pink-bg: #FCE7F3;      --sq-pink-ink: #9D174D;
  --sq-lavender-bg: #EDE4FE;  --sq-lavender-ink: #5B21B6;
  --sq-peach-bg: #FFE7CC;     --sq-peach-ink: #8A4B0F;
  --sq-sky-bg: #E0F2FE;       --sq-sky-ink: #075985;

  --sq-r-xl: 40px;   /* squircle */
  --sq-r-lg: 30px;
  --sq-r-md: 24px;   /* squircle-sm */
  --sq-r-sm: 18px;
  --sq-r-xs: 12px;

  --sq-shadow: 0 10px 40px -10px rgba(45, 43, 42, 0.1);
  --sq-shadow-soft: 0 10px 40px -14px rgba(45, 43, 42, 0.1);

  --sq-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sq-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --sq-max: 1240px;
  --sq-gutter: clamp(20px, 4vw, 48px);
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--sq-bg);
  color: var(--sq-text);
  font-family: var(--sq-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--sq-text); text-decoration: none; }
a:hover { color: #000; }

:focus-visible { outline: 2px solid var(--sq-accent); outline-offset: 3px; border-radius: 6px; }

::selection { background: var(--sq-accent); color: var(--sq-text); }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto;
  padding: 12px 18px; border-radius: var(--sq-r-sm); background: var(--sq-text); color: var(--sq-bg); font-weight: 700;
}

.sq-icon { flex-shrink: 0; }

.sq-container {
  width: 100%;
  max-width: var(--sq-max);
  margin: 0 auto;
  padding-left: var(--sq-gutter);
  padding-right: var(--sq-gutter);
}

.sq-main { flex: 1; }

.sq-muted { color: var(--sq-muted); }

.sq-link-underline {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--sq-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Buttons, chips, badges
   ========================================================================== */

.sq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--sq-r-sm);
  border: 1.5px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
  text-align: center;
}
.sq-btn--lg { min-height: 54px; padding: 0 26px; border-radius: 20px; font-size: 16px; }
.sq-btn--primary { background: var(--sq-accent); color: var(--sq-text); }
.sq-btn--primary:hover { background: var(--sq-accent-hover); color: var(--sq-text); }
.sq-btn--dark { background: var(--sq-text); color: var(--sq-bg); }
.sq-btn--dark:hover { background: #000; color: var(--sq-bg); }
.sq-btn--ghost { background: transparent; border-color: var(--sq-line-strong); color: var(--sq-text); }
.sq-btn--ghost:hover { border-color: var(--sq-text); }
.sq-btn--white { background: var(--sq-card); color: var(--sq-text); box-shadow: var(--sq-shadow); }
.sq-btn:disabled { opacity: .55; cursor: not-allowed; }

.sq-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--sq-r-xs);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  background: var(--sq-sand);
  color: var(--sq-text);
}
.sq-badge--sm { padding: 5px 10px; border-radius: 10px; font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.sq-badge--mint { background: var(--sq-mint-bg); color: var(--sq-mint-ink); }
.sq-badge--pink { background: var(--sq-pink-bg); color: var(--sq-pink-ink); }
.sq-badge--lavender { background: var(--sq-lavender-bg); color: var(--sq-lavender-ink); }
.sq-badge--peach { background: var(--sq-peach-bg); color: var(--sq-peach-ink); }
.sq-badge--sky { background: var(--sq-sky-bg); color: var(--sq-sky-ink); }
.sq-badge--release { background: var(--sq-mint-bg); color: var(--sq-mint-ink); }
.sq-badge--preview { background: var(--sq-lavender-bg); color: var(--sq-lavender-ink); }
.sq-badge--upgrade { background: var(--sq-peach-bg); color: var(--sq-peach-ink); }
.sq-badge--dev { background: var(--sq-pink-bg); color: var(--sq-pink-ink); }
.sq-badge--request { background: var(--sq-sky-bg); color: var(--sq-sky-ink); }
.sq-badge__dot { width: 8px; height: 8px; border-radius: 3px; background: #10B981; }

.sq-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--sq-r-sm);
  background: transparent;
  color: var(--sq-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.sq-chip--sand { background: var(--sq-sand); }
.sq-chip[aria-pressed="true"],
.sq-chip.is-selected,
.sq-chip:has(input:checked) { background: var(--sq-text); color: var(--sq-bg); }
.sq-chip:has(input:focus-visible) { outline: 2px solid var(--sq-accent); outline-offset: 3px; }
.sq-chip__count { font-size: 12px; opacity: .7; }

.sq-eyebrow { font-size: 14px; font-weight: 700; color: var(--sq-muted); }

/* ==========================================================================
   Header
   ========================================================================== */

.sq-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 247, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 43, 42, 0.06);
}
.admin-bar .sq-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sq-header { top: 46px; } }

.sq-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.sq-logo { display: flex; align-items: center; }
.sq-logo img { display: block; height: 46px; width: auto; }

.sq-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1.5px solid var(--sq-line-strong);
  background: transparent;
  color: var(--sq-text);
  cursor: pointer;
}

.sq-nav__menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}
.sq-nav__menu a:not(.sq-btn) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--sq-muted);
}
.sq-nav__menu a:not(.sq-btn):hover { color: var(--sq-text); }
.sq-nav__menu a[aria-current="page"] { color: var(--sq-text); box-shadow: inset 0 -2px 0 var(--sq-accent); }
.sq-nav__menu .sq-btn { min-height: 44px; border-radius: 16px; font-weight: 600; }

@media (max-width: 860px) {
  .js .sq-nav__toggle { display: inline-flex; }
  .js .sq-nav__menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
  }
  .js .sq-nav.is-open .sq-nav__menu { display: flex; }
  .js .sq-nav__menu a:not(.sq-btn) { padding: 0 4px; font-size: 17px; }
  .js .sq-nav__menu .sq-btn { margin-top: 8px; }
  .sq-logo img { height: 40px; }
}

/* ==========================================================================
   Page heading with the logo bracket
   ========================================================================== */

.sq-heading {
  position: relative;
  padding: clamp(28px, 4vw, 48px) 0 0 clamp(28px, 4vw, 56px);
}
.sq-bracket {
  position: absolute;
  left: 0;
  top: 0;
  width: 120px;
  height: 120px;
  fill: none;
  stroke: var(--sq-accent);
  stroke-width: 4;
  stroke-linecap: round;
}
.sq-heading__inner { display: flex; flex-direction: column; gap: 24px; }
.sq-heading__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 64px;
}
.sq-display {
  font-size: clamp(44px, 5.8vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.sq-display--hero { font-size: clamp(46px, 6.4vw, 88px); }
.sq-lede { font-size: 19px; color: var(--sq-muted); max-width: 560px; }

.sq-page { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 120px); }
.sq-stack { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 72px); }

.sq-h2 { font-size: clamp(30px, 3.4vw, 42px); }
.sq-h3 { font-size: clamp(24px, 2.6vw, 32px); }

.sq-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

/* ==========================================================================
   Home: hero
   ========================================================================== */

.sq-hero { padding-top: clamp(72px, 10vw, 144px); padding-bottom: clamp(64px, 8vw, 112px); }
.sq-hero .sq-heading__inner { gap: 28px; max-width: 980px; }
.sq-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
}

/* ==========================================================================
   Home: games
   ========================================================================== */

.sq-games { padding-bottom: clamp(80px, 10vw, 136px); }
.sq-games__head {
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--sq-line);
}
.sq-games__list { display: flex; flex-direction: column; gap: 32px; }

.sq-game {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
  border-radius: var(--sq-r-xl);
  background: var(--sq-card);
  box-shadow: var(--sq-shadow);
}
.sq-game__media { flex: 1 1 460px; min-width: 0; }
.sq-game__body {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(20px, 3vw, 40px);
}
.sq-game__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sq-game__genre { font-size: 13px; font-weight: 700; color: var(--sq-muted); }
.sq-game__title { font-size: clamp(30px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.03em; }
.sq-game__lead { margin-top: 6px; font-size: 18px; font-weight: 600; }
.sq-game__desc { color: var(--sq-muted); }
.sq-game__platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sq-game__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(45, 43, 42, 0.08);
}

/* ==========================================================================
   18+ gate
   ========================================================================== */

.sq-gate {
  position: relative;
  aspect-ratio: 630 / 500;
  border-radius: var(--sq-r-lg);
  overflow: hidden;
  background: var(--sq-text);
}
.sq-gate__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(28px) saturate(.85) brightness(.8);
  transform: scale(1.25);
  transition: filter .5s ease, transform .5s ease;
}
.sq-gate__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: rgba(45, 43, 42, 0.3);
  color: #fff;
}
.sq-gate__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  font-weight: 800;
}
.sq-gate__text { font-size: 15px; font-weight: 600; }
.sq-gate.is-revealed .sq-gate__img { filter: none; transform: none; }
.sq-gate.is-revealed .sq-gate__overlay { display: none; }

.sq-age-hint { color: var(--sq-muted); font-size: 15px; }
.sq-age-relock { display: none; }
.age-ok .sq-age-hint { display: none; }
.age-ok .sq-age-relock { display: inline-flex; }
.no-js .sq-gate__btn { display: none; }

/* ==========================================================================
   Post cards (news)
   ========================================================================== */

.sq-band { background: rgba(240, 174, 103, 0.1); }
.sq-band__inner { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }

.sq-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sq-posts > li { display: flex; }
.sq-post-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
  padding: 26px;
  border-radius: 32px;
  background: var(--sq-card);
  box-shadow: var(--sq-shadow-soft);
  color: var(--sq-text);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sq-post-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(45, 43, 42, 0.18); color: var(--sq-text); }
.sq-post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sq-post-card__date { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--sq-muted); }
.sq-post-card__title { font-size: 21px; font-weight: 800; line-height: 1.25; letter-spacing: -0.015em; }
.sq-post-card__access {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sq-muted);
}

/* News page */
.sq-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 10px;
  border-radius: 28px;
  background: var(--sq-card);
  box-shadow: 0 10px 40px -10px rgba(45, 43, 42, 0.08);
}
.no-js .sq-filters { display: none; }
.sq-filters__group { display: flex; flex-wrap: wrap; gap: 6px; }

.sq-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 10px;
  border: 0;
  border-radius: var(--sq-r-sm);
  background: var(--sq-sand);
  color: var(--sq-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.sq-switch__track {
  display: flex;
  align-items: center;
  width: 38px;
  height: 22px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(45, 43, 42, 0.2);
  transition: background-color .2s ease;
}
.sq-switch__knob {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: #fff;
  transition: transform .2s ease;
}
.sq-switch[aria-pressed="true"] .sq-switch__track { background: var(--sq-accent); }
.sq-switch[aria-pressed="true"] .sq-switch__knob { transform: translateX(16px); }

.sq-more { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.no-js .sq-more { display: none; }
.sq-empty { padding: 48px; border-radius: 32px; background: var(--sq-card); text-align: center; color: var(--sq-muted); }
.sq-empty strong { display: block; margin-bottom: 4px; font-size: 20px; color: var(--sq-text); }

.sq-note { padding-top: 28px; border-top: 1px solid var(--sq-line); color: var(--sq-muted); }

/* ==========================================================================
   Single post / generic page
   ========================================================================== */

.sq-article { max-width: 820px; }
.sq-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sq-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }

.sq-prose { font-size: 18px; line-height: 1.7; color: var(--sq-text-soft); }
.sq-prose > * + * { margin-top: 1.1em; }
.sq-prose h2, .sq-prose h3 { color: var(--sq-text); margin-top: 1.6em; }
.sq-prose h2 { font-size: 30px; }
.sq-prose h3 { font-size: 22px; }
.sq-prose a { color: var(--sq-text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--sq-accent); text-underline-offset: 3px; }
.sq-prose img, .sq-prose video, .sq-prose iframe { border-radius: var(--sq-r-md); }
.sq-prose ul, .sq-prose ol { padding-left: 1.3em; }
.sq-prose blockquote { margin: 1.4em 0; padding: 18px 24px; border-radius: var(--sq-r-md); background: var(--sq-tint); }
.sq-prose code { font-family: var(--sq-mono); font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--sq-sand); }
.sq-prose .wp-block-button__link,
.sq-prose .patreon-button,
.sq-prose button {
  border-radius: var(--sq-r-sm);
}
.sq-prose .wp-block-image figcaption { font-size: 14px; color: var(--sq-muted); }

.sq-post-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--sq-line);
}

/* ==========================================================================
   Team
   ========================================================================== */

.sq-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sq-member {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 12px 12px 26px;
  border-radius: var(--sq-r-xl);
  background: var(--sq-card);
  box-shadow: var(--sq-shadow);
}
.sq-member__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--sq-r-lg);
  background: var(--sq-sand);
}
.sq-member__tile--peach { background: rgba(240, 174, 103, 0.18); }
.sq-member__tile--pink { background: var(--sq-pink-bg); }
.sq-member__tile--mint { background: var(--sq-mint-bg); }
.sq-member__tile--lavender { background: var(--sq-lavender-bg); }
.sq-member__photo,
.sq-member__initials {
  width: 128px;
  height: 128px;
  border-radius: 40px;
  object-fit: cover;
  box-shadow: 0 10px 30px -10px rgba(45, 43, 42, 0.3);
}
.sq-member__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.sq-member__text { display: flex; flex-direction: column; gap: 4px; padding: 0 14px; }
.sq-member__name { font-size: 26px; line-height: 1.15; }
.sq-member__role { font-weight: 600; color: var(--sq-muted); }
.sq-member .sq-badge { margin: 0 14px; align-self: flex-start; }

.sq-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--sq-r-xl);
  background: var(--sq-tint);
}
.sq-callout p { color: var(--sq-text-soft); }

/* ==========================================================================
   Access code
   ========================================================================== */

.sq-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px 88px;
}
.sq-split > * { flex: 1 1 440px; min-width: 0; }

.sq-card {
  padding: 12px;
  border-radius: var(--sq-r-xl);
  background: var(--sq-card);
  box-shadow: var(--sq-shadow);
}
.sq-card__pad { padding: clamp(18px, 3vw, 32px); }

.sq-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sq-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px;
  border-radius: var(--sq-r-lg);
  background: var(--sq-sand);
}
.sq-step:first-child { background: var(--sq-tint); }
.sq-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: #fff;
  font-weight: 800;
}
.sq-step:first-child .sq-step__num { background: var(--sq-accent); }
.sq-step__title { display: block; font-size: 18px; font-weight: 800; }
.sq-step__text { display: block; color: var(--sq-muted); }

.sq-help {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.sq-help > div { padding-top: 26px; border-top: 1px solid rgba(45, 43, 42, 0.12); }
.sq-help h2 { margin-bottom: 6px; font-size: 18px; letter-spacing: -0.01em; }
.sq-help p { color: var(--sq-muted); }

.sq-uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.sq-use { padding: 20px 22px; border-radius: var(--sq-r-md); background: var(--sq-sand); }
.sq-use strong { display: block; font-size: 17px; }
.sq-use span { color: var(--sq-muted); font-size: 15px; }

/*
 * Squircle Patreon plugin shortcodes, restyled.
 * [patreon_code] renders <div id="sqp-…"> with [data-sqp="current|button|status"];
 * [download_tier_zip] and [list_characters_for_tier] render plain markup.
 * The plugin's Tailwind classes have no effect in this theme.
 */
.sq-patron-code > div {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  max-width: none;
}
.sq-patron-code h3 { font-size: 20px; letter-spacing: -0.015em; margin-bottom: 6px; }
.sq-patron-code > div > p:not(:has([data-sqp])) { color: var(--sq-muted); margin-bottom: 18px; }
.sq-patron-code [data-sqp="current"] > p { color: var(--sq-muted); margin-bottom: 16px; }
.sq-patron-code [data-sqp="current"] > div {
  display: block;
  margin: 0 0 16px;
  padding: 20px 22px;
  border-radius: var(--sq-r-lg);
  background: var(--sq-sand);
  text-align: left;
}
.sq-patron-code [data-sqp="current"] > div > p { font-size: 14px; font-weight: 600; color: var(--sq-muted); }
.sq-patron-code [data-sqp="current"] > div > p:last-child { margin-top: 12px; font-size: 13px; font-weight: 500; }
.sq-patron-code [data-sqp="current"] code {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: 16px;
  background: #fff;
  font-family: var(--sq-mono);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--sq-text);
}
.sq-patron-code [data-sqp="button"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1.5px solid var(--sq-line-strong);
  border-radius: var(--sq-r-sm);
  background: transparent;
  color: var(--sq-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.sq-patron-code [data-sqp="button"]:hover { border-color: var(--sq-text); }
.sq-patron-code [data-sqp="button"]:disabled { opacity: .55; cursor: not-allowed; }
.sq-patron-code [data-sqp="status"] { margin-top: 12px; min-height: 1.5em; font-size: 14px; font-weight: 700; color: var(--sq-muted); }
.sq-patron-code [data-sqp="status"] .text-red-500 { color: #B42318; }
.sq-patron-code [data-sqp="status"] .text-green-600 { color: #067647; }

.sq-code-copy { margin-left: 10px; vertical-align: middle; }

.sq-downloads > div { text-align: left; }
.sq-downloads p { font-size: 14px; color: var(--sq-muted); }
.sq-downloads a,
.sq-prose a.bg-squircle-accent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 8px;
  padding: 0 20px;
  border-radius: var(--sq-r-sm);
  background: var(--sq-accent);
  color: var(--sq-text);
  font-weight: 700;
}
.sq-downloads a:hover,
.sq-prose a.bg-squircle-accent:hover { background: var(--sq-accent-hover); color: var(--sq-text); }
.sq-prose a.bg-squircle-accent { text-decoration: none; }
.sq-downloads > div > div {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--sq-r-sm);
  background: var(--sq-peach-bg);
  color: var(--sq-peach-ink);
  font-size: 14px;
  font-weight: 600;
}

.sq-models ul,
.sq-prose ul.space-y-3 { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.sq-models li,
.sq-prose ul.space-y-3 li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--sq-sand);
  font-weight: 700;
}
.sq-models li svg,
.sq-prose ul.space-y-3 li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--sq-mint-ink); }

/* ==========================================================================
   Contact
   ========================================================================== */

.sq-quick { display: flex; flex-direction: column; gap: 12px; }
.sq-quick__item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 28px;
  background: var(--sq-card);
  box-shadow: var(--sq-shadow-soft);
}
.sq-quick__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: rgba(240, 174, 103, 0.18);
}
.sq-quick__icon--pink { background: var(--sq-pink-bg); }
.sq-quick__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sq-quick__text strong { font-weight: 800; }
.sq-quick__text span { font-size: 15px; color: var(--sq-muted); }

.sq-form { display: flex; flex-direction: column; gap: 20px; }
.sq-form fieldset { margin: 0; padding: 0; border: 0; }
.sq-form legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.sq-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.sq-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; }
.sq-field input,
.sq-field textarea {
  width: 100%;
  border: 1.5px solid transparent;
  background: var(--sq-sand);
  color: var(--sq-text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
}
.sq-field input { min-height: 52px; padding: 0 18px; border-radius: var(--sq-r-sm); }
.sq-field textarea { padding: 16px 18px; border-radius: 22px; line-height: 1.5; resize: vertical; min-height: 160px; }
.sq-field input:focus,
.sq-field textarea:focus { outline: 2px solid var(--sq-accent); outline-offset: 2px; }
.sq-field__optional { font-weight: 500; color: var(--sq-muted); }
.sq-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 4px; }
.sq-form__foot p { font-size: 13px; color: var(--sq-muted); max-width: 300px; }
.sq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.sq-alert { padding: 14px 18px; border-radius: var(--sq-r-sm); font-weight: 600; font-size: 15px; }
.sq-alert--error { background: #FEE4E2; color: #912018; }

.sq-sent { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(28px, 4vw, 48px); }
.sq-sent__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: var(--sq-mint-bg);
  color: var(--sq-mint-ink);
}
.sq-sent p { color: var(--sq-muted); max-width: 380px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.sq-footer { border-top: 1px solid rgba(45, 43, 42, 0.08); }
.sq-footer__compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.sq-footer__compact img { height: 34px; width: auto; }
.sq-footer__compact p,
.sq-footer__legal { font-size: 13px; color: var(--sq-muted); }

.sq-footer--full { border-top: 0; }
.sq-footer__full {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: 40px;
}
.sq-footer__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 32px;
}
.sq-footer__contact p { color: var(--sq-muted); font-size: 17px; margin-top: 10px; }
.sq-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--sq-line);
}
.sq-footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 440px; }
.sq-footer__brand img { height: 40px; width: auto; align-self: flex-start; }
.sq-footer__brand p { font-size: 14px; color: var(--sq-muted); }
.sq-footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
.sq-footer__links a { color: var(--sq-muted); }
.sq-footer__links a:hover { color: var(--sq-text); }

/* ==========================================================================
   WordPress bits
   ========================================================================== */

.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption, .wp-block-image { margin: 1.4em 0; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
