/* =========================================================================
   ZJIGGIT studio site: stylesheet (no build step, no external resources)
   Neutral warm palette; no game art. Contrast ratios are noted on cream.
   ========================================================================= */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-latin-var.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Italic-latin-var.woff2") format("woff2");
  font-weight: 200 1000; font-style: italic; font-display: swap;
}

:root {
  --paper: #fbf5ec;
  --paper-2: #f4e9da;
  --paper-3: #e9d8c1;
  --ink: #2e221b;        /* 14.8:1 */
  --ink-2: #5a473a;      /* 8.4:1 */
  --clay: #a3482a;       /* accent / links: 5.9:1 */
  --clay-dark: #7e3419;
  --clay-light: #f6ddd0;
  --sand: #e2b47e;
  --sage: #9aae93;
  --sage-light: #e3eadd;
  --sage-dark: #3d5c43;  /* 6.3:1 on sage-light */
  --radius-s: 12px; --radius: 22px; --radius-l: 34px;
  --shadow-s: 0 2px 6px rgb(46 34 27 / .10);
  --shadow: 0 14px 34px -12px rgb(46 34 27 / .28), 0 2px 6px rgb(46 34 27 / .08);
  --max: 1120px;
  --font: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: var(--paper);
  background-image:
    radial-gradient(60rem 40rem at 105% -10%, rgb(226 180 126 / .35), transparent 60%),
    radial-gradient(50rem 36rem at -15% 110%, rgb(154 174 147 / .28), transparent 60%);
  background-repeat: no-repeat;

}
body > main { flex: 1 0 auto; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-weight: 900; letter-spacing: -.015em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .25em; }
p { margin: 0 0 1em; }
a { color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--clay-dark); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: var(--radius-s);
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

/* ---------- header ---------- */
.site-header { padding: 1.25rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wordmark {
  font-weight: 1000; font-size: 1.7rem; letter-spacing: -.04em; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.wordmark span { color: var(--clay); }
.wordmark:hover { color: var(--ink); }
.site-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .45rem .9rem; border-radius: 999px;
  color: var(--ink); font-weight: 800; font-size: .95rem; text-decoration: none;
}
.site-nav a:hover { background: var(--paper-2); color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 1rem + 6vw, 6.5rem) 0 clamp(3rem, 2rem + 5vw, 6rem); }
.hero .wrap { display: grid; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 1.1rem; padding: .3rem .85rem; border-radius: 999px;
  background: var(--clay-light); color: var(--clay-dark);
  font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.4rem); max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--clay); }
.lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); color: var(--ink-2); max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 900; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--clay); color: #fff; box-shadow: var(--shadow-s); }
.btn-primary:hover { background: var(--clay-dark); color: #fff; }
.btn-ghost { border-color: var(--paper-3); color: var(--ink); background: rgb(255 255 255 / .55); }
.btn-ghost:hover { border-color: var(--sand); color: var(--ink); }

/* decorative mark: pure CSS shapes, no artwork */
.mark { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin-inline: auto; }
.mark .tile {
  position: absolute; inset: 14%; border-radius: 28%;
  background: linear-gradient(145deg, #b9583a, var(--clay-dark));
  box-shadow: var(--shadow); display: grid; place-items: center;
  color: var(--paper); font-weight: 1000; font-size: clamp(6rem, 4rem + 8vw, 9.5rem); line-height: 1;
  transform: rotate(-6deg);
}
.mark .dot { position: absolute; border-radius: 50%; }
.mark .d1 { width: 26%; aspect-ratio: 1; right: 0; top: 4%; background: var(--sand); }
.mark .d2 { width: 18%; aspect-ratio: 1; left: 2%; bottom: 6%; background: var(--sage); }
.mark .d3 { width: 10%; aspect-ratio: 1; left: 8%; top: 10%; border: 4px solid var(--paper-3); }
.mark .sq {
  position: absolute; width: 22%; aspect-ratio: 1; right: 6%; bottom: 2%;
  border-radius: 26%; background: var(--paper-2); border: 3px solid var(--paper-3); transform: rotate(12deg);
}

/* ---------- sections ---------- */
section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section-tag {
  display: inline-block; margin-bottom: .75rem; font-size: .8rem; font-weight: 900;
  letter-spacing: .1em; text-transform: uppercase; color: var(--sage-dark);
}
.about { background: rgb(255 255 255 / .55); border-block: 1px solid var(--paper-3); }
.about .wrap { display: grid; gap: 2.5rem; }
.about p { color: var(--ink-2); max-width: 40rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.facts li {
  background: var(--paper); border: 1px solid var(--paper-3); border-radius: var(--radius);
  padding: 1.25rem 1.4rem; box-shadow: var(--shadow-s);
}
.facts p { margin: 0; font-size: .95rem; }
.facts .ico {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 30%;
  margin-bottom: .7rem; font-weight: 1000; background: var(--sage-light); color: var(--sage-dark);
}
.facts li:nth-child(2) .ico { background: var(--clay-light); color: var(--clay-dark); }
.facts li:nth-child(3) .ico { background: #f6e6cf; color: #7a4f1f; }

.contact-card {
  background: var(--ink); color: var(--paper); border-radius: var(--radius-l);
  padding: clamp(2rem, 1.25rem + 3vw, 3.5rem); display: grid; gap: 1.5rem; align-items: center;
  box-shadow: var(--shadow);
}
.contact-card h2 { color: #fff; }
.contact-card p { color: #ead9c6; margin: 0; max-width: 34rem; }
.contact-card .btn-primary { background: var(--sand); color: var(--ink); justify-self: start; }
.contact-card .btn-primary:hover { background: #f0c995; color: var(--ink); }
.note { font-size: .85rem; }

/* ---------- simple pages ---------- */
.page { padding: clamp(1.5rem, 1rem + 3vw, 4rem) 0 clamp(3rem, 2rem + 4vw, 5rem); }
.page-card {
  position: relative; max-width: 780px; margin-inline: auto; background: rgb(255 255 255 / .7);
  border: 1px solid var(--paper-3); border-radius: var(--radius-l); box-shadow: var(--shadow);
  padding: clamp(1.75rem, 1rem + 3vw, 3.25rem);
}
.page-card h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
.page-card h2 { font-size: 1.3rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 2px dashed var(--paper-3); }
.page-card p, .page-card li { color: var(--ink-2); }
.page-card a { overflow-wrap: anywhere; }
.page-card address { font-style: normal; color: var(--ink-2); }
.draft-note {
  display: inline-block; margin: 0 0 1rem; padding: .25rem .75rem; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--paper-3); color: var(--ink-2);
  font-size: .8rem; font-weight: 800;
}
.center { text-align: center; }
.center .actions { justify-content: center; }
.page-card .big-code { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 1000; color: var(--clay); line-height: 1; margin: 0 0 .5rem; }
pre.license {
  white-space: pre-wrap; font-size: .82rem; line-height: 1.5; background: var(--paper-2);
  border: 1px solid var(--paper-3); border-radius: var(--radius-s); padding: 1rem 1.1rem; color: var(--ink);
}

/* ---------- footer ---------- */
.site-footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--paper-3); background: var(--paper-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; justify-content: space-between; align-items: flex-start; }
.legal-small { margin: .5rem 0 0; font-size: .85rem; color: var(--ink-2); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; }
.footer-links a { font-weight: 800; font-size: .95rem; }

/* ---------- layout breakpoints ---------- */
@media (min-width: 820px) {
  .hero .wrap { grid-template-columns: 1.35fr 1fr; }
  .mark { width: 100%; max-width: 380px; }
  .about .wrap { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .contact-card { grid-template-columns: 1fr auto; }
  .contact-card .btn-primary { justify-self: end; }
  .draft-note { position: absolute; top: 1.25rem; right: 1.25rem; margin: 0; }
}
@media (max-width: 819px) {
  .mark { width: min(70%, 260px); order: -1; }
  .site-header .wrap { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .btn, .facts li, .page-card, .contact-card, .eyebrow, .draft-note { border: 2px solid CanvasText; }
  .mark { display: none; }
}
@media print {
  body { background: #fff; }
  .site-nav, .skip-link, .mark { display: none; }
  .page-card { box-shadow: none; border: 0; }
}
.nowrap { white-space: nowrap; }

/* ---------- legal drafts ---------- */
.page-card.legal { max-width: 820px; }
.legal .policy-head h1 { margin-top: .25rem; }
.legal section { padding: 0; scroll-margin-top: 1rem; }
.legal section:first-child h2 { margin-top: 1.5rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin: .35rem 0; }
.legal li::marker { color: var(--clay); }
.legal strong { color: var(--ink); }
mark { background: #fbe9a6; color: var(--ink); padding: 0 .15em; border-radius: 3px; }
@media (forced-colors: active) { mark { background: Mark; color: MarkText; } }
.tm { font-size: .4em; vertical-align: super; margin-left: .03em; font-weight: 800; }
