* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #b44215;
  --color-secondary: #7c2d12;
  --color-accent: #fed7aa;
  --color-bg: #fffbf7;
  --color-surface: #fef3eb;
  --color-text: #431407;
  --color-text-muted: #9a7b6a;
  --color-border: #e8d5c4;
  --font-main: 'Verdana', 'Geneva', 'Tahoma', sans-serif;
  --max-width: 1100px;
  --radius: 8px;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

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

strong {
  font-weight: 700;
  color: var(--color-secondary);
}

em {
  font-style: italic;
  color: var(--color-text-muted);
}

blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(254, 215, 170, 0.3) 0%, rgba(254, 243, 235, 0.5) 100%);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  font-style: italic;
  color: var(--color-text);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(67, 20, 7, 0.05);
}

blockquote p:last-child {
  margin-bottom: 0;
}

::selection {
  background-color: var(--color-accent);
  color: var(--color-secondary);
}

.site-header {
  background: rgba(254, 243, 235, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(67, 20, 7, 0.08);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1rem;
  gap: 2rem;
}

.site-header h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-primary);
}

.site-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  background: rgba(180, 66, 21, 0.1);
  color: var(--color-primary);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(180, 66, 21, 0.15);
}

.site-nav a:focus-visible {
  background: rgba(180, 66, 21, 0.15);
}

.site-main {
  width: 100%;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(254, 243, 235, 0.6);
  border-radius: var(--radius);
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs span {
  color: var(--color-text-muted);
}

.card {
  background: rgba(254, 243, 235, 0.7);
  backdrop-filter: blur(15px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(67, 20, 7, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(180, 66, 21, 0.12);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.card h2, .card h3 {
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(67, 20, 7, 0.05);
}

table thead {
  background: linear-gradient(135deg, rgba(180, 66, 21, 0.9) 0%, rgba(124, 45, 18, 0.95) 100%);
  color: var(--color-accent);
}

table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--color-secondary);
}

table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

table tbody tr {
  transition: background-color 0.2s ease;
}

table tbody tr:nth-child(even) {
  background: rgba(254, 215, 170, 0.15);
}

table tbody tr:hover {
  background: rgba(180, 66, 21, 0.08);
}

table tbody tr:last-child td {
  border-bottom: none;
}

details {
  margin: 1.5rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgba(254, 243, 235, 0.5);
  backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(67, 20, 7, 0.04);
  transition: box-shadow 0.2s ease;
}

details:hover {
  box-shadow: 0 4px 12px rgba(67, 20, 7, 0.08);
}

details[open] {
  border-color: var(--color-primary);
}

summary {
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-secondary);
  background: rgba(254, 215, 170, 0.2);
  transition: background-color 0.2s ease, color 0.2s ease;
  user-select: none;
}

summary:hover {
  background: rgba(180, 66, 21, 0.15);
  color: var(--color-primary);
}

summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

details[open] summary {
  background: rgba(180, 66, 21, 0.12);
  border-bottom: 1px solid var(--color-border);
}

details > *:not(summary) {
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  background: linear-gradient(135deg, rgba(124, 45, 18, 0.95) 0%, rgba(67, 20, 7, 0.98) 100%);
  color: var(--color-accent);
  border-top: 3px solid var(--color-primary);
  backdrop-filter: blur(20px);
  margin-top: 4rem;
}

.site-footer .container {
  display: grid;
  gap: 2rem;
  padding: 3rem 1rem 2rem;
}

.site-footer a {
  color: var(--color-accent);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer p {
  margin-bottom: 0.5rem;
  color: rgba(254, 215, 170, 0.9);
}

@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  .site-header .container {
    padding: 1.5rem 2rem;
  }

  .site-header h1 {
    font-size: 1.75rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a {
    padding: 0.625rem 1.25rem;
  }

  .container {
    padding: 3rem 2rem;
  }

  .card {
    padding: 2.5rem;
  }

  .site-footer .container {
    grid-template-columns: repeat(2, 1fr);
    padding: 3rem 2rem 2rem;
  }

  blockquote {
    padding: 2rem;
    margin: 2.5rem 0;
  }

  table th, table td {
    padding: 1.125rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }

  .site-header h1 {
    font-size: 2rem;
  }

  .site-nav a {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .container {
    padding: 4rem 2rem;
  }

  .card {
    padding: 3rem;
  }

  .site-footer .container {
    grid-template-columns: repeat(3, 1fr);
    padding: 4rem 2rem 3rem;
  }

  blockquote {
    padding: 2.5rem;
    margin: 3rem 0;
  }
}

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

  details > *:not(summary) {
    animation: none;
  }

  .card:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-nav,
  .breadcrumbs,
  .site-footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .card {
    background: white;
    border: 1px solid #ccc;
    box-shadow: none;
    page-break-inside: avoid;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  table {
    page-break-inside: avoid;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}