:root {
  --bg: #07111c;
  --bg-raised: #0c1928;
  --bg-card: #102033;
  --line: #1d3954;
  --line-strong: #2d5580;
  --text: #e8eef6;
  --muted: #93a8c2;
  --faint: #6d849f;
  --red: #e23b3b;
  --red-deep: #b42323;
  --red-soft: rgba(226, 59, 59, 0.14);
  --white: #f7f9fc;
  --font: "Outfit", "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --max: 1120px;
  --header: 4.5rem;
  --radius: 2px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--red);
}

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

a {
  color: var(--white);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--red); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--red);
  color: white;
  padding: 0.6rem 0.9rem;
  z-index: 20;
}

.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 17, 28, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--white);
}

.brand:hover { color: var(--white); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--white);
}

.brand-name { display: flex; flex-direction: column; line-height: 1; }

.brand-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.brand-word {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  padding: 0;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--white);
  position: relative;
  margin: 0 auto;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--white); }

.nav-contact {
  border: 1px solid var(--red);
  color: var(--white) !important;
  padding: 0.35rem 0.7rem;
}

.crumbs { padding-top: 1.25rem; }

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--faint);
  font-size: 0.86rem;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--line-strong);
}

.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }

.hero { padding: 4.5rem 0 2.5rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 3rem;
  align-items: end;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); margin: 0 0 1rem; }

h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin: 0 0 0.8rem; }

h3 { font-size: 1.25rem; margin: 0 0 0.45rem; }

.lede {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  max-width: 42rem;
}

.hero-aside {
  border-left: 1px solid var(--line);
  padding-left: 1.4rem;
}

.hero-aside p { margin: 0 0 0.8rem; color: var(--muted); }

.hero-aside ol { margin: 0; padding-left: 1.1rem; color: var(--text); }
.hero-aside li { margin: 0.35rem 0; }

.section { padding: 2.6rem 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-head p { margin: 0; color: var(--muted); max-width: 36rem; }

.cat-grid,
.card-grid,
.guide-grid,
.split {
  display: grid;
  gap: 1rem;
}

.cat-grid { grid-template-columns: repeat(5, 1fr); }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.guide-grid { grid-template-columns: repeat(3, 1fr); }
.split { grid-template-columns: 1.1fr 0.9fr; gap: 2rem; }
.two { grid-template-columns: 1fr 1fr; }

.cat-tile,
.card,
.guide,
.panel,
.prose,
.form {
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.cat-tile {
  display: flex;
  flex-direction: column;
  min-height: 11rem;
  padding: 1.1rem;
  text-decoration: none;
  color: inherit;
}

.cat-tile:hover { border-color: var(--red); color: inherit; }

.cat-tile strong { font-size: 1.15rem; margin-top: auto; }
.cat-tile span { color: var(--muted); font-size: 0.92rem; }

.card { display: flex; flex-direction: column; }

.card-media { display: block; text-decoration: none; }

.card-body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }

.card h3 { margin: 0; }
.card h3 a { text-decoration: none; }

.best-for { margin: 0; color: var(--white); font-weight: 500; }

.card-summary,
.guide p,
.panel p,
.prose p,
.form p { color: var(--muted); }

.card-summary { margin: 0; flex: 1; }

.card-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  color: var(--faint);
  font-size: 0.86rem;
  margin: 0.4rem 0 0;
}

.score b {
  color: var(--white);
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}

.shot {
  display: grid;
  align-content: end;
  min-height: 11.5rem;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(226, 59, 59, 0.18), transparent 42%),
    linear-gradient(180deg, #16304a, #0b1726 70%);
  border-bottom: 1px solid var(--line);
}

.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.shot span { position: relative; z-index: 1; }

