*, *::before, *::after {
  box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "SegoeUI", Roboto, sans-serif;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.25rem
}

nav {
  width: min(100% - 2.5rem, 860px);
  margin: 0 auto;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --muted: #5c5c5c;
    --accent: #0b6e4f;
    --border: #e2e2e2;
    --card: #f7f7f7;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1115;;
        --text: #e6e6e6;
        --muted: #a0a0a0;
        --accent: #3ddc97;
        --border: #2a2e36;
        --card: #171a20;
    }
}

h1 {
    font-size: 2rem;
    margin: 2rem 0 0.5rem;
}


a {
    color: var(--accent);
}

#about img {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
}

@media (min-width: 640px) {
    #about {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 0.5rem 2rem;
        align-items: start;
    }

    #about h2 {
        grid-column: 1 / -1;
    }
}

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

#work h2 {
    grid-column: 1 / -1;
}

#work article {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
}

#work h3 {
    margin-top: 0;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
}

nav a:hover,
nav a[aria-current="page"] {
    color: var(--text);
}

nav a:first-child {
    margin-right: auto;
    color: var(--text);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

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

footer {
  width: min(100% - 2.5rem, 860px);
  margin: 3rem auto 0;
  border-top: 1px solid var(--border);
}

footer p,
footer ul {
  margin: 0;
  padding: 1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

footer ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  padding-bottom: 0;
}

.hero {
  padding: 4rem 0 3rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--muted);
}

#experience article, 
#education article {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

#experience article:last-child,
#education article:last-child {
    border-bottom: none;
}

#experience h3,
#education h3 {
    margin: 0;
}

.meta {
    margin: 0.25rem 0 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
}

#experience li {
    margin-bottom: 0.4rem;
}

#bits {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  mask-image: linear-gradient(to right, black 0%, transparent 30%, transparent 70%, black 90%);
  -webkit-mask-image: linear-gradient(to right, black 0%, transparent 30%, transparent 70%, black 90%);
}

.report {
  max-width: 70ch;
  padding: 2rem 0;
}

.report-header {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.report h2 {
  margin-top: 2.5rem;
}

pre {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.button:hover {
  opacity: 0.85;
}

.report figure {
  margin: 1.25rem 0;
}

.report img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.report h3 {
  margin-top: 1.75rem;
}

.report ul ul {
  margin-top: 0.25rem;
}

.report pre {
  margin: 0.75rem 0;
}

.report p > code,
.report li > code {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}

.report-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.report-photos figure {
  margin: 0;
}

.report-photos img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

#building {
  padding: 2rem 0 0;
}

#building article {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

#building h3 {
  margin: 0 0 0.25rem;
}

#building p {
  margin: 0;
  color: var(--muted);
}