@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Merriweather:wght@700&display=swap");

:root {
  --navy: #0036a3;
  --blue: #164bb8;
  --gold: #f4ca15;
  --gold-dark: #d99d00;
  --ink: #18212f;
  --muted: #5c6675;
  --paper: #ffffff;
  --mist: #f5f8fc;
  --line: #dbe3ef;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(20, 47, 95, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--mist);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* Wider text column so more text fits horizontally */
.narrow { width: min(900px, 100%); margin: 0 auto; }

.site-header {
  background: var(--paper);
  border-bottom: 5px solid var(--gold);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.site-title {
  color: var(--navy);
  font-family: Merriweather, Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.language-nav { display: flex; gap: 8px; align-items: center; }
.language-nav a {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.language-nav a[aria-current="page"] { background: var(--navy); color: #fff; }

.site-main { padding: 72px 0; }

.hero {
  padding: clamp(42px, 8vw, 90px) 0 52px;
  text-align: center;
  background: linear-gradient(180deg, #fff9d7 0%, var(--mist) 100%);
}

.hero h1,
h1 {
  margin: 0 0 16px;
  color: var(--navy);
  font-family: Merriweather, Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 7vw, 4.8rem);
  line-height: 1.05;
}

.hero p,
.intro { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 1.15rem; }

.story-section {
  margin: 0 auto 32px;
  padding: clamp(22px, 3.5vw, 42px) clamp(22px, 3.5vw, 56px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-section h2 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  color: var(--navy);
  border-bottom: 3px solid var(--gold);
  font-family: Merriweather, Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.2;
}

.story-section h3 { color: var(--navy); font-size: 1.25rem; margin: 0 0 10px; }

/* Slightly tighter paragraphs to reduce vertical length */
.story-section p { margin: 0 0 0.9em; }
.story-section p:last-child { margin-bottom: 0; }

.story-image {
  width: min(360px, 100%);
  margin: 24px auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 47, 95, 0.12);
}

.gallery {
  padding: clamp(40px, 6vw, 72px) 0;
}

.gallery h2 {
  margin: 0 0 28px;
  color: var(--navy);
  text-align: center;
  font-family: Merriweather, Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-grid a:hover img { transform: scale(1.04); }

.language-chooser { margin: 32px 0; text-align: center; font-size: clamp(1.4rem, 4vw, 2rem); }
.lang-link { font-weight: 800; text-decoration: none; }
.lang-sep { margin: 0 14px; color: var(--gold-dark); }
.short-intro { margin-top: 44px; color: var(--muted); text-align: center; }

.site-footer {
  padding: 26px 0;
  color: #fff;
  text-align: center;
  background: var(--navy);
}
.site-footer p { margin: 0; font-size: 0.9rem; }

@media (max-width: 960px) {
  /* On tablets and below, keep a comfortable width */
  .narrow { width: min(100% - 40px, 900px); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(100% - 28px, 1120px); }
  .header-inner { min-height: 76px; }
  .site-main { padding: 48px 0; }
  .story-section { border-radius: 14px; padding: 22px 18px; }
  .narrow { width: 100%; }
}
/* Language chooser page: keep heading on one line and center everything */
body > .page-wrapper > .site-main .container.narrow {
  text-align: center;
}

body > .page-wrapper > .site-main .container.narrow h1 {
  white-space: nowrap;      /* try to keep on one line */
  overflow-wrap: normal;    /* avoid breaking inside the words */
  hyphens: none;
}

/* On small screens, allow wrapping but keep it centered */
@media (max-width: 560px) {
  body > .page-wrapper > .site-main .container.narrow h1 {
    white-space: normal;
  }
}