.shot-kicker,
.shot-meta {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shot-title {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.shot[data-cat="portfolio"] { background: linear-gradient(160deg, rgba(226, 59, 59, 0.28), transparent 40%), linear-gradient(#1a2744, #0c1728); }
.shot[data-cat="landing-pages"] { background: linear-gradient(200deg, rgba(226, 59, 59, 0.35), transparent 45%), linear-gradient(#12283a, #09131f); }
.shot[data-cat="real-estate"] { background: linear-gradient(120deg, rgba(226, 59, 59, 0.16), transparent 50%), linear-gradient(#1c3148, #0d1a2a); }
.shot[data-cat="outdoors-travel"] { background: linear-gradient(180deg, rgba(226, 59, 59, 0.22), transparent 36%), linear-gradient(#123044, #08141f); }

.shot-frame {
  margin: 0;
}

.shot-frame figcaption {
  color: var(--faint);
  font-size: 0.85rem;
  padding: 0.45rem 0 0.2rem;
}

.gallery-block { margin-bottom: 2.4rem; }

.gallery-block header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.9rem;
}

.gallery-block header p { margin: 0; color: var(--muted); }

.btn,
button.btn {
  display: inline-block;
  background: var(--red);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn:hover { background: var(--red-deep); color: white; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

.ghost {
  color: var(--muted);
  font-size: 0.92rem;
}

.method {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--line);
}

.method ol { margin: 0; padding-left: 1.15rem; }
.method li { margin: 0.45rem 0; }

.prose,
.panel,
.form { padding: 1.3rem 1.3rem 1.4rem; }

.gap-top { margin-top: 1rem; }

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
  color: var(--white);
}

.prose h2 { margin-top: 1.6rem; }
.prose h2:first-child { margin-top: 0; }

.review-hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.5rem;
  padding: 1.5rem 0 0.5rem;
}

.score-block {
  border: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 1.1rem;
}

.score-block strong {
  display: block;
  font-size: 3rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.score-block span { color: var(--muted); font-size: 0.92rem; }

.facts { list-style: none; padding: 0; margin: 1rem 0 0; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding: 0.45rem 0; font-size: 0.95rem; }
.facts b { font-weight: 500; }

.list-plain { margin: 0; padding-left: 1.1rem; }
.list-plain li { margin: 0.4rem 0; }

.pros li::marker { color: var(--white); }
.cons li::marker { color: var(--red); }

.verdict {
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--text);
}

.note {
  background: var(--red-soft);
  border: 1px solid rgba(226, 59, 59, 0.45);
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font-size: 0.92rem;
}

.shot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.8rem; }
.shot-grid .shot { min-height: 16rem; }
.shot-grid .stack { display: grid; gap: 0.8rem; }
.shot-grid .stack .shot { min-height: 7.6rem; }

label { display: block; font-weight: 600; margin: 0.9rem 0 0.3rem; }

input,
textarea,
select {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 0.7rem 0.75rem;
  font: inherit;
  border-radius: var(--radius);
}

textarea { min-height: 9rem; resize: vertical; }

.hp {
  position: absolute;
  left: -9999px;
}

.alert {
  border: 1px solid var(--line-strong);
  padding: 0.8rem 1rem;
  margin: 0 0 1rem;
}

.alert.ok { border-color: var(--line-strong); }
.alert.bad { border-color: var(--red); }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 2rem 0 1.2rem;
  background: var(--bg-raised);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand { margin: 0 0 0.4rem; font-weight: 700; letter-spacing: 0.04em; }
.footer-note,
.footer-base { color: var(--muted); }
.footer-label { margin: 0 0 0.4rem; color: var(--red); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; }
.site-footer a { color: var(--text); text-decoration: none; }
.footer-base { margin-top: 1.4rem; font-size: 0.88rem; }

.page-intro { padding: 2.2rem 0 0.4rem; }
.page-intro h1 { max-width: 18ch; }

@media (max-width: 980px) {
  .hero-grid,
  .cat-grid,
  .card-grid,
  .guide-grid,
  .split,
  .two,
  .method,
  .review-hero,
  .shot-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .hero-aside { border-left: 0; border-top: 1px solid var(--line); padding: 1rem 0 0; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1.2rem 1rem;
    gap: 0.2rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.7rem 0; }
  .nav-contact { text-align: center; }
  .card-grid,
  .cat-grid,
  .guide-grid { grid-template-columns: 1fr; }
  .header-bar { position: relative; }
  h1 { font-size: 2.2rem; }
  .hero { padding-top: 2.4rem; }
}

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

@media print {
  body { background: white; color: black; }
  .site-header, .site-footer, .nav-toggle, .btn, .crumbs { display: none; }
  .card, .panel, .prose { border-color: #ccc; background: white; }
  a { color: black; }
}
