:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #bfbfbf;
  --footer-bg: #404040;
  --line: #ffffff;
  --accent: #e6c7eb;
  --accent-hover: #fe602f;
  --header-h: 212px;
  --content: 980px;
  --header-inner: 1240px;
  --font-display: "Fahkwang", sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; border: 0; display: block; }
a { color: inherit; }
button { font-family: inherit; }
.skip-link {
  position: absolute; left: 16px; top: -40px; z-index: 1000;
  background: #fff; color: #116dff; padding: 8px 14px; border-radius: 24px;
  font-size: 14px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

.site-header {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 28px 24px 36px;
}
.header-inner {
  width: 100%;
  max-width: var(--header-inner);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.brand {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  color: var(--text);
  text-decoration: none;
  max-width: 22ch;
}
.header-left { display: flex; justify-content: center; }
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.lang-switch { position: relative; justify-self: center; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 153px;
  height: 59px;
  padding: 0 12px 0 14px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 16px;
  line-height: 1.4;
  font-family: var(--font-body);
}
.lang-btn .chevron { width: 10px; height: 6px; fill: #fff; flex: 0 0 auto; }
.lang-btn .lang-code { flex: 1; text-align: left; letter-spacing: 0.02em; }
.lang-btn .flag, .lang-menu .flag {
  width: 48px; height: 30px; object-fit: cover; flex: 0 0 auto;
}
.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #000;
  border: 1px solid rgba(255,255,255,0.6);
  border-top: 0;
  z-index: 50;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: #fff;
  font-size: 16px;
}
.lang-menu a:hover,
.lang-menu a[aria-current="true"] { background: rgba(128,128,128,0.35); }

.btn-buddy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  background: #000;
  color: #fff !important;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  font-family: var(--font-body);
  text-align: center;
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
  white-space: nowrap;
}
.btn-buddy:hover,
.btn-buddy:focus-visible {
  background: var(--accent-hover);
  border-color: #fff;
  color: #fff !important;
  outline: none;
}

.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}
.search-btn:hover,
.search-btn:focus-visible { color: var(--accent); outline: none; }
.search-btn svg { width: 22px; height: 22px; fill: currentColor; }

.site-main { flex: 1 0 auto; }
.wrap {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 28px 0 260px;
}
.hero-copy h1 {
  margin: 0 0 58px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.25;
}
.hero-copy .intro,
.hero-copy .helps {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}
.hero-copy .bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.4;
}
.hero-copy .warning {
  margin: 44px 0 0;
  font-size: 14px;
  line-height: 1.3;
}
.hero-art { display: flex; justify-content: flex-end; }
.hero-art img {
  width: 460px;
  height: 460px;
  max-width: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.support {
  text-align: center;
  padding: 40px 20px 80px;
  max-width: 980px;
  margin: 0 auto;
}
.support h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.2;
}
.support p {
  margin: 0 auto 16px;
  max-width: 778px;
  font-size: 14px;
  line-height: 1.3;
}

