:root {
  color-scheme: light;
  --paper: #fffdf7;
  --paper-soft: #fff6df;
  --ink: #233044;
  --muted: #657287;
  --pencil: #d99a28;
  --pencil-dark: #a96e16;
  --graph-blue: #dbeaff;
  --margin-red: #f4b4ad;
  --green: #dff3dd;
  --blue: #dceeff;
  --peach: #ffe1cc;
  --yellow: #fff2b8;
  --pink: #ffe1ed;
  --line: #d8dfeb;
  --shadow: 0 22px 48px rgba(61, 54, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, transparent 0 76px, var(--margin-red) 77px, transparent 78px),
    repeating-linear-gradient(0deg, var(--paper) 0 35px, var(--graph-blue) 36px, var(--paper) 37px),
    var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 24px;
  z-index: -1;
  width: 28px;
  content: "";
  background:
    radial-gradient(circle, rgba(35, 48, 68, 0.22) 0 5px, transparent 6px) 0 26px / 28px 92px repeat-y;
  opacity: 0.75;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

#doodle-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 78px;
  padding: 1rem 0;
  background: rgba(255, 253, 247, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 4px 4px 0 rgba(35, 48, 68, 0.16);
}

.brand-text {
  font-family: "Patrick Hand", "Comic Sans MS", cursive;
  font-size: 1.35rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.site-nav a {
  min-height: 38px;
  padding: 0.52rem 0.82rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  border-color: rgba(35, 48, 68, 0.22);
  background: var(--paper-soft);
  color: var(--ink);
  outline: none;
  box-shadow: 2px 2px 0 rgba(35, 48, 68, 0.12);
}

.hero {
  position: relative;
  padding: clamp(2rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.paper-label,
.back-link,
.eyebrow {
  font-family: "Patrick Hand", "Comic Sans MS", cursive;
}

.paper-label {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  transform: rotate(-1.5deg);
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.15rem;
  box-shadow: 3px 3px 0 rgba(35, 48, 68, 0.12);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(2rem, 7vw, 5rem);
  align-items: center;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: "Patrick Hand", "Comic Sans MS", cursive;
  font-size: clamp(4.2rem, 12vw, 9rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-summary,
.page-hero p,
.section-heading p,
.contact-section p,
.note-card p,
.notebook-panel p,
.sticky-note p {
  color: var(--muted);
}

.hero-summary {
  max-width: 720px;
  margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  transition: 180ms ease;
  box-shadow: 4px 4px 0 rgba(35, 48, 68, 0.16);
}

.button:hover,
.button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(35, 48, 68, 0.16);
  outline: none;
}

.button.primary {
  background: var(--yellow);
}

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

.profile-card {
  position: relative;
  padding: 1rem 1rem 1.2rem;
  transform: rotate(1.6deg);
  border: 2px solid rgba(35, 48, 68, 0.16);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.profile-card::after {
  position: absolute;
  right: 1rem;
  bottom: 0.82rem;
  color: rgba(35, 48, 68, 0.18);
  content: "profile";
  font-family: "Patrick Hand", "Comic Sans MS", cursive;
  font-size: 2rem;
}

.profile-image {
  width: 100%;
  border: 1px solid rgba(35, 48, 68, 0.12);
  background: var(--paper);
}

.profile-card div {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.9rem;
}

.profile-card strong {
  font-size: 1rem;
}

.profile-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.tape {
  position: absolute;
  top: -14px;
  width: 72px;
  height: 26px;
  background: rgba(255, 225, 204, 0.82);
  box-shadow: 0 2px 8px rgba(61, 54, 43, 0.1);
}

.tape-left {
  left: 26px;
  transform: rotate(-11deg);
}

.tape-right {
  right: 26px;
  transform: rotate(9deg);
}

.subject-section,
.overview-section,
.contact-section,
.page-hero,
.content-layout {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--pencil-dark);
  font-size: 1.3rem;
}

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

h2,
h3 {
  letter-spacing: 0;
  line-height: 1.1;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

.circle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.subject-circle {
  position: relative;
  display: grid;
  min-height: 320px;
  padding: 3rem 2rem 2rem;
  place-items: center;
  text-align: center;
  transition: 180ms ease;
}

.subject-circle:hover,
.subject-circle:focus-visible {
  transform: translateY(-6px) rotate(-1deg);
  outline: none;
}

.circle-ring {
  position: absolute;
  inset: 12px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.5)),
    var(--paper);
  box-shadow: 7px 9px 0 rgba(35, 48, 68, 0.12);
}

.football-circle .circle-ring {
  background: var(--green);
}

.academics-circle .circle-ring {
  background: var(--blue);
}

.aviation-circle .circle-ring {
  background: var(--peach);
}

.circle-ring::before,
.circle-ring::after {
  position: absolute;
  inset: 10px 15px 16px 9px;
  border: 2px solid rgba(35, 48, 68, 0.45);
  border-radius: 48% 52% 50% 46%;
  content: "";
  transform: rotate(-5deg);
}

.circle-ring::after {
  inset: 18px 10px 11px 17px;
  transform: rotate(7deg);
}

.subject-circle strong,
.subject-circle small,
.circle-icon {
  position: relative;
  z-index: 2;
}

.circle-icon {
  color: rgba(35, 48, 68, 0.44);
  font-family: "Patrick Hand", "Comic Sans MS", cursive;
  font-size: 2.2rem;
}

.subject-circle strong {
  color: var(--ink);
  font-family: "Patrick Hand", "Comic Sans MS", cursive;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 0.9;
}

.subject-circle small {
  max-width: 210px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.pencil {
  position: absolute;
  z-index: 3;
  width: 150px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 5px 0 0 5px;
  background:
    linear-gradient(90deg, #f06b5d 0 15%, var(--pencil) 15% 73%, #f6c75b 73% 100%);
  box-shadow: 4px 4px 0 rgba(35, 48, 68, 0.14);
}

.pencil::before {
  position: absolute;
  top: -2px;
  right: -30px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 30px solid #d6b189;
  content: "";
}

.pencil::after {
  position: absolute;
  top: 4px;
  right: -30px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 15px solid var(--ink);
  content: "";
}

.pencil-one {
  top: 38px;
  right: 6px;
  transform: rotate(21deg);
}

.pencil-two {
  bottom: 34px;
  left: -12px;
  transform: rotate(-24deg);
}

.pencil-three {
  top: 30px;
  left: 6px;
  transform: rotate(-19deg);
}

.overview-section {
  border-top: 2px dashed rgba(35, 48, 68, 0.18);
}

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

.note-card,
.notebook-panel,
.sticky-note,
.contact-section {
  border: 2px solid rgba(35, 48, 68, 0.16);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.note-card {
  padding: 1.4rem;
}

.note-card:nth-child(2) {
  background: rgba(220, 238, 255, 0.76);
}

.note-card:nth-child(3) {
  background: rgba(255, 225, 204, 0.72);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background: rgba(255, 246, 223, 0.9);
}

.contact-section h2 {
  font-family: "Patrick Hand", "Comic Sans MS", cursive;
  font-weight: 400;
}

.contact-actions {
  justify-content: flex-end;
}

.page-hero {
  max-width: 880px;
}

.page-hero h1 {
  font-size: clamp(4rem, 11vw, 8rem);
}

.page-hero p {
  max-width: 760px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  transform: rotate(-1deg);
  background: var(--pink);
  color: var(--ink);
  font-size: 1.15rem;
  box-shadow: 3px 3px 0 rgba(35, 48, 68, 0.12);
}

.football-page h1 {
  color: #255f46;
}

.academics-page h1 {
  color: #245b8d;
}

.aviation-page h1 {
  color: #996225;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 1.5rem;
}

.notebook-panel {
  padding: clamp(1.5rem, 4vw, 2.2rem);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.92) 0 35px,
      rgba(219, 234, 255, 0.8) 36px,
      rgba(255, 255, 255, 0.92) 37px
    );
}

.sticky-note {
  align-self: start;
  padding: 1.4rem;
  transform: rotate(1deg);
  background: var(--yellow);
}

.aviation-note {
  background: var(--peach);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px dashed rgba(35, 48, 68, 0.18);
}

.timeline-item:first-child {
  border-top: 0;
}

.timeline-item time,
.lined-entry span {
  color: var(--pencil-dark);
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--ink);
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  left: 0;
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 0.38rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  content: "";
}

.lined-entry,
.project-list article {
  padding: 1rem 0;
  border-top: 1px dashed rgba(35, 48, 68, 0.18);
}

.project-list {
  display: grid;
  gap: 0.6rem;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.3rem;
}

.skill-cloud span {
  padding: 0.42rem 0.62rem;
  border: 2px solid rgba(35, 48, 68, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-grid,
  .content-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: 340px;
  }

  .circle-grid,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .subject-circle {
    width: min(360px, 100%);
    margin: 0 auto;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  body {
    background:
      linear-gradient(90deg, transparent 0 42px, var(--margin-red) 43px, transparent 44px),
      repeating-linear-gradient(0deg, var(--paper) 0 35px, var(--graph-blue) 36px, var(--paper) 37px),
      var(--paper);
  }

  body::before {
    display: none;
  }

  .site-header,
  main,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .brand-text {
    font-size: 1.12rem;
  }

  .site-nav a {
    padding-inline: 0.62rem;
    font-size: 0.86rem;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(3.4rem, 19vw, 5.2rem);
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .subject-circle {
    min-height: 290px;
  }

  .pencil {
    width: 118px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
