/*
  jeffokita.com styles
  Modeled on the original Squarespace design. Squarespace used the Adobe fonts
  "Minerva Modern" (main) and "Minion Pro" (accents); Belleza and Crimson Pro
  are the closest free stand-ins.
*/

:root {
  --font-main: "Belleza", Optima, "Segoe UI", sans-serif;
  --font-accent: "Crimson Pro", "Minion Pro", Georgia, serif;

  --text: #293047;
  --heading: #1a1f2d;
  --muted: #6b7184;
  --bg: #ffffff;
  --bg-alt: #f2f5f6;
  --rule: #d9dee3;
  --button: #1a1f2d;
  --button-text: #ffffff;

  --gutter: 40px;
  --max: 1200px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.035em;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  color: var(--heading);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.25;
}

h1 { font-size: clamp(36px, 5.5vw, 54px); margin: 0 0 0.6em; }
h2 { font-size: clamp(24px, 3vw, 30px); }
h3 { font-size: 22px; }

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

/* ---------- Header ---------- */

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 36px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header nav.secondary { justify-content: flex-end; }

.site-header a {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
}

.site-header a:hover,
.site-header a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.site-header .site-title {
  font-size: 20px;
  letter-spacing: 0.25em;
  color: var(--heading);
}

/* ---------- Sections ---------- */

.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.section-title { text-align: center; }

.hero {
  padding: 90px var(--gutter) 150px;
  text-align: center;
}

.hero h1 {
  max-width: 580px;
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  align-items: start;
}

.split > .text > :first-child { margin-top: 0; }

/* ---------- Work experience ---------- */

.company { max-width: 900px; margin: 0 auto; }
.company + .company {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--rule);
}

.company-intro {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 36px;
}

.company-intro img {
  width: 41px;
  flex: none;
  margin-top: 6px;
}

.company-intro p { margin: 0; font-size: 16px; }

.role {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  font-size: 16px;
}

.role + .role { margin-top: 28px; }

.role-meta p { margin: 0 0 18px; font-weight: 700; }
.role-meta .role-title { font-style: italic; }
.role-body p:first-child { margin-top: 0; }
.role-body ul { padding-left: 1.4em; margin: 0; }
.role-body li { margin-bottom: 0.5em; }

/* ---------- Outside of work ---------- */

.interest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  max-width: 1100px;
  margin: 0 auto;
}

.interest + .interest { margin-top: 48px; }
.interest h3 { font-size: 16px; font-weight: 700; margin: 0 0 1em; }
.interest p { margin: 0; font-size: 16px; }

/* ---------- Contact ---------- */

.contact-form { display: grid; gap: 18px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.contact-form label {
  display: block;
  font-size: 15px;
  color: var(--heading);
}

.contact-form .hint { font-size: 11px; color: var(--muted); }

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid #a9b0bb;
  border-radius: 0;
  background: #fafafa;
  font: inherit;
  font-size: 16px;
  color: var(--text);
}

.contact-form textarea { min-height: 110px; resize: vertical; }

.button {
  justify-self: start;
  padding: 20px 36px;
  border: 0;
  background: var(--button);
  color: var(--button-text);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover { opacity: 0.85; }

.form-note { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-alt);
  padding: 80px var(--gutter);
  text-align: center;
}

.site-footer .email {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 24px;
  color: var(--heading);
  text-decoration: none;
}

.social { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }

.social a {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---------- Writing / blog ---------- */

.banner {
  height: 340px;
  background-size: cover;
  background-position: center;
}

.page-intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.page-intro p { color: var(--text); }

.blog-section + .blog-section { margin-top: 90px; }

.blog-section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.blog-section-header img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.blog-section-header h2 { margin-top: 0; }
.blog-section-header h2 a { text-decoration: none; }

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 48px 40px;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
}

.post-list a {
  font-size: 22px;
  line-height: 1.3;
  color: var(--heading);
  text-decoration: none;
}

.post-list a:hover { text-decoration: underline; }

.post-date {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Single post ---------- */

.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px var(--gutter) 100px;
}

.post-header { text-align: center; margin-bottom: 56px; }
.post-header .post-date { margin: 0 0 24px; }
.post-header h1 { font-size: clamp(30px, 4.5vw, 42px); }

.post-body h2 { margin: 1.8em 0 0.6em; }
.post-body h3 { margin: 1.5em 0 0.5em; }
.post-body figure { margin: 2em 0; }
.post-body img { margin: 0 auto; }
.post-body blockquote {
  margin: 1.5em 0;
  padding-left: 1.2em;
  border-left: 2px solid var(--rule);
  font-family: var(--font-accent);
  font-size: 21px;
  font-style: italic;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px var(--gutter) 90px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
}

.post-nav a { text-decoration: none; }
.post-nav a:hover { text-decoration: underline; }
.post-nav .label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-nav .next { text-align: right; margin-left: auto; }

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  :root { --gutter: 20px; }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .site-header .site-title { order: -1; }
  .site-header nav,
  .site-header nav.secondary { justify-content: center; }

  .section { padding: 72px 0; }
  .hero { padding: 48px var(--gutter) 80px; }

  .split,
  .interest,
  .blog-section-header,
  .role,
  .contact-form .row { grid-template-columns: 1fr; }

  .role { gap: 0; }
  .role-meta p { margin-bottom: 6px; }
  .role-meta { margin-bottom: 12px; }

  .banner { height: 200px; }
}
