/* CSS variables */
:root {
  --color-cream: #fdf6ec;
  --color-burgundy: #6b3b3b;
  --color-dark-brown: #3e2b2b;
  --color-muted-gray: #6b6b6b;
  --color-border: #d8ccc0;
  --color-text: #2c1810;
  --color-text-light: #4a3a3a;
  --font-serif: 'Lora', 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  --font-metadata: 'Inter', 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  --transition: 150ms ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-cream);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ensure no horizontal overflow */
img, video, canvas, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Masthead */
header {
  width: 100%;
  padding: 1rem 1.25rem 0;
  border-bottom: none;
}

.masthead-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
  font-family: var(--font-metadata);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted-gray);
}

.metadata-line {
  white-space: nowrap;
}

.masthead-rule {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: 0.5rem 0;
}

.masthead-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0 1rem;
}

.business-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--color-dark-brown);
  line-height: 1.2;
}

/* Navigation */
nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.5rem 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 0;
  transition: background var(--transition), color var(--transition);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--color-burgundy);
  color: var(--color-cream);
  outline: 2px solid var(--color-burgundy);
  outline-offset: 2px;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.375rem 0;
  position: relative;
  transition: color var(--transition);
}

nav ul li a:hover,
nav ul li a:focus-visible {
  color: var(--color-burgundy);
  outline: 2px solid var(--color-burgundy);
  outline-offset: 2px;
}

.dropdown {
  position: relative;
}

.dropdown a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.cta-button {
  border: 1px solid var(--color-burgundy);
  padding: 0.5rem 1rem !important;
  background: transparent;
  color: var(--color-burgundy) !important;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  display: inline-block;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--color-burgundy);
  color: var(--color-cream) !important;
  border-color: var(--color-burgundy);
  outline: 2px solid var(--color-burgundy);
  outline-offset: 2px;
}

/* Main */
main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

/* Sections */
section {
  margin: 3rem 0 2.5rem;
  padding-top: 1rem;
}

section h2 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1.5rem;
  color: var(--color-dark-brown);
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}

section h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  color: var(--color-dark-brown);
}

section p {
  margin: 0 0 1rem;
  color: var(--color-text-light);
  font-size: 1rem;
}

/* Hero */
#hero {
  margin: 2rem 0 3rem;
}

.hero-content {
  margin-bottom: 1.75rem;
}

#hero-headline {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--color-dark-brown);
  letter-spacing: 0.01em;
}

.hero-explanation {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 800px;
  margin: 0;
}

.hero-figure {
  margin: 0;
}

.image-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: #e8ddd0;
}

.hero-image-container {
  aspect-ratio: 16 / 10;
}

.large-image-container {
  aspect-ratio: 16 / 9;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-caption {
  font-family: var(--font-metadata);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted-gray);
  margin-top: 0.5rem;
  padding-left: 0.25rem;
}

/* Editorial columns */
.editorial-columns {
  column-width: 280px;
  column-gap: 2rem;
  column-rule: 1px solid var(--color-border);
  orphans: 2;
  widows: 2;
}

.editorial-columns p {
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 1rem;
}

/* Service index */
.service-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.index-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}

.index-item:first-child {
  border-top: 1px solid var(--color-border);
}

.index-number {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-burgundy);
  line-height: 1.2;
  min-width: 2rem;
  flex-shrink: 0;
}

.index-content {
  flex: 1;
}

.index-content h3 {
  margin: 0 0 0.375rem;
  font-size: 1.125rem;
}

.index-content p {
  margin: 0;
  color: var(--color-text-light);
}

/* Entry with thumbnail */
.entry-with-thumb {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.thumbnail-figure {
  margin: 0;
  max-width: 280px;
  width: 100%;
}

.thumbnail-container {
  aspect-ratio: 4 / 3;
}

.figure-inline {
  margin: 1.5rem 0;
  width: 100%;
}

/* Large photo story */
.large-photo-figure {
  margin: 0;
}

.large-photo-figure.full-bleed {
  width: 100%;
}

.full-bleed .image-container {
  aspect-ratio: 16 / 9;
}

/* Contact */
.contact-content {
  font-size: 1rem;
  color: var(--color-text-light);
}

.contact-content a {
  color: var(--color-burgundy);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-content a:hover,
.contact-content a:focus-visible {
  color: var(--color-dark-brown);
  outline: 2px solid var(--color-burgundy);
  outline-offset: 2px;
}

/* Footer */
footer {
  width: 100%;
  border-top: 1px solid var(--color-border);
  padding: 2rem 1.25rem 2.5rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark-brown);
  margin: 0 0 0.5rem;
}

.footer-text {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-muted-gray);
  margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .masthead-metadata {
    gap: 0.75rem 1.25rem;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .business-name {
    font-size: 1.75rem;
  }

  .nav-toggle {
    display: block;
  }

  nav ul {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    gap: 0;
    width: calc(100% - 2rem);
    max-width: 300px;
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    display: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(62, 43, 43, 0.08);
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav ul li a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .cta-button {
    border: none !important;
    padding: 0.75rem 1rem !important;
    background: transparent !important;
    color: var(--color-text) !important;
  }

  .cta-button:hover,
  .cta-button:focus-visible {
    background: var(--color-burgundy) !important;
    color: var(--color-cream) !important;
  }

  #hero-headline {
    font-size: 2rem;
  }

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

  section h2 {
    font-size: 1.625rem;
  }

  main {
    padding: 1.5rem 1rem 2rem;
  }

  header {
    padding: 0.75rem 1rem 0;
  }

  footer {
    padding: 1.5rem 1rem 2rem;
  }
}

@media (max-width: 480px) {
  .masthead-metadata {
    flex-direction: column;
    gap: 0.375rem;
    text-align: center;
  }

  .business-name {
    font-size: 1.5rem;
  }

  #hero-headline {
    font-size: 1.75rem;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .index-item {
    gap: 0.75rem;
  }

  .index-number {
    font-size: 1.125rem;
    min-width: 1.75rem;
  }
}

@media (max-width: 320px) {
  body {
    font-size: 15px;
  }

  .business-name {
    font-size: 1.375rem;
  }

  #hero-headline {
    font-size: 1.625rem;
  }

  section h2 {
    font-size: 1.375rem;
  }

  nav ul {
    width: calc(100% - 1rem);
  }

  main {
    padding: 1.25rem 0.875rem 1.75rem;
  }

  header {
    padding: 0.625rem 0.875rem 0;
  }

  footer {
    padding: 1.25rem 0.875rem 1.75rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--color-burgundy);
  outline-offset: 2px;
}