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

:root {
  --color-primary: #db2777;
  --color-secondary: #9d174d;
  --color-accent: #fbcfe8;
  --color-bg: #fffbfd;
  --color-surface: #fef1f7;
  --color-text: #500724;
  --color-text-muted: #9b6b80;
  --color-border: #e8c8d8;
  --font-main: 'Courier New', 'Lucida Console', Monaco, monospace;
  --max-width: 1100px;
  --radius: 4px;
}

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

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

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

h2 {
  font-size: 2rem;
  margin-top: 2rem;
  position: relative;
  padding-left: 1rem;
}

h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--color-primary);
}

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

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

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

h6 {
  font-size: 1rem;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

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

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

blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: var(--color-surface);
  border-left: 5px solid var(--color-primary);
  border-radius: var(--radius);
  box-shadow: 2px 2px 8px rgba(219, 39, 119, 0.1);
  font-style: italic;
  color: var(--color-text-muted);
  position: relative;
}

blockquote::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  color: var(--color-accent);
  font-family: Georgia, serif;
  line-height: 1;
}

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

.site-header {
  background-color: var(--color-surface);
  border-bottom: 2px solid var(--color-border);
  padding: 2rem 1rem;
  box-shadow: 0 4px 12px rgba(80, 7, 36, 0.08);
  position: relative;
  z-index: 100;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  opacity: 0.3;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.site-nav a {
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  box-shadow: 2px 2px 0 var(--color-border);
}

.site-nav a:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 4px 4px 0 var(--color-secondary);
  transform: translate(-2px, -2px);
}

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

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

.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: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
}

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

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

.breadcrumbs::before {
  content: '→';
  color: var(--color-text-muted);
  margin-right: 0.25rem;
}

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

.card:hover {
  border-color: var(--color-primary);
  box-shadow: 6px 6px 0 var(--color-accent), 12px 12px 0 var(--color-border);
}

.card::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 1rem;
  right: 1rem;
  height: 4px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius) var(--radius) 0 0;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 2px 2px 8px rgba(80, 7, 36, 0.1);
}

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

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

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

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

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

table tbody tr:hover {
  background-color: var(--color-accent);
}

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

details {
  margin: 1.5rem 0;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 2px 2px 6px rgba(80, 7, 36, 0.08);
  background-color: white;
}

summary {
  padding: 1rem 1.5rem;
  cursor: pointer;
  background-color: var(--color-surface);
  font-weight: 600;
  color: var(--color-secondary);
  border-bottom: 2px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  list-style: none;
  position: relative;
  font-family: Georgia, serif;
}

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

summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

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

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

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

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: 3rem 1rem 2rem;
  margin-top: 4rem;
  border-top: 4px solid var(--color-primary);
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--color-accent), var(--color-primary));
}

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

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

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

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

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.75rem;
  }

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

  .site-nav {
    justify-content: flex-start;
    gap: 2rem;
  }

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

  .card {
    padding: 2.5rem;
  }

  details > *:not(summary) {
    padding: 2rem;
  }
}

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

  h2 {
    font-size: 2.5rem;
  }

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

  .site-nav {
    gap: 2.5rem;
  }

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

  .card {
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

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

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

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

  summary::after {
    transition: none;
  }
}

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

  .site-header {
    border-bottom: 2px solid black;
    box-shadow: none;
  }

  .site-footer {
    border-top: 2px solid black;
    background-color: white;
    color: black;
    box-shadow: none;
  }

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

  .site-main {
    padding: 1rem;
  }

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

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

  details summary::after {
    display: none;
  }
}