:root {
  --bg: #f4efe6;
  --panel: #fffdf8;
  --ink: #1d1a16;
  --muted: #6c6258;
  --line: #d8ccb7;
  --accent: #a63a24;
  --accent-dark: #7f2918;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(166, 58, 36, 0.12), transparent 35%),
    linear-gradient(180deg, #efe5d5 0%, var(--bg) 100%);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.8);
  backdrop-filter: blur(8px);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav a,
.nav button {
  color: var(--ink);
  text-decoration: none;
  font: inherit;
}

.nav button,
button {
  background: var(--accent);
  border: 0;
  color: #fff;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.secondary-button {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.page > * + * {
  margin-top: 1.5rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 16px 50px rgba(29, 26, 22, 0.08);
  padding: 1.5rem;
  border-radius: 18px;
}

.region-card {
  position: relative;
  overflow: hidden;
}

.region-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--region-photo);
  background-repeat: no-repeat;
  background-position: right -20px top 20px;
  background-size: 260px 260px;
  opacity: 0.14;
  pointer-events: none;
}

.region-card > * {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 3rem;
}

.landing-hero {
  position: relative;
  overflow: hidden;
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: auto -5% -20% auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(166, 58, 36, 0.16), transparent 65%);
  pointer-events: none;
}

.narrow {
  max-width: 520px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
}

.stack {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
}

.fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.choice input {
  width: auto;
}

input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.error {
  color: #8a1c10;
}

.support-copy {
  margin-top: 1rem;
  color: var(--muted);
}

.inline-form {
  margin: 0;
}

.button-link {
  display: inline-block;
  margin-top: 0.75rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1rem;
}

.qr-code {
  width: 220px;
  max-width: 100%;
  margin: 1rem 0;
  border: 1px solid var(--line);
  padding: 0.5rem;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
}

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

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.1fr 0.9fr;
}

.link-list {
  display: grid;
  gap: 0.9rem;
}

.resource-link {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(239, 229, 213, 0.4));
}

.resource-link span {
  color: var(--muted);
}

.geo-result {
  text-align: left;
  display: grid;
  gap: 0.2rem;
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  border-radius: 12px;
}

.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 640px) {
  .hero {
    padding: 1.5rem;
  }

  .nav {
    align-items: flex-start;
  }

  .two-up,
  .split {
    grid-template-columns: 1fr;
  }
}
