:root {
  --fg: #111111;
  --bg: #ffffff;
  --accent: #d9a441;
  --accent-text: #2f6f58;
  --muted: #6b7280;
  --border: #e5e7eb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: "DejaVu Sans Mono", "Courier New", monospace;
  line-height: 1.6;
}

a { color: var(--fg); }
a:hover, a:focus-visible { color: var(--accent-text); text-decoration-thickness: 2px; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 100;
  background: var(--fg);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 2px solid var(--fg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.25rem;
}

.brand-mark { height: 36px; width: 36px; }

.site-header nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: bold;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
}

.hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0 3rem;
}

.hero-mascot { width: 88px; height: auto; flex-shrink: 0; }

.hero-text h1 { font-size: 2.5rem; margin: 0 0 0.5rem; }

.tagline { color: var(--muted); font-size: 1.1rem; margin: 0; }

.page-content h2 {
  border-top: 2px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.page-content code {
  background: #f4f4f5;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.page-content pre {
  background: #111111;
  color: #f4f4f5;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
}

.page-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.page-content li::marker { color: var(--accent); }

.page-content blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: #f9f9f9;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  display: block;
  overflow-x: auto;
}

.page-content th,
.page-content td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.page-content th {
  background: #f4f4f5;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.solution-page img.half-size {
  max-width: 50%;
}

.site-footer {
  max-width: 760px;
  margin: 3rem auto 2rem;
  padding: 1.5rem 2rem 0;
  border-top: 2px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .hero { flex-direction: column; text-align: center; }
}

/* Projects section: card grid, not part of the shared house-style skeleton above */

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

.project__link {
  display: block;
  height: 100%;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--fg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.project__link:hover,
.project__link:focus-visible {
  transform: translateY(-2px);
}

.project--red .project__link { border-left-color: #bd2f26; }
.project--green .project__link { border-left-color: #2f6f58; }
.project--gold .project__link { border-left-color: #d9a441; }

.project__name {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: bold;
  font-size: 1.05rem;
}

.project__desc {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Solutions section: same card grid as Projects, own class names since it
   links to internal pages instead of sibling domains. */

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

.solution__link {
  display: block;
  height: 100%;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--fg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.solution__link:hover,
.solution__link:focus-visible {
  transform: translateY(-2px);
}

.solution--red .solution__link { border-left-color: #bd2f26; }
.solution--green .solution__link { border-left-color: #2f6f58; }
.solution--gold .solution__link { border-left-color: #d9a441; }

.solution__name {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: bold;
  font-size: 1.05rem;
}

.solution__desc {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
