/* Notebook sheet and shared navigation */
:root { --hand: "Caveat", "Instrument Serif", cursive; }
body { background: #ece9e2; }
.notebook-home {
  background-color: #858583;
  background-image: linear-gradient(#fff7 1px, transparent 1px), linear-gradient(90deg, #fff7 1px, transparent 1px);
  background-size: 44px 44px;
}
.paper-sheet {
  width: min(calc(100% - 96px), 1280px);
  min-height: calc(100svh - 56px);
  margin: 28px auto;
  background: #fbfaf7;
  box-shadow: 0 0 0 1px #2320191a, 0 4px 18px #231e180d;
}
.notebook-home .paper-sheet {
  background: repeating-linear-gradient(#f9f8f5 0 25px, #e6e4df 25px 26px);
  box-shadow: 0 0 0 1px #23201945, 0 6px 18px #231e1824;
}
.site-header { background: #fcfaf5; }
.site-header .container { width: calc(100% - 28px); justify-content: flex-start; gap: 13px; padding-block: 6px; }
.monogram {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  color: var(--ink);
  background: var(--pink);
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  transform: rotate(-6deg);
}
.site-header nav { flex: 1; gap: 4px; flex-wrap: wrap; }
.site-header nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 4px clamp(8px, 1.25vw, 20px);
  font: 700 12px/1.25 var(--mono);
  text-transform: uppercase;
}
.site-header nav a:hover, .site-header nav a.active { background: var(--yellow); color: var(--ink); }
.site-header nav a:last-child { border: 1px solid var(--ink); margin-inline-start: auto; }
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; background: #fcfaf5; }
.site-footer .container { flex-direction: row; align-items: center; justify-content: space-between; padding-block: 18px; gap: 16px; }
.site-footer .footer-meta { width: auto; align-items: center; gap: 12px; }
.site-footer .footer-meta a { display: inline-flex; align-items: center; min-height: 44px; }
.cta { gap: 12px; line-height: 1.3; }
.text-link { gap: 7px; }

/* Homepage */
.notebook-intro { text-align: center; padding: clamp(58px, 7.5vw, 108px) 0 clamp(55px, 7vw, 94px); }
.nameplate { position: relative; display: inline-grid; justify-items: center; max-width: 100%; }
.name-note, .notebook-about h2 {
  font: 600 clamp(22px, 3vw, 30px)/1.15 var(--hand);
  letter-spacing: .01em;
}
.name-note { margin-bottom: 13px; transform: rotate(-4deg); text-decoration: underline; text-underline-offset: 4px; }
.name-sticker {
  position: absolute;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #817365;
  border-radius: 30px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.name-sticker:hover { text-decoration: underline; }
.name-sticker--work { top: 18%; right: calc(100% - 5px); background: var(--mint); transform: rotate(-4deg); }
.name-sticker--about { top: 18%; left: calc(100% - 5px); background: #f9e2a1; transform: rotate(4deg); }
.nameplate h1 {
  position: relative;
  max-width: 100%;
  margin: 0;
  padding: .06em .19em .12em;
  border: 2px solid #ad513c;
  border-radius: 2px 5px 3px 6px;
  background: #fffcf4;
  font: 400 clamp(48px, 10vw, 142px)/.92 "Jersey 10", var(--mono);
  letter-spacing: .015em;
  text-transform: uppercase;
  text-wrap: balance;
  transform: rotate(-1.2deg);
}
.name-role {
  z-index: 1;
  width: fit-content;
  margin: 8px 12px 0;
  padding: 0 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  transform: rotate(1deg);
}
.name-role::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-inline-end: 8px; border-radius: 50%; background: var(--cobalt); }
.intro-copy {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: clamp(12px, 5vw, 68px);
  max-width: 940px;
  margin: clamp(28px, 4.2vw, 56px) auto 22px;
}
.intro-copy p { margin: 0; font-size: clamp(27px, 3.4vw, 49px); font-weight: 600; letter-spacing: -.075em; line-height: 1.09; text-wrap: balance; }
.intro-seal {
  justify-self: center;
  width: 48px;
  aspect-ratio: 1;
  border: 1px solid #774431;
  border-radius: 50%;
  background: repeating-conic-gradient(from 12deg, #d76c49 0deg 16deg, #f7c25b 16deg 30deg);
  box-shadow: inset 0 0 0 5px #fcf8ec, inset 0 0 0 6px #774431;
  transform: rotate(-10deg);
}
.intro-stamp { display: grid; place-items: center; width: 58px; aspect-ratio: 1; margin-inline: auto; border: 3px double var(--ink); border-radius: 50%; background: var(--mint); font-weight: 700; transform: rotate(12deg); }
.intro-dot { display: inline-block; width: .48em; aspect-ratio: 1; border: .13em double #245940; border-radius: 50%; background: var(--mint); vertical-align: .02em; }
.intro-flower { color: #9c2560; font-size: .76em; }
.intro-actions .cta { min-height: 48px; padding: 5px 14px 5px 6px; font: 700 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.intro-actions .cta span { display: grid; place-items: center; width: 35px; height: 35px; background: var(--cobalt); color: #fff; font: 400 21px/1 var(--mono); }
.notebook-about { position: relative; padding: clamp(40px, 5.1vw, 74px) 0 clamp(56px, 8vw, 110px); }
.notebook-about::before { content: ''; position: absolute; inset: 0 -2% auto; height: 26px; border-top: 1px solid var(--line); border-radius: 50% 50% 0 0 / 100% 100% 0 0; pointer-events: none; }
.notebook-about h2 { width: fit-content; margin: 0 auto 25px; padding: 4px 15px; border: 1px solid var(--ink); background: #fffcf4; transform: rotate(-3deg); }
.anchor-alias { position: absolute; inset: 0 auto auto 0; }
.about-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: clamp(16px, 3.5vw, 48px); }
.about-copy { text-align: center; }
.about-copy > p { margin-bottom: 21px; font: 600 clamp(24px, 3.1vw, 38px)/1.17 var(--hand); text-wrap: pretty; }
.skill-stickers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 8px; margin: 0; padding: 0; list-style: none; }
.skill-stickers li { padding: 6px 13px; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 98% 25%, 100% 50%, 98% 75%, 100% 100%, 0 100%, 2% 75%, 0 50%, 2% 25%); font: 700 12px/1.45 var(--mono); transform: rotate(-2deg); }
.skill-stickers li:nth-child(2) { background: var(--mint); transform: rotate(2deg); }
.skill-stickers li:nth-child(3) { background: var(--pink); transform: rotate(-1deg); }
.paper-print { position: relative; min-width: 0; padding: 7px; background: #fffcf4; color: var(--ink); box-shadow: 2px 4px 9px #201c1833; }
.paper-print::before, .paper-print::after { content: ''; position: absolute; z-index: 1; top: -6px; width: 27%; height: 15px; background: #eace8bd9; pointer-events: none; }
.paper-print::before { left: -5px; background: #bac4e5e6; transform: rotate(-23deg); }
.paper-print::after { right: -5px; transform: rotate(21deg); }
.paper-print img { width: 100%; }
.paper-print figcaption { padding: 6px 4px 1px; text-align: center; font: 400 11px/1.4 var(--mono); }
.about-portrait { max-width: 200px; justify-self: center; transform: translateY(17px) rotate(-5deg); }
.about-artwork { max-width: 255px; transform: translateY(-24px) rotate(4deg); }
.notebook-work { position: relative; }
.work-heading { margin: 0 0 14px; font-size: clamp(30px, 3.8vw, 45px); font-weight: 600; }

/* Folder panels */
.project-stack { display: grid; padding-top: 38px; }
.project-index-tab {
  justify-self: start;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: -38px;
  margin-bottom: -1px;
  padding: 6px 32px 6px 14px;
  background: var(--cobalt);
  color: #fffdf8;
  clip-path: polygon(0 0, calc(100% - 21px) 0, 100% 50%, calc(100% - 21px) 100%, 0 100%);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.project-index-tab:hover, .project-index-tab:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.project-index-tab:focus-visible { outline-offset: -5px; outline-color: #fffdf8; }
.project-panel {
  --folder: #1c1815;
  --folder-left: clamp(110px, 18%, 208px);
  --folder-width: clamp(112px, 24%, 248px);
  --panel-pad: clamp(24px, 3.7vw, 48px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  background: var(--folder);
  color: #fffdf8;
}
.project-panel--yellow { --folder: var(--yellow); --folder-left: 38%; color: var(--ink); }
.project-panel--cobalt { --folder: var(--cobalt); --folder-left: 17%; }
.project-panel::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -31px auto auto var(--folder-left);
  width: var(--folder-width);
  height: 32px;
  background: var(--folder);
  clip-path: polygon(32px 0, calc(100% - 32px) 0, 100% 100%, 0 100%);
}
.project-panel--illustrated { grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); }
.project-panel-copy {
  container-type: inline-size;
  padding: var(--panel-pad);
  max-width: 720px;
}
.project-panel:not(.project-panel--illustrated) .project-panel-copy { padding-bottom: calc(var(--panel-pad) + 16px); }
.project-panel-title { margin: 0 0 10px; font-size: clamp(29px, 10.5cqi, 52px); font-weight: 600; }
.project-panel-copy p { margin-bottom: 2px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.project-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 5px;
  font: 700 12px/1.3 var(--mono);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.project-panel-link:hover { text-decoration-thickness: 2px; }
.project-panel-link:focus-visible, .project-notes summary:focus-visible { outline-color: currentColor; }
.project-notes { width: fit-content; max-width: 100%; font-size: 13px; }
.project-notes summary { min-height: 44px; padding-block: 10px; cursor: pointer; }
.project-notes p { margin: 0 0 8px; font-size: 14px; }
.project-print {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  min-width: 0;
  min-height: clamp(265px, 33vw, 400px);
  margin-inline-end: var(--panel-pad);
}
.project-print img {
  position: absolute;
  inset: 28px 1% 0;
  width: 98%;
  height: calc(100% - 28px);
  padding: 3px;
  border: 1px solid #fffdf8;
  background: #f7f4ed;
  object-fit: cover;
  object-position: center 43%;
  transform: rotate(-2.5deg) scale(1.02);
}
.project-panel--charcoal .project-print img { background: #293125; }
.project-panel--yellow .project-print img { transform: rotate(1.5deg) scale(1.02); object-position: center 36%; }
.project-panel--cobalt .project-print img { transform: rotate(-1deg) scale(1.02); object-position: left top; }
.project-print::before, .project-print::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: 24px;
  width: clamp(28px, 15%, 70px);
  height: 12px;
  background: #f5f0dee0;
  pointer-events: none;
}
.project-print::before { left: 1%; transform: rotate(-12deg); }
.project-print::after { right: 1%; transform: rotate(14deg); }
.notebook-contact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 52px; padding: 22px clamp(18px, 3.5vw, 42px); border: 1px solid var(--ink); background: var(--mint); }
.notebook-contact h2 { margin: 0; font-size: clamp(25px, 4vw, 42px); }

/* Reading, forms, and error states */
.reading-page .site-header, .reading-page .site-footer { background: #fbfaf7; }
.reading-page .page-head { border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.reading-page .entries { background: transparent; }
.reading-page .entries li { padding-inline: 0; }
.reading-page .journal-detail .body { max-width: 70ch; }
.reading-page .case-study-facts { background: transparent; }
.reading-page .case-study-facts article:first-child { padding-left: 0; }
.page-head { padding: clamp(35px, 6vw, 70px) 0 clamp(24px, 4vw, 46px); }
.page-head h1 { font-size: clamp(36px, 7vw, 86px); font-weight: 600; margin-bottom: 15px; }
.e-title, .back-link, .body a { text-decoration: underline; text-underline-offset: 4px; }
.body .cell-align-center { text-align: center; }
.body .cell-align-right { text-align: right; }
.back-link, .pagination a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-page { max-width: 860px; margin-inline: auto; }
.contact-intro { max-width: 65ch; margin: 14px 0 0; }
.contact-short { max-width: 680px; }
.contact-form { display: grid; gap: 20px; }
.contact-field label { display: block; margin-bottom: 6px; }
.contact-form input:not([type=hidden]), .contact-form textarea, .brief-email input { display: block; width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #695d50; border-radius: 0; background: #fffcf4; color: var(--ink); }
.contact-form textarea { resize: vertical; }
.contact-form .cta { justify-self: start; }
.field-hint { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.form-errors, .message-status { padding: 15px 18px; border: 1px solid currentColor; margin-bottom: 20px; }
.message-status { background: var(--mint); }
.form-errors { background: #f8d8de; color: #6b242d; }
.form-errors p, .message-status p { margin: 0; }
.form-errors a { text-decoration: underline; }
.errorlist { color: #782437; margin: 7px 0 0; padding-left: 20px; }
.contact-brief { margin-top: 45px; padding: clamp(14px, 3vw, 28px); border: 1px solid var(--line); background: #fffcf4; }
.contact-brief summary { min-height: 44px; padding-block: 8px; font-weight: 600; cursor: pointer; }
.contact-brief summary span { margin-inline-start: 8px; font-size: 12px; white-space: nowrap; }
.brief-flow { gap: 28px; margin-top: 20px; padding-bottom: 10px; }
.brief-ask { position: static; }
.brief-question, .brief-email-label { font-size: clamp(25px, 3.4vw, 38px); margin-top: 22px; }
.brief-options { gap: 8px; }
.brief-option, .brief-option:first-child { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); background: var(--paper); font-size: 15px; }
.brief-option:hover, .brief-option.selected, .brief-option.chosen { padding-left: 12px; background: var(--mint); color: var(--ink); }
.brief-back { min-height: 44px; padding-inline: 8px; }
.brief-email input::placeholder { color: var(--muted); }
.error-page { display: grid; justify-items: center; align-content: center; gap: 20px; min-height: min(60vh, 450px); padding: 40px 16px; text-align: center; }
.error-page.paper-sheet { min-height: calc(100svh - 56px); }
.error-page h1 { margin: 0; font-size: clamp(34px, 6vw, 64px); }
.error-stamp { margin: 0; padding: 2px 12px; border: 1px solid var(--ink); background: var(--yellow); font-size: clamp(20px, 4vw, 34px); font-weight: 700; overflow-wrap: anywhere; transform: rotate(-4deg); }

@media (max-width: 900px) {
  .paper-sheet { width: calc(100% - 42px); margin-block: 18px; min-height: calc(100svh - 36px); }
  .intro-copy { grid-template-columns: 48px minmax(0, 1fr) 48px; }
  .intro-stamp { width: 44px; }
  .name-sticker { position: static; grid-row: 4; margin-top: 10px; }
  .name-sticker--work { grid-column: 1; justify-self: end; margin-right: 5px; }
  .name-sticker--about { grid-column: 2; justify-self: start; margin-left: 5px; }
  .nameplate > :not(.name-sticker) { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .paper-sheet { width: calc(100% - 20px); margin-block: 10px; min-height: calc(100svh - 20px); }
  .site-header .container { align-items: start; gap: 8px; }
  .site-header nav { width: auto; justify-content: flex-start; gap: 0; }
  .site-header nav a:last-child { padding: 4px 8px; margin-inline-start: 0; }
  .about-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .about-copy { grid-area: 1 / 1 / 2 / -1; }
  .about-portrait { max-width: 128px; transform: rotate(-5deg); }
  .about-artwork { width: min(100%, 186px); justify-self: center; transform: rotate(4deg); }
  .project-panel--illustrated { grid-template-columns: minmax(0, 1fr); }
  .project-panel-copy { padding: var(--panel-pad) var(--panel-pad) 12px; }
  .project-print { min-height: 0; aspect-ratio: 1.55; margin-inline: var(--panel-pad); }
  .project-print img { inset-block-start: 18px; height: calc(100% - 18px); }
  .project-print::before, .project-print::after { top: 13px; }
  .intro-break { display: none; }
  .site-footer { margin-top: 38px; }
}
@media (max-width: 600px) {
  body, .notebook-home { background: #fbfaf7; }
  .paper-sheet, .notebook-home .paper-sheet { width: 100%; margin: 0; min-height: 100svh; box-shadow: none; }
  .container { width: calc(100% - 32px); }
  .site-header .container { width: 100%; padding: 5px 6px; }
  .site-header .monogram { display: none; }
  .site-header nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
  .site-header nav a, .site-header nav a:last-child { padding-inline: 2px; font-size: clamp(10px, 2.75vw, 12px); }
  .notebook-intro { padding: 40px 0 44px; }
  .nameplate h1 { font-size: clamp(38px, 12vw, 68px); }
  .name-role { margin: 9px 0 0; font-size: 10px; }
  .name-sticker { font-size: 10px; }
  .intro-copy { display: block; margin-block: 20px 12px; }
  .intro-seal, .intro-stamp { display: none; }
  .intro-copy p { max-width: 20ch; margin-inline: auto; }
  .notebook-about { padding-block: 39px 55px; }
  .about-copy > p { font: 400 16px/1.65 var(--sans); }
  .skill-stickers { gap: 8px 5px; }
  .skill-stickers li { padding: 5px 8px; font-size: 11px; }
  .work-heading { margin-bottom: 9px; }
  .project-stack { padding-top: 30px; }
  .project-index-tab { margin-top: -30px; }
  .project-panel { --panel-pad: 17px; --folder-left: 45%; }
  .project-panel::before { inset-block-start: -22px; height: 23px; clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 100%, 0 100%); }
  .project-panel-title { font-size: clamp(26px, 9.5cqi, 40px); }
  .project-panel-copy p { font-size: 15px; }
  .notebook-contact { margin-top: 32px; }
  .reading-page .page-head { margin-bottom: 20px; }
  .reading-page .entries li { padding-block: 18px; }
  .contact-form { margin-top: 25px; }
  .site-footer .container { padding-block: 12px; }
}
