/* Border Tuner — static port of bordertuner.net */

@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap");

:root {
  --bg: #f0f0f0;
  --ink: #303030;
  --muted: #606060;
  --line: #c0c0c0;
  --panel: #303030;
  --white: #ffffff;
  --accent: #3a54b4;
  --content: 980px;
  --font: "Source Sans 3", "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
}

a:hover {
  opacity: 0.75;
}

.wrap {
  width: min(100% - 32px, var(--content));
  margin-inline: auto;
}

.fw-bold { font-weight: 700; }
.fst-italic { font-style: italic; }
.ul { text-decoration: underline; }
.ta-center { text-align: center; }
.ta-right { text-align: right; }

/* Header / nav */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  width: min(100% - 16px, 1100px);
  margin: 0 auto;
  padding: 8px 4px 0;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.lang-switch a {
  text-decoration: none;
  color: var(--muted);
}

.lang-switch a[aria-current="true"],
.lang-switch a:hover {
  color: var(--ink);
  font-weight: 700;
}

.site-nav {
  width: min(100% - 16px, 1100px);
  margin: 0 auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item > a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink);
}

.nav-item.is-active > a,
.nav-item > a[aria-current="page"] {
  font-weight: 700;
}

.nav-caret {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px 8px 8px 0;
  font-size: 12px;
  color: var(--ink);
}

.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 50;
}

.nav-item.has-sub:hover > .nav-sub,
.nav-item.has-sub:focus-within > .nav-sub,
.nav-item.has-sub.is-open > .nav-sub {
  display: block;
}

.nav-sub a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  font-size: 13px;
  color: var(--ink);
}

.nav-sub a:hover {
  background: var(--bg);
}

/* Main */
.site-main {
  flex: 1;
  padding: 36px 0 64px;
}

.content .page-title,
.rich-text h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
}

.rich-text h2 {
  margin: 1.6em 0 0.6em;
  font-size: 28px;
  font-weight: 700;
}

.rich-text h5 {
  margin: 0 0 0.8em;
  font-size: 14px;
  font-weight: 400;
}

.rich-text p {
  margin: 0 0 0.85em;
  font-size: 17px;
  line-height: 1.45;
}

.rich-text a {
  text-decoration: underline;
}

.rich-text + .rich-text {
  margin-top: 2rem;
}

.content-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.content-images figure {
  margin: 0;
  overflow: hidden;
  background: #ddd;
}

.content-images img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Photos */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.photo-item {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #ddd;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Videos */
.video-frame {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 0 24px;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.video-grid .video-frame {
  margin: 0;
  max-width: none;
}

/* FAQ */
.faq-list {
  margin: 0 0 2.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+ ";
  font-weight: 400;
  color: var(--muted);
}

.faq-item[open] summary::before {
  content: "– ";
}

.faq-item p {
  margin: 10px 0 4px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.embed-frame {
  width: 100%;
  max-width: 900px;
  min-height: 70vh;
  border: 0;
  background: #fff;
}

.embed-frame iframe {
  width: 100%;
  min-height: 70vh;
  height: 1400px;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 28px 16px 40px;
}

.footer-inner {
  width: min(100%, var(--content));
  margin: 0 auto;
  text-align: center;
}

.donate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 40px;
  margin-bottom: 18px;
  padding: 0 18px;
  background: var(--panel);
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.donate-btn:hover {
  opacity: 0.85;
}

.social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.social img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 820px;
  margin-inline: auto;
}

.footer-copy a {
  color: var(--muted);
}

/* Landing splash */
.landing {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--white);
  background: #111;
}

.landing .site-footer {
  background: transparent;
  border-top: 0;
  position: relative;
  z-index: 2;
}

.landing .footer-copy,
.landing .footer-copy a {
  color: rgba(255, 255, 255, 0.85);
}

.landing-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.landing-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.landing-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
  width: min(100% - 32px, 1100px);
  margin: 0 auto;
  padding: 12vh 0 8vh;
}

.landing-col--mx {
  text-align: right;
}

.landing-place span {
  display: inline-block;
  background: var(--panel);
  padding: 4px 8px;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.landing-brand {
  margin: 18px 0 8px;
  font-size: clamp(22px, 3vw, 30px);
}

.landing-brand a,
.landing-enter a {
  color: #fff;
  text-decoration: none;
  background: var(--panel);
  padding: 2px 8px;
}

.landing-enter a {
  text-decoration: underline;
  font-size: 15px;
}

@media (max-width: 800px) {
  .landing-main {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 18vh;
  }

  .landing-col--mx {
    text-align: left;
  }

  .nav-list {
    justify-content: flex-start;
  }

  .nav-item > a {
    padding: 8px 10px;
    font-size: 13px;
  }
}
