:root {
  --paper: #f7f4ed;
  --ink: #171716;
  --muted: #605e58;
  --pink: #f4b4b9;
  --yellow: #e7d56c;
  --blue: #70c4d2;
  --green: #9fcf9d;
  --lilac: #c5b7e8;
  --line: 1px solid var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 1.45;
}

a { color: inherit; text-underline-offset: 0.2em; }

a:hover { text-decoration-thickness: 2px; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
.site-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.65rem clamp(1.1rem, 3vw, 3.5rem);
}

.site-header { border-bottom: var(--line); }

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

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.site-header nav { display: flex; gap: clamp(0.8rem, 2vw, 1.7rem); font-size: 0.72rem; }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.83fr) minmax(300px, 0.67fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 9rem);
  min-height: min(690px, calc(100vh - 40px));
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(4.25rem, 10vw, 8.5rem) clamp(1.1rem, 5vw, 5rem) clamp(4.8rem, 9vw, 7.5rem);
}

.eyebrow,
.project-topline,
.metadata,
.portrait figcaption,
.section-bar p,
.quiet-link { font-size: 0.66rem; letter-spacing: -0.03em; }

.eyebrow { margin: 0 0 1.7rem; color: var(--muted); }

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

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; }

h1 { margin-bottom: 1.4rem; font-size: clamp(3.1rem, 7.4vw, 6.2rem); line-height: 0.88; letter-spacing: -0.075em; }

.intro-text { max-width: 34rem; font-size: clamp(0.81rem, 1.1vw, 0.94rem); }

.intro-text p { margin-bottom: 1.05rem; }

.text-link { display: inline-block; margin-top: 0.55rem; font-size: 0.74rem; }

.portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
  margin: 0;
  padding: 0.35rem;
  border: var(--line);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--lilac);
  transform: rotate(1deg);
}

.portrait img { display: block; width: 100%; height: auto; }

.portrait-note {
  position: absolute;
  top: -0.9rem;
  left: 1rem;
  z-index: 1;
  padding: 0.3rem 0.45rem;
  border: var(--line);
  background: var(--yellow);
  font-size: 0.65rem;
  transform: rotate(-3deg);
}

.portrait figcaption {
  width: auto;
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.5;
  text-align: left;
  transform: rotate(-1deg);
}

.section { scroll-margin-top: 1rem; }

.section-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.42rem clamp(1.1rem, 3vw, 3.5rem);
  border-top: var(--line);
  border-bottom: var(--line);
}

.section-bar h2 { margin: 0; font-size: 1rem; }
.section-bar p { margin: 0; text-align: right; }

.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 3.5vw, 3rem);
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.1rem, 4vw, 3rem) clamp(4rem, 8vw, 6rem);
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  border: var(--line);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--card-accent);
}

.project-fajrr { --card-accent: var(--yellow); }
.project-tools { --card-accent: var(--blue); }
.project-next { --card-accent: var(--pink); }

