/* Pixel theme: bitmap display type and discrete, four-pixel geometry.
   Silkscreen: display headings and short interface labels.
   Rubik: prose and metadata. Monospace: code and keyboard shortcuts only. */
@font-face {
  font-family: "Silkscreen";
  src: url("../fonts/Silkscreen-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "Silkscreen", var(--font-sans);
  --radius: 0px;
}

/* One pixel face for the site's display and navigation voice. The locally
   hosted font has one weight; avoid browser-generated bold/italic variants. */
.brand, .brand-mark, .nav-links a,
.hero-name, .hero-kicker, .btn, .hero .btn, .hero-resume-link,
.section-title, .page-title, .section-eyebrow, .section-link,
.card-title, .card-cover-title, .card-cover-topline, .card-read, .card-source,
.article-preview h3, .article-preview-label, .article-preview-link,
.post-title, .series-card h3, .series-number, .series-read,
.series-nav-heading > span, .toc-title, .back-link,
.resume-name, .section-title-text, .company-name, .role-title,
.education-school, .download-box-title, .error-code {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
}
.hero-kicker, .section-eyebrow, .section-link, .card-read, .card-source,
.card-cover-topline, .article-preview-label, .article-preview-link,
.series-number, .series-read, .series-nav-heading > span, .toc-title, .back-link {
  font-size: 0.875rem;
  line-height: 1.6;
  letter-spacing: 0;
}

body {
  background-image: radial-gradient(var(--border) 0.6px, transparent 0.6px);
  background-size: 8px 8px;
}
:focus-visible { outline: 3px solid var(--ring); outline-offset: 4px; border-radius: 0; }
.site-header { background: var(--bg); backdrop-filter: none; border-bottom: 2px solid var(--border); }
.brand { font-size: 0.875rem; letter-spacing: 0; }
.brand-mark { border-radius: 0; background: var(--button-bg); color: var(--button-text); box-shadow: 3px 3px 0 var(--pixel-shadow); font-weight: 400; }
.nav-links a { border-radius: 0; font-size: 0.875rem; }
.nav-links a.active { box-shadow: inset 0 -2px 0 var(--accent); }
.icon-btn { border-radius: 0; }
.icon-btn svg { shape-rendering: crispEdges; }

.hero { min-height: 0; padding: 3.5rem 0; background: var(--hero-bg); align-items: center; border-bottom: 4px solid var(--hero-border); }
.hero-bg {
  background-image: url("/images/photography/arch-hero-light.webp");
  background-position: center 55%;
  background-size: cover;
  opacity: 1;
}
[data-theme="dark"] .hero-bg { background-image: url("/images/photography/arch-hero-dark.webp"); }
.hero-overlay {
  background: linear-gradient(90deg, rgba(var(--hero-rgb), 0.97) 0%, rgba(var(--hero-rgb), 0.86) 42%, rgba(var(--hero-rgb), 0.42) 100%),
    linear-gradient(0deg, rgba(var(--hero-rgb), 0.6), transparent 70%);
}
.hero::after { display: none; }
.hero-shell { grid-template-columns: minmax(0, 1fr) minmax(180px, 0.4fr); gap: 3rem; align-items: center; }
.hero-content > * { animation: none; }
.hero-kicker { color: var(--hero-accent); gap: 0.6rem; }
.hero-kicker::before { width: 8px; height: 8px; background: var(--hero-gold); box-shadow: 4px 4px 0 var(--hero-border); flex-shrink: 0; }
.hero-name { font-weight: 400; font-size: clamp(1.8rem, 3.45vw, 3.25rem); letter-spacing: -0.055em; line-height: 1.3; color: var(--hero-text); text-shadow: 4px 4px 0 var(--hero-shadow); margin-bottom: 1.25rem; }
.hero-name span { font-weight: 400; color: var(--hero-gold); }
.hero-tagline { font-size: 1.05rem; color: var(--hero-muted); max-width: 39ch; }
.hero-links { margin-top: 1.8rem; gap: 0.9rem; }
.btn, .hero .btn {
  border-radius: 0;
  border: 2px solid var(--accent);
  background: var(--bg-elev);
  color: var(--text);
  box-shadow: 4px 4px 0 var(--pixel-shadow);
  font-size: 0.875rem;
  line-height: 1.6;
  letter-spacing: 0;
  transition: transform 0.1s steps(2), box-shadow 0.1s steps(2);
}
.btn-primary { background: var(--button-bg); border-color: var(--button-bg); color: var(--button-text); }
.hero .btn-primary { background: var(--hero-jade); border-color: var(--hero-jade); color: var(--hero-bg); box-shadow: 4px 4px 0 var(--hero-shadow); }
.hero .btn-secondary { background: var(--hero-elev); border-color: var(--hero-border); color: var(--hero-text); backdrop-filter: none; box-shadow: 4px 4px 0 var(--hero-shadow); }
.btn:hover, .hero .btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--pixel-shadow); }
.hero .btn-primary:hover { background: var(--hero-accent); box-shadow: 2px 2px 0 var(--hero-shadow); }
.hero .btn-secondary:hover { background: var(--hero-elev); border-color: var(--hero-accent); box-shadow: 2px 2px 0 var(--hero-shadow); }
.hero-resume-link { font-size: 0.875rem; color: var(--hero-muted); padding-inline: 0; }
.hero-resume-link:hover { color: var(--hero-text); }
.hero-social { gap: 0.8rem; margin-top: 1.6rem; }
.hero-social a { width: 34px; height: 34px; border-radius: 0; border-color: var(--hero-border); background: var(--hero-elev); color: var(--hero-muted); }
.hero-social a:hover { color: var(--hero-accent); border-color: var(--hero-accent); transform: none; }

