/* Home page + its placeholder pages (reading, art, drift, ideas).
   Values mirror the "Homepage — Plum, dot grid v2" design at a 1280px artboard. */

:root {
  --paper: #FAF6EE;
  --ink: #2B2620;
  --ink-2: #4A4438;
  --line: #362A22;
  --plum: #7D4060;
  --plum-dark: #5E2E47;
  --sand: #F1EAD9;
  --muted: #9A8F7A;
  --muted-2: #7A7266;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Work Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(43,38,32,0.3) 0.8px, transparent 1.15px);
  background-size: 32px 32px;
  background-position: calc(50% + 16px) 0; /* dots land on 16px offsets from the page's left edge, so the crosses sit on dots at any width */
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }

.page {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 112px 0;
}

/* ---- shared bits ---- */

.serif { font-family: var(--serif); }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--plum);
  transition: color .15s;
}
.cta .arrow { display: inline-block; transition: transform .2s ease; }
.cta:hover, a:hover .cta { color: var(--plum-dark); text-decoration: underline; text-underline-offset: 3px; }
.cta:hover .arrow, a:hover .cta .arrow { transform: translateX(4px); }

.eyebrow {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--plum);
  font-weight: 600;
}

.fig {
  font-style: italic;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
}
.fig b { font-style: normal; font-weight: 400; margin-right: 8px; }

.crosses { position: absolute; inset: 0; pointer-events: none; }
.crosses i {
  position: absolute;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(rgba(43,38,32,0.55), rgba(43,38,32,0.55)) 0 7.5px / 16px 1px no-repeat,
    linear-gradient(rgba(43,38,32,0.55), rgba(43,38,32,0.55)) 7.5px 0 / 1px 16px no-repeat;
}

/* ---- nav ---- */

