/*
Theme Name: Peter Coyl
Author: Peter Coyl
Description: One-page personal website.
Version: 1.0
Text Domain: peter-coyl
*/

body { margin: 0; background: #F7F7F1; }
body.admin-bar .pc-site .pc-nav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .pc-site .pc-nav { top: 46px; }
}

.pc-site {

  --pc-ink:     #1250B6;
  --pc-deep:    #0A3263;
  --pc-gold:    #F6C312;
  --pc-delta:   #0FBBEC;
  --pc-paper:   #F7F7F1;
  --pc-text:    #000000;

  --pc-purple:  #552864;
  --pc-magenta: #95316f;

  --pc-rule:    #d8d8cc;
  --pc-muted:   #404040;

  --pc-sans:  "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --pc-serif: "Newsreader", Georgia, "Times New Roman", serif;

  font-family: var(--pc-serif);
  font-size: 19px;
  line-height: 1.7;
  color: var(--pc-text);
  background: var(--pc-paper);
}

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

.pc-site .pc-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  padding: 14px 24px;
  background: var(--pc-ink);
}
.pc-site .pc-nav a {
  font-family: var(--pc-sans);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 3px solid transparent;
}
.pc-site .pc-nav a:hover { border-bottom-color: var(--pc-gold); }
.pc-site .pc-nav a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.pc-site .pc-hero {
  background: var(--pc-paper);
  padding: 84px 24px 0;
  overflow: hidden;
}
.pc-site .pc-hero-inner { max-width: 1040px; margin: 0 auto; }
.pc-site .pc-hero h1 {
  font-family: var(--pc-sans);
  font-weight: 800;
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  color: var(--pc-ink);
}
.pc-site .pc-title {
  font-family: var(--pc-sans);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: var(--pc-text);
}
.pc-site .pc-tagline {
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.3;
  max-width: 24ch;
  margin: 0 0 28px;
  color: var(--pc-text);
}
.pc-site .pc-intro { max-width: 62ch; margin: 0; }

.pc-site .pc-shelf {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 210px;
  margin-top: 56px;
  border-bottom: 8px solid var(--pc-ink);
}
.pc-site .pc-shelf i {
  display: block;
  flex: 1 1 0;
  min-width: 12px;
  max-width: 58px;
  height: var(--h, 120px);
  border-radius: 3px 3px 0 0;
  background: var(--pc-ink);
  transform-origin: bottom;
  animation: pc-rise 0.9s cubic-bezier(.2,.7,.2,1) both;
}
.pc-site .pc-shelf i:nth-child(4n+2) { background: var(--pc-gold); }
.pc-site .pc-shelf i:nth-child(4n+3) { background: var(--pc-delta); }
.pc-site .pc-shelf i:nth-child(4n+4) { background: var(--pc-purple); }

.pc-site .pc-shelf i:nth-child(1)  { --h: 120px; animation-delay: 0.05s; }
.pc-site .pc-shelf i:nth-child(2)  { --h: 170px; animation-delay: 0.10s; }
.pc-site .pc-shelf i:nth-child(3)  { --h:  96px; animation-delay: 0.15s; }
.pc-site .pc-shelf i:nth-child(4)  { --h: 150px; animation-delay: 0.20s; }
.pc-site .pc-shelf i:nth-child(5)  { --h: 192px; animation-delay: 0.25s; }
.pc-site .pc-shelf i:nth-child(6)  { --h: 110px; animation-delay: 0.30s; }
.pc-site .pc-shelf i:nth-child(7)  { --h: 160px; animation-delay: 0.35s; }
.pc-site .pc-shelf i:nth-child(8)  { --h:  84px; animation-delay: 0.40s; }
.pc-site .pc-shelf i:nth-child(9)  { --h: 184px; animation-delay: 0.45s; }
.pc-site .pc-shelf i:nth-child(10) { --h: 130px; animation-delay: 0.50s; }
.pc-site .pc-shelf i:nth-child(11) { --h: 100px; animation-delay: 0.55s; }
.pc-site .pc-shelf i:nth-child(12) { --h: 176px; animation-delay: 0.60s; }
.pc-site .pc-shelf i:nth-child(13) { --h: 140px; animation-delay: 0.65s; }
.pc-site .pc-shelf i:nth-child(14) { --h: 108px; animation-delay: 0.70s; }
.pc-site .pc-shelf i:nth-child(15) { --h: 166px; animation-delay: 0.75s; }
.pc-site .pc-shelf i:nth-child(16) { --h:  90px; animation-delay: 0.80s; }

