/* =========================================================================
   Postmark Digital — one-page site
   Brand palette + type pulled from Figma ("Postmark Digital Website", node 1:2).
   Raw brand tokens live under "Brand palette"; the site reads the semantic
   tokens below them, so a future re-skin is still a small, safe edit.
   ========================================================================= */
:root {
  /* --- Brand palette (Figma variables) --- */
  --blue-mid:   #25A2FE;   /* primary brand blue          */
  --blue-dark:  #2491D3;
  --blue-light: #9AD4FF;
  --teal:       #20C8DE;
  --green:      #2CDDBC;
  --slate:      #34586D;
  --white:      #FFFFFF;
  --black:      #000000;

  /* Signature gradient — the logo's blue → teal → green arc */
  --brand-grad: linear-gradient(120deg, #25A2FE 0%, #20C8DE 55%, #2CDDBC 100%);

  /* --- Semantic tokens (what the views actually use) --- */
  --bg:          #ffffff;   /* page background                              */
  --surface:     #f1f7fc;   /* cards / alt surfaces (cool tint)             */
  --ink:         #14232e;   /* primary text (dark slate)                    */
  --ink-soft:    #526b7a;   /* secondary text (slate)                       */
  --accent:      #1479c4;   /* interactive blue — links + buttons (AA-safe) */
  --accent-deep: #0f6aae;   /* accent hover                                 */
  --on-accent:   #ffffff;   /* text on accent                              */
  --border:      #dde8f0;   /* hairlines                                    */

  /* --- Type --- */
  --font: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* --- Layout --- */
  --maxw: 960px;
  --pad:  clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

section, .site-header, .site-footer {
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ------------------------------- Header -------------------------------- */
.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand__logo { display: block; height: 116px; width: auto; }
.site-nav { display: flex; gap: 24px; font-weight: 500; }
.site-nav a { color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

/* -------------------------------- Hero --------------------------------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: clamp(20px, 3vw, 44px);
  padding-bottom: clamp(48px, 9vw, 96px);
}
.hero__head { width: fit-content; max-width: 100%; }   /* shrink-wrap to the headline width */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero__eyebrow::before {           /* gradient bar grows to the headline's right edge */
  content: "";
  flex: 1 1 auto;
  min-width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-grad);
}
.hero__title {
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 20px;
}
.hero__lede {
  font-size: clamp(1.1rem, 2.4vw, 1.375rem);
  font-weight: 300;                  /* Karla Light — elegant at large size */
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------------------- Buttons ------------------------------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost { color: var(--ink); border: 1.5px solid var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ------------------------------ Sections ------------------------------- */
.section__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 16px;
}
.section__intro { color: var(--ink-soft); margin: 0 0 32px; }

.about {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: clamp(40px, 7vw, 72px);
  padding-bottom: clamp(40px, 7vw, 72px);
  border-top: 1px solid var(--border);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}
.about__grid p { color: var(--ink-soft); margin: 0; }
.about__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.about__list li { color: var(--ink-soft); }
.about__list strong { color: var(--ink); display: block; }

/* -------------------------------- Games -------------------------------- */
.games {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: clamp(40px, 7vw, 72px);
  padding-bottom: clamp(40px, 7vw, 72px);
  border-top: 1px solid var(--border);
}
.games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.game-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px 24px;
}
.game-card::before {               /* gradient top edge */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--brand-grad);
}
.game-card__icon {
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 0 16px;
  filter: drop-shadow(0 1px 3px rgba(20, 40, 60, 0.22));   /* follows the rounded art */
}
.game-card h3 { margin: 0 0 8px; font-size: 1.2rem; letter-spacing: -0.01em; }
.game-card p { margin: 0 0 16px; color: var(--ink-soft); font-size: 0.975rem; }
.game-card__link { font-weight: 700; }
.game-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ------------------------------- Contact ------------------------------- */
.contact {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: clamp(40px, 7vw, 72px);
  padding-bottom: clamp(40px, 7vw, 72px);
  border-top: 1px solid var(--border);
}
.contact p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }

/* ------------------------------- Footer -------------------------------- */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }

/* ----------------------------- Responsive ------------------------------ */
@media (max-width: 640px) {
  .about__grid { grid-template-columns: 1fr; }
  .site-nav { gap: 18px; }
  .brand__logo { height: 88px; }
}
