/* =========================================================================
   V11c · PLOTTER  ·  HP 7475A / AxiDraw output on manila
   Manila paper ground, single sharpie navy ink, register marks in all four
   corners, a small pen-down log in the top-right corner, and SVG line work
   that draws itself in on page load using the stroke-dashoffset trick.
   The medium constraint: a flatbed pen plotter, one pen, one colour, one
   sheet of paper. Everything is a line.
   ========================================================================= */

:root {
  --manila:     #E8DDB8;
  --manila-2:   #DED0A2;
  --paper-warm: #EFE4C2;
  --shadow:     rgba(70, 50, 24, 0.10);
  --ink:        #1E2A3A;   /* sharpie navy */
  --ink-2:      #2E3D52;
  --ink-soft:   #3A4A5C;
  --ink-mid:    #5C6A7A;
  --ink-muted:  #8A8478;
  --rule:       rgba(30, 42, 58, 0.30);

  --display: 'Major Mono Display', 'JetBrains Mono', monospace;
  --mono:    'JetBrains Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --sans:    'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body.plotter {
  background: var(--manila);
  /* manila paper grain: warm fibers + speckle */
  background-image:
    radial-gradient(rgba(30, 42, 58, 0.035) 0.5px, transparent 0.5px),
    repeating-linear-gradient(
      90deg,
      transparent 0 6px,
      rgba(30, 42, 58, 0.012) 6px 7px
    );
  background-size: 3px 3px, 100% 100%;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  padding: 56px 36px 80px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* paper edge shadow */
body.plotter::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(120% 100% at 50% 50%, transparent 60%, rgba(70, 50, 24, 0.15) 100%);
}

p, h1, h2, h3, h4, ol, ul, li, dl, dt, dd, header, footer { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-style: italic; color: var(--ink); }
.b { font-weight: 600; color: var(--ink); }
.dim { color: var(--ink-mid); }
a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}
a:hover { background: var(--ink); color: var(--manila); }
::selection { background: var(--ink); color: var(--manila); }

/* =========================================================================
   REGISTER MARKS — four corners
   ========================================================================= */

.reg {
  position: fixed;
  z-index: 5;
  opacity: 0.85;
  pointer-events: none;
}
.reg--tl { top: 12px; left: 12px; }
.reg--tr { top: 12px; right: 12px; }
.reg--bl { bottom: 12px; left: 12px; }
.reg--br { bottom: 12px; right: 12px; }

@media (max-width: 600px) {
  .reg { width: 24px; height: 24px; }
  body.plotter { padding: 36px 18px 60px; }
}

/* =========================================================================
   PEN-DOWN LOG (the plotter's terminal — top right corner)
   ========================================================================= */

.penlog {
  position: fixed;
  top: 60px; right: 28px;
  width: 200px;
  padding: 10px 12px;
  background: rgba(232, 221, 184, 0.85);
  border: 1px dashed var(--ink);
  z-index: 6;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-transform: uppercase;
  backdrop-filter: blur(2px);
}
.penlog__h {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--rule);
  font-size: 10px;
  letter-spacing: 0.10em;
}
.penlog__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  min-height: 96px;
}
.penlog__list li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-soft);
}
.penlog__foot {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--ink);
}
.penlog__foot .dot {
  width: 6px; height: 6px;
  background: var(--ink);
  border-radius: 50%;
  animation: pen-blink 1.4s steps(2, end) infinite;
}
@keyframes pen-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.3; } }

@media (max-width: 900px) {
  .penlog { display: none; }
}

/* =========================================================================
   SHEET
   ========================================================================= */

.sheet {
  position: relative;
  z-index: 4;
  max-width: 900px;
  margin: 0 auto;
}

.sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 36px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: var(--ink-mid);
  text-transform: uppercase;
}
.sheet__mark .b { color: var(--ink); }

/* =========================================================================
   HERO — SVG name that draws on load
   ========================================================================= */

.hero { margin-bottom: 48px; }

.hero__svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  margin-bottom: 14px;
}

.hero__name {
  /* draw-in animation for the text outline via stroke + fill timing */
  /* text can't do stroke-dashoffset, so we just style fill */
  fill: var(--ink);
  letter-spacing: -2px;
}
.hero__sub {
  fill: var(--ink-soft);
  letter-spacing: 4px;
}

/* the .draw class is for SVG paths/circles/ellipses/rects that animate in
   by stroke-dashoffset. JS reads the path length and sets dasharray. */
.draw {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}

.hero__lede {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 24px 0 24px;
}
.hero__lede em { font-style: italic; color: var(--ink); }

/* drawn dividers (an SVG line) */
.div {
  display: block;
  width: 100%;
  height: 24px;
  margin: 28px 0 8px;
}
.div--small { height: 24px; margin: 14px 0 24px; }

/* =========================================================================
   SECTIONS
   ========================================================================= */

.sec { margin-bottom: 56px; }

.sec__h {
  display: flex;
  gap: 18px;
  align-items: baseline;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
}
.sec__no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-mid);
  text-transform: uppercase;
}
.sec__t {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.sec__body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 12px;
  max-width: 64ch;
}

/* =========================================================================
   WORK CARDS — drawn rectangles around plain text
   ========================================================================= */

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  min-height: 200px;
  padding: 22px 26px;
  background: transparent;
}
.card__frame {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.card__body { position: relative; z-index: 2; }
.card--minor { min-height: 140px; }

.card__h {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  letter-spacing: -0.005em;
}
.card__h span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mid);
  margin-right: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.card__h b { font-weight: 500; color: var(--ink); margin-right: 8px; }

.card p {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.card__stack {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mid);
  text-transform: uppercase;
  padding-top: 6px;
  border-top: 1px dashed var(--rule);
  margin-top: 8px !important;
}
.card__stack .dim { color: var(--ink-muted); }

/* =========================================================================
   WRITING LIST
   ========================================================================= */

.writing { display: grid; gap: 0; }
.writing li {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule);
}
.writing__d {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-mid);
  text-transform: uppercase;
}
.writing a {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.writing a:hover { color: var(--manila); background: var(--ink); border-bottom-color: var(--ink); }
.writing__pp {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-mid);
}
@media (max-width: 600px) {
  .writing li { grid-template-columns: 1fr; gap: 2px; }
}

/* =========================================================================
   REACH
   ========================================================================= */

.reach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 36px;
}
.reach > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
}
.reach dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: var(--ink-mid);
  text-transform: uppercase;
  padding-top: 4px;
}
.reach dd {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
}
@media (max-width: 600px) { .reach { grid-template-columns: 1fr; } }

/* =========================================================================
   SIGNATURE
   ========================================================================= */

.sign {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
}
.sign__svg {
  width: 280px;
  height: 80px;
  flex: 0 0 auto;
}
.sign__col {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 36ch;
  line-height: 1.5;
}
.sign__col em { font-family: var(--sans); font-style: italic; text-transform: none; color: var(--ink-soft); font-size: 13px; letter-spacing: 0; }

@media (max-width: 600px) {
  .sign { flex-direction: column; align-items: flex-start; gap: 18px; }
}
