/*
 * Zane Hambly - Personal Site
 * Minimal, clean, no nonsense
 */

:root {
  --bg: #fafaf8;
  --text: #1a1a1a;
  --text-muted: #555;
  --accent: #2d5a7b;
  --rule: #ddd;
  --max-width: 680px;
}

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

html {
  font-size: 17px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Serif', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  padding: 3rem 1.5rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Typography */

h1 {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

h2 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

h3:first-child {
  margin-top: 0;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */

header {
  margin-bottom: 2.5rem;
}

.tagline {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Site nav */

.site-nav {
  margin-top: 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
}

.site-nav a {
  color: var(--text-muted);
  margin-right: 1.5rem;
}

.site-nav a:hover {
  color: var(--accent);
}

.back-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.back-link a {
  color: var(--text-muted);
}

.back-link a:hover {
  color: var(--accent);
}

/* Sections */

section {
  margin: 2.5rem 0;
}

.intro {
  margin-top: 0;
}

.location {
  font-style: italic;
  color: var(--text-muted);
}

/* Doodles */

.doodle {
  display: block;
  max-width: 85%;
  height: auto;
  margin: 2rem auto;
  opacity: 0.95;
}

.sketch {
  width: 240px;
  height: auto;
  margin: 0 -1rem 0.5rem 1.25rem;
  float: right;
  opacity: 0.95;
  pointer-events: none;
}

.sketch-left {
  width: 240px;
  height: auto;
  margin: 0 1.25rem 0.5rem -1rem;
  float: left;
  opacity: 0.95;
  pointer-events: none;
}

@media (max-width: 600px) {
  .sketch, .sketch-left {
    width: 130px;
    margin: 0 0 0.5rem 0.75rem;
    float: right;
  }
}

/* Featured project */

.featured {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: #f5f5f3;
}

.featured h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  margin: 0 0 0.5rem 0;
}

.featured p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.featured p:last-child {
  margin-bottom: 0;
}

.featured .desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.featured code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9em;
  background: #eaeae8;
  padding: 0.1em 0.3em;
  border-radius: 2px;
}

/* Horizontal rules */

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* Project categories */

.category {
  margin-bottom: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.category:first-child {
  border-top: none;
  padding-top: 0;
}

/* Project lists */

.projects ul {
  list-style: none;
}

.projects li {
  margin-bottom: 0.9rem;
  padding-left: 0;
}

.projects li a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  font-weight: 500;
}

.projects .desc {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Services */

.services ul {
  list-style: none;
  margin-top: 1rem;
}

.services li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.services li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* Contact */

.contact p {
  margin-bottom: 0.5rem;
}

.contact a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
}

/* Footer */

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Responsive */

@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  body {
    padding: 2rem 1.25rem;
  }

  h1 {
    font-size: 1.75rem;
  }
}

/* Breadcrumb nav */

.breadcrumb {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Product cards */

.product {
  margin-bottom: 2.5rem;
}

.product h3 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 0.25rem;
  margin-top: 0;
}

.product .status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.product .features {
  list-style: none;
  margin: 1rem 0;
}

.product .features li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.product .features li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.product .use-cases {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product .use-cases strong {
  color: var(--text);
}

.product .license-note {
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 0.75rem;
}

/* Licensing section */

.licensing ul {
  list-style: none;
  margin: 1rem 0;
}

.licensing li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.licensing li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* Note text */

.note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Commercial link on main page */

.commercial-link {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}

/* Enterprise section */

.enterprise-note {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.enterprise .product {
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

/* Non-profit section */

.nonprofit {
  background: #f5f5f3;
  padding: 1.5rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 600px) {
  .nonprofit {
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Detail page elements */

.status-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.status-badge.available {
  color: #2d7b3a;
}

.status-badge.in-development {
  color: var(--accent);
}

.status-badge.planned {
  color: var(--text-muted);
}

.detail-section {
  margin: 2rem 0;
}

.detail-section h2 {
  margin-bottom: 1rem;
}

.roadmap {
  list-style: none;
  margin: 1rem 0;
}

.roadmap li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.roadmap.done li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #2d7b3a;
  font-weight: 500;
}

.roadmap.planned li::before {
  content: "\25cb";
  position: absolute;
  left: 0.1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.tech-details {
  list-style: none;
  margin: 1rem 0;
}

.tech-details li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.tech-details li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* Learn more links */

.learn-more {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Tool listing (commercial overview) */

.tool-list p {
  margin-bottom: 0.6rem;
}

.tool-list {
  margin: 1.5rem 0;
}

/* Detail page links (commercial overview) */

.detail-link {
  margin-top: 1.5rem;
}

.detail-link a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.15rem;
  text-decoration: none;
}

.detail-link a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
  text-decoration: none;
}

/* Contribution articles */

.contribution {
  margin-bottom: 1.5rem;
}

.contribution h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.contribution code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9em;
  background: #f0f0ee;
  padding: 0.1em 0.3em;
  border-radius: 2px;
}

/* Print */

@media print {
  body {
    background: white;
    padding: 0;
  }

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

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: var(--text-muted);
  }
}
