/* virginiasays.com
   Look: Bauhaus. Red, yellow, blue, black, white. One sans family (Jost).
   Change the colors and font at the top. Everything else lives in the HTML files. */

:root {
  --ink: #111111;
  --paper: #ffffff;
  --red: #e8185e;
  --yellow: #ffcc00;
  --blue: #2563eb;
  --muted: #454545;
  --sans: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --max: 70rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
  border-bottom: 6px solid var(--ink);
}

.site-header .name {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

/* Logo: logo.png in this folder (interlocking diamonds). */
.site-header .name::before {
  content: "";
  width: 2.75rem;
  height: 2.25rem;
  background: url("logo.png") center / contain no-repeat;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  font-weight: 500;
  font-size: 1.0625rem;
}

.site-header nav a {
  text-decoration: none;
}

section[id],
#top {
  scroll-margin-top: 6rem;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
}

@media (max-width: 52rem) {
  .site-header {
    gap: 0.35rem;
    padding-block: 0.6rem 0.5rem;
    border-bottom-width: 4px;
  }

  .site-header .name {
    font-size: 1.05rem;
  }

  .site-header .name::before {
    width: 2rem;
    height: 1.65rem;
  }

  .site-header nav {
    flex-wrap: nowrap;
    width: 100%;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    font-size: 1rem;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  section[id],
  #top {
    scroll-margin-top: 5rem;
  }
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem);
}

h1 {
  margin: 0;
  font-size: clamp(3.25rem, 10.5vw, 7.75rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

h1 span {
  display: block;
}

h1 .dot {
  display: inline;
}

h1 span:nth-child(1) .dot {
  color: var(--red);
}

h1 span:nth-child(2) .dot {
  color: var(--yellow);
}

h1 span:nth-child(3) .dot {
  color: var(--blue);
}

.subline {
  max-width: 34ch;
  margin: 1.75rem 0 2rem;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  font-weight: 400;
  line-height: 1.35;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  border: 3px solid var(--ink);
  background: var(--blue);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--yellow);
  color: var(--ink);
}

/* Headshot: put your photo at headshot.jpg next to index.html. Until then you see the yellow square. */

.portrait {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 24rem;
  aspect-ratio: 1 / 1;
  margin: 0.75rem;
}

.portrait::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  bottom: -0.75rem;
  width: 100%;
  height: 100%;
  background: var(--blue);
}

.portrait .frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 4px solid var(--ink);
  background: var(--yellow) url("headshot.jpg") 50% 25% / cover no-repeat;
}

@media (max-width: 52rem) {
  .hero {
    grid-template-columns: 1fr;
  }

  .portrait {
    justify-self: start;
    max-width: 17rem;
  }
}

/* Sections */

section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 2.2fr);
  gap: 1rem clamp(2rem, 5vw, 4rem);
}

.about-body {
  max-width: 62ch;
}

.lead {
  font-size: clamp(1.4rem, 1.15rem + 1.1vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
}

.why p strong {
  font-weight: 700;
}

.whole-self {
  margin-top: 1.75rem;
  padding: 1.1rem 1.25rem;
  border: 4px solid var(--ink);
  background: var(--yellow);
}

@media (max-width: 52rem) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Background */

#expertise {
  border-top: 6px solid var(--ink);
}

.intro {
  max-width: 52ch;
}

.cols {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  margin-top: 2rem;
}

.col {
  grid-column: span 2;
}

.col:nth-child(n + 4) {
  grid-column: span 3;
}

@media (max-width: 62rem) {
  .cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .col,
  .col:nth-child(n + 4) {
    grid-column: span 1;
  }

  .col:last-child:nth-child(odd) {
    grid-column: span 2;
  }
}

@media (max-width: 38rem) {
  .cols {
    grid-template-columns: 1fr;
  }

  .col,
  .col:nth-child(n + 4),
  .col:last-child:nth-child(odd) {
    grid-column: span 1;
  }
}

.col {
  padding-top: 1rem;
  border-top: 14px solid var(--ink);
}

.col:nth-child(3n + 1) {
  border-top-color: var(--red);
}

.col:nth-child(3n + 2) {
  border-top-color: var(--yellow);
}

.col:nth-child(3n) {
  border-top-color: var(--blue);
}

.col h3 {
  margin-bottom: 0.75rem;
}

.col p {
  max-width: 44ch;
  margin-bottom: 0;
}

/* What I'm up to: scrolling strip */

#up-to {
  border-top: 6px solid var(--ink);
}

.strip {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-bottom: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--ink) transparent;
}

