/* Soft push-up + fade entrance on page load. Plain CSS, works the same in every browser every time. */
body {
  animation: 0.4s ease both page-push-in;
}

@keyframes page-push-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:root {
  --bg: #f7f6f4;
  --ink: #0a0a0a;
  --muted: #888e90;
  --chip: #ececea;
  --content-width: 640px;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Karla', sans-serif;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-skip-ink: none;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 0;
}

.logo {
  display: block;
  line-height: 0;
}

.logo img {
  width: 64px;
  height: 64px;
  display: block;
  transition: transform 0.25s ease;
}

.logo:hover img {
  transform: scale(1.08) rotate(-4deg);
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Karla', sans-serif;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  padding: 16px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.site-nav a:hover {
  background: #F7F7F8;
}

.site-nav a.active {
  background: #F7F7F8;
  border-radius: 4px 4px 0 0;
  box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.8);
}

.chevron {
  width: 8px;
  height: 14px;
  display: block;
  transition: transform 0.2s ease;
}

.site-nav a:hover .chevron {
  transform: translateX(3px);
}

.site-nav a:hover .chevron.chevron-flip {
  transform: scaleX(-1) translateX(3px);
}

.chevron-flip {
  transform: scaleX(-1);
}

/* ---------- Main content column ---------- */

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 96px 24px 80px;
}

/* ---------- Hero ---------- */

.hero h1 {
  font-family: 'Texturina', serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 1.1;
  margin: 0 0 24px;
}

.hero p {
  margin: 0 0 16px;
}

.hero p:last-child {
  margin-bottom: 0;
}

.divider {
  width: 163px;
  height: auto;
  margin: 32px 0 0;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hero a {
  text-decoration: underline;
}

.hero strong {
  font-weight: 700;
}

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

.section-title {
  font-family: 'Texturina', serif;
  font-weight: 600;
  font-size: 32px;
  margin: 96px 0 40px;
}

.entry {
  margin-bottom: 56px;
}

.entry-eyebrow {
  font-family: 'Karla', sans-serif;
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 12px;
}

.entry-body {
  margin: 0 0 24px;
}

.entry-images {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.entry-images img {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
}

.closing-note {
  margin-top: 64px;
  color: var(--ink);
}

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

footer {
  margin-top: 96px;
}

footer h2 {
  font-family: 'Karla', sans-serif;
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 24px;
}

footer p {
  margin: 0 0 24px;
}

.social-links {
  display: flex;
  gap: 8px;
  margin-top: 32px;
}

.social-links a {
  font-family: 'Karla', sans-serif;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ---------- About page specifics ---------- */

.about-intro {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 16px;
}

.about-intro-text {
  flex: 1;
  min-width: 0;
}

.about-intro-text p {
  margin: 0 0 16px;
}

.about-intro-text p:last-child {
  margin-bottom: 0;
}

.about-photos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
}

.about-photo {
  width: 160px;
  flex-shrink: 0;
  border: 1px solid #000000;
  border-radius: 8px;
  filter: drop-shadow(8px 8px 0px rgba(0, 0, 0, 0.8));
  margin: 0;
  display: block;
  object-fit: cover;
  box-sizing: border-box;
}

.about-section {
  margin-top: 56px;
}

.hero + .about-section {
  margin-top: 96px;
}

.about-section h2 {
  font-family: 'Texturina', serif;
  font-weight: 600;
  font-size: 32px;
  margin: 0 0 16px;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 44px;
  }

  .entry-images {
    flex-direction: column;
  }

  .about-photo {
    width: 120px;
  }

  .site-header {
    padding-top: 24px;
  }

  main {
    padding-top: 64px;
  }
}
