:root {
  --bg: #0d0e0b;
  --panel: #15160f;
  --line: #2b2c24;
  --text: #e6e0d0;
  --muted: #9b9583;
  --accent: #e8a33d;
  --link: #f0c27a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--accent); }
a:focus-visible { outline: 1px dashed var(--accent); outline-offset: 3px; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 0.04em;
}

.mark img { width: 34px; height: 34px; }

.lang { font-size: 15px; color: var(--muted); }
.lang a, .lang span { padding: 0 4px; }
.lang span { color: var(--text); }

.hero { padding: 72px 0 56px; }

.prompt { color: var(--accent); }

h1 {
  margin: 0 0 20px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.2;
  font-weight: bold;
}

.lead { margin: 0; max-width: 680px; color: var(--muted); font-size: 18px; }

section { padding: 40px 0; border-top: 1px solid var(--line); }

h2 {
  margin: 0 0 24px;
  font-size: 15px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.product h3 { margin: 0 0 4px; font-size: 20px; }
.tag { margin: 0 0 12px; font-size: 13px; color: var(--accent); }
.product p.desc { margin: 0 0 16px; color: var(--muted); font-size: 15px; flex: 1; }
.product a { font-size: 14px; overflow-wrap: anywhere; }

.about p { margin: 0; max-width: 680px; }

footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer p { margin: 0 0 6px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .products { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
}
