/* ===================================================================
   SMURFCAT - stylesheet
   -------------------------------------------------------------------
   Structure of this file:
     01. Design tokens (colours, type, spacing)  <- EDIT COLOURS HERE
     02. Reset + base
     03. Reusable bits (shell, labels, buttons, reveal)
     04. Header
     05. Hero
     06. Marquee
     07. Work grid
     08. Process
     09. What you get
     10. FAQ
     11. Contact / CTA / Footer
     12. Responsive
   =================================================================== */


/* ── 01. DESIGN TOKENS ─────────────────────────────────────────────
   Changing the two accent values below re-skins the entire site.    */
:root {
  /* Surfaces */
  --ground:      #F4F2EF;   /* warm off-white page background */
  --ground-2:    #EAE7E1;   /* subtle alternating band */
  --panel:       #131316;   /* dark sections + logo tiles */
  --panel-2:     #1C1C21;   /* raised dark surface */

  /* Ink */
  --ink:         #16161A;   /* headings + body on light */
  --ink-soft:    #605D57;   /* secondary text on light */
  --ink-onDark:  #F4F2EF;   /* text on dark */
  --ink-onDark-soft: #9C9892;

  /* Lines */
  --line:        #D6D1C9;
  --line-dark:   #2E2E35;

  /* Accents  <- the main brand colour */
  --accent:      #3F9E3A;   /* grass green - squares, outlines, decoration */
  --accent-deep: #2F7A2C;   /* darker green - anywhere it meets TEXT.
                               The bright green only reaches 3.4:1 against
                               white, which fails WCAG AA for small text,
                               so text and white-on-green use this instead. */
  --accent-lift: #63C455;   /* brighter, for dark backgrounds */
  --gold:        #D9A441;   /* secondary highlight */

  /* Type */
  --font-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Layout */
  --shell:   1440px;
  --gutter:  clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(5rem, 11vw, 10rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}


/* ── 02. RESET + BASE ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

  /* Faint pixel grid - the one nod to Minecraft in the background */
  background-image:
    linear-gradient(to right,  rgba(22,22,26,.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22,22,26,.028) 1px, transparent 1px);
  background-size: 48px 48px;
}

h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

::selection { background: var(--accent-deep); color: #fff; }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--ground);
  padding: .75rem 1.25rem; z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; }


/* ── 03. REUSABLE BITS ───────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }

.section__head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

/* Tiny mono label: { LIKE THIS } */
.label {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.label span { color: var(--ink); }
.label--dim   { color: var(--ink-soft); margin-bottom: 1rem; }
.label--onDark      { color: var(--ink-onDark-soft); }
.label--onDark span { color: var(--ink-onDark); }

/* Display type - big, uppercase, tightly tracked */
.display {
  font-size: clamp(2.6rem, 8.2vw, 7.5rem);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.display em { font-style: normal; color: var(--accent-deep); }

.h2 {
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.lede {
  font-size: clamp(1.0625rem, 1.35vw, 1.4rem);
  line-height: 1.5;
  letter-spacing: -.012em;
  max-width: 46ch;
}

.note { color: var(--ink-soft); }
.note a { text-decoration: underline; }

/* Hover text-swap: the label slides up and a copy slides in behind it */
.swap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
}
.swap__in, .swap__out {
  display: block;
  transition: transform .45s var(--ease);
}
.swap__out {
  position: absolute;
  inset: 0;
  transform: translateY(105%);
}
a:hover > .swap__in, a:hover .swap__in,
button:hover .swap__in, .swap:hover .swap__in { transform: translateY(-105%); }
a:hover > .swap__out, a:hover .swap__out,
button:hover .swap__out, .swap:hover .swap__out { transform: translateY(0); }

/* Buttons - square edges, no radius anywhere on this site */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1.05rem 1.9rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--ground); }

.btn--solid { background: var(--ink); color: var(--ground); }
.btn--solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