.nav {
  height: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav .logo { font-family: var(--serif); font-weight: 600; font-size: 18px; transition: color .15s; }
.nav .logo:hover { color: var(--plum); }
.nav ul { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.nav ul a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: color .15s, background-size .2s ease;
}
.nav ul a:hover { color: var(--plum); background-size: 100% 1px; }
.nav ul a.resume { font-weight: 600; color: var(--plum); }
.nav ul a.resume:hover { color: var(--plum-dark); }

/* ---- hero ---- */

.hero { margin-top: 80px; height: 320px; display: flex; gap: 64px; }
.hero-text { width: 544px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 56px; line-height: 1.05; color: var(--plum); }
.hero .sub { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 22px; color: var(--ink-2); }
.hero p { margin: 4px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.hero-art { position: relative; width: 448px; height: 320px; flex-shrink: 0; }
.hero-art img { position: absolute; left: 88px; top: -56px; height: 496px; width: auto; display: block; }
.hero-art .fig { position: absolute; left: 88px; width: 360px; top: 452px; text-align: center; }

/* ---- section heads ---- */

.section-head { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.section-head h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 30px; }
.section-head p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.7; max-width: 680px; }
#work { margin-top: 192px; height: 160px; }
#fun { margin-top: 95px; height: 128px; }

/* ---- day job ---- */

.work-grid { margin-top: 64px; display: grid; grid-template-columns: 640px 384px; gap: 32px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.shot figcaption { text-align: right; font-size: 10px; letter-spacing: 1.5px; color: var(--muted-2); font-style: italic; line-height: 1.5; }
.frame { position: relative; border: 1px solid #E4DCCC; border-radius: 8px; background: #FFFFFF; }
.frame img { border-radius: 7px; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.shot-main { height: 100%; }
.shot-main .frame { flex: 1; min-height: 0; background: #F8F3E9; }
.shot-main .frame img { position: absolute; inset: 0; object-position: left top; }
.shot-side { display: flex; flex-direction: column; gap: 16px; }
.frame-rbac { height: 160px; }
.frame-credits { height: 219px; }
.frame .tl { left: -9px; top: -9px; }
.frame .tr { right: -9px; top: -9px; }
.frame .br { right: -9px; bottom: -9px; }
.frame .x { position: absolute; width: 16px; height: 16px; z-index: 1; pointer-events: none;
  background:
    linear-gradient(rgba(43,38,32,0.55), rgba(43,38,32,0.55)) 0 7.5px / 16px 1px no-repeat,
    linear-gradient(rgba(43,38,32,0.55), rgba(43,38,32,0.55)) 7.5px 0 / 1px 16px no-repeat; }

.shipped { margin-top: 44px; }
.shipped h3 { margin: 0; height: 32px; display: flex; align-items: center; font-family: var(--serif); font-style: normal; font-weight: 400; font-size: 18px; }
.shipped .row { min-height: 64px; box-sizing: border-box; border-top: 1px solid rgba(54,42,34,0.45); display: flex; gap: 32px; align-items: center; }
.shipped .row:last-child { border-bottom: 1px solid var(--line); }
.shipped .name { width: 304px; flex-shrink: 0; font-weight: 500; font-size: 15px; }
.shipped .desc { flex: 1; font-size: 14px; color: var(--ink-2); line-height: 1.5; }

.section-head { position: relative; }
.work-link { position: absolute; right: 0; bottom: 5px; font-size: 13px; font-weight: 600; color: var(--plum); }
.work-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- side projects ---- */

.projects {
  margin-top: 32px;
  height: 544px;
  display: grid;
  grid-template-columns: repeat(3, 320px);
  gap: 48px;
  align-items: start;
}
.project { display: flex; flex-direction: column; }
.project-card {
  position: relative;
  height: 416px;
  background: var(--sand);
  outline: 1.5px solid var(--line);
  outline-offset: -0.75px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.project-card .art { padding: 24px; background: #F8F3E9; flex-shrink: 0; }
.project-card .body { flex: 1; padding: 20px 24px 32px; display: flex; flex-direction: column; gap: 10px; }
.project-card h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 20px; }
.project-card p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.55; flex: 1; }
.project-card:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--line); }

.note {
  position: relative;
  z-index: 2;
  margin: 20px 0 0 28px;
  width: 264px;
  background: #FEFCF8;
  border: 1px solid #E6DFD2;
  box-shadow: 0 2px 5px rgba(43,38,32,0.12);
  padding: 18px 16px 14px;
  transform: rotate(var(--tilt));
}
.note::before {
  content: '';
  position: absolute; top: -8px; left: 50%;
  width: 52px; height: 16px; margin-left: -26px;
  background: rgba(214,196,176,0.6);
  transform: rotate(var(--tape));
}
.note .label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.note p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }

/* ---- principles ---- */

.delight {
  position: relative;
  margin-top: 96px;
  height: 417px;
  border-bottom: 1px solid var(--line);
  padding-top: 32px;
  display: flex;
  gap: 64px;
}
.delight > .fig { position: absolute; right: 0; top: 424px; text-align: right; }
.delight-intro { width: 480px; display: flex; flex-direction: column; gap: 18px; }
.delight-intro h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 38px; line-height: 1.15; color: var(--plum); }
.delight-intro .rule { width: 48px; height: 2px; background: var(--plum); }
.delight-intro p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.rules { width: 512px; display: flex; flex-direction: column; gap: 22px; }
.rules .eyebrow { margin-bottom: -6px; }
.rule-item { display: flex; gap: 16px; align-items: flex-start; }
.rule-item .icon { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rule-item h3 { margin: 0 0 4px; font-weight: 600; font-size: 15px; }
.rule-item p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* ---- more about me ---- */

.more-title { margin: 80px 0 0; height: 32px; display: flex; align-items: center; font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--plum); }
.wire { position: relative; margin-top: 47px; height: 384px; }
.wire img { display: block; width: 1056px; height: 384px; }
.wire .fig { position: absolute; right: 0; top: 394px; text-align: right; }

.ideas { margin-top: 16px; height: 96px; display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.ideas h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 600; font-size: 18px; }
.ideas p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; max-width: 640px; }
.ideas .cta { white-space: nowrap; align-self: flex-end; padding-bottom: 8px; }

.links { margin-top: 80px; height: 288px; display: grid; grid-template-columns: repeat(3, 288px); gap: 96px; }
.link-card {
  position: relative;
  height: 288px;
  background: #FFFFFF;
  border: 1px solid #E4DCCC;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.link-card::after { content: ''; position: absolute; inset: -1px; border: 1px solid rgba(54,42,34,0.2); pointer-events: none; transition: border-color .2s; }
.link-card h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 17px; }
.link-card p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; flex: 1; }
.link-card:hover { transform: translateY(-4px); box-shadow: 0 8px 18px rgba(43,38,32,0.10); }
.link-card:hover::after { border-color: rgba(54,42,34,0.45); }

/* ---- footer ---- */

