:root {
  --bg: #f7fbfd;
  --panel: #ffffff;
  --text: #0e4749;
  --headers: #f85e00;
  --muted: #49686a;
  --line: #c1dff0;
  --accent: #0e4749;
  --accent-dark: #f85e00;
  --sky: #88ccf1;
  --sky-soft: #c1dff0;
  --gold: #edd9a3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--sky-soft) 0, var(--bg) 260px);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.site-footer,
main {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 24px max(16px, calc((100% - 1080px) / 2));
  border-bottom: 3px solid var(--accent-dark);
  background: rgba(255, 255, 255, 0.68);
}

.brand {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand:hover {
  color: var(--accent-dark);
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}

nav a:hover {
  color: var(--accent-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 44px;
  align-items: center;
  padding: 76px 0 52px;
}

.hero-copy {
  min-width: 0;
}

.hero h1,
.page-heading h1,
.article h1 {
  max-width: 820px;
  color: var(--headers);
  margin: 0;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
}

.title {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: 1.1rem;
  font-weight: 700;
}

.location {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.eyebrow,
.date {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  color: var(--muted);
  font-size: 1.2rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: baseline;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.post-meta .date {
  margin: 0;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.contact-links a:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  padding: 28px 0 56px;
}

.main-content,
.sidebar section,
.post-list article,
.timeline article {
  border-top: 1px solid var(--line);
}

.main-content {
  font-size: 1.05rem;
}

.sidebar h2,
.section h2,
.post-list h2,
.post-list h3,
.timeline h3 {
  line-height: 1.15;
}

.section h2,
.sidebar h2 {
  color: var(--accent);
}

.section h2::after,
.sidebar h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-top: 8px;
  background: var(--accent-dark);
  border-radius: 999px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 5px 10px;
  background: var(--gold);
  color: var(--accent);
  font-weight: 650;
}

.section {
  padding: 24px 0 56px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.timeline,
.post-list {
  display: grid;
  gap: 24px;
}

.timeline article,
.post-list article {
  padding-top: 18px;
}

.post-list article {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.post-list article > :not(.post-image) {
  grid-column: 2;
}

.post-list article > .post-image {
  grid-column: 1;
  grid-row: 1 / span 3;
}

.post-list h2,
.post-list h3 {
  margin-top: 0;
}

.company {
  margin-top: -8px;
  color: var(--muted);
  font-weight: 700;
}

.page-heading {
  padding: 64px 0 36px;
}

.intro {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
}

.article {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 0 72px;
}

.article-header {
  max-width: 840px;
  margin: 34px auto 0;
}

.article-header .date {
  margin: 14px 0 10px;
}

.article-header .lede {
  margin-bottom: 0;
}

.article-body {
  max-width: 840px;
  margin: 40px auto 0;
  font-size: 1.08rem;
}

.article-body img {
  max-width: 100%;
  height: auto;
}

.hero-image,
.article-image {
  margin: 0;
}

.hero-image img,
.article-image img,
.post-image img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-image img {
  aspect-ratio: 6 / 7;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.post-image {
  display: block;
  width: 88px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.post-image:hover {
  border-color: var(--accent-dark);
}

.post-image img {
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 180ms ease;
}

.post-image:hover img {
  transform: scale(1.025);
}

.article-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.article-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
    align-items: center;
    flex-direction: row;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header nav {
    position: absolute;
    z-index: 10;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    border-bottom: 3px solid var(--accent-dark);
    background: var(--panel);
    box-shadow: 0 12px 24px rgba(14, 71, 73, 0.14);
  }

  .site-header nav.is-open {
    display: flex;
  }

  .site-header nav a {
    min-height: 52px;
    padding: 13px 16px;
    border-top: 1px solid var(--line);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 48px;
  }

  .hero-image {
    display: none;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-list article {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .post-image {
    width: 64px;
  }
}

.bookshelf-heading {
  max-width: 760px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 28px;
  padding: 0 0 72px;
}

.book-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.book-cover {
  display: block;
  width: 112px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-right: 1px solid var(--line);
}

.book-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  padding: 22px;
}

.book-card h2,
.book-card h3,
.book-card p {
  margin-top: 0;
}

.book-card h2 {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1.15;
}

.book-card h3 {
  margin-bottom: 6px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.book-author {
  font-weight: 700;
}

.book-takeaway {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

@media (max-width: 560px) {
  .book-grid {
    grid-template-columns: 1fr;
  }

  .book-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .book-cover {
    width: 88px;
  }

  .book-card-content {
    gap: 16px;
    padding: 16px;
  }
}