.btn--sm { padding: .7rem 1.25rem; font-size: .8125rem; }
.btn--block { display: flex; width: 100%; }

/* Scroll reveal - JS adds .is-in when the element enters the viewport.
   Note the `.js` prefix: the hidden state only applies once the inline
   script in <head> has confirmed JavaScript is running. Without it the
   content stays visible instead of a blank page. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }


/* ── 04. HEADER ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  letter-spacing: .06em;
  font-size: .9375rem;
}
/* Blocky monogram: a 2x2 stack of squares */
.wordmark__mark {
  width: 18px; height: 18px;
  background:
    linear-gradient(var(--accent) 0 0) 0 0 / 8px 8px no-repeat,
    linear-gradient(var(--ink) 0 0)   10px 0 / 8px 8px no-repeat,
    linear-gradient(var(--ink) 0 0)   0 10px / 8px 8px no-repeat,
    linear-gradient(var(--accent) 0 0) 10px 10px / 8px 8px no-repeat;
}

.nav {
  display: flex;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
  font-size: .875rem;
  font-weight: 500;
}


/* ── 05. HERO ────────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(3.5rem, 8vw, 7rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.hero .label { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.hero__foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: clamp(2rem, 3vw, 3rem);
  border-top: 1px solid var(--line);
}

.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }


/* ── 06. MARQUEE ─────────────────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--ground-2);
  overflow: hidden;
  padding-block: .9rem;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: slide 38s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee b {
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Square block separator between items */
.marquee i {
  width: 6px; height: 6px;
  background: var(--accent);
  margin-inline: 1.75rem;
  flex-shrink: 0;
}
@keyframes slide { to { transform: translateX(-50%); } }


/* ── 07. WORK GRID ───────────────────────────────────────────────── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.filter {
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--ground); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.work-card {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  overflow: hidden;
  transition: opacity .4s var(--ease), transform .4s var(--ease);

  /* Stop the logo being selected or long-pressed into a save dialogue */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.work-card[hidden] { display: none; }

/* Invisible layer that sits over the image so right-click / long-press
   hits this instead of the <img>. A deterrent, not a lock - the watermark
   baked into the image file is the actual protection. */
