/* Cậu Vàng Làng Ta — shared styles (W-01).
   Warm parchment look. Plain CSS, no framework, no outside files. */

:root {
  --paper: #efe0b8;
  --paper-light: #f8eed2;
  --paper-dark: #e3cf9c;
  --ink: #3a281a;
  --brown: #7a4a28;
  --red: #b0382a;
  --red-dark: #8f2b20;
  --green: #5f7a3a;
  --shadow: 0 2px 10px rgba(58, 40, 26, 0.12);
  --radius: 12px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

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

a {
  color: var(--brown);
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--paper-dark);
}

/* Layout helpers */
.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-main {
  flex: 1;
  padding: 1.5rem 0 2.5rem;
}

.section {
  margin-bottom: 2rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--brown);
  color: var(--brown);
}

.btn-secondary:hover {
  background: var(--paper-dark);
  color: var(--brown);
}

/* Cards */
.card {
  background: var(--paper-light);
  border: 1px solid rgba(122, 74, 40, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

/* Header */
.site-header {
  background: var(--paper-dark);
  border-bottom: 2px solid var(--brown);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand:hover {
  color: var(--red);
}

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

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--paper-light);
  color: var(--red);
}

/* Footer */
.site-footer {
  background: var(--paper-dark);
  border-top: 2px solid var(--brown);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.hero h1 {
  font-size: 2rem;
}

.hero p {
  max-width: 36rem;
  margin: 0 auto 1.25rem;
}

@media (min-width: 48rem) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

/* Cast */
.cast {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cast li {
  width: 88px;
  text-align: center;
}

.cast img {
  width: 88px;
  height: 88px;
  border: 3px solid var(--brown);
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-dark);
}

.cast span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Map teaser */
.map-teaser > a {
  display: block;
}

.map-teaser figure {
  margin: 0 0 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-teaser a:hover figure,
.map-teaser a:focus-visible figure {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(58, 40, 26, 0.2);
}

.map-teaser figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