.project-art { position: relative; min-height: 205px; overflow: hidden; border-bottom: var(--line); background: #eee9dc; }

.project-copy { display: flex; flex: 1; flex-direction: column; padding: 0.75rem; }

.project-topline { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 1.45rem; }
.project-topline span { padding: 0.05rem 0.3rem; border: var(--line); background: var(--card-accent); }

.project-copy h3 { margin-bottom: 0.55rem; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 0.95; letter-spacing: -0.07em; }
.project-copy > p:not(.project-topline):not(.metadata) { margin-bottom: 1rem; font-size: 0.75rem; }
.metadata { margin-top: auto; margin-bottom: 0.9rem; color: var(--muted); }
.project-copy a, .quiet-link { align-self: flex-start; }

.alarm-art .art-label { position: absolute; top: 22%; left: 50%; font: 500 clamp(2.4rem, 5vw, 4rem)/1 "Courier New", monospace; letter-spacing: -0.13em; transform: translateX(-50%); }
.moon { position: absolute; top: 22%; right: 17%; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--yellow); }
.moon::after { position: absolute; top: -0.18rem; left: -0.34rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #eee9dc; content: ""; }
.alarm-base { position: absolute; bottom: 16%; left: 50%; width: 5.7rem; height: 1.9rem; border: var(--line); border-radius: 6rem 6rem 0.35rem 0.35rem; background: var(--green); transform: translateX(-50%); }
.alarm-foot { position: absolute; bottom: 12%; width: 1.15rem; height: 0.4rem; border-top: var(--line); background: var(--ink); }
.alarm-foot.left { left: calc(50% - 3.45rem); transform: rotate(-20deg); }
.alarm-foot.right { right: calc(50% - 3.45rem); transform: rotate(20deg); }

.browser-art { margin: 1.7rem; border: var(--line); background: var(--paper); transform: rotate(-2deg); }
.browser-top { display: flex; gap: 0.22rem; height: 1.25rem; padding: 0.38rem; border-bottom: var(--line); }
.browser-top i { width: 0.35rem; height: 0.35rem; border: var(--line); border-radius: 50%; }
.browser-line, .browser-box { position: absolute; display: block; border: var(--line); }
.browser-line.one { top: 3.2rem; left: 1.1rem; width: 46%; height: 0.65rem; background: var(--lilac); }
.browser-line.two { top: 4.35rem; left: 1.1rem; width: 70%; height: 0.65rem; background: var(--yellow); }
.browser-box { right: 1.15rem; bottom: 1.1rem; width: 45%; height: 45%; background: var(--blue); }
.browser-spark { position: absolute; right: 21%; bottom: 24%; font: 2.7rem/1 Georgia, serif; }

.question-art { display: grid; place-items: center; background: var(--lilac); }
.question-art span { position: relative; z-index: 1; font: clamp(7rem, 15vw, 10rem)/1 Georgia, serif; transform: rotate(-9deg); }
.question-line { position: absolute; height: 1px; background: var(--ink); }
.question-line.first { top: 26%; left: 13%; width: 37%; transform: rotate(-12deg); }
.question-line.second { right: 12%; bottom: 27%; width: 42%; transform: rotate(10deg); }
.question-line.third { bottom: 17%; left: 21%; width: 28%; transform: rotate(-5deg); }

.now-layout,
.about-layout,
.contact-copy {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.1rem, 4vw, 3rem);
}

.now-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 11vw, 10rem); }
.now-plan p { margin-bottom: 0.8rem; }
.now-plan ol { margin: 0; padding-left: 1.4rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: -0.055em; }
.now-status { align-self: end; max-width: 25rem; font-size: clamp(0.8rem, 1.15vw, 0.95rem); }
.pencil-note { display: inline-block; margin-top: 2.3rem; padding: 0.35rem 0.55rem; border: var(--line); background: var(--green); font-size: 0.68rem; transform: rotate(1deg); }

.about-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr); gap: clamp(3rem, 11vw, 10rem); }
.about-copy { max-width: 32rem; font-size: clamp(0.83rem, 1.2vw, 0.98rem); }
.about-copy p { margin-bottom: 1.1rem; }
.small-note { margin-top: 2.7rem; color: var(--muted); font-size: 0.68rem; }

.build-note { align-self: start; padding: 1.1rem; border: var(--line); background: #f0e9d7; box-shadow: 5px 5px 0 var(--pink); transform: rotate(1deg); }
.build-note .eyebrow { margin-bottom: 1.3rem; }
.build-note h3 { margin-bottom: 1.1rem; font-size: 1.65rem; letter-spacing: -0.06em; }
.build-note p:not(.eyebrow) { margin-bottom: 0.8rem; font-size: 0.72rem; }

.contact-copy { padding-bottom: clamp(4rem, 8vw, 7rem); }
.contact-copy p { max-width: 33rem; margin-bottom: 1.7rem; font-size: clamp(0.82rem, 1.2vw, 0.98rem); }
.email { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.07em; }

.site-footer { border-top: var(--line); font-size: 0.65rem; }
.site-footer p { margin: 0; }

@media (max-width: 720px) {
  .site-header { align-items: center; }
  .site-header nav { gap: 0.7rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 3rem; padding-top: 4.5rem; }
  .portrait { width: min(82vw, 360px); justify-self: end; }
  .portrait-note { left: 0.7rem; }
  .project-list { grid-template-columns: 1fr; max-width: 430px; }
  .project-card { min-height: 390px; }
  .project-art { min-height: 185px; }
  .now-layout, .about-layout { grid-template-columns: 1fr; gap: 3rem; }
  .now-status { max-width: 29rem; }
  .build-note { max-width: 27rem; }
}

@media (max-width: 420px) {
  body { font-size: 13px; }
  .site-header, .site-footer { gap: 0.7rem; padding-left: 0.85rem; padding-right: 0.85rem; }
  .site-header nav { gap: 0.55rem; font-size: 0.62rem; }
  .section-bar { padding-left: 0.85rem; padding-right: 0.85rem; }
  .section-bar p { max-width: 12rem; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

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