@keyframes pc-rise {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.pc-site .pc-section { padding: 76px 24px; }
.pc-site .pc-section.pc-alt { background: #fff; }

.pc-site .pc-wrap {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
}
.pc-site .pc-wrap > h2 {
  align-self: start;
  position: sticky;
  top: 72px;
  margin: 0;
  font-family: var(--pc-sans);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--pc-ink);
}
.pc-site .pc-body { max-width: 66ch; }

.pc-site h3 {
  font-family: var(--pc-sans);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 40px 0 10px;
  color: var(--pc-ink);
}
.pc-site .pc-body > h3:first-child { margin-top: 0; }
.pc-site p { margin: 0 0 18px; }
.pc-site ul { margin: 0 0 18px; padding-left: 20px; }
.pc-site li { margin-bottom: 8px; }

.pc-site a { color: var(--pc-ink); text-underline-offset: 3px; }
.pc-site a:hover { color: var(--pc-deep); }
.pc-site a:focus-visible { outline: 3px solid var(--pc-ink); outline-offset: 3px; }

.pc-site .pc-entry {
  border-left: 5px solid var(--pc-gold);
  padding: 2px 0 2px 20px;
  margin: 0 0 28px;
}
.pc-site .pc-entry h3 { margin: 0 0 2px; color: var(--pc-text); }
.pc-site .pc-entry .pc-when {
  font-family: var(--pc-sans);
  font-size: 0.95rem;
  color: var(--pc-muted);
  margin: 0 0 10px;
}
.pc-site .pc-entry p:last-child,
.pc-site .pc-entry ul:last-child { margin-bottom: 0; }

.pc-site .pc-facts { list-style: none; padding: 0; margin: 0 0 24px; }
.pc-site .pc-facts li {
  padding: 12px 0;
  margin: 0;
  border-top: 1px solid var(--pc-rule);
}
.pc-site .pc-facts li:last-child { border-bottom: 1px solid var(--pc-rule); }

.pc-site .pc-feature {
  background: var(--pc-ink);
  color: #fff;
}
.pc-site .pc-timeline-intro {
  max-width: 1040px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
}
.pc-site .pc-timeline-intro h2 {
  margin: 0;
  font-family: var(--pc-sans);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}
.pc-site .pc-timeline-intro p { margin: 0; max-width: 62ch; }

.pc-site .pc-timeline-wrap { max-width: 1040px; margin: 0 auto; }
.pc-site .pc-timeline {
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.pc-site .pc-timeline li {
  position: relative;
  margin: 0;
  padding-top: 26px;
  border-top: 4px solid var(--pc-delta);
}
.pc-site .pc-timeline li::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--pc-gold);
  border: 3px solid var(--pc-ink);
  border-radius: 50%;
}
.pc-site .pc-timeline li:last-child { border-top-style: dashed; }
.pc-site .pc-timeline .pc-date {
  display: block;
  font-family: var(--pc-sans);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: #fff;
}
.pc-site .pc-timeline h3 { margin: 4px 0 10px; color: #fff; font-size: 1.05rem; }
.pc-site .pc-timeline p { font-size: 0.95rem; line-height: 1.55; margin: 0; }

.pc-site .pc-system {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
}
.pc-site .pc-system h3 { margin: 0; color: #fff; }
.pc-site .pc-feature .pc-facts li { border-top-color: rgba(255,255,255,0.4); }
.pc-site .pc-feature .pc-facts li:last-child { border-bottom-color: rgba(255,255,255,0.4); }

.pc-site .pc-quotes {
  max-width: 1040px;
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}
.pc-site .pc-quote { margin: 0 0 32px; }
.pc-site .pc-quotes .pc-quote { margin: 0; }
.pc-site .pc-quote blockquote {
  margin: 0;
  padding: 2px 0 2px 22px;
  border-left: 5px solid var(--pc-magenta);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--pc-text);
}
.pc-site .pc-quote figcaption {
  margin: 12px 0 0 27px;
  font-family: var(--pc-sans);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--pc-muted);
}
.pc-site .pc-feature .pc-quote blockquote { color: #fff; border-left-color: var(--pc-gold); }
.pc-site .pc-feature .pc-quote figcaption { color: #fff; }

.pc-site .pc-footer {
  background: var(--pc-purple);
  color: #fff;
  padding: 32px 24px;
  font-family: var(--pc-sans);
  font-size: 14px;
}
.pc-site .pc-footer div { max-width: 1040px; margin: 0 auto; }

@media (max-width: 900px) {
  .pc-site .pc-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 760px) {
  .pc-site { font-size: 18px; }
  .pc-site .pc-section { padding: 52px 20px; }
  .pc-site .pc-wrap,
  .pc-site .pc-timeline-intro,
  .pc-site .pc-system { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pc-site .pc-wrap > h2 { position: static; }
  .pc-site .pc-hero { padding: 56px 20px 0; }
  .pc-site .pc-shelf { height: 160px; gap: 3px; }
  .pc-site .pc-shelf i { min-width: 8px; }
  .pc-site .pc-shelf i:nth-child(n+13) { display: none; }
  .pc-site .pc-timeline { grid-template-columns: minmax(0, 1fr); }
  .pc-site .pc-quotes { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pc-site .pc-quote blockquote { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pc-site .pc-shelf i { animation: none; }
}

.pc-site .pc-photo { margin: 0 0 28px; }
.pc-site .pc-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #dfe5ee;
}
.pc-site .pc-photo figcaption {
  margin-top: 10px;
  font-family: var(--pc-sans);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--pc-muted);
}
.pc-site .pc-wide img { aspect-ratio: 3 / 2; border-radius: 2px; }

.pc-site .pc-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: end;
}
.pc-site .pc-portrait { margin: 0; }
.pc-site .pc-portrait img {
  aspect-ratio: 4 / 5;
  border-bottom: 8px solid var(--pc-gold);
}

.pc-site .pc-tl-photo { margin: 0 0 16px; }
.pc-site .pc-tl-photo img { aspect-ratio: 4 / 3; }
.pc-site .pc-feature .pc-tl-photo img { background: var(--pc-deep); }

.pc-site .pc-quote blockquote { text-wrap: balance; }
.pc-site .pc-quote figcaption strong { font-weight: 600; color: var(--pc-text); }
.pc-site .pc-quote figcaption span { display: block; margin-top: 2px; }
.pc-site .pc-feature .pc-quote figcaption strong { color: #fff; }

@media (max-width: 900px) {
  .pc-site .pc-hero-top { grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; }
}
@media (max-width: 760px) {
  .pc-site .pc-hero-top { grid-template-columns: minmax(0, 1fr); }
  .pc-site .pc-portrait { max-width: 280px; }
}

.pc-site .pc-quote-photo {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.pc-site .pc-quote-photo .pc-photo { margin: 0; }
.pc-site .pc-quote-photo .pc-photo img { aspect-ratio: 4 / 5; }
.pc-site .pc-quote-text blockquote { font-size: 1.7rem; max-width: 40ch; }
.pc-site .pc-quote a { color: inherit; text-decoration-thickness: 1px; }
.pc-site .pc-feature a,
.pc-site .pc-feature a:hover { color: #fff; }
.pc-site .pc-feature a:hover { text-decoration-thickness: 3px; }
.pc-site .pc-feature a:focus-visible { outline-color: #fff; }
@media (max-width: 760px) {
  .pc-site .pc-quote-photo { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pc-site .pc-quote-photo .pc-photo { max-width: 260px; }
  .pc-site .pc-quote-text blockquote { font-size: 1.35rem; }
}

.pc-site .pc-wide.pc-full img {
  aspect-ratio: auto;
  object-fit: contain;
  width: auto;
  max-width: 100%;
  max-height: 640px;
}

.pc-site .pc-title + .pc-intro { margin-top: 18px; }

.pc-site .pc-timeline .pc-source { margin-top: 12px; font-family: var(--pc-sans); font-size: 0.85rem; line-height: 1.4; }
