/* ============================================================
   Tech Pickle Studios — holding site
   Warm "deli/jar" cream, deep pickle-green ink, dill + coral pops,
   thick outlines + hard offset shadows (sticker energy), Fraunces +
   Hanken Grotesk. Playful but premium.
   ============================================================ */

:root {
  --bg: #f2ebd9;
  --bg-2: #ece1c8;
  --paper: #fbf7ec;
  --ink: #16271d;
  --ink-soft: #45554a;
  --green: #2f6b34;
  --dill: #7aa83a;
  --dill-soft: #cfe6a0;
  --coral: #ec6149;
  --mustard: #e7a92b;

  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 9px 10px 0 var(--ink);
  --line: 2.5px solid var(--ink);
  --radius: 22px;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --maxw: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(
      120% 120% at 85% -10%,
      rgba(122, 168, 58, 0.18),
      transparent 55%
    ),
    radial-gradient(90% 80% at -10% 110%, rgba(236, 97, 73, 0.1), transparent 60%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(16px, 1.05vw + 14px, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle film grain over everything */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 2;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 30;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

em {
  font-style: italic;
  font-variation-settings: "SOFT" 30;
}

/* ───────────────────────── Header ───────────────────────── */
.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 30px) clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}
.wordmark__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--paper);
  border: var(--line);
  border-radius: 13px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-6deg);
}
.wordmark__text em {
  color: var(--green);
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  font-weight: 600;
}
.site-nav a {
  text-decoration: none;
}
.site-nav a:not(.site-nav__cta) {
  padding-bottom: 2px;
  border-bottom: 2.5px solid transparent;
  transition: border-color 0.18s ease;
}
.site-nav a:not(.site-nav__cta):hover {
  border-color: var(--dill);
}
.site-nav__cta {
  background: var(--ink);
  color: var(--bg);
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--dill);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.site-nav__cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--dill);
}

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 80px) clamp(20px, 5vw, 48px) clamp(40px, 7vw, 90px);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--dill-soft);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 22px;
}

.hero__title {
  font-size: clamp(3rem, 8.5vw, 6.4rem);
  font-weight: 600;
}
.hero__title span {
  display: block;
}
.hero__title em {
  color: var(--coral);
}

.hero__sub {
  margin: 26px 0 0;
  max-width: 30ch;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
}
.hero__sub strong {
  color: var(--ink);
  font-weight: 700;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 14px;
  border: var(--line);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.btn--primary {
  background: var(--dill);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.btn--ghost {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn--lg {
  font-size: 1.18rem;
  padding: 16px 30px;
  border-radius: 16px;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* Hero art */
.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}
.pickle-big {
  width: clamp(180px, 24vw, 280px);
  height: auto;
  filter: drop-shadow(8px 10px 0 rgba(22, 39, 29, 0.18));
  animation: float 6s ease-in-out infinite;
  transform-origin: center;
}
.blob {
  position: absolute;
  width: 116%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 42% 36%, #fdfaf0, var(--dill-soft) 80%);
  border: var(--line);
  border-radius: 47% 53% 44% 56% / 54% 47% 53% 46%;
  box-shadow: var(--shadow-lg);
  animation: morph 14s ease-in-out infinite;
  z-index: -1;
}
.dots {
  position: absolute;
  right: -6%;
  bottom: -2%;
  width: 110px;
  height: 110px;
  background-image: radial-gradient(var(--ink) 2px, transparent 2.5px);
  background-size: 16px 16px;
  opacity: 0.5;
  z-index: -1;
}

/* ───────────────────────── Apps ───────────────────────── */
.apps {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 60px) clamp(20px, 5vw, 48px);
}
.section-head {
  margin-bottom: clamp(24px, 3vw, 40px);
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.section-head p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.card {
  position: relative;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
}
.card--mutter::before {
  background: var(--coral);
}
.card--next::before {
  background: var(--mustard);
}
.card--next {
  background: repeating-linear-gradient(
    -45deg,
    var(--paper),
    var(--paper) 13px,
    var(--bg-2) 13px,
    var(--bg-2) 26px
  );
}
.card:hover {
  transform: translate(-3px, -4px);
  box-shadow: var(--shadow-lg);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.app-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  font-size: 1.6rem;
  background: var(--dill-soft);
  border: var(--line);
  border-radius: 15px;
  box-shadow: 3px 3px 0 var(--ink);
}
.app-badge--ghost {
  background: var(--bg);
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink-soft);
}

.pill {
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
}
.pill--soon {
  background: var(--mustard);
  color: var(--ink);
}

.card__name {
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
}
.card__tag {
  margin: 4px 0 14px;
  font-weight: 600;
  color: var(--green);
  font-size: 0.95rem;
}
.card__blurb {
  margin: 0;
  color: var(--ink-soft);
}
.card__blurb em {
  color: var(--ink);
  font-style: italic;
}
.card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}
.store {
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 13px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--bg);
  opacity: 0.75;
}
.card__link {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2.5px solid var(--dill);
  padding-bottom: 1px;
}
.card__link:hover {
  border-color: var(--coral);
}

/* ───────────────────────── Contact ───────────────────────── */
.contact {
  padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 48px);
}
.contact__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--ink);
  color: var(--bg);
  border: var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: clamp(34px, 5vw, 64px) clamp(24px, 4vw, 48px);
}
.contact__inner h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--dill-soft);
}
.contact__inner p {
  margin: 14px auto 30px;
  max-width: 44ch;
  color: #d8cfb8;
}
.contact .btn--primary {
  font-family: var(--body);
}

/* ───────────────────────── Footer ───────────────────────── */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 5vw, 48px) 54px;
  border-top: var(--line);
  display: grid;
  gap: 14px;
  align-items: center;
  grid-template-columns: auto 1fr auto;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
}
.legal {
  margin: 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.site-footer__links {
  display: inline-flex;
  gap: 18px;
  justify-self: end;
  font-weight: 600;
  font-size: 0.9rem;
}
.site-footer__links a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-footer__links a:hover {
  border-color: var(--dill);
}
.brine {
  grid-column: 1 / -1;
  text-align: center;
  margin: 6px 0 0;
  font-family: var(--display);
  font-style: italic;
  color: var(--green);
  font-size: 0.95rem;
}

/* ───────────────────────── Motion ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes float {
  50% {
    transform: translateY(-16px) rotate(3deg);
  }
}
@keyframes morph {
  50% {
    border-radius: 54% 46% 56% 44% / 46% 54% 47% 53%;
    transform: rotate(8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .pickle-big,
  .blob {
    animation: none;
  }
}

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: clamp(16px, 4vw, 40px);
  }
  .hero__art {
    order: -1;
    min-height: 170px;
    max-width: 230px;
    margin-inline: auto;
  }
  .blob {
    width: 100%;
  }
  .pickle-big {
    width: clamp(110px, 30vw, 150px);
  }
  .hero__sub {
    max-width: none;
  }
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .site-footer__links {
    justify-self: center;
  }
}

@media (max-width: 460px) {
  .wordmark__text {
    font-size: 0.95em;
  }
  .site-nav a:not(.site-nav__cta) {
    display: none;
  }
  .btn {
    width: 100%;
  }
}
