/* donlampito.com — shared styles. Dark only, game-dev HUD look. */

@font-face {
  font-family: "Chakra Petch";
  src: url("fonts/chakra-petch-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("fonts/chakra-petch-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
/* Czech and other accented letters (Rachůnek), downloaded only when a page uses them */
@font-face {
  font-family: "Chakra Petch";
  src: url("fonts/chakra-petch-latin-ext-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #07090d;
  --panel: #0e131b;
  --panel-hi: #141b26;
  --text: #e6ebf2;
  --text-muted: #8c97a8;
  --line: #1f2835;
  --line-hi: #2e3b4e;
  --accent: #ff7a1a;
  --accent-glow: rgba(255, 122, 26, 0.35);
  --cyan: #3ee0ff;
  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --cut: 14px;
  --max: 1160px;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 122, 26, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(62, 224, 255, 0.05), transparent 70%),
    linear-gradient(rgba(120, 150, 200, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 150, 200, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 40px 40px, 40px 40px;
  background-attachment: fixed;
  color: var(--text);
  font: 16.5px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #ffa25c; }

::selection { background: var(--accent); color: #07090d; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); text-transform: uppercase; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); text-transform: uppercase; letter-spacing: 0.04em; }
h3 { font-size: 1.25rem; letter-spacing: 0.02em; }

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

.muted { color: var(--text-muted); }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 20px; min-height: 64px; padding-top: 10px; padding-bottom: 10px;
}
.brand {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  color: var(--text); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.brand img { width: 30px; height: 30px; }
.brand:hover { color: var(--text); }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a {
  color: var(--text-muted); text-decoration: none; white-space: nowrap;
  font-family: var(--mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.site-nav a::before { content: "/"; color: var(--accent); margin-right: 4px; }
.site-nav a:hover { color: var(--text); }

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

.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font-family: var(--mono); font-size: 0.85rem; color: var(--cyan); letter-spacing: 0.06em;
}
.eyebrow::before { content: ">"; color: var(--accent); }
.eyebrow .cmd { color: var(--text); }
.eyebrow .flag { color: var(--text-muted); }
.cursor { display: inline-block; width: 0.6em; height: 1.1em; background: var(--cyan); vertical-align: -0.15em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hl { color: var(--accent); text-shadow: 0 0 24px var(--accent-glow); }

/* the logo is exactly as tall as the eyebrow and the heading next to it */
.hero-top { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
.hero-logo { position: relative; align-self: stretch; aspect-ratio: 720 / 606; }
.hero-logo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  /* soft edges, so the picture's own black melts into the page */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 82%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 82%, transparent);
  mask-composite: intersect;
}
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 880px; margin: 22px 0 0; }

/* HUD corner brackets */
.hud { position: relative; }
.hud::before, .hud::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
  border-color: var(--accent); border-style: solid; opacity: 0.8;
}
.hud::before { top: -14px; left: -14px; border-width: 2px 0 0 2px; }
.hud::after { bottom: -14px; right: -14px; border-width: 0 2px 2px 0; }


/* ---------- buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  font-family: var(--display); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; color: var(--text);
  background: var(--panel-hi);
  border: 1px solid var(--line-hi);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.button:hover { border-color: var(--cyan); color: var(--cyan); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #0a0c10; }
.button.primary:hover { background: #ff9440; color: #0a0c10; box-shadow: 0 0 28px var(--accent-glow); }

/* ---------- sections ---------- */

section { padding: 72px 0; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.section-head .index { font-family: var(--mono); font-size: 0.9rem; color: var(--accent); }
.section-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-hi), transparent); align-self: center; }

/* ---------- cards ---------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  color: inherit; text-decoration: none;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: transform 0.18s ease;
}
/* 1px frame drawn by a pseudo element, so it follows the cut corners */
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: var(--line-hi);
  clip-path: polygon(evenodd,
    0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 0,
    1px 1px, 1px calc(100% - var(--cut) - 0.4px), calc(var(--cut) + 0.4px) calc(100% - 1px), calc(100% - 1px) calc(100% - 1px),
    calc(100% - 1px) calc(var(--cut) + 0.4px), calc(100% - var(--cut) - 0.4px) 1px, 1px 1px);
  transition: background 0.18s;
}
a.card:hover { transform: translateY(-3px); color: inherit; }
a.card:hover::before { background: var(--accent); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, filter 0.3s; filter: saturate(0.9) brightness(0.92); }
.card-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(14, 19, 27, 0.85));
}
a.card:hover .card-media img { transform: scale(1.04); filter: saturate(1.05) brightness(1); }
.card-body { padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }
.card-body .meta { font-family: var(--mono); font-size: 0.76rem; color: var(--cyan); letter-spacing: 0.06em; text-transform: uppercase; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tag {
  font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 8px; color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-hi);
}

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--text-muted); font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ---------- small screens ---------- */

@media (max-width: 760px) {
  section { padding: 48px 0; }
  .hero { padding: 56px 0 40px; }
  .grid { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 0.74rem; }
  /* phones: the logo sits beside the eyebrow and the short first line of the heading */
  .hero-top { display: block; position: relative; }
  .hero-logo { position: absolute; top: -6px; right: -4px; height: 92px; }
  .hero .eyebrow { font-size: 0.74rem; }
  .hud::before { left: -6px; }
  .hud::after { right: -6px; }
}

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

/* ---------- contact ---------- */

.contact { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
.contact-form, .support-card { background: var(--panel); border: 1px solid var(--line); padding: 26px; }
.contact-form > p:first-child { margin: 0 0 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field span { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-hi); border-radius: 0;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.field ::placeholder { color: #5b6677; }
.botcheck { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
button.button { cursor: pointer; }
button.button:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; font-family: var(--mono); font-size: 0.85rem; color: #39d98a; }
.form-status.error { color: #ff5d5d; }
.support-card { border-top: 2px solid var(--accent); display: flex; flex-direction: column; gap: 14px; }
.support-card p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }
.support-card .small { font-size: 0.85rem; }
.button.kofi { align-self: flex-start; background: #8c1d3a; border-color: #b0284c; color: #fff; }
.button.kofi:hover { background: #a82347; border-color: #ff4f7b; color: #fff; box-shadow: 0 0 24px rgba(255, 79, 123, 0.3); }

@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- partners & friends ---------- */

.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.link-card {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 24px;
  background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--cyan);
  color: inherit; text-decoration: none; transition: border-color 0.15s, transform 0.18s;
}
.link-card:hover { color: inherit; border-color: var(--line-hi); border-left-color: var(--accent); transform: translateY(-2px); }
.link-card p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }
.link-domain { font-family: var(--mono); font-size: 0.76rem; color: var(--cyan); text-transform: lowercase; letter-spacing: 0.04em; }

@media (max-width: 760px) {
  .links { grid-template-columns: 1fr; }
}
