* {
  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: flex;
  flex-direction: column;
}

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

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

h2 {
  font-size: 2rem;
  margin-bottom: 0.875rem;
}

h3 {
  font-size: 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;
  position: relative;
}

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

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);
}

blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: rgba(254, 215, 170, 0.2);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  font-style: italic;
  color: var(--color-text-muted);
}

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.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(67, 20, 7, 0.08);
}

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

.site-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

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

.site-nav a:hover {
  background-color: rgba(180, 66, 21, 0.1);
  box-shadow: 0 2px 6px rgba(180, 66, 21, 0.15);
}

.site-main {
  flex: 1;
  padding: 3rem 0;
}

.site-footer {
  background: rgba(124, 45, 18, 0.95);
  backdrop-filter: blur(10px);
  color: var(--color-accent);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
  border-top: 3px solid var(--color-primary);
}

.site-footer a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(254, 243, 235, 0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  font-size: 0.9rem;
  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(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(67, 20, 7, 0.1);
  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.15);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

table thead {
  background: rgba(180, 66, 21, 0.1);
  backdrop-filter: blur(10px);
}

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

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);
  backdrop-filter: blur(12px);
}

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

summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-secondary);
  background: rgba(254, 215, 170, 0.2);
  backdrop-filter: blur(12px);
  transition: background-color 0.2s ease, color 0.2s ease;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: transform 0.2s ease, color 0.2s ease;
}

details[open] summary::after {
  content: '−';
  transform: rotate(90deg);
}

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 {
  border-bottom: 1px solid var(--color-border);
}

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

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

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

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  .site-header .container {
    flex-wrap: nowrap;
  }

  .site-nav {
    flex-wrap: nowrap;
  }

  .site-main {
    padding: 4rem 0;
  }

  .card {
    padding: 2.5rem;
  }

  table th,
  table td {
    padding: 1rem 1.25rem;
  }
}

@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .site-nav {
    gap: 2.5rem;
  }

  .site-main {
    padding: 5rem 0;
  }

  .container {
    padding: 0 2rem;
  }

  .card {
    padding: 3rem;
  }
}

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

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

  .card:hover {
    transform: none;
  }

  summary::after {
    transition: none;
  }
}

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

  body {
    background: white;
    color: black;
  }

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

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

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

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  table {
    background: white;
    border: 1px solid #000000;
  }

  table th {
    background: #eeeeee;
  }

  details {
    border: 1px solid #cccccc;
  }

  details[open] summary {
    border-bottom: 1px solid #cccccc;
  }

  summary::after {
    display: none;
  }
}