.hero-portrait { width: min(100%, 240px); margin: 0; padding: 0.4rem; border: 2px solid var(--hero-border); border-radius: 0; background: var(--hero-bg); box-shadow: 6px 6px 0 var(--hero-shadow); backdrop-filter: none; animation: none; }
.hero-portrait img { border-radius: 0; filter: none; aspect-ratio: auto; object-fit: contain; }

.recent { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.section-title, .page-title { font-weight: 400; letter-spacing: -0.04em; line-height: 1.35; }
.section-title { font-size: clamp(1.3rem, 2.1vw, 1.8rem); }
.section-eyebrow::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent-2); margin-right: 8px; }
.card, .series-card { border: 2px solid var(--border); border-radius: 0; box-shadow: 4px 4px 0 var(--pixel-shadow); }
.card:hover, .series-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 4px 6px 0 var(--pixel-shadow); }
.card-thumb { border-bottom: 2px solid var(--border); border-radius: 0; background: var(--hero-bg); }
.card-title { font-weight: 400; font-size: 1.2rem; letter-spacing: -0.04em; line-height: 1.4; }
.card-tags span, .card-cover-tags span, .tags a { border-radius: 0; background: var(--bg-soft); font-family: var(--font-sans); font-size: 0.75rem; }
.card-footer { border-top: 1px dashed var(--border); font-size: 0.75rem; gap: 0.5rem; flex-wrap: wrap; }
.card-read { font-weight: 400; }
.card:nth-child(n) .card-cover { --cover-accent: var(--jade); background: var(--bg-soft); color: var(--text); }
.card-cover-topline { color: var(--accent-text, var(--accent)); border-color: var(--border); }
.card-cover-tags span { color: var(--text-muted); border-color: var(--border); }
.card-cover::before { border-radius: 0; border: 2px solid var(--border); transform: none; }
.card-cover::after { border-radius: 0; }
.card-cover-title { font-weight: 400; font-size: 1.4rem; }
.js .reveal, .js .reveal.visible { opacity: 1; transform: none; transition: none; }
.article-grid { gap: 1.5rem; }
.article-preview { padding: 1.3rem; border: 2px solid var(--border); background: var(--bg-elev); box-shadow: 4px 4px 0 var(--pixel-shadow); }
.article-preview:hover { border-color: var(--accent); }
.article-preview h3 { font-weight: 400; font-size: 1rem; line-height: 1.5; letter-spacing: -0.03em; }
.article-preview-label { color: var(--accent-2); }

.post, .list-page { background: var(--bg); }
.post-title { font-weight: 400; font-size: clamp(1.65rem, 3.2vw, 2.5rem); line-height: 1.35; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.post-content h1, .post-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.post-content h1 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
.post-content h3, .post-content h4, .post-content h5, .post-content h6 { font-family: var(--font-sans); letter-spacing: -0.025em; }
.post-content h2::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 0.65rem; background: var(--accent); box-shadow: 4px 4px 0 var(--pixel-shadow); vertical-align: middle; }
.series-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1rem; line-height: 1.5; }
.series-nav { border-radius: 0; border: 2px solid var(--border); box-shadow: 4px 4px 0 var(--pixel-shadow); }
.series-nav li a { border-radius: 0; }
.series-nav li a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.has-toc .toc, .toc-disclosure, kbd, .term-list a { border-radius: 0; }
.post-content pre, .post-content img, .diagram-frame, .post-content blockquote { border-radius: 0; }
.post-content pre { background: var(--bg); }
.post-content img { box-shadow: 4px 4px 0 var(--pixel-shadow); }
.post-content .series-card-image img { box-shadow: none; }
.diagram-frame { border: 2px solid var(--border); }
.post-content code { border-radius: 0; }
.search-panel, .search-results a, .search-results mark, .lightbox-img-wrapper, .lightbox-img, .lightbox-btn { border-radius: 0; }
.search-panel { border: 2px solid var(--border); }
.search-backdrop { background: rgba(var(--hero-rgb), 0.65); }
.lightbox-overlay { background: rgba(var(--hero-rgb), 0.94); }
.lightbox-caption { color: var(--hero-text); }
.lightbox-counter { color: var(--hero-muted); }
.lightbox-btn { background: var(--hero-elev); border-color: var(--hero-border); color: var(--hero-text); }
.lightbox-btn:hover { background: var(--hero-elev); border-color: var(--hero-accent); color: var(--hero-accent); }
.contact-pill, .section-icon, .company-period-badge, .role-period-tag, .skill-badge, .education-badge, .gpa-badge { border-radius: 0; }
.resume-name { font-weight: 400; font-size: clamp(1.5rem, 3.8vw, 2.75rem); line-height: 1.35; background: none; color: var(--text); overflow-wrap: anywhere; }
.contact-pill { max-width: 100%; }
.contact-pill span { min-width: 0; overflow-wrap: anywhere; }
.contact-pill svg { flex-shrink: 0; }
.section-title-text { font-weight: 400; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--jade); }
.post-content .pure-radio { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0.4rem 0.6rem; font-size: 0.9rem; }
.footer-social a { border-radius: 0; }
.site-footer { background: var(--bg); border-top: 2px solid var(--border); font-family: var(--font-sans); }

@media (max-width: 1000px) and (min-width: 701px) {
  .hero-shell { gap: 1.75rem; }
  .hero-name { font-size: clamp(1.65rem, 3.55vw, 2.2rem); }
  .hero-kicker { max-width: 37ch; }
}
@media (max-width: 840px) {
  .nav-links { background: var(--bg-elev); backdrop-filter: none; border-bottom: 2px solid var(--border); }
}
@media (max-width: 700px) {
  .hero { padding: 2.5rem 0; }
  .hero-shell { display: block; }
  .hero-bg { background-position: 56% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(var(--hero-rgb), 0.94), rgba(var(--hero-rgb), 0.76)); }
  .hero-kicker { max-width: 40ch; line-height: 1.7; margin-bottom: 1rem; }
  .hero-name { font-size: clamp(1.5rem, 8.4vw, 2.8rem); line-height: 1.35; letter-spacing: -0.055em; }
  .hero-tagline { font-size: 0.95rem; }
  .hero-links { gap: 0.8rem; }
  .hero .btn { padding-inline: 0.8rem; }
  .hero-social { margin-top: 1.4rem; }
  .section-head { flex-direction: column; gap: 0.6rem; }
  .section-link { padding-top: 0; white-space: normal; }
  .section-title { font-size: 1.3rem; }
  .recent { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .brand { font-size: 0.75rem; }
  .post-title { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .hero .btn, .card, .series-card { transition: none; }
}
@media print {
  body { background-image: none; }
  .post, .list-page { background: white; }
  .post-content img, .series-card, .series-nav { box-shadow: none; }
}
