:root {
  --page-bg: #d2b48c;
  --text-color: #111;
  font-family: Consolas, "Courier New", Courier, monospace;
  background-color: var(--page-bg);
  color: var(--text-color);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: inherit;
  color: inherit;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.shell {
  width: min(85%, 960px);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  padding-bottom: 1rem;
  align-items: center;
}

.brand-avatar {
  width: 140px;
  border-radius: 6px;
  flex-shrink: 0;
}

.masthead-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.masthead-copy p {
  margin: 0.3rem 0 0.6rem;
}

nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 0;
}

main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  padding: 0;
}

.link-card {
  border: 1px solid rgba(0, 0, 0, 0.5);
  padding: 1rem;
  background: rgba(0, 0, 0, 0.02);
}

.link-card h2 {
  margin-top: 0;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.links-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.links-list li {
  line-height: 1.4;
}

section {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.35);
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
  margin: 0;
}

.file-card {
  border: 1px solid rgba(0, 0, 0, 0.4);
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

.file-card h3 {
  margin-top: 0;
}

.file-card p {
  margin-bottom: 0.5rem;
}

.file-meta {
  font-size: 0.9rem;
  opacity: 0.85;
}

table {
  width: 95%;
  margin: 2rem auto;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid #111;
  padding: 0.4rem;
  vertical-align: top;
}

footer {
  margin-top: 3rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.theme-toggle {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.35);
  background: #72678e;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.theme-toggle:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

