:root {
  color-scheme: dark;
  --bg: #090b0f;
  --panel: #10141b;
  --panel-soft: #151b24;
  --text: #eef3ef;
  --muted: #a8b3ad;
  --faint: #6f7b74;
  --line: #263128;
  --accent: #8be28b;
  --accent-strong: #b9f7a1;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #0b0f12 0%, var(--bg) 46%, #07090c 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 9, 0.9) 0%, rgba(5, 7, 9, 0.66) 36%, rgba(5, 7, 9, 0.22) 72%, rgba(5, 7, 9, 0.48) 100%),
    linear-gradient(180deg, rgba(5, 7, 9, 0.08) 0%, rgba(5, 7, 9, 0.03) 42%, rgba(9, 11, 15, 0.86) 100%),
    url("assets/cooking-hero-pan.webp") center top / cover no-repeat;
  content: "";
}

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

main {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 28px;
  left: clamp(48px, 6vw, 112px);
  z-index: 3;
  display: flex;
  align-items: center;
  padding-top: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: clamp(112px, 9vw, 204px);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: 92vh;
  padding: 72px 0 56px;
}

.hero__content {
  max-width: 620px;
  padding: 28px 0;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 20px;
  padding: 6px 12px;
  border: 1px solid rgba(139, 226, 139, 0.4);
  border-radius: 999px;
  background: rgba(139, 226, 139, 0.08);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: 0.92;
}

.lede {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.6;
}

.hero__mockup {
  margin: 0;
}

.mockup-trigger {
  display: block;
  border-radius: 8px;
  cursor: zoom-in;
}

.mockup-trigger:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}

.mockup-trigger img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(139, 226, 139, 0.2);
  border-radius: 8px;
  background: rgba(16, 20, 27, 0.82);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.mockup-trigger:hover img {
  border-color: rgba(139, 226, 139, 0.55);
  box-shadow: var(--shadow), 0 0 0 1px rgba(139, 226, 139, 0.14);
  transform: translateY(-3px);
}

figcaption {
  margin-top: 14px;
  color: var(--faint);
  font-size: 0.92rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(2, 4, 6, 0.88);
  backdrop-filter: blur(12px);
}

.lightbox:target {
  display: flex;
}

.lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 21;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(9, 11, 15, 0.82);
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  border-color: rgba(139, 226, 139, 0.62);
  color: var(--accent-strong);
}

.lightbox__image-link {
  display: block;
  max-width: min(94vw, 1440px);
  max-height: 88vh;
  cursor: zoom-out;
}

.lightbox__image-link img {
  width: 100%;
  height: auto;
  max-height: 88vh;
  border: 1px solid rgba(139, 226, 139, 0.26);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.72);
}

.article {
  max-width: 860px;
  margin: 0 auto;
  padding: 42px clamp(22px, 4vw, 58px) 72px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(5, 7, 9, 0.3);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(6px);
  color: #dce5df;
  font-size: clamp(1rem, 1.55vw, 1.12rem);
  line-height: 1.5;
}

.article p,
.article ul,
.article blockquote {
  margin-bottom: 1em;
}

.article h2 {
  margin: 0.8em 0 0.55em;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.08;
}

.article h2:first-child {
  margin-top: 0;
}

.article ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 18px;
  padding: 0;
  list-style: none;
}

.article li {
  position: relative;
  padding: 1px 0 1px 24px;
  color: var(--text);
  font-weight: 650;
}

.article li::before {
  position: absolute;
  top: 0.88em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  transform: translateY(-50%);
}

blockquote {
  margin: 0 0 0.8em;
  padding: 12px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, rgba(139, 226, 139, 0.12), rgba(139, 226, 139, 0.03));
  color: var(--text);
  font-size: 1.16em;
  font-weight: 700;
  line-height: 1.28;
}

blockquote p {
  margin: 0;
}

.quote-line {
  line-height: 1;
}

.signature {
  display: inline-block;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: #020403;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(139, 226, 139, 0.08);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 800;
  text-decoration: none;
}

.signature:hover,
.signature:focus-visible {
  color: #ffffff;
  border-color: rgba(139, 226, 139, 0.45);
}

@media (max-width: 860px) {
  .site-header {
    position: relative;
    top: auto;
    left: auto;
    padding-top: 28px;
  }

  .brand img {
    width: 136px;
  }

  main {
    width: min(100% - 28px, 680px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 28px 0 42px;
  }

  h1 {
    max-width: 10ch;
  }

  .article {
    padding-bottom: 58px;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 24px, 680px);
  }

  .hero {
    padding-top: 30px;
  }

  .brand img {
    width: 118px;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.3rem);
  }

  .article ul {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .article li {
    padding-right: 14px;
  }

  blockquote {
    padding: 12px 16px;
  }
}
