/* colinpmeyer.com — design spec v1 */

:root {
  --accent: #2A6F97;
  --accent-hover: #1F5577;
  --accent-tint: #EAF2F7;
  --paper: #FFFFFF;
  --card: #FFFFFF;
  --ink: #1F2933;
  --muted: #5B6670;
  --rule: #E4E0DA;
  --font-display: "Shippori Mincho", Georgia, "Times New Roman", serif;
  --font-body: "Zen Kaku Gothic New", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page: 1100px;
  --measure: 68ch;
}

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  background: var(--paper);
  overflow-x: clip;
  overflow-wrap: anywhere;
}

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

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

a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--card);
  padding: 0.5rem 0.75rem;
}

.wrap {
  width: min(var(--page), calc(100% - 2rem));
  margin-inline: auto;
  min-width: 0;
  max-width: 100%;
}

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding: 0.9rem 0;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.brand-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

h1, h2, h3, p, li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

h2 {
  margin: 0 0 0.85rem;
  padding: 0 0 0.4rem;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
}

h3 {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.lede {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  color: var(--muted);
  font-style: italic;
}

.lede em {
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:active {
  background: var(--accent-hover);
  color: #FFFFFF;
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover,
.btn-secondary:active {
  background: var(--accent-tint);
  color: var(--accent);
}

.headshot {
  display: block;
  width: 260px;
  height: 260px;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.home {
  display: grid;
  grid-template-columns: minmax(0, 1.63fr) minmax(280px, 1fr);
  grid-template-areas:
    "title photo"
    "lede  photo"
    "letter photo";
  column-gap: 40px;
  align-items: start;
  padding: 2.5rem 0 3.5rem;
}

.home > * {
  min-width: 0;
  max-width: 100%;
}

.home > h1 {
  grid-area: title;
  margin: 0 0 8px;
}

.home > .lede {
  grid-area: lede;
  margin: 0 0 24px;
}

.home-photo {
  grid-area: photo;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.home-photo .hero-actions {
  flex-direction: row;
  flex-wrap: nowrap;
}

.home-photo .hero-actions .btn {
  flex: 1 1 0;
  white-space: nowrap;
}

.home-photo .headshot {
  width: 260px;
  height: 260px;
  margin: 0 0 20px;
  margin-inline: auto;
}

.info-box {
  list-style: none;
  margin: 0 0 16px;
  padding: 20px;
  background: var(--accent-tint);
  border: none;
  border-radius: 12px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.info-box li + li {
  margin-top: 0.4rem;
}

.home-letter {
  grid-area: letter;
  min-width: 0;
  max-width: var(--measure);
}

.letter p {
  margin: 0 0 1rem;
}

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

.signoff {
  margin-top: 1rem;
}

.more {
  margin-top: 1.75rem;
}

.more p {
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.25rem 0 1.75rem;
  color: var(--muted);
  font-size: 15px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
}

.not-found {
  padding: 3rem 0 4rem;
  max-width: var(--measure);
}

.not-found h1 {
  margin-bottom: 1rem;
}

@media (max-width: 799px) {
  h1 {
    font-size: 34px;
  }

  .home {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "lede"
      "photo"
      "letter";
    padding-top: 1.75rem;
    row-gap: 0;
  }

  .home > h1 {
    margin-bottom: 8px;
  }

  .home > .lede {
    margin-bottom: 24px;
  }

  .home-photo {
    margin-bottom: 28px;
  }

  .hero-actions,
  .home-photo .hero-actions {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .btn,
  .home-photo .hero-actions .btn {
    width: 100%;
    flex: 1 1 auto;
    white-space: normal;
  }

  .header-inner {
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0.6in;
  }

  html,
  body {
    background: #fff;
    color: #000;
  }

  .skip,
  .site-header,
  .site-footer,
  .hero-actions,
  .btn {
    display: none !important;
  }

  a {
    color: #000;
  }

  .home {
    display: block;
    padding: 0;
  }

  .info-box {
    border: none;
    background: #fff;
  }

  h2 {
    color: #000;
    border-bottom: none;
    padding: 0;
    letter-spacing: normal;
    text-transform: none;
  }
}