.footer { position: relative; margin-top: 160px; height: 368px; overflow: hidden; }
.footer > svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }
.footer-inner {
  position: relative;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 112px;
  display: flex;
  gap: 48px;
  align-items: center;
}
.footer .diver { display: block; width: 416px; height: auto; flex-shrink: 0; pointer-events: none; }
.footer .slot {
  width: 224px; height: 208px; flex-shrink: 0;
  border: 1.5px dashed rgba(31,58,61,0.45);
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 12px; color: #1F3A3D; line-height: 1.5;
}
.footer-text { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 16px; }
.footer-text h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 28px; color: #2E5B6E; }
.footer-text p { margin: 0; font-size: 14px; color: #33504F; }
.footer-text p a { color: #2E5B6E; font-weight: 600; transition: color .15s; }
.footer-text p a:hover { color: #1F3A3D; text-decoration: underline; text-underline-offset: 3px; }
.footer-text ul { display: flex; gap: 20px; margin: 0; padding: 4px 0 0; list-style: none; font-size: 13px; color: #2B4A4E; }
.footer-text ul a { transition: color .15s; }
.footer-text ul a:hover { color: #1F3A3D; text-decoration: underline; text-underline-offset: 3px; }

/* ---- placeholder pages ---- */

.placeholder { min-height: 100vh; display: flex; flex-direction: column; }
.placeholder main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 96px 0 128px; max-width: 544px; }
.placeholder .back { align-self: flex-start; }
.placeholder h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 56px; line-height: 1.05; color: var(--plum); }
.placeholder .sub { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 22px; color: var(--ink-2); }
.placeholder p { margin: 4px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }

/* ---- smaller screens ---- */

@media (max-width: 1279px) {
  .crosses { display: none; }
  .page { padding: 64px 48px 0; }
  .footer-inner { padding: 0 48px; }
  .hero, #work, #fun, .shipped, .projects, .delight, .ideas, .links { height: auto; }
  .hero { gap: 32px; }
  .hero-text { width: auto; flex: 1; }
  .hero-art { width: 360px; height: 360px; }
  .hero-art img, .hero-art .fig { left: 0; }
  .hero-art img { top: -40px; height: 440px; }
  .hero-art .fig { top: 408px; width: 320px; }
  #work { margin-top: 160px; }
  .work-grid { grid-template-columns: 1fr; }
  .shot-main .frame, .frame-rbac, .frame-credits { height: auto; flex: none; }
  .shot-main .frame img { position: static; height: auto; }
  .frame img { height: auto; }
  .frame .x { display: none; }
  .work-link { position: static; margin-top: 4px; }
  .shipped .row { height: auto; padding: 18px 0; }
  .shipped .name { width: 220px; }
  .projects, .links { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; }
  .projects { padding-bottom: 32px; }
  .note { width: auto; margin-right: 28px; }
  .delight { flex-direction: column; gap: 40px; padding-bottom: 56px; }
  .delight > .fig { top: calc(100% + 8px); }
  .delight-intro, .rules { width: auto; }
  .wire { height: auto; }
  .wire img { width: 100%; height: auto; }
  .wire .fig { position: static; margin-top: 10px; }
  .ideas { flex-direction: column; gap: 16px; margin-top: 24px; }
  .ideas .cta { align-self: flex-start; }
  .link-card { height: 220px; }
}

@media (max-width: 720px) {
  .page { padding: 32px 16px 0; }
  .footer-inner { padding: 0 16px; }
  .nav { height: auto; flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav ul { flex-wrap: wrap; gap: 8px 18px; }
  .hero { margin-top: 48px; flex-direction: column; gap: 24px; }
  .hero h1 { font-size: 44px; }
  .hero .sub { font-size: 19px; }
  .hero p { font-size: 16px; }
  .hero-art { width: 100%; height: auto; display: flex; flex-direction: column; align-items: center; }
  .hero-art img, .hero-art .fig { position: static; }
  .hero-art img { height: auto; width: 80%; max-width: 320px; }
  .hero-art .fig { width: auto; margin-top: 8px; white-space: normal; }
  #work { margin-top: 64px; height: auto; }
  #fun { margin-top: 72px; }
  .shipped .row { flex-wrap: wrap; gap: 4px 16px; }
  .shipped .name { width: auto; flex: 1; }
  .shipped .desc { order: 3; flex-basis: 100%; }
  .delight-intro h2 { font-size: 32px; }
  .delight > .fig { white-space: normal; }
  .wire { margin-top: 24px; }
  .wire .fig { white-space: normal; }
  .links { margin-top: 48px; }
  .link-card { height: 180px; }
  .footer { margin-top: 96px; height: auto; }
  .footer-inner { flex-direction: column; align-items: stretch; padding-top: 72px; padding-bottom: 48px; }
  .footer .diver { width: 100%; max-width: 320px; }
  .footer-text { margin-left: 0; align-items: flex-start; text-align: left; }
  .footer-text h2 { font-size: 24px; }
  .footer-text ul { flex-wrap: wrap; gap: 8px 18px; }
  .placeholder h1 { font-size: 44px; }
}
.placeholder .back:hover .arrow { transform: translateX(-4px); }
