
:root {
  --navy: #14263d;
  --navy-light: #254766;
  --gold: #c99b45;
  --gold-light: #f5ead2;
  --paper: #f7f8fa;
  --white: #ffffff;
  --text: #263445;
  --muted: #657386;
  --border: #dfe5ec;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(20, 38, 61, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

a {
  color: #174e83;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

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

.site-header {
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--gold);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  color: var(--white);
  font-size: 1.12rem;
  font-weight: 800;
}

.brand:hover {
  color: var(--gold-light);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--gold-light);
}

.hero {
  padding: 68px 0 60px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
}

.hero-content {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -0.8px;
}

.hero p {
  max-width: 760px;
  margin: 0 0 16px;
  color: #e7edf5;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--gold);
  color: #172536;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: #dfb968;
  color: #172536;
  text-decoration: none;
  transform: translateY(-1px);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.65);
  background: transparent;
  color: var(--white);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.section {
  padding: 54px 0;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.25;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.category-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.4;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 20px;
  background: #edf1f5;
}

.product-image img {
  width: auto;
  max-width: 100%;
  height: 210px;
  object-fit: contain;
}

.product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.product-category {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 5px;
  background: var(--gold-light);
  color: #624716;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.4;
  text-transform: uppercase;
}

.product-content h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.13rem;
  line-height: 1.4;
}

.product-content p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.85rem;
}

.product-price {
  margin-top: auto;
  padding-top: 4px;
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 800;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
}

.product-actions .button {
  flex: 1 1 140px;
}

.button-outline {
  border-color: var(--navy);
  background: var(--white);
  color: var(--navy);
}

.button-outline:hover {
  background: #edf1f5;
  color: var(--navy);
}

.feature-panel {
  padding: 30px;
  border: 1px solid var(--border);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
}

.feature-panel h2,
.feature-panel h3 {
  margin-top: 0;
  color: var(--navy);
}

.feature-panel p:last-child {
  margin-bottom: 0;
}

.author-section {
  background: #eaf0f6;
}

.author-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: start;
}

.author-layout h2 {
  margin-top: 0;
  color: var(--navy);
}

.author-links {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.author-links a {
  font-weight: 700;
}

.notice {
  padding: 16px 18px;
  border-radius: 8px;
  background: #f0f4f8;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 30px 0;
  background: var(--navy);
  color: #e7edf5;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--gold-light);
}

.back-to-top {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .author-layout {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    padding: 46px 0;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 40px 0;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    min-height: 230px;
  }

  .product-image img {
    height: 200px;
  }

  .product-content {
    padding: 18px;
  }

  .feature-panel {
    padding: 22px;
  }

  .site-nav {
    gap: 10px 14px;
  }

  .site-nav a {
    font-size: 0.88rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
