* {
  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 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--color-secondary);
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--color-accent);
  padding-bottom: 0.5rem;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.03);
}

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

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

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

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

h6 {
  font-size: 1rem;
  margin-top: 1rem;
  color: var(--color-primary);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
  color: var(--color-secondary);
  text-decoration-thickness: 2px;
  background-color: rgba(163, 230, 53, 0.15);
}

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

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

em {
  font-style: italic;
}

blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background-color: var(--color-surface);
  border-left: 5px solid var(--color-accent);
  box-shadow: var(--shadow-md);
  position: relative;
  font-style: italic;
  color: var(--color-primary);
}

blockquote::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: -4px;
  bottom: -4px;
  background-color: transparent;
  border: 1px solid var(--color-border);
  z-index: -1;
  border-radius: var(--radius);
}

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

.site-header {
  background-color: var(--color-surface);
  border-bottom: 3px solid var(--color-border);
  box-shadow: var(--shadow-md), 0 6px 0 var(--color-bg), 0 6px 1px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

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

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

.site-nav a {
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: var(--color-text);
  background-color: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow-sm), 0 3px 0 var(--color-surface);
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  position: relative;
  top: 0;
}

.site-nav a:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-secondary);
  box-shadow: var(--shadow-md), 0 5px 0 var(--color-surface);
  top: -2px;
}

.site-nav a:active {
  top: 2px;
  box-shadow: var(--shadow-sm), 0 1px 0 var(--color-surface);
}

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

.site-footer {
  background-color: var(--color-secondary);
  color: var(--color-surface);
  border-top: 4px solid var(--color-accent);
  margin-top: 4rem;
  box-shadow: 0 -4px 0 var(--color-primary), 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.site-footer .container {
  padding: 2rem 1.5rem;
  text-align: center;
}

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

.site-footer a:hover {
  color: white;
  background-color: rgba(163, 230, 53, 0.2);
}

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

.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs a {
  color: var(--color-primary);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.breadcrumbs a:hover {
  background-color: var(--color-surface);
  color: var(--color-secondary);
}

.breadcrumbs::after {
  content: none;
}

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

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

.card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg), 6px 6px 0 var(--color-surface), 6px 6px 0 var(--color-border);
  transform: translate(-2px, -2px);
}

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

.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
  margin-top: 0;
}

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

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

table thead th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  border-bottom: 3px solid var(--color-accent);
  font-family: Georgia, 'Times New Roman', Times, serif;
}

table tbody tr {
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  border-bottom: 1px solid var(--color-border);
}

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

table tbody tr:hover {
  background-color: rgba(163, 230, 53, 0.15);
  box-shadow: inset 3px 0 0 var(--color-accent);
}

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

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

details {
  background-color: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm), 2px 2px 0 var(--color-surface);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

details:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md), 3px 3px 0 var(--color-surface);
}

details[open] {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg), 4px 4px 0 var(--color-surface), 4px 4px 0 var(--color-border);
}

summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: var(--color-secondary);
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

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

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

summary:hover {
  background-color: var(--color-surface);
  color: var(--color-text);
}

details[open] summary {
  border-bottom: 2px solid var(--color-border);
  background-color: var(--color-surface);
}

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

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

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

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

pre {
  background-color: var(--color-secondary);
  color: var(--color-accent);
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-md), 4px 4px 0 var(--color-primary);
}

pre code {
  background-color: transparent;
  padding: 0;
  border: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--color-border);
}

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

button, input[type="submit"], input[type="button"] {
  font-family: var(--font-main);
  padding: 0.75rem 1.5rem;
  background-color: var(--color-accent);
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  box-shadow: var(--shadow-md), 3px 3px 0 var(--color-secondary);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  top: 0;
}

button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background-color: var(--color-secondary);
  color: var(--color-accent);
  box-shadow: var(--shadow-lg), 5px 5px 0 var(--color-primary);
  top: -2px;
}

button:active, input[type="submit"]:active, input[type="button"]:active {
  top: 2px;
  box-shadow: var(--shadow-sm), 1px 1px 0 var(--color-secondary);
}

button:focus-visible, input[type="submit"]:focus-visible, input[type="button"]:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea, select {
  font-family: var(--font-main);
  padding: 0.75rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background-color: white;
  color: var(--color-text);
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  margin-bottom: 1rem;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="search"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.2), inset 2px 2px 4px rgba(0, 0, 0, 0.05);
}

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

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.75rem;
  }

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

  .site-main {
    padding: 3rem 2rem;
  }

  .card {
    padding: 2rem;
  }

  .site-nav {
    gap: 0.75rem;
  }
}

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

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

  .card {
    padding: 2.5rem;
  }
}

@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 {
    display: none;
  }

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

  .card {
    box-shadow: none;
    border: 1px solid var(--color-border);
    page-break-inside: avoid;
  }

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

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