:root {
  --bg: #f5f3ee;
  --ink: #111;
  --ink-secondary: #777;
  --mono-label: #999;
  --accent: #d63623;
  --hairline: #d9d6cf;
}

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

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Switzer', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.mono {
  font-family: 'Intel One Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--mono-label);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* header */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
header.site .row {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
header.site .name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
header.site .meta {
  font-family: 'Intel One Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--mono-label);
}
header.site .nav {
  font-family: 'Intel One Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  display: flex;
  gap: 16px;
}
header.site .nav a { color: var(--mono-label); }
header.site .nav a.here { color: var(--ink); }
header.site .nav a:hover { color: var(--ink); }

/* layout */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
  border-bottom: 1px solid transparent;
}

.label {
  display: block;
  margin-bottom: 48px;
}

.page-of {
  display: block;
  margin-top: 64px;
}

/* type */
.hero {
  font-family: 'Switzer', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 5.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px 0;
  color: var(--ink);
}

.subtitle {
  font-family: 'Switzer', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.3;
  color: var(--ink-secondary);
  margin: 0 0 40px 0;
  letter-spacing: -0.005em;
}

.lede {
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
  color: var(--ink);
  margin: 0;
}

h2.section-head {
  font-family: 'Switzer', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 28px 0;
}

h3.sub-head {
  font-family: 'Switzer', system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 14px 0;
}

p { margin: 0 0 20px 0; }
p:last-child { margin-bottom: 0; }

/* metadata block */
dl.meta-block {
  font-family: 'Intel One Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--ink-secondary);
  display: grid;
  grid-template-columns: 160px 1fr;
  row-gap: 8px;
  column-gap: 16px;
  margin: 40px 0 0 0;
}
dl.meta-block dt {
  color: var(--mono-label);
  font-weight: 400;
}
dl.meta-block dd {
  margin: 0;
  color: var(--ink-secondary);
}
dl.meta-block dd a { color: var(--ink); }

/* sub-blocks inside section 03 */
.block {
  margin-bottom: 96px;
}
.block:last-child { margin-bottom: 0; }

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

/* portrait */
.portrait {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 64px auto 0 auto;
}

/* footer */
footer.site {
  border-top: 1px solid var(--hairline);
  padding: 32px 24px;
  text-align: center;
  font-family: 'Intel One Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  color: var(--mono-label);
}

/* slab interludes */
.slab {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  height: 60vh;
  min-height: 380px;
  max-height: 520px;
  color: #ffffff;
  overflow: hidden;
  margin-top: 48px;
  margin-bottom: 48px;
  background-color: #1d4ed8;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.slab--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.30) 0%,
    rgba(0, 0, 0, 0.18) 30%,
    rgba(0, 0, 0, 0.18) 70%,
    rgba(0, 0, 0, 0.36) 100%);
  pointer-events: none;
}
.slab .line {
  position: absolute;
  left: 12%;
  max-width: 60%;
  font-family: 'Switzer', system-ui, sans-serif;
  color: #ffffff;
  letter-spacing: -0.005em;
  margin: 0;
  z-index: 1;
}
.slab--image .line { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
.slab .line-top {
  top: 11%;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
}
.slab .line-bot {
  bottom: 11%;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
}

/* slab background images. used to be inline style attributes, moved here as classes. */
.slab--kareoke { background-image: url('images/kareoke.jpg'); }
.slab--gazelle { background-image: url('images/gazelle.jpg'); }
.slab--notebook { background-image: url('images/notebook.jpg'); }
.slab--dog { background-image: url('images/dog.jpg'); }

/* mobile */
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .hero { font-size: clamp(28px, 9vw, 36px); }
  .subtitle { font-size: 16px; margin-bottom: 32px; }
  .lede { font-size: 15px; }
  h2.section-head { font-size: 22px; }
  h3.sub-head { font-size: 17px; }
  dl.meta-block {
    grid-template-columns: 120px 1fr;
    column-gap: 12px;
    font-size: 10px;
  }
  header.site .row {
    padding: 12px 20px;
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  header.site .name { font-size: 13px; }
  header.site .meta { font-size: 10px; }
  header.site .nav { font-size: 10px; }
  main { padding: 0 20px; }
  .slab {
    height: 52vh;
    min-height: 340px;
    max-height: 440px;
    margin-top: 32px;
    margin-bottom: 32px;
  }
  .slab .line { left: 8%; max-width: 80%; }
  .slab .line-top { font-size: 14px; }
  .slab .line-bot { font-size: 13px; }
}
