:root {
  --bg: #090909;
  --bg-raised: #121212;
  --bg-card: #161616;
  --ink: #f3f1ee;
  --muted: #a8a29a;
  --line: #2a2a2a;
  --red: #bb0911;
  --red-hot: #e3121c;
  --red-deep: #7a060c;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --max: 1120px;
  --header-h: 148px;
  --font-display: "Oswald", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(187, 9, 17, 0.16), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, #090909 55%, rgba(9, 9, 9, 0));
  border-bottom: 3px solid var(--red);
}

.header-inner {
  position: relative;
  width: min(1400px, calc(100% - 2rem));
  min-height: var(--header-h);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 0 0.9rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: min(210px, 100%);
  max-width: none;
  height: auto;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle > span:first-child,
.nav-toggle > span:first-child::before,
.nav-toggle > span:first-child::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  position: relative;
  transition: transform 0.2s ease;
}

.nav-toggle > span:first-child::before,
.nav-toggle > span:first-child::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle > span:first-child::before { top: -6px; }
.nav-toggle > span:first-child::after { top: 6px; }

.site-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.55rem 0.8rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--red);
}

.site-nav a.nav-donate {
  border: 1px solid var(--red);
  padding: 0.4rem 0.85rem;
}

.site-nav a.nav-donate:hover,
.site-nav a.nav-donate:focus-visible {
  background: var(--red);
  color: #fff;
  box-shadow: none;
}

main {
  flex: 1;
}

.page {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.75rem 0 4rem;
}

.page-intro {
  margin-bottom: 2.25rem;
  max-width: 42rem;
}

.kicker {
  margin: 0 0 0.45rem;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

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

.lede,
.page-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero {
  width: min(var(--max), calc(100% - 2rem));
  margin: 2rem auto 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  overflow: hidden;
}

.hero-media {
  min-height: 360px;
  background:
    linear-gradient(180deg, transparent 40%, rgba(9, 9, 9, 0.25)),
    center / cover no-repeat url("../images/IMG-20220416-WA0013.jpg");
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.hero-copy p {
  margin: 0;
  color: #d7d2cb;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover {
  background: var(--red-hot);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--red);
  color: #fff;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid.people {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.card-grid.news,
.card-grid.partners {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.35rem 1.2rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.card:hover {
  border-color: var(--red-deep);
  transform: translateY(-3px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card h3,
.card h4 {
  margin: 0.9rem 0 0.4rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0 0 1rem;
  color: var(--muted);
  flex: 1;
}

.avatar,
.thumb {
  width: 148px;
  height: 148px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--red);
  background: #222 center / cover no-repeat;
}

.thumb {
  width: 100%;
  height: 168px;
  border-radius: 10px;
  border-width: 1px;
  object-fit: contain;
  background: #0f0f0f;
}

.card .meta {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.person {
  text-align: center;
}

.person h3 {
  margin-top: 1rem;
}

.profile {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1.2fr;
  gap: 2rem;
  align-items: start;
}

.profile img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.profile-copy p {
  margin: 0 0 1rem;
  color: #d8d4ce;
}

.socials {
  display: flex;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.socials a,
.icon-btn {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}

.socials a:hover,
.icon-btn:hover {
  background: var(--red-hot);
}

.contact-wrap {
  position: relative;
  padding: 3rem 0 4rem;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.68)),
    center / cover no-repeat url("../images/jap_BW.jpg");
}

.contact-wrap .page-intro {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 1.5rem;
}

.contact-panel {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: rgba(9, 9, 9, 0.86);
  border: 1px solid var(--line);
}

.contact-info,
.contact-form {
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.contact-info p {
  margin: 0.4rem 0;
  color: var(--muted);
}

.contact-info a {
  color: #fff;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-field label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--line);
  background: #fff;
  color: #111;
  font: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

.form-status {
  min-height: 1.4em;
  margin: 0.75rem 0 0;
  color: var(--muted);
}

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

.footer-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.75rem 0 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-meta .socials {
  margin: 0 0 0.7rem;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.donate-teaser {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 30rem;
}

.donate-teaser-qr {
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.donate-teaser-qr img {
  width: 78px;
  height: auto;
}

.donate-teaser-copy .kicker {
  margin-bottom: 0.2rem;
}

.donate-teaser-title {
  margin: 0 0 0.3rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.donate-teaser-copy p + p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.donate-teaser-copy a {
  color: #fff;
}

.donate-teaser-copy .btn {
  min-height: 38px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
}

.donate-panel {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: rgba(9, 9, 9, 0.86);
  border: 1px solid var(--line);
}

.donate-panel h2 {
  margin-bottom: 0.55rem;
}

.donate-panel p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.donate-panel a {
  color: #fff;
}

.donate-panel-qr {
  margin: 0;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
}

.donate-panel-qr button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.donate-panel-qr img {
  width: min(280px, 100%);
  margin: 0 auto;
}

.back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
}

.back-to-top.is-visible {
  opacity: 0.92;
  pointer-events: auto;
}

.dialog-block {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.78);
}

.dialog-block.is-open {
  display: grid;
}

.modal-dialog {
  width: min(760px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border: 3px solid var(--red);
  position: relative;
}

.modal-dialog.donate-dialog {
  width: min(520px, 100%);
  aspect-ratio: auto;
  background: #141414;
  padding: 2rem 1.5rem 1.7rem;
  text-align: center;
}

.donate-card .kicker {
  margin-bottom: 0.35rem;
}

.donate-card h2 {
  margin-bottom: 0.55rem;
}

.donate-card p {
  margin: 0;
  color: var(--muted);
}

.donate-qr {
  width: min(380px, 100%);
  margin: 1.15rem auto;
  padding: 0.85rem;
  background: #fff;
}

.donate-qr img {
  width: 100%;
}

.donate-payee {
  margin: 0 0 0.25rem;
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.donate-card a {
  color: #fff;
}

.embed-responsive {
  position: absolute;
  inset: 0;
}

.modal-dialog iframe,
.modal-dialog video {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: contain;
}

.modal-fallback {
  position: absolute;
  left: 0;
  bottom: -2.2rem;
  color: #fff;
  font-size: 0.9rem;
}

.modal-close {
  position: absolute;
  top: -2.4rem;
  right: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  :root {
    --header-h: 88px;
  }

  .logo img {
    width: min(160px, 46vw);
  }

  .nav-toggle {
    position: absolute;
    top: 1rem;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    background: #0d0d0d;
    border-bottom: 1px solid var(--line);
  }

  body.nav-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
  }

  .hero,
  .profile,
  .contact-panel,
  .donate-panel {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .donate-teaser {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover { transform: none; }
}