.work-card__shield {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Logos fill the tile. These are square artwork with their own backgrounds,
   so cropping to fill looks better than floating a small mark on the panel.
   If you ever add a transparent logo with no background, give that one tile
   the .work-card--pad class below instead. */
.work-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.work-card:hover .work-card__img { transform: scale(1.05); }

/* Optional: for a transparent logo that needs breathing room */
.work-card--pad .work-card__img {
  width: 70%;
  height: auto;
  object-fit: contain;
  margin: auto;
}

.work-card__meta {
  position: absolute;
  z-index: 2;                    /* above .work-card__shield */
  inset: auto 0 0 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(to top, rgba(19,19,22,.96), rgba(19,19,22,0));
  color: var(--ink-onDark);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.work-card:hover .work-card__meta,
.work-card:focus-within .work-card__meta { transform: none; }

.work-card__name {
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.work-card__type {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-onDark-soft);
  white-space: nowrap;
}

/* Small accent square in the corner of each tile */
.work-card::after {
  content: '';
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;                    /* above .work-card__shield */
  width: 6px; height: 6px;
  background: var(--accent-lift);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.work-card:hover::after { opacity: 1; }


/* ── 08. PROCESS ─────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.step {
  background: var(--ground);
  padding: clamp(1.75rem, 2.6vw, 2.75rem);
  display: grid;
  align-content: start;
  gap: .85rem;
}
.step p:not(.label) { color: var(--ink-soft); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .75rem;
}
.tags li {
  padding: .35rem .7rem;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}



/* ── 09. WHAT YOU GET ────────────────────────────────────────────── */
.section--deliver { background: var(--ground-2); }

.deliver {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.deliver__head .h2 { margin-bottom: 0; }

/* Tick list - a small accent square rather than a bullet */
.ticks { display: grid; font-size: 1rem; }
.ticks li {
  position: relative;
  padding: .85rem 0 .85rem 1.75rem;
  border-top: 1px solid var(--line);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: 1.35rem;
  width: 7px; height: 7px;
  background: var(--accent);
}
.ticks--deliver {
  border-bottom: 1px solid var(--line);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}
.ticks--onDark li { border-top-color: var(--line-dark); }
.ticks--onDark li::before { background: var(--accent-lift); }


/* ── 10. FAQ ─────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); max-width: 68rem; }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.5rem;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -.02em;
  transition: color .3s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent-deep); }

/* Square +/- indicator built from two bars */
.faq__item summary::after {
  content: '';
  flex-shrink: 0;
  width: 14px; height: 14px;
  background:
    linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) center / 2px 100% no-repeat;
  transition: transform .35s var(--ease);
}
.faq__item[open] summary::after {
  background: linear-gradient(currentColor 0 0) center / 100% 2px no-repeat;
  transform: rotate(180deg);
}

.faq__body {
  padding-bottom: 1.75rem;
  max-width: 65ch;
  color: var(--ink-soft);
}
.faq__body code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--ground-2);
  padding: .1em .35em;
}


/* ── 11. CONTACT / CTA / FOOTER ──────────────────────────────────── */
.cta {
  background: var(--panel);
  color: var(--ink-onDark);
  padding-top: var(--section);
  margin-top: 0;
}
.cta .display--cta { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.cta .display em { color: var(--accent-lift); }

.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-bottom: var(--section);
}

.cta__lede {
  font-size: clamp(1.0625rem, 1.3vw, 1.3rem);
  line-height: 1.5;
  letter-spacing: -.012em;
  max-width: 42ch;
  margin-bottom: 2.5rem;
}

/* Discord handle + copy button */
.discord__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.discord__handle {
  font-size: clamp(1.6rem, 3.4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--accent-lift);
}
.discord__copy {
  border-color: var(--line-dark);
  color: var(--ink-onDark);
}
.discord__copy:hover {
  background: var(--ink-onDark);
  border-color: var(--ink-onDark);
  color: var(--panel);
}
.discord__status {
  margin-top: .9rem;
  min-height: 1.2rem;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-onDark-soft);
}
.discord__status.is-ok { color: var(--accent-lift); }

/* "Before you message" panel */
.cta__aside {
  background: var(--panel-2);
  border: 1px solid var(--line-dark);
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  align-self: start;
}
.cta__aside .ticks li:first-child { border-top: 0; padding-top: 0; }
.cta__aside .ticks li:first-child::before { top: .5rem; }
.cta__note {
  margin-top: 1.25rem;
  font-size: .9375rem;
  color: var(--ink-onDark-soft);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.5rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-onDark-soft);
}
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--ink-onDark); }

/* Mojang trademark notice - required wording, kept quiet but present */
.site-footer__disclaimer {
  flex-basis: 100%;
  color: #8A8680;          /* 5.1:1 on the panel - #6E6A64 only made 3.45 */
  letter-spacing: .1em;
}


/* ── 12. RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { display: none; }               /* keep the header simple on phones */

  .hero__foot { grid-template-columns: 1fr; align-items: start; }

  .steps { grid-template-columns: 1fr; }

  .deliver,
  .cta__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card__meta {
    position: static;
    transform: none;
    background: none;
    display: none;                       /* tap targets stay clean on mobile */
  }
  .header__inner { gap: 1rem; }
  .btn { padding: .9rem 1.4rem; }
}

/* Respect the OS "reduce motion" setting */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Print - rarely used, but stops the dark sections eating a whole cartridge */
@media print {
  .cta { background: #fff; color: #000; }
  .site-header, .marquee, .filters { display: none; }
}