.share {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.share a, .share button {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}
.share a:hover, .share button:hover { transform: scale(1.06); }
.share svg { width: 18px; height: 18px; display: block; }
.share .fb svg { fill: #1877f2; }
.share .xi svg { fill: #000; }
.share .wa svg { fill: #25d366; }
.share .li svg { fill: #0a66c2; }
.share .pin svg { fill: #e60023; }
.share .copy svg { fill: #222; }

.page-about { padding: 44px 20px 80px; text-align: center; }
.page-about h1 {
  margin: 0 auto 64px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.1;
  max-width: 16ch;
}
.page-about .prose { max-width: 710px; margin: 0 auto; text-align: left; }
.page-about .prose p { margin: 0 0 16px; font-size: 16px; line-height: 1.4; }

.page-terms { padding: 80px 20px 80px; }
.page-terms .prose { max-width: 420px; margin: 0 auto; }
.page-terms h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  text-transform: uppercase;
}
.page-terms .prose p { margin: 0 0 16px; font-size: 16px; line-height: 1.4; }

.page-legal { padding: 0 20px 80px; }
.page-legal .prose { max-width: 560px; margin: 0 auto; }
.page-legal h1 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
}
.page-legal .prose p { margin: 0 0 16px; font-size: 16px; line-height: 1.4; }
.page-legal .prose a { text-decoration: underline; }

.page-search { padding: 40px 20px 80px; }
.page-search h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  margin: 0 0 24px;
  text-align: center;
}
.page-search form {
  max-width: 560px;
  margin: 0 auto 32px;
  display: flex;
  gap: 8px;
}
.page-search input[type="search"] {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.6);
  background: #000;
  color: #fff;
  font-size: 16px;
  font-family: var(--font-body);
  border-radius: 0;
}
.page-search button[type="submit"] {
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  background: #000;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}
.page-search button[type="submit"]:hover { background: var(--accent-hover); border-color: #fff; }
.search-results { max-width: 710px; margin: 0 auto; }
.search-results a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid #404040;
  text-decoration: none;
}
.search-results a:hover .res-title { color: var(--accent); }
.res-title { font-family: var(--font-display); font-size: 24px; margin: 0 0 6px; }
.res-snip { font-size: 14px; color: #ddd; margin: 0; }
.search-empty { text-align: center; color: var(--muted); }

.site-footer { margin-top: auto; }
.footer-brand {
  padding: 20px 0 16px 63px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
}
.footer-brand a { text-decoration: none; color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 25% 25% 50%;
  background: var(--footer-bg);
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
}
.footer-grid > * {
  border-right: 1px solid #fff;
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 12px 20px;
}
.footer-grid > *:last-child { border-right: 0; }
.footer-contact a { color: #fff; text-decoration: none; font-size: 16px; }
.footer-contact a:hover { color: var(--accent); }
.footer-location { justify-content: center; font-size: 16px; }
.footer-links { flex-wrap: wrap; font-size: 16px; line-height: 1.4; }
.footer-links a { color: #fff; text-decoration: underline; }
.footer-links a:hover { color: var(--accent); }
.footer-links .sep { margin: 0 8px; opacity: 0.9; }

.footer-copy-row {
  display: grid;
  grid-template-columns: 25% 75%;
  border-bottom: 1px solid #fff;
}
.footer-copy-row .spacer { border-right: 1px solid #fff; min-height: 48px; }
.footer-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
  padding: 12px 16px;
  background: #000;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 25% 25% 50%;
  background: var(--footer-bg);
  border-bottom: 1px solid #fff;
  min-height: 36px;
}
.footer-bottom span { border-right: 1px solid #fff; }
.footer-bottom span:last-child { border-right: 0; }

.cookie-dialog {
  border: 1px solid #fff;
  background: #111;
  color: #fff;
  max-width: 480px;
  padding: 24px;
}
.cookie-dialog::backdrop { background: rgba(0,0,0,0.6); }
.cookie-dialog h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 12px;
}
.cookie-dialog p { margin: 0 0 16px; font-size: 15px; line-height: 1.4; }
.cookie-dialog button {
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  background: #000;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}
.cookie-dialog button:hover { background: var(--accent-hover); border-color: #fff; }

@media (max-width: 980px) {
  .header-inner { max-width: 100%; }
  .brand { font-size: 20px; }
  .btn-buddy { width: auto; min-width: 0; padding: 0 14px; font-size: 14px; }
  .hero { gap: 32px; }
  .hero-art img { width: 100%; height: auto; aspect-ratio: 1; }
  .page-about h1 { font-size: 48px; }
  .support h2 { font-size: 32px; }
  .footer-brand { padding-left: 24px; }
}
@media (max-width: 980px) {
  .wrap { padding: 0 20px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 8px 0 64px; }
  .site-header { padding: 16px 12px 24px; min-height: 0; }
  .header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 14px;
  }
  .header-left, .header-right { width: 100%; justify-content: center; }
  .brand { max-width: none; font-size: 22px; }
  .hero { grid-template-columns: 1fr; padding: 8px 0 48px; }
  .hero-copy h1 { margin-bottom: 24px; }
  .hero-art { justify-content: center; }
  .hero-art img { width: 280px; height: 280px; }
  .page-about h1 { font-size: 36px; margin-bottom: 32px; }
  .support { padding: 16px 16px 56px; }
  .support h2 { font-size: 28px; }
  .footer-grid,
  .footer-copy-row,
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-grid > *,
  .footer-copy-row .spacer,
  .footer-bottom span {
    border-right: 0;
    border-bottom: 1px solid #fff;
    justify-content: center;
    text-align: center;
  }
  .footer-copy-row .spacer { display: none; }
  .footer-brand { text-align: center; padding-left: 0; }
  .footer-links { justify-content: center; }
}

.btn-kofi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  background: var(--accent);
  color: #000 !important;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  font-family: var(--font-body);
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
  white-space: nowrap;
}
.btn-kofi:hover,
.btn-kofi:focus-visible {
  background: var(--accent-hover);
  border-color: #fff;
  color: #fff !important;
  outline: none;
}
.btn-kofi .kofi-cup {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}
.support .support-cta { margin: 4px 0 28px; }
.support p { margin: 0 auto 16px; }

@media (max-width: 760px) {
  .btn-kofi { min-width: 0; width: auto; padding: 0 18px; white-space: normal; height: auto; min-height: 48px; padding-top: 10px; padding-bottom: 10px; }
}
