/*
 * hamzaworks.com
 * One palette: cool paper, deep teal ink, one signal yellow. One radius (4px). One typeface.
 * The striped "tape" marks things still being built.
 */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #eef1f0;
  --surface: #e2e7e6;
  --ink: #0f2230;
  --ink-soft: #40535f;
  --line: #0f223024;
  --signal: #ffc531;
  --signal-ink: #1b1503;
  --radius: 4px;
  --wrap: 1400px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1a22;
    --surface: #13262f;
    --ink: #edf1ee;
    --ink-soft: #a9bcc0;
    --line: #edf1ee24;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.5 "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.mark { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.mark span { background: var(--signal); color: var(--signal-ink); padding: 0 7px; margin-left: 3px; border-radius: var(--radius); }
.top nav a { font-weight: 600; text-decoration: none; padding: 8px 2px; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.top nav a:hover { border-color: var(--signal); }

/* ---------- front page ---------- */
.front { display: grid; grid-template-rows: auto 1fr; gap: 28px; padding-top: 22px; padding-bottom: 28px; }
.front h1 { margin: 0; max-width: 16ch; font-weight: 800; font-size: clamp(40px, 6.2vw, 92px); line-height: 0.98; letter-spacing: -0.035em; }
.front .lead { margin: 14px 0 0; max-width: 46ch; font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-soft); }

.doors { display: grid; grid-template-columns: 1.65fr 1fr; gap: 18px; min-height: 380px; }
.door { position: relative; display: grid; align-content: end; overflow: hidden; min-height: 300px; padding: 26px; border-radius: var(--radius); text-decoration: none; isolation: isolate; }
.door h2 { margin: 0; font-weight: 800; font-size: clamp(34px, 4.4vw, 66px); line-height: 1; letter-spacing: -0.03em; }
.door p { margin: 8px 0 0; max-width: 34ch; font-size: 17px; }

/* the open door: the game itself is the picture */
.door-games { color: #f3f6f4; background: #0f2230; }
.door-games img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transition: transform 0.9s var(--ease); }
.door-games::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0f223000 30%, #0b1a24e6 88%); }
.door-games:hover img, .door-games:focus-visible img { transform: scale(1.045); }
.go { display: inline-flex; align-items: center; gap: 10px; width: max-content; margin-top: 18px; padding: 13px 18px; background: var(--signal); color: var(--signal-ink); font-weight: 800; font-size: 17px; border-radius: var(--radius); transition: transform 0.25s var(--ease); }
.go i { font-style: normal; transition: transform 0.25s var(--ease); }
a:hover > .go i, a:focus-visible > .go i, a.go:hover i { transform: translateX(5px); }
a:active > .go, a.go:active { transform: scale(0.98); }

/* the closed door: still being built */
.door-closed { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.door-closed p { color: var(--ink-soft); }
.tape { position: absolute; left: -10%; right: -10%; top: 34px; height: 30px; transform: rotate(-4deg); background: repeating-linear-gradient(135deg, var(--signal) 0 22px, #0f2230 22px 44px); background-size: 62.23px 100%; }
.soon { display: inline-block; width: max-content; margin-bottom: 12px; padding: 5px 10px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; border-radius: var(--radius); }

/* ---------- games page ---------- */
.games { padding-top: 22px; padding-bottom: 56px; }
.games h1 { margin: 0 0 22px; font-weight: 800; font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -0.035em; }
.feature { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.feature .shot { display: block; overflow: hidden; background: #0f2230; }
.feature img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; transition: transform 0.9s var(--ease); }
.feature .shot:hover img { transform: scale(1.03); }
.feature .about { display: grid; align-content: center; gap: 14px; padding: 30px; }
.feature h2 { margin: 0; font-weight: 800; font-size: clamp(30px, 3.4vw, 50px); line-height: 1; letter-spacing: -0.03em; }
.feature p { margin: 0; max-width: 40ch; color: var(--ink-soft); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.facts li { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: 14px; }
.next { position: relative; overflow: hidden; margin-top: 18px; padding: 62px 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.next .tape { top: 16px; height: 22px; transform: rotate(-1.2deg); }
.next h2 { margin: 0; font-weight: 800; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.02em; }
.next p { margin: 6px 0 0; color: var(--ink-soft); }

/* ---------- foot ---------- */
.foot { padding-top: 18px; padding-bottom: 22px; font-size: 14px; color: var(--ink-soft); }

/* ---------- arrival ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }
  .tape { animation: tape 2.4s linear infinite; }
  @keyframes tape { to { background-position: 62.23px 0; } }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- small screens: one column ---------- */
@media (max-width: 767px) {
  .wrap { padding: 0 16px; }
  .top { height: 60px; }
  .front { gap: 20px; padding-top: 10px; }
  .doors { grid-template-columns: 1fr; min-height: 0; }
  .door { min-height: 250px; padding: 20px; }
  .door-games { min-height: 320px; }
  .feature { grid-template-columns: 1fr; }
  .feature img { min-height: 0; aspect-ratio: 16 / 9; }
  .feature .about { padding: 20px; }
  .next { padding: 54px 20px 22px; }
}

/* ---------- refinements after the first look ---------- */
.door-games::before { background: linear-gradient(180deg, #0b1a2400 18%, #0b1a24b8 58%, #0b1a24f2 92%); }
.door-games h2, .door-games p { text-shadow: 0 2px 18px #0b1a24cc; }
a.go { text-decoration: none; }
/* short screens (laptops): the headline gives way so both doors and the button stay in view */
.front h1 { font-size: clamp(40px, min(6.2vw, 10.5vh), 92px); }
@media (min-width: 768px) and (max-height: 760px) {
  .front { gap: 18px; padding-top: 6px; padding-bottom: 14px; }
  .doors { min-height: 300px; }
  .door { min-height: 260px; padding: 20px; }
  .door h2 { font-size: clamp(30px, 6.5vh, 54px); }
  .go { margin-top: 12px; padding: 11px 16px; }
  .foot { padding-top: 8px; padding-bottom: 12px; }
}
@media (max-width: 767px) {
  .front { padding-bottom: 20px; }
  .foot { padding-top: 6px; }
}
