/* Zam — portfolio stylesheet
   System fonts. Single accent. No frameworks.
   Accent: deep blue #1d4ed8
*/

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fbf9f5;
}

img, svg { max-width: 100%; height: auto; display: block; }

/* Layout */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}
.container.wide {
  max-width: 960px;
}

/* Header / nav */
header.site {
  border-bottom: 1px solid #e6e2da;
  padding: 18px 0;
  margin-bottom: 48px;
}
header.site .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 24px;
}
header.site .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  color: #1a1a1a;
  margin-right: auto;
}
header.site .brand-icon {
  width: 22px;
  height: 22px;
  display: block;
}
header.site nav a {
  font-size: 15px;
  text-decoration: none;
  color: #555;
}
header.site nav a:hover { color: #1d4ed8; }
header.site nav a[aria-current="page"] {
  color: #1d4ed8;
  font-weight: 600;
  border-bottom: 2px solid #1d4ed8;
  padding-bottom: 2px;
}
header.site nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* Footer */
footer.site {
  border-top: 1px solid #e6e2da;
  margin-top: 80px;
  padding: 32px 0;
  font-size: 15px;
  color: #666;
}
footer.site .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer.site a { color: #666; }

/* Typography */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: #111; }
h1 { font-size: 38px; margin: 0 0 18px; letter-spacing: -0.01em; }
h2 { font-size: 26px; margin: 48px 0 14px; }
h3 { font-size: 20px; margin: 32px 0 10px; }
h4 { font-size: 17px; margin: 24px 0 8px; text-transform: uppercase; letter-spacing: 0.04em; color: #555; }
p { margin: 0 0 18px; }
small, .meta { font-size: 14px; color: #666; }

/* Links */
a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* Hero */
.hero {
  padding: 24px 0 16px;
}
.hero h1 { font-size: 44px; }
.hero .lede { font-size: 21px; color: #333; margin: 0 0 28px; }

/* Buttons */
.btn {
  display: inline-block;
  background: #1d4ed8;
  color: white;
  padding: 12px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.btn:hover { background: #1742b8; text-decoration: none; }
.btn.secondary { background: transparent; color: #1d4ed8; border: 1px solid #1d4ed8; }

/* Cards / sections */
.card {
  border: 1px solid #e6e2da;
  background: #fff;
  border-radius: 6px;
  padding: 22px 24px;
  margin: 16px 0;
}
.card h3 { margin-top: 0; }

.principles-preview { display: grid; gap: 16px; margin: 24px 0; }

/* Code */
code, pre {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 15px;
}
code {
  background: #f1ede4;
  padding: 1px 5px;
  border-radius: 3px;
}
pre {
  background: #f1ede4;
  padding: 16px 18px;
  border-radius: 4px;
  overflow-x: auto;
  line-height: 1.5;
}
pre code { background: transparent; padding: 0; }

/* Quote */
blockquote {
  margin: 24px 0;
  padding: 4px 22px;
  border-left: 3px solid #1d4ed8;
  color: #333;
  font-style: italic;
  font-size: 19px;
}

/* Tables */
table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 16px; }
th, td { border-bottom: 1px solid #e6e2da; padding: 8px 10px; text-align: left; }
th { font-weight: 600; }

/* Figures */
figure { margin: 24px 0; }
figcaption { font-size: 14px; color: #666; margin-top: 8px; text-align: center; }

/* Lists */
ul, ol { padding-left: 24px; }
li { margin-bottom: 6px; }

/* Utilities */
.muted { color: #666; }
.callout {
  background: #f1ede4;
  border-left: 3px solid #c2410c;
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 4px 4px 0;
  font-size: 16px;
}
.callout strong { display: block; margin-bottom: 4px; }

/* About page */
.about-intro {
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 8px 0 28px;
}
.about-intro p { margin: 0; }
.about-photo {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #f1ede4;
  border: 1px solid #e6e2da;
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 32px;
  padding: 14px 18px;
  background: #f1ede4;
  border-radius: 6px;
  font-size: 15px;
  color: #555;
}
.about-chips .sep { color: #b8b0a0; }

.role { margin: 0 0 22px; }
.role-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  margin: 0 0 6px;
}
.role-title { font-weight: 600; color: #111; }
.role-dates { font-size: 15px; color: #666; }
.role p { margin: 0; }

.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 6px; }

/* Print */
@media print {
  body { background: white; color: black; font-size: 12pt; }
  header.site, footer.site, .btn { display: none; }
  a { color: black; text-decoration: none; }
}
