/* Jake Bechtold — personal site
   Minimal, clean, editorial layout. */

:root {
  --bg: #fafaf8;
  --bg-alt: #f2f1ed;
  --ink: #1c1c1a;
  --ink-soft: #55534c;
  --line: #e2e0d8;
  --accent: #c1440e; /* warm broadcast-red, used sparingly */
  --accent-ink: #ffffff;
  --max-w: 780px;
  --gutter: 1.5rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Splash banner */
.splash {
  width: 100%;
  height: clamp(160px, 26vw, 360px);
  overflow: hidden;
  background: var(--ink);
}
.splash img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
}

/* Header */
header.site-header {
  padding: 3rem 0 2.5rem;
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.9rem;
}
.hero {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.hero-photo {
  flex: 0 0 auto;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.1rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}
.tagline {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Nav / social row */
nav.links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.6rem;
  font-size: 0.92rem;
}
nav.links a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
nav.links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Sections */
main section {
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
}
main section:first-of-type { border-top: none; padding-top: 0; }

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 1.1rem;
}

.lede {
  font-size: 1.08rem;
}

p { margin: 0 0 1.1rem; color: var(--ink); }
section p:last-child { margin-bottom: 0; }

/* Certifications */
.cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cert-list li {
  padding-left: 1.15rem;
  position: relative;
  color: var(--ink-soft);
}
.cert-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.cert-list strong { color: var(--ink); font-weight: 600; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery a:hover img { transform: scale(1.045); }
.gallery figure:nth-child(4) { grid-column: span 1; aspect-ratio: 3/4; }
.gallery figure:nth-child(1) { aspect-ratio: 3/4; }

.gallery-caption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Availability callout */
.callout {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.6rem 1.8rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout .cta {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.callout .cta:hover {
  color: var(--accent-ink);
  opacity: 0.9;
}

/* Footer */
footer {
  padding: 2.5rem 0 4rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
footer a { color: var(--ink-soft); }

/* Responsive */
@media (max-width: 560px) {
  header.site-header { padding: 3rem 0 2rem; }
  .hero { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .hero-photo { width: 84px; height: 84px; }
  h1 { font-size: 1.7rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:nth-child(1),
  .gallery figure:nth-child(4) { aspect-ratio: 4/3; }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161614;
    --bg-alt: #1e1e1b;
    --ink: #eeeee8;
    --ink-soft: #9c9a8f;
    --line: #2c2b27;
    --accent: #e2652a;
  }
  .hero-photo { border-color: var(--line); }
}
