:root {
  color-scheme: light;
  --cream: #f6f0e4;
  --cream-deep: #e8dcc7;
  --ink: #111827;
  --muted: #56606c;
  --blue: #2f5bff;
  --blue-dark: #1836a8;
  --white: #fffdf8;
  --line: rgba(17, 24, 39, 0.16);
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, transparent 0 97%, rgba(47, 91, 255, 0.08) 97% 100%),
    var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
}

.tape {
  position: fixed;
  z-index: -1;
  width: 42vw;
  max-width: 560px;
  height: 78px;
  background: var(--blue);
  opacity: 0.11;
  transform: rotate(-7deg);
  pointer-events: none;
}

.tape-one {
  top: 9vh;
  right: -12vw;
}

.tape-two {
  bottom: 7vh;
  left: -14vw;
  transform: rotate(8deg);
}

main,
footer {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  min-height: 88vh;
  display: grid;
  align-items: center;
  gap: 36px;
  padding: 56px 0 44px;
}

.portrait-wrap {
  justify-self: start;
  position: relative;
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: -16px 20px 18px -14px;
  border: 2px solid var(--ink);
}

.portrait-wrap::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: 12px;
  width: 76px;
  height: 32px;
  background: var(--blue);
  opacity: 0.86;
  transform: rotate(-5deg);
}

.portrait {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(160px, 43vw, 240px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 4px;
  font-size: clamp(3.4rem, 14vw, 7.5rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  line-height: 1.2;
}

.lead {
  margin-bottom: 18px;
  max-width: 720px;
  font-size: clamp(1.35rem, 4.8vw, 2.2rem);
  font-weight: 750;
  line-height: 1.25;
}

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

.primary-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  font-size: 1.02rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.button:focus-visible,
.card:focus-visible,
.text-links a:focus-visible,
.direct-contact a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.button-primary {
  background: var(--blue);
  color: white;
}

.button-secondary {
  background: var(--white);
}

.button-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.direct-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
}

.direct-contact a:hover {
  color: var(--blue-dark);
}

.work {
  padding: 88px 0;
  border-top: 2px solid var(--ink);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 30px;
}

.cards {
  display: grid;
  gap: 14px;
}

.card {
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.card:hover,
.card:focus-visible {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 8px 8px 0 var(--blue);
}

.card-number {
  margin-bottom: 42px;
  color: var(--blue-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

.card p {
  color: var(--muted);
}

.card-link {
  margin-top: auto;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.books {
  display: grid;
  gap: 24px;
  margin: 20px 0 88px;
  padding: 42px 28px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 12px 12px 0 var(--blue);
}

.books p {
  max-width: 680px;
  color: #d6d9df;
  font-size: 1.08rem;
}

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.text-links a {
  color: white;
  font-weight: 800;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

footer {
  display: grid;
  gap: 6px;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer p {
  margin-bottom: 0;
}

.footer-note {
  max-width: 760px;
  font-size: 0.9rem;
}

@media (min-width: 680px) {
  .primary-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 68px;
  }

  .portrait-wrap {
    align-self: start;
    margin-top: 17vh;
  }

  .portrait {
    width: 280px;
  }

  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .books {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    padding: 58px;
  }

  .text-links {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
