:root {
  color-scheme: dark;
  --ink: #111111;
  --panel: #171716;
  --panel-hover: #201d1b;
  --line: #33312f;
  --paper: #f7f3ed;
  --muted: #b9b3ad;
  --accent: #ff6853;
  --accent-hover: #ff836f;
  --heading-font: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body-font: Inter, system-ui, sans-serif;
}

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

html { scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  min-width: 280px;
  background: var(--ink);
  color: var(--paper);
  font: 400 1rem/1.55 var(--body-font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

:where(a, summary, button):focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 4px;
}

::selection { background: var(--accent); color: var(--ink); }

.shell {
  width: min(100% - 6rem, 1240px);
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 5;
  top: 1rem;
  inset-inline-start: 1rem;
  padding: .65rem .9rem;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}

.skip:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 4;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.25rem);
  min-height: 72px;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .65rem;
  font-family: var(--heading-font);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: .015em;
  line-height: 1;
}

.brand img { width: 32px; height: 32px; flex: none; border-radius: 4px; }

.main-nav, .header-actions {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 2vw, 1.8rem);
}

.header-actions { justify-content: flex-end; gap: .7rem; }

.main-nav a, .top-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.25;
}

.main-nav a:hover, .top-link:hover { color: var(--paper); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .7rem;
  min-height: 50px;
  padding: .76rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: .875rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  transition: background-color .18s, border-color .18s, color .18s;
}

.button-primary { background: var(--accent); color: #1a110f; }
.button-primary:hover { background: var(--accent-hover); }
.button-outline { border-color: #514b46; color: var(--paper); }
.button-outline:hover { border-color: var(--accent); background: var(--panel-hover); }
.header-cta { min-height: 44px; padding-inline: .75rem; }
.external-arrow { flex: none; font-size: 1.1em; }

.language-menu, .category-menu { position: relative; }

.language-menu summary, .category-menu summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--paper);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.25;
}

.language-menu summary:hover, .category-menu summary:hover,
.language-menu[open] summary, .category-menu[open] summary {
  border-color: var(--accent);
  background: var(--panel-hover);
}

.language-menu summary .icon-globe { width: 17px; height: 17px; flex: none; }
.chevron { width: 14px; height: 14px; flex: none; transition: transform .18s; }
details[open] > summary .chevron { transform: rotate(180deg); }

.language-options, .category-options {
  position: absolute;
  z-index: 3;
  inset-block-start: calc(100% + .5rem);
  inset-inline-end: 0;
  background: #1e1c1b;
  border: 1px solid #514943;
  border-radius: 8px;
  box-shadow: 0 18px 40px #0009;
}

.language-options { min-width: 10.5rem; padding: .3rem; }

.language-options a, .category-options a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  min-height: 44px;
  padding: .45rem .65rem;
  border-radius: 4px;
  font-size: .875rem;
  font-weight: 550;
  line-height: 1.3;
}

.language-options a[aria-current], .language-options a:hover, .category-options a:hover {
  background: #2f2724;
  color: #ff8c79;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
  gap: clamp(1.75rem, 4.3vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 4.3vw, 4rem);
}

