:root {
  --color-deep: #0A2540;
  --color-gold: #C8995C;
  --color-red: #E63946;
  --color-cream: #F5F0E6;
  --color-stone: #D8D3C5;
  --color-moss: #6B8E67;
  --color-clay: #A0522D;
  --color-ink: #2E2E2E;
  --color-mist: #7A7A7A;
  --font-heading: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Serif SC", "Source Han Serif SC", serif;
  --font-data: "Roboto Mono", monospace;
  --container-width: 1200px;
  --shadow-sm: 0 2px 4px rgba(10, 37, 64, .08);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, .12);
  --shadow-lg: 0 16px 40px rgba(10, 37, 64, .18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-ink);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main-content {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

::selection {
  background: var(--color-gold);
  color: var(--color-deep);
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

.container {
  width: min(var(--container-width), calc(100% - 48px));
  margin-inline: auto;
}

.header-container {
  position: relative;
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }
}

.skip-link {
  position: absolute;
  left: -100%;
  top: 0;
  z-index: 2000;
  background: var(--color-gold);
  color: var(--color-deep);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-red));
  z-index: 1000;
  pointer-events: none;
  transition: width 150ms ease-out;
}

.site-header {
  background: var(--color-deep);
  color: var(--color-cream);
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(135deg, rgba(200, 153, 92, .14), rgba(200, 153, 92, 0));
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.75rem 0 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: inline-block;
  width: 1rem;
  height: 1.7rem;
  background: var(--color-gold);
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
  transform: skewX(-10deg);
  flex-shrink: 0;
}

.brand-mark-inverse {
  background: var(--color-red);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--color-gold);
  margin-top: 0.2em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(200, 153, 92, .4);
  border-radius: 6px;
  background: rgba(200, 153, 92, .12);
  color: var(--color-cream);
  font-family: var(--font-heading);
  font-weight: 700;
  transition: background 0.15s, border-color 0.15s;
}

.nav-toggle:hover {
  background: rgba(200, 153, 92, .22);
  border-color: rgba(200, 153, 92, .7);
}

.nav-toggle-lines {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1.25rem;
  height: 0.9rem;
}

.nav-toggle-line {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle-text {
  font-size: 0.875rem;
}

.site-nav {
  border-top: 1px solid rgba(245, 240, 230, .12);
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: block;
  padding: 0.8rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--color-cream);
  position: relative;
  transition: color 0.15s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--color-gold);
}

.site-footer {
  background: var(--color-deep);
  color: var(--color-cream);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28%;
  height: 100%;
  background: linear-gradient(180deg, rgba(200, 153, 92, .08), transparent);
  clip-path: polygon(0 0, 100% 0, 40% 100%, 0 100%);
  pointer-events: none;
}

.site-footer .container {
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
}

.footer-brand {
  max-width: 380px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-logo .brand-name {
  font-size: 1.3rem;
}

.footer-logo .brand-tagline {
  font-size: 0.68rem;
}

.footer-about,
.footer-trust {
  font-size: 0.875rem;
  color: rgba(245, 240, 230, .75);
  line-height: 1.7;
}

.footer-trust {
  margin-top: 1rem;
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: var(--color-gold);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  position: relative;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2rem;
  height: 2px;
  background: var(--color-red);
}

.footer-list li {
  margin-bottom: 0.6rem;
}

.footer-list a {
  color: rgba(245, 240, 230, .8);
  font-size: 0.9rem;
  transition: color 0.15s, padding-left 0.15s;
}

.footer-list a:hover {
  color: var(--color-gold);
  padding-left: 0.25rem;
}

.contact-list li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: rgba(245, 240, 230, .8);
  line-height: 1.6;
}

.contact-list li::before {
  content: "·";
  color: var(--color-gold);
  margin-right: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 230, .12);
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: rgba(245, 240, 230, .55);
  position: relative;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  border-radius: 30px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-deep);
  box-shadow: 0 4px 14px rgba(200, 153, 92, .25);
}

.btn-primary:hover {
  background: #d4a76a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 153, 92, .35);
}

.btn-outline {
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
}

.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-deep);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-mist);
}

.breadcrumb a {
  color: var(--color-gold);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--color-mist);
}

.prose {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-ink);
  max-width: 70ch;
}

.prose h2,
.prose h3 {
  font-family: var(--font-heading);
  margin: 2em 0 0.5em;
}

.prose p {
  margin-bottom: 1em;
}

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

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.media {
  position: relative;
  overflow: hidden;
  background: var(--color-stone);
  border-radius: 8px;
}

.media::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.media img,
.media > div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 500;
}

.tag-gold {
  background: rgba(200, 153, 92, .15);
  color: var(--color-gold);
}

.tag-red {
  background: rgba(230, 57, 70, .12);
  color: var(--color-red);
}

.tag-moss {
  background: rgba(107, 142, 103, .15);
  color: var(--color-moss);
}

.section {
  padding: 5rem 0;
}

.section-deep {
  background: var(--color-deep);
  color: var(--color-cream);
}

.section-cream {
  background: var(--color-cream);
}

.section-stone {
  background: var(--color-stone);
}

.eyebrow {
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-top: 0.25em;
}

.speed-line {
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  transform: skewX(-30deg);
  border-radius: 4px;
}

.skew-block {
  width: 100%;
  height: 80px;
  background: var(--color-deep);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 70%);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    border-top: none;
  }

  .site-nav[data-open] {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0;
  }

  .nav-link {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(245, 240, 230, .08);
  }

  .nav-link::after {
    left: 1rem;
    right: 1rem;
    bottom: 0.1rem;
  }

  .masthead {
    padding-top: 1.25rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
