/* ==========================================================================
   page.css — the "page" layout (About, 404)
   Reflects the same design language as index.css: sans-serif type, the
   ink/red/border token system from base.css, and the floating card look
   used for the homepage panels. Linked only from _layouts/page.html.
   ========================================================================== */

.page {
  max-width: 700px;
  margin: 2.5rem auto 4rem;
  padding: 0 1rem;
  font-family: var(--font);
  color: var(--ink);
}

.page h1 {
  font-family: var(--font);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 1.5rem;
}

.page .entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.page .entry p {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

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

.page .entry strong {
  color: var(--ink);
  font-weight: 600;
}

.page .entry em {
  color: var(--ink-soft);
  font-style: italic;
}

.page .entry a {
  color: var(--blue);
}

/* :not(.timeline) — the companies timeline below is also a <ol> inside
   .entry, but it's a base.css component with its own rail/dot styling,
   not a plain markdown bullet list. */
.page .entry ul:not(.timeline),
.page .entry ol:not(.timeline) {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page .entry li:not(.timeline-item) {
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.page .entry li:not(.timeline-item)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--red);
}

@media screen and (max-width: 640px) {
  .page {
    margin: 1.5rem auto 3rem;
  }
}

/* -------------------------------------------------------------------- */
/* About — portrait + intro, and a companies timeline reusing the same   */
/* rail component the homepage's Career panel uses (base.css)            */
/* -------------------------------------------------------------------- */

.about-portrait {
  float: left;
  width: 120px;
  height: 120px;
  margin: 0 1.5rem 1rem 0;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px color-mix(in srgb, var(--red) 30%, transparent);
}

@media screen and (max-width: 640px) {
  .about-portrait {
    float: none;
    display: block;
    margin: 0 auto 1.25rem;
  }
}

.about-section-title {
  clear: both;
  margin-top: 2rem;
}

.about-timeline {
  margin-bottom: 1.5rem;
}

.about-timeline .item-title {
  display: block;
  margin-bottom: 0.2rem;
}

/* .page .entry p (above) would otherwise win on specificity and stretch
   this back to full paragraph size/spacing */
.about-timeline p.item-desc {
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0.35rem 0 0;
  text-align: left;
}