.tile {
  flex: 0 0 min(21rem, 82%);
  scroll-snap-align: start;
  padding: calc(1rem + 10px) 1.25rem 1.5rem;
  border: 4px solid var(--ink);
  background: linear-gradient(var(--bar), var(--bar)) top / 100% 10px no-repeat;
}

.tile:nth-child(3n + 1) { --bar: var(--red); }
.tile:nth-child(3n + 2) { --bar: var(--yellow); }
.tile:nth-child(3n) { --bar: var(--blue); }

.tile .kicker {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.strip-ctrl {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.strip-ctrl button {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: 700 1.4rem var(--sans);
  cursor: pointer;
}

.strip-ctrl button:hover {
  background: var(--yellow);
}

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

/* Why I'm different */

#different {
  border-top: 6px solid var(--ink);
}

.statement {
  max-width: 34ch;
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 1.15rem + 1.1vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
}

.statement-sub {
  max-width: 52ch;
  margin: 0;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  padding: calc(1rem + 10px) 1.25rem 1.5rem;
  border: 4px solid var(--ink);
  background: linear-gradient(var(--bar), var(--bar)) top / 100% 10px no-repeat;
}

.card:nth-child(1) { --bar: var(--red); }
.card:nth-child(2) { --bar: var(--yellow); }
.card:nth-child(3) { --bar: var(--blue); }

.card .kicker {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

@media (max-width: 62rem) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* Photo row */

#moments {
  padding-top: 0;
}

.moments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.moment {
  margin: 0;
  border: 4px solid var(--ink);
}

.moment::before {
  content: "";
  display: block;
  height: 12px;
  background: var(--bar, var(--red));
}

.moment:nth-child(1) { --bar: var(--red); }
.moment:nth-child(2) { --bar: var(--yellow); }
.moment:nth-child(3) { --bar: var(--blue); }

.moment img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.moment:nth-child(1) img { object-position: 50% 100%; }
.moment:nth-child(2) img { object-position: 50% 10%; }
.moment:nth-child(3) img { object-position: 50% 100%; }

.moment figcaption {
  padding: 0.85rem 1rem 1.1rem;
  border-top: 4px solid var(--ink);
  font-size: 1rem;
  line-height: 1.4;
}

@media (max-width: 44rem) {
  .moments {
    grid-template-columns: 1fr;
  }
}

/* Yellow highlighter swipe */

.hl {
  padding: 0 0.15em;
  background: linear-gradient(transparent 52%, var(--yellow) 52% 92%, transparent 92%);
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Contact */

.contact {
  margin-block: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  border: 4px solid var(--ink);
  background: var(--yellow);
  box-shadow: 0.75rem 0.75rem 0 var(--ink);
}

.contact a {
  text-decoration-color: var(--ink);
}

.contact a:hover {
  text-decoration-color: var(--blue);
}

.contact .email {
  display: inline-block;
  margin: 0.5rem 0 1.25rem;
  font-size: clamp(1.5rem, 0.8rem + 4.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 0.1em;
  overflow-wrap: anywhere;
}

.contact .email:hover {
  text-decoration-color: var(--blue);
}

.site-footer {
  padding-block: 2rem 3rem;
  border-top: 6px solid var(--ink);
  color: var(--muted);
  font-size: 1rem;
}

/* Inspired by page */

.page-title {
  padding-block: clamp(2.5rem, 6vw, 4rem) 1rem;
}

.page-title h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 9vw, 6.5rem);
}

.page-title p {
  max-width: 52ch;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.4;
}

.group {
  padding-block: 2rem 1rem;
}

.group h2 {
  padding-top: 1rem;
  border-top: 6px solid var(--ink);
}

.item {
  max-width: 62ch;
  padding-block: 0.9rem;
  border-bottom: 2px solid var(--ink);
}

.item .title {
  font-weight: 700;
  font-size: 1.1875rem;
}

.item .by {
  color: var(--muted);
}

.item .note {
  margin: 0.25rem 0 0;
}

.quote {
  max-width: 52ch;
  margin: 0;
  padding: 1.25rem 0 1.25rem 1.25rem;
  border-left: 10px solid var(--red);
  font-size: 1.375rem;
  line-height: 1.4;
}

.quote cite {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1rem;
  font-style: normal;
}

.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1.5rem;
}

.photos figure {
  margin: 0;
}

.photos img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 4px solid var(--ink);
}

.photos figcaption {
  margin-top: 0.4rem;
  font-size: 1rem;
  color: var(--muted);
}

.empty {
  padding-block: 2rem;
  color: var(--muted);
}

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