:root{
  --paper: #f7f4ec;
  --grid: #c3d3e0;
  --ink: #2c2c2c;
  --ink-dim: #55554e;
  --pen: #2f4d7a;
  --pen-bright: #3d63a0;
  --red: #b23a2e;
  --tape: rgba(232, 223, 192, 0.75);
  --sticky: #fff6c8;
  --hand: 'Architects Daughter', cursive;
  --type: 'Courier Prime', monospace;
}

*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html{
  scroll-behavior: smooth;
}

body{
  background:
    repeating-linear-gradient(0deg, var(--grid) 0px, var(--grid) 1px, transparent 1px, transparent 26px),
    repeating-linear-gradient(90deg, var(--grid) 0px, var(--grid) 1px, transparent 1px, transparent 26px),
    var(--paper);
  background-size: 26px 26px;
  color: var(--ink);
  font-family: var(--type);
  line-height: 1.75;
  transition: background-color 0.25s ease, color 0.25s ease;
  position: relative;
}

a{
  color: var(--pen);
}

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

/* spiral binding nd navi */
header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 236, 0.95);
  border-bottom: 1px solid rgba(44, 44, 44, 0.15);
}

.binding{
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 6px 0 4px;
}

.binding span{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink-dim);
}

.header-row{
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.4rem 1rem 0.7rem;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.tabs a {
  font-family: var(--hand);
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--ink-dim);
  padding: 0.3rem 1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tabs a:hover{
  color: var(--pen);
}

.secret{
  position: relative;
}

.tooltip{
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Architects Daughter", 'Courier Prime';
  transition: opacity 0.3s ease;
  white-space: nowrap;
  border: 1px dotted currentColor;
  padding: 1px 4px;
  opacity: 0;
  pointer-events: none;
}

.secret:hover .tooltip{
  opacity: 1;
  transition: opacity 5s;
}

.rail{
  position: absolute;
  top: 0;
  width: 64px;
  z-index: 1;
  pointer-events: none;
}

.rail.left{
  left: 0;
}

.rail.right{
  right: 0;
}

.rail::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 60px;
  bottom: 60px;
  transform: translateX(-50%);
  width: 16px;
  background-image: radial-gradient(circle, var(--paper) 0 5px, var(--ink-dim) 5px 7px, transparent 7px);
  background-size: 100% 52px;
  background-repeat: repeat-y;
  opacity: 0.7;
}
@media (max-width: 1180px) {
  .rail{
    display: none;
  }
}

.pinned-tape{
  width: 60px;
  height: 22px;
  margin: 0 auto;
  background: var(--tape);
  transform: rotate(-6deg);
  opacity: 0.9;
}

main{
  position: relative;
}

section{
  max-width: 760px;
  margin: 0 auto;
  padding: 5.5rem 1.6rem;
  position: relative;
}

.pencil-line{
  width: 2px;
  height: 3rem;
  margin: 0 auto;
  background: repeating-linear-gradient(0deg, var(--ink-dim) 0 6px, transparent 6px 11px);
  opacity: 0.6;
}

/* home */
#home {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 4rem;
}

h1 {
  font-family: var(--hand);
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  color: var(--ink);
}

.hero-underline{
  width: 300px;
  height: 8px;
  border-radius: 20px;
  margin: -0.6rem auto 2rem;
  background: var(--red);
  opacity: 0.5;
  transform: rotate(-2.7deg);
}

.hero-role {
  margin-top: 1.3rem;
  font-family: var(--hand);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--pen);
}

.hero-desc{
  margin-top: 1.4rem;
  color: var(--ink-dim);
  font-size: 1.25rem;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta{
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn{
  font-family: var(--hand);
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.5rem 1.3rem;
  border: 2px solid var(--ink);
  border-radius: 6px 8px 7px 9px / 8px 6px 9px 7px;
  color: var(--ink);
  background: transparent;
  transition: all 0.2s ease;
}

.btn:hover{
  border-color: var(--pen);
  color: var(--pen);
}

.btn.primary{
  background: var(--pen);
  border-color: var(--pen);
  color: var(--paper);
  font-weight: 700;
}

.btn.secondary{
  font-weight: 600;
  border: dotted;
  color: var(--ink);
}

.btn.secondary:hover{
  border-color: var(--ink-dim);
  background: #e2e7ec;
}

.btn.primary:hover {
  background: var(--pen-bright);
  border-color: var(--pen-bright);
}

/* currently sticky, sits under hero */
.currently{
  max-width: 400px;
  margin: 2.8rem auto 0;
  background: var(--sticky);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.1);
  padding: 0.9rem 1.1rem;
  transform: rotate(2.4deg);
  text-align: left;
  font-size: 0.85rem;
}

.currently .label {
  font-family: var(--hand);
  color: var(--red);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.currently p {
  color: var(--ink);
  font-size: 0.95rem;
}

/* section headings */
.sec-label {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 2.2rem;
}

.sec-label .num {
  font-family: var(--hand);
  color: var(--red);
  font-size: 1.7rem;
}

h2#about-heading {
  font-family: var(--hand);
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* about with margin notes */
#about {
  position: relative;
}

#about p {
  color: var(--ink);
  font-size: 1.16rem;
  margin-bottom: 1.5rem;
  max-width: 54ch;
}

