@font-face {
  font-family: Manrope;
  src: url('assets/manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --base: #1a1513;
  --surface: #251d19;
  --line: #584436;
  --text: #f8efe5;
  --muted: #d7c5b4;
  --gold: #f5c88a;
  --width: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font: 500 1rem/1.75 Manrope, 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 4.65rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.65rem); }
p + p { margin-top: .85rem; }
a { color: var(--gold); text-underline-offset: .2em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
address { font-style: normal; }
.wrap { width: min(var(--width), calc(100% - 3rem)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 3;
  padding: .5rem 1rem;
  background: var(--base);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.site-header { background: #181310; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  min-height: 4.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.35;
}
.brand img { flex: 0 0 40px; border-radius: .55rem; }
.site-nav, .footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: clamp(.85rem, 3vw, 1.85rem);
  font-size: .9rem;
}
.site-nav a, .footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.site-nav a:not([aria-current]) { color: var(--muted); }
.site-nav a:hover, .footer-nav a:hover { color: var(--text); text-decoration: underline; }

.support-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 45%; z-index: -2; }
.support-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #160f0df5 0%, #160f0de0 24%, #160f0d7d 49%, transparent 68%),
              linear-gradient(0deg, #160f0d99, transparent 38%);
}
.hero-copy {
  min-height: clamp(24rem, 40vw, 31.25rem);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding-block: 3rem;
}
.hero-brand { color: var(--gold); font-weight: 800; margin-bottom: .65rem; }
.hero-copy h1 + p { color: var(--muted); max-width: 41ch; margin-top: 1rem; }
.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 1.5rem;
  padding: .55rem 1.1rem;
  background: var(--gold);
  color: #22160e;
  border-radius: .25rem;
  text-decoration: none;
  font-weight: 800;
}
.primary-link:hover { background: var(--text); color: #22160e; }

.support-content { padding-block: clamp(2.75rem, 7vw, 5.5rem); }
.help-grid { display: grid; grid-template-columns: minmax(13rem, 1fr) minmax(0, 2fr); gap: 1.25rem 4rem; }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  gap: 1rem;
  padding-block: .9rem;
  font-weight: 800;
  line-height: 1.45;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: ''; flex: 0 0 .46rem; height: .46rem; border: solid var(--gold); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin-right: .3rem; }
.questions details[open] summary::after { transform: rotate(225deg); }
.questions details p { color: var(--muted); padding: 0 1.5rem 1rem 0; max-width: 68ch; }

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 1.6rem 3.25rem;
  margin-top: clamp(2.75rem, 7vw, 5.5rem);
  padding: clamp(1.2rem, 5vw, 3.25rem);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: var(--surface);
}
.contact-panel h2 + p, .contact-panel h3 + p { margin-top: .75rem; color: var(--muted); }
.contact-list > div { display: grid; grid-template-columns: minmax(5.5rem, .35fr) 1fr; gap: .25rem 1rem; }
.contact-list > div + div { margin-top: .75rem; }
.contact-list dt { color: var(--muted); font-weight: 700; }
.language-section { border-top: 1px solid var(--line); }
.localized-heading { margin-bottom: 2.1rem; }
.localized-heading h2 + p { margin-top: .75rem; color: var(--muted); }
.localized-links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }

.policy-section {
  width: min(73ch, calc(100% - 3rem));
  margin-inline: auto;
  padding-block: clamp(2.75rem, 7vw, 5rem);
}
.policy-section + .policy-section { border-top: 1px solid var(--line); }
.policy-section h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.policy-section h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.policy-section > h2:first-child, .policy-section > header > h2:first-child { font-size: clamp(2rem, 4vw, 3rem); }
.policy-section h3 { font-size: 1.25rem; }
.policy-section h1 + *, .policy-section h2 + *, .policy-section h3 + * { margin-top: .8rem; }
.policy-section section, .policy-section article { margin-top: 2rem; }
.policy-section li + li { margin-top: .55rem; }
.policy-section li::marker { color: var(--gold); }
.policy-section ul, .policy-section ol { padding-inline-start: 1.4rem; }

.site-footer { border-top: 1px solid var(--line); background: #181310; }
.footer-inner { padding-block: .6rem; font-size: .9rem; color: var(--muted); }
.footer-inner p span { display: inline-block; margin-inline-start: .45rem; }

@media (max-width: 720px) {
  .wrap, .policy-section { width: calc(100% - 2rem); }
  .header-inner, .footer-inner { align-items: flex-start; flex-direction: column; gap: .25rem; padding-block: .75rem .55rem; }
  .footer-inner { padding-block: 1rem; }
  .brand img { width: 36px; height: 36px; flex-basis: 36px; }
  .hero-image { position: relative; width: 100%; height: auto; aspect-ratio: 2.16; object-position: center; }
  .support-hero::after { display: none; }
  .hero-copy { min-height: 0; padding-block: 1.75rem 2.25rem; }
  .help-grid, .contact-panel { grid-template-columns: 1fr; }
  .contact-list > div { grid-template-columns: minmax(4rem, .35fr) 1fr; }
}
