:root {
  color-scheme: dark;
  --background: #010403;
  --panel: #0a140e;
  --line: #34503e;
  --ink: #e2e8de;
  --muted: #a4b7a9;
  --accent: #91d5a9;
}

* { box-sizing: border-box; }
.article-page { scrollbar-width: none; }
.article-page::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #010704bf, var(--background) 29rem),
    url("/bg-mobile.jpg") center top / 100% auto no-repeat, var(--background);
  color: var(--ink);
  font: 16px/1.65 "IBM Plex Mono", monospace;
}
a { color: var(--accent); text-underline-offset: .24em; }
a:hover { color: #d3ffe1; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 2 * clamp(16px, 6vw, 72px))); margin-inline: auto; }
.site-header { background: #051009ed; border-bottom: 1px solid var(--line); }
.site-header .wrap, .articles-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 24px;
}
.brand, h1, h2 { font-family: "Unbounded", sans-serif; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .28em;
  color: #c4cdbd;
  text-decoration: none;
  font-size: clamp(15px, 2.3vw, 24px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .24em;
  text-shadow: 0 0 20px #7fc7962e;
  transform: translateY(3px);
}
.brand img {
  width: auto;
  height: 1.9em;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 7px #8fd63f50);
}
.brand span { transform: translateY(-3px); }
.nav-link, .card-link, .article-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
}
.site-header .wrap { min-height: 65px; padding-block: 4px; column-gap: clamp(8px, 2.5vw, 24px); }
main.wrap { padding-block: clamp(34px, 7vw, 88px); }
.back-link { margin: 0 0 20px; }
h1, h2 { line-height: 1.35; }
h1 { margin: 0; font-size: clamp(23px, 4.7vw, 48px); text-wrap: balance; }
h2 { font-size: clamp(17px, 2.5vw, 24px); }
.listing-title { margin-bottom: clamp(22px, 4vw, 40px); text-transform: uppercase; letter-spacing: .1em; }
.cut-panel {
  position: relative;
  isolation: isolate;
  background: var(--line);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.cut-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  background: linear-gradient(145deg, #101d15, var(--panel) 52%, #050a07);
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 0 100%);
}
.article-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .42fr);
  gap: clamp(16px, 4vw, 44px);
  align-items: center;
  padding: clamp(19px, 4vw, 42px);
}
.article-card h2 { margin: 0; }
.article-card p, .article-lead { color: var(--muted); }
.article-card img { width: 100%; height: auto; border: 1px solid #639170; }
.article-content { padding: clamp(18px, 5vw, 56px); }
.article-content h1 { font-size: clamp(24px, 4.2vw, 39px); }
.article-lead { margin: 18px 0 26px; }
.article-content section { margin-top: 32px; }
.article-content h2 { margin: 0 0 10px; }
.article-content section p { margin: 0; }
.article-content section p + p { margin-top: 12px; }
.examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.examples figure { margin: 0; }
.examples img { width: 100%; height: auto; }
.examples figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; }
.article-button {
  justify-content: center;
  padding: 8px 15px;
  border: 1px solid var(--line);
  background: #0c1911;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.article-button:hover { border-color: var(--accent); background: #12241a; }
.home-link {
  position: relative;
  min-height: 34px;
  padding: 4px clamp(12px, 2vw, 22px);
  border-color: #355843;
  background: rgba(3, 8, 5, .6);
  color: #c4cdbd;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(9px, 1vw, 11px);
  letter-spacing: .24em;
  text-transform: uppercase;
}
.home-link:hover, .home-link:focus-visible {
  border-color: var(--accent);
  background: rgba(3, 8, 5, .6);
  color: #e4efe2;
  box-shadow: 0 0 20px #7fc79633;
}
.order-link {
  border-color: var(--accent);
  background: var(--accent);
  color: #07140c;
}
.order-link:hover { background: #b7edc9; color: #07140c; }
.article-content .order-link { margin-top: 28px; }
.articles-footer { padding-block: 12px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }

@media (pointer: coarse) {
  .home-link::after { content: ""; position: absolute; inset: -6px 0; }
}

@media (max-width: 640px) {
  .article-card { grid-template-columns: minmax(0, 1fr); }
  .article-card img { width: min(100%, 260px); }
  .article-content { font-size: 14px; }
}

@media (orientation: landscape) and (max-height: 480px) {
  .site-header .wrap { min-height: 54px; }
  main.wrap { padding-block: 20px 34px; }
  .back-link { margin-bottom: 8px; }
}