.hero-copy { min-width: 0; padding-block: .8rem; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .105em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow::before { content: ''; flex: none; width: 24px; height: 2px; background: var(--accent); }

.hero h1 {
  font-family: var(--heading-font);
  font-size: clamp(4.1rem, 8vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -.034em;
  line-height: .83;
}

.hero h1 span { display: block; }
.hero h1 .accent { color: var(--accent); }

.hero-description {
  max-width: 44ch;
  margin-top: 1.65rem;
  color: var(--muted);
  font-size: clamp(.96rem, 1.3vw, 1.12rem);
  line-height: 1.65;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }

.hero-photo {
  position: relative;
  aspect-ratio: 1.28;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #292321;
}

.hero-photo img, .hero-photo picture { width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 52% 48%; }

.hero-photo figcaption {
  position: absolute;
  inset-inline-start: .85rem;
  inset-block-end: .85rem;
  max-width: calc(100% - 1.7rem);
  padding: .45rem .65rem;
  border: 1px solid #fff4;
  border-radius: 4px;
  background: #171311e8;
  color: var(--paper);
  font-size: .75rem;
  line-height: 1.3;
}

.section {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.65rem, 5vw, 4.5rem);
}

.categories { background: #151413; }
.guide { background: #1b1816; }

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

.section h2 {
  max-width: 28ch;
  font: 800 clamp(2.65rem, 5.3vw, 4.65rem)/.95 var(--heading-font);
  letter-spacing: -.019em;
  text-wrap: balance;
}

.section-head p { max-width: 60ch; margin-top: .65rem; color: var(--muted); }
.category-menu { flex: none; }

.category-menu summary {
  min-height: 48px;
  gap: .85rem;
  padding-inline: 1rem;
  border-color: #514b46;
  background: var(--panel);
}

.category-options {
  width: min(41rem, calc(100vw - 6rem));
  max-height: min(58vh, 32rem);
  overflow-y: auto;
  padding: .95rem;
}

.category-menu[open] .category-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem 1rem;
}

.category-options h3 {
  padding: .35rem .65rem;
  color: #ff8c79;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.category-options ul { list-style: none; margin: 0; padding: 0; }
.category-options li { border-top: 1px solid #36302d; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
}

.category-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: .52rem;
  min-width: 0;
  padding: 1.3rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  transition: border-color .18s, background-color .18s;
}

.category-card:hover, .category-card:focus-visible {
  border-color: var(--accent);
  background: var(--panel-hover);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: .15rem;
  border: 1px solid #51352e;
  border-radius: 5px;
  background: #2a211e;
  color: var(--accent);
}

.category-icon svg { width: 23px; height: 23px; }

.card-arrow {
  position: absolute;
  inset-inline-end: 1.05rem;
  inset-block-start: 1.13rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  transition: color .18s, transform .18s;
}

.card-arrow svg { width: 17px; height: 17px; }
.category-card:hover .card-arrow { color: var(--accent); transform: translate(2px, -2px); }

.category-card h3, .steps h3 {
  font: 750 clamp(1.52rem, 2.5vw, 2.1rem)/1.03 var(--heading-font);
}

.category-card p, .steps p { color: var(--muted); font-size: .9rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li { padding-top: 1rem; border-top: 1px solid #4f403a; }

.step-number {
  display: inline-block;
  margin-bottom: .7rem;
  color: var(--accent);
  font: 750 1.55rem/1 var(--heading-font);
}

.steps p { margin-top: .55rem; line-height: 1.65; }

.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, .73fr) minmax(0, 1.27fr);
  gap: 1.5rem 4rem;
}

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 54px;
  padding: .8rem 0;
  font-size: .98rem;
  font-weight: 700;
}

.faq-list summary:hover { color: var(--accent); }

.faq-list summary:not(:has(.chevron))::after {
  content: '+';
  flex: none;
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-list details[open] summary:not(:has(.chevron))::after { content: '−'; }
.faq-list p { max-width: 65ch; padding: 0 1.75rem 1rem 0; color: var(--muted); font-size: .93rem; }

.site-footer { border-top: 1px solid var(--line); background: #0e0e0e; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 1.8rem;
}

.footer-inner p { margin-top: .45rem; color: var(--muted); font-size: .825rem; }
.top-link { flex: none; gap: .5rem; }

@media (max-width: 1020px) {
  .shell { width: min(100% - 3.5rem, 1240px); }
  .hero h1 { font-size: clamp(3.85rem, 8.5vw, 6rem); }
  .category-options { width: min(41rem, calc(100vw - 3.5rem)); }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .main-nav { justify-content: center; }
}

@media (max-width: 780px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero { gap: 1.4rem; }
  .hero h1 { font-size: clamp(3.45rem, 8.2vw, 4.85rem); }
  .hero-photo { aspect-ratio: .96; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-inner { gap: 1.35rem; }
}

@media (max-width: 620px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { min-height: 64px; gap: .6rem; }
  .header-cta { display: none; }
  .hero { grid-template-columns: 1fr; gap: 1.45rem; padding-block: 2.25rem 1.65rem; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(3.5rem, 13.7vw, 6rem); }
  .hero-description, .hero-actions { margin-top: 1.15rem; }
  .hero-photo { aspect-ratio: 1.42; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 1.25rem; }
  .category-menu { width: 100%; }
  .category-menu summary { justify-content: space-between; }
  .category-options { inset-inline: 0; width: auto; }
  .category-card { padding: 1rem .8rem; }
  .card-arrow { inset-inline-end: .72rem; inset-block-start: .9rem; }
  .steps, .faq-inner { grid-template-columns: 1fr; }
  .steps { gap: 1.2rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .65rem; }
}

@media (max-width: 350px) {
  .hero h1 { font-size: clamp(3rem, 15.5vw, 3.5rem); }
  .category-menu[open] .category-options { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