#about strong {
  color: var(--pen);
  font-weight: 700;
}

.note-wrap {
  position: relative;
}

.margin-note {
  display: none;
}

@media (min-width: 900px) {
  section#about {
    max-width: 900px;
  }

  .note-wrap {
    padding-right: 190px;
  }

  .margin-note {
    display: block;
    position: absolute;
    right: 0;
    width: 165px;
    font-family: var(--hand);
    font-size: 1.3rem;
    color: var(--red);
    transform: rotate(-2deg);
    line-height: 1.4;
  }

  .margin-note svg {
    position: absolute;
    top: 10px;
    left: -50px;
  }
}

.inline-note {
  font-family: var(--hand);
  font-size: 0.92rem;
  color: var(--red);
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 2px dashed var(--red);
}

@media (min-width: 900px) {
  .inline-note {
    display: none;
  }
}

/* toolkit supply list */

.toolkit
{
  margin-top: 2rem;
  border: 2px solid hsla(0, 6%, 10%, 0.549);
  padding: 1.2rem 1.4rem;
  max-width: 500px;
}

.toolkit-title{
  font-family: var(--hand);
  font-size: 1.80rem;
  color: var(--pen);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.toolkit-title .arr{
  transform: translateY(3px);
}

.toolkit ul{
  list-style: none;
}

.toolkit li{
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
  display: grid;
  grid-template-columns: 15px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.toolkit .tick{
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  flex-shrink: 0;
  position: relative;
  transform: translateY(6px);
}

.toolkit .tick::after{
  content: "";
  position: absolute;
  left: 1px;
  top: -3.3px;
  width: 16px;
  height: 5px;
  border-left: 2px solid var(--pen);
  border-bottom: 2px solid var(--pen);
  transform: rotate(-45deg);
}

/* projects */
.entry{
  display: flex;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

h2#projects-heading{
  font-family: var(--hand);
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.checkbox{
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  margin-top: 0.3rem;
  position: relative;
}

.checkbox.checked::after{
  content: "";
  position: absolute;
  left: 3px;
  top: -1px;
  width: 20px;
  height: 6px;
  border-left: 3px solid var(--pen);
  border-bottom: 3px solid var(--pen);
  transform: rotate(-45deg);
}

.checkbox.half::after{
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 12px;
  height: 3px;
  background: var(--red);
}

.entry-body{
  flex: 1;
}

.entry-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.entry-head h3{
  font-family: var(--hand);
  font-size: 1.3rem;
  color: var(--ink);
}

.status{
  font-family: var(--hand);
  font-size: 1rem;
  color: var(--pen);
}

.entry-body p{
  color: var(--ink);
  font-size:1.08rem;
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

.margin-comment{
  font-family: var(--hand);
  font-size: 1rem;
  color:var(--red);
  padding-left: 0.8rem;
  padding-top: 0.15rem;
  border-left: 2px dashed var(--red);
  margin-bottom: 0.9rem;
}

.tags{
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.tags span{
  font-size: 0.72rem;
  color: var(--ink-dim);
}

.tags span:not(:last-child)::after{
  content: ".";
  margin-left:0.4rem;
}

.entry-links a{
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--pen);
  border-bottom: 1px dashed var(--pen);
  margin-right: 1.1rem;
}

.entry-links a:hover{
  color: var(--pen-bright);
}

.entry-links .no-repo{
  font-size: 0.85rem;
  color: var(--ink-dim);
  font-style: italic;
}

@media (min-width: 900px) {
  section#projects {
    max-width: 900px;
  }
}


/* marginalia -> scattered index cards distinct */
h2#marginalia-heading{
  font-family: var(--hand);
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.reading-stack{
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 1.8rem;
  margin-top: 1.6rem;
}

.reading-stack .card{
  --rotation: 0deg;
  background: var(--paper);
  border: 1px solid rgba(44, 44, 44, 0.3);
  box-shadow: 2px 3px 7px rgba(0, 0, 0, 0.12);
  padding: 1.1rem 1.2rem;
  width: 210px;
  font-family: var(--hand);
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.45;
  transform: rotate(var(--rotation));
  position: relative;
  transition: transform 0.2s ease;
}

.reading-stack .card:hover{
  transform: rotate(0deg) translateY(-2px);
}

.reading-stack .card::before{
  content: "";
  position: absolute;
  background: var(--tape);
  top: -9px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 34px;
  height: 14px;
}


/* colophon: understated typographic mark */
.colophon{
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  border-top: 2px dashed var(--ink-dim);
  text-align: center;
  font-family: var(--type);
  font-size: 1rem;
  color: var(--ink-dim);
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.colophon .mark{
  display: block;
  font-family: var(--hand);
  font-size: 2rem;
  color: var(--red);
  margin-bottom: 0.4rem;
}