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

:root {
  --color-primary: #525252;
  --color-secondary: #262626;
  --color-accent: #a3e635;
  --color-bg: #fafafa;
  --color-surface: #f5f5f5;
  --color-text: #171717;
  --color-text-muted: #737373;
  --color-border: #d4d4d4;
  --font-main: 'Courier New', 'Lucida Console', Monaco, monospace;
  --max-width: 1100px;
  --radius: 4px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.2);
}

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-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--color-accent);
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

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

h4 {
  font-size: 1.5rem;
  margin-top: 1.25rem;
}

h5 {
  font-size: 1.25rem;
  margin-top: 1rem;
}

h6 {
  font-size: 1.1rem;
  margin-top: 1rem;
}

p {
  margin-bottom: 1rem;
}

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

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

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

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

em {
  font-style: italic;
}

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

blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  font-style: italic;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
}

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

.site-header {
  background-color: var(--color-secondary);
  color: white;
  padding: 1.5rem 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.site-header h1 {
  font-size: 1.75rem;
  margin: 0;
  padding: 0;
  border: none;
  color: white;
}

.site-header a {
  color: white;
  text-decoration: none;
}

.site-header a:hover {
  color: var(--color-accent);
}

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

.site-nav a {
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  border-color: var(--color-accent);
  background-color: rgba(163, 230, 53, 0.1);
}

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

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0.75rem 1rem;
  background-color: var(--color-surface);
  border-radius: var(--radius);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.breadcrumbs a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

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

.card {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: -4px;
  bottom: -4px;
  background-color: var(--color-surface);
  border-radius: var(--radius);
  z-index: -1;
  transition: opacity 0.2s ease;
  opacity: 0.6;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.card:hover::before {
  opacity: 1;
}

.card h2 {
  margin-top: 0;
}

.card h3 {
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

thead {
  background-color: var(--color-secondary);
  color: white;
}

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

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

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

tbody tr:nth-child(odd) {
  background-color: var(--color-surface);
}

tbody tr:hover {
  background-color: rgba(163, 230, 53, 0.1);
}

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

details {
  margin: 1.5rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: white;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}

details::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: -3px;
  bottom: -3px;
  background-color: var(--color-surface);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.5;
}

summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: bold;
  color: var(--color-secondary);
  background-color: var(--color-surface);
  transition: background-color 0.2s ease, color 0.2s ease;
  border-bottom: 1px solid transparent;
  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: bold;
  transition: transform 0.2s ease;
}

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

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

details[open] summary {
  border-bottom-color: var(--color-border);
  background-color: var(--color-secondary);
  color: white;
}

details[open] summary:hover {
  background-color: var(--color-primary);
}

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

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

.site-footer {
  background-color: var(--color-secondary);
  color: white;
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.12);
}

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

.site-footer a:hover {
  color: white;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

ul, ol {
  margin: 1rem 0 1rem 2rem;
}

li {
  margin-bottom: 0.5rem;
}

code {
  background-color: var(--color-surface);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.9em;
  border: 1px solid var(--color-border);
}

pre {
  background-color: var(--color-secondary);
  color: var(--color-accent);
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-md);
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-accent);
}

hr {
  border: none;
  border-top: 2px solid var(--color-border);
  margin: 2rem 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  background-color: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.2);
}

button,
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-secondary);
  color: white;
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

button::after,
.button::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: -3px;
  bottom: -3px;
  background-color: var(--color-primary);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.3;
  transition: opacity 0.2s ease;
}

button:hover,
.button:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-secondary);
  box-shadow: var(--shadow-md);
}

button:hover::after,
.button:hover::after {
  opacity: 0.6;
}

button:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }

  .site-nav a {
    display: block;
  }

  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 0.75rem 0.5rem;
  }
}

@media (min-width: 768px) {
  body {
    font-size: 17px;
  }

  .container {
    padding: 0 2rem;
  }

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

  .card {
    padding: 2rem;
  }
}

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

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .site-header {
    padding: 2rem 0;
  }

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

  .card {
    padding: 2.5rem;
  }

  .card::before {
    top: 6px;
    left: 6px;
    right: -6px;
    bottom: -6px;
  }
}

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

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

  body {
    background-color: white;
    color: black;
  }

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

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

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

  a[href^="http"]::after {
    content: " (" attr(href) ")";
  }
}