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

:root {
  --color-primary: #a8884a;
  --color-secondary: #6e5a2e;
  --color-accent: #f0e0b8;
  --color-bg: #fefdf8;
  --color-surface: #faf6ec;
  --color-text: #3a2f18;
  --color-text-muted: #8a7d62;
  --color-border: #ddd4be;
  --font-main: 'Verdana', 'Geneva', 'Tahoma', sans-serif;
  --max-width: 1100px;
  --radius: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 1rem;
  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: 1rem;
  color: var(--color-secondary);
}

h1 {
  font-size: 2.5rem;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 1rem;
}

h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
}

h2 {
  font-size: 2rem;
  font-family: 'Courier New', monospace;
  margin-top: 2rem;
  position: relative;
  padding-left: 1.5rem;
}

h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 6px;
  height: calc(100% - 0.5rem);
  background-color: var(--color-primary);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
}

h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
}

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;
  position: relative;
  transition: color 0.2s ease;
}

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

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

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

em {
  font-style: italic;
}

blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background-color: var(--color-surface);
  border-left: 6px solid var(--color-primary);
  position: relative;
  font-style: italic;
  color: var(--color-text-muted);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}

blockquote::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background-color: var(--color-accent);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

::selection {
  background-color: var(--color-primary);
  color: var(--color-bg);
}

.site-header {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-accent) 100%);
  border-bottom: 3px solid var(--color-border);
  padding: 2rem 1rem;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%);
  margin-bottom: 30px;
}

.site-header::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 60px;
  height: 60px;
  background-color: var(--color-primary);
  opacity: 0.1;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

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

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

.site-nav a {
  padding: 0.75rem 1.5rem;
  background-color: var(--color-bg);
  border: 2px solid var(--color-border);
  color: var(--color-text);
  font-family: 'Courier New', monospace;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.site-nav a:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

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

.breadcrumbs {
  margin-bottom: 2rem;
  padding: 0.75rem 1rem;
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  font-size: 0.875rem;
  font-family: 'Courier New', monospace;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

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

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

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

.card {
  background-color: var(--color-surface);
  border: 2px solid var(--color-border);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background-color: var(--color-primary);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background-color: var(--color-primary);
  clip-path: polygon(0 100%, 100% 100%, 0 0);
}

.card:hover {
  box-shadow: 0 8px 20px rgba(168, 136, 74, 0.15);
  border-color: var(--color-primary);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  background-color: var(--color-surface);
  border: 2px solid var(--color-border);
  font-size: 0.95rem;
}

table thead {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: var(--color-bg);
}

table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

table th:last-child {
  border-right: none;
}

table td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  transition: background-color 0.2s ease;
}

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

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

table tbody tr:hover {
  background-color: rgba(168, 136, 74, 0.15);
}

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

details {
  margin: 1.5rem 0;
  border: 2px solid var(--color-border);
  background-color: var(--color-surface);
  transition: border-color 0.2s ease;
}

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

summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: var(--color-secondary);
  background-color: var(--color-accent);
  transition: background-color 0.2s ease, color 0.2s ease;
  list-style: none;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

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

summary::after {
  content: '▼';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.2s ease;
  font-size: 0.75rem;
}

details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

summary:hover {
  background-color: var(--color-primary);
  color: var(--color-bg);
}

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

details div {
  padding: 1.5rem;
}

.site-footer {
  background: linear-gradient(45deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: var(--color-bg);
  padding: 3rem 1rem 2rem;
  margin-top: 4rem;
  position: relative;
  clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--color-accent);
  clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
}

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

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

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

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

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  .site-header {
    padding: 3rem 1rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), 0 100%);
    margin-bottom: 50px;
  }

  .site-nav {
    flex-wrap: nowrap;
    gap: 1rem;
  }

  .site-nav a {
    flex: 1;
    text-align: center;
  }

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

  .card {
    padding: 2.5rem;
  }

  table {
    font-size: 1rem;
  }

  .container {
    padding: 0 2rem;
  }
}

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

  h2 {
    font-size: 2.5rem;
  }

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

  .site-header::after {
    width: 80px;
    height: 80px;
    top: 20px;
    right: 20px;
  }

  .site-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .card {
    padding: 3rem;
  }

  .breadcrumbs {
    padding: 1rem 1.5rem;
  }

  details div {
    padding: 2rem;
  }

  .site-footer {
    padding: 4rem 2rem 3rem;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  summary::after {
    transition: none;
  }
}

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

  .site-header {
    clip-path: none;
    border-bottom: 2px solid var(--color-text);
    padding: 1rem;
  }

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

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

  .card::before,
  .card::after {
    display: none;
  }

  table {
    page-break-inside: avoid;
    border: 1px solid var(--color-text);
  }

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

  details {
    border: 1px solid var(--color-text);
  }

  summary {
    clip-path: none;
  }

  details[open] summary ~ * {
    display: block;
  }
}