/* jackprior.ai : editorial stylesheet */

/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── tokens ── */
:root {
  --bg:        #FAF8F5;
  --bg-card:   #F0EBE4;
  --text:      #1C1A17;
  --muted:     #645C52;
  --accent:    #6B4F35;
  --border:    #DDD8CF;
  --w:         760px;
}

/* ── base ── */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
}

.container {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* inline links: always underlined so they read as links without hover */
.media-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── typography scale ── */
h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.75rem;
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h2 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  font-weight: normal;
  margin-bottom: 0.6rem;
}

/* ── site header ── */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-name {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: normal;
  line-height: 1;
  margin: 0;
  color: var(--text);
  letter-spacing: 0.01em;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 1.25rem;
}
.site-header nav a {
  color: var(--muted);
  font-size: 0.875rem;
}
.site-header nav a:hover { color: var(--accent); text-decoration: none; }

/* ── hero banner ── */
.hero-banner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 360px;
  overflow: hidden;
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% top;
  display: block;
}

/* ── hero ── */
.hero-lead {
  font-size: 1.175rem;
  line-height: 1.65;
  margin-bottom: 0.9rem;
}

.media-art {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin-bottom: 0.9rem;
}

/* ── section base ── */
section { padding: 2rem 0; border-top: 1px solid var(--border); }

/* ── about ── */
.about {
  border-top: none;
  padding-top: 2rem;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
}


/* ── gateways ── */
.gateway-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.gateway-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.gateway h3 a { color: var(--accent); }
.gateway h3 a::after { content: ' ↗'; font-size: 0.8em; }
.gateway h3 a:hover { text-decoration: underline; }

.gateway p { color: var(--text); font-size: 0.975rem; }

/* ── talks and media ── */
.testimonial {
  margin: 0 0 2.25rem;
  padding: 0.2rem 0 0.2rem 1.25rem;
  border-left: 2px solid var(--accent);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}
.testimonial cite {
  display: block;
  margin-top: 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.media-info h3 {
  font-size: 0.975rem;
  margin-bottom: 0.4rem;
}
.media-info h3 a { color: var(--accent); }
.media-info h3 a::after { content: ' ↗'; font-size: 0.8em; }
.media-info h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }

.media-info p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  line-height: 1.45;
}

.media-link {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

/* ── thumbnail grids (LinkedIn posts, personal) ── */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
  margin-top: 2rem;
}

/* apps grid: four cards as a balanced 2x2 */
.apps .thumb-grid {
  grid-template-columns: repeat(2, 1fr);
}

.thumb-card { display: block; color: var(--text); }
.thumb-card:hover { text-decoration: none; }
.thumb-card:hover .thumb-label { color: var(--accent); }

.thumb-card img,
.thumb-card .thumb-placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin-bottom: 0.6rem;
}

/* letterbox treatment for images that should not be cropped */
.thumb-card img.thumb-contain,
.media-card img.thumb-contain {
  object-fit: contain;
  background: #2b2b2b;
}

/* light letterbox for logos and graphics on white */
.thumb-card img.thumb-contain-light {
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
}

.thumb-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}

.thumb-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.7rem;
}

.thumb-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}
.thumb-label::after {
  content: ' ↗';
  font-size: 0.8em;
  font-weight: normal;
}

/* ── contact ── */
.contact-row {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  font-size: 0.95rem;
}
.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-row a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── footer ── */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── responsive ── */
@media (max-width: 640px) {
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .site-header nav { justify-content: flex-start; gap: 0.4rem 0.9rem; }

  .hero-banner { height: 200px; }

  section { padding: 2rem 0; }

  .gateway-pair { grid-template-columns: 1fr; gap: 2.5rem; }
  .media-grid { grid-template-columns: 1fr; }
  .thumb-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }

}
