/* ============================================================
   Hatdragon Studios — hatdragon.studio
   Ported from the "Hatdragon Studio" design canvas.
   ============================================================ */

:root {
  /* surfaces */
  --paper:        #faf8f1;
  --card:         #ffffff;
  --footer-bg:    #20220f;

  /* ink */
  --ink:          #1f1d17;
  --ink-soft:     #5a5648;
  --ink-muted:    #6b6656;
  --ink-faint:    #9a9484;
  --footer-ink:   #e8e6d8;
  --footer-faint: #a8a68f;

  /* brand */
  --green:        #2a6c06;
  --fire:         #E55A19;
  --gold:         #F6C500;

  /* hairlines */
  --rule:         rgba(0, 0, 0, 0.08);
  --edge:         rgba(0, 0, 0, 0.06);

  /* type */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'IBM Plex Sans', system-ui, sans-serif;
  --mono:    'Space Mono', ui-monospace, monospace;
  --script:  'Caveat', cursive;

  /* metrics */
  --gutter: 44px;
  --measure: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

ul, ol { list-style: none; margin: 0; padding: 0; }

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--fire);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--green);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* shared bits ------------------------------------------------ */

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--green);
  margin-bottom: 20px;
}

.tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}
.tag-green { color: var(--green); }

.script {
  font-family: var(--script);
  font-size: 26px;
  color: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 10px rgba(42, 108, 6, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(42, 108, 6, 0.3); }

.btn-ghost {
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.btn-disabled {
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  color: var(--ink-faint);
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: default;
  width: 100%;
}

/* header ----------------------------------------------------- */

.site-header { border-bottom: 1px solid var(--rule); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
}

.brand img { height: 46px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.site-nav a:hover { color: var(--green); }

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  border: 1.5px solid rgba(42, 108, 6, 0.4);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: none;
  transition: background-color 0.15s ease;
}
.nav-pill:hover { background: rgba(42, 108, 6, 0.08); }

/* hero ------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding-block: 66px 56px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 66px);
  line-height: 0.98;
}
.hero h1 em { color: var(--fire); font-style: normal; }

.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 430px;
  margin: 24px 0 32px;
}

.button-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-glyph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-glyph img {
  position: relative;
  height: 330px;
  width: auto;
}
.hero-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 108, 6, 0.12), transparent 68%);
}

/* values ribbon (full-bleed) --------------------------------- */

.ribbon {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px var(--gutter);
  background: var(--green);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ribbon i { opacity: 0.5; font-style: normal; }

/* games ------------------------------------------------------ */

.games { padding-block: 60px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.section-head h2 { font-size: 32px; letter-spacing: -0.01em; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 0 0 1px var(--edge);
}
.game-card-vault { box-shadow: 0 0 0 1px rgba(229, 90, 25, 0.35); }

.game-art {
  position: relative;
  aspect-ratio: 2 / 1;
}
.game-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the diagonal "under re-development" sash */
.stamp {
  position: absolute;
  top: 39%;
  left: -12%;
  width: 124%;
  transform: rotate(-11deg);
  background: rgba(17, 17, 15, 0.82);
  color: #fff;
  text-align: center;
  padding-block: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.game-art-vault {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #fbeee6, #fbeee6 12px, #f7e6da 12px, #f7e6da 24px);
}
.vault-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fire);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.game-icon {
  position: absolute;
  left: 16px;
  bottom: -18px;
  width: 56px;
  height: 56px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 0 3px #fff;
}

.game-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 20px 22px;
}

.chips {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.chip, .chip-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.chip {
  color: var(--ink-muted);
  background: rgba(0, 0, 0, 0.05);
  padding: 4px 8px;
  border-radius: 5px;
}
.chip-green { color: var(--green); background: rgba(42, 108, 6, 0.1); }
.chip-fire  { color: var(--fire);  background: rgba(229, 90, 25, 0.1); }
.chip-status {
  margin-left: auto;
  color: var(--fire);
  letter-spacing: 0.08em;
}

.game-body h3 { font-size: 20px; margin-bottom: 6px; }

.game-blurb {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

/* about ------------------------------------------------------ */

.about {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
  padding-block: 8px 64px;
}

.about-copy .eyebrow { margin-bottom: 16px; }
.about-copy h2 {
  font-size: clamp(30px, 3.2vw, 38px);
  line-height: 1.05;
  margin-bottom: 22px;
}
.about-copy p {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 18px;
}
.about-copy .script { margin-bottom: 0; color: var(--green); }

.timeline {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--edge);
  padding: 28px;
}
.timeline .tag {
  font-size: 11px;
  margin-bottom: 20px;
}
.timeline ol { display: flex; flex-direction: column; gap: 18px; }
.timeline li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-size: 14.5px;
  line-height: 1.45;
  color: #4a463a;
}
.timeline li + li { border-top: 1px solid var(--edge); padding-top: 18px; }
.year {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-faint);
  min-width: 44px;
}
.year-green { color: var(--green); }
.year-fire  { color: var(--fire); }

/* gaming cross-link ------------------------------------------ */

.crosslink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 60px;
  padding: 22px 30px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 0 0 1px rgba(42, 108, 6, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.crosslink:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(42, 108, 6, 0.5), 0 8px 24px rgba(42, 108, 6, 0.1);
}
.crosslink-copy {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.crosslink-line {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
}
.crosslink-cta {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: var(--green);
  white-space: nowrap;
}

/* footer (full-bleed) ---------------------------------------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding-block: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-brand img { height: 56px; width: auto; }
.footer-brand p {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--footer-faint);
  line-height: 1.6;
}
.footer-brand .script { font-size: 17px; color: var(--gold); }

.footer-social {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: #cfcdba;
}
.footer-social a:hover { color: var(--gold); }

/* ============================================================
   responsive — the canvas was desktop-only; these are new
   ============================================================ */

@media (max-width: 980px) {
  :root { --gutter: 32px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 48px 40px;
  }
  .hero-copy { order: 2; }
  .hero-glyph { order: 1; margin-bottom: 8px; }
  .hero-glyph img { height: 220px; }
  .hero-glow { width: 240px; height: 240px; }
  .lede { max-width: 560px; }

  .game-grid { grid-template-columns: repeat(2, 1fr); }

  .about {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 48px;
  }
}

@media (max-width: 700px) {
  :root { --gutter: 20px; }

  .header-inner {
    flex-direction: column;
    gap: 16px;
    padding-block: 20px;
  }
  .site-nav {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 13px;
  }

  .ribbon { gap: 18px; font-size: 11px; letter-spacing: 0.12em; }

  .games { padding-block: 44px; }
  .game-grid { grid-template-columns: 1fr; }

  .btn { width: 100%; }
  .button-row { width: 100%; }

  .crosslink {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    margin-bottom: 44px;
  }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
