:root {
  --board: #f5f7f6;
  --paper: #ffffff;
  --ink: #22252b;
  --ink-soft: #5b616b;
  --frame: #a7adb3;
  --blue: #2443b5;
  --green: #1f7a4b;
  --red: #c3323a;
  --hand: "Kalam", "Comic Neue", cursive;
  --body: "Figtree", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--board); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }

.top { display: flex; justify-content: space-between; align-items: center; max-width: 68rem; margin: 0 auto; padding: 1rem; }
.mark { font: 700 1.5rem/1 var(--hand); color: var(--ink); text-decoration: none; }
.account { font-size: .9375rem; color: var(--ink-soft); display: flex; gap: .75rem; align-items: center; }
.account button { font: inherit; background: none; border: 0; color: var(--blue); padding: .25rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

main { max-width: 68rem; margin: 0 auto; padding: 0 1rem 3rem; }

/* The one loud element: a framed whiteboard. */
.board { margin: .5rem 0 3.5rem; }
.board-surface { position: relative; background: var(--paper); border: 10px solid var(--frame); border-radius: 6px; padding: 2rem 1.5rem 0; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem; box-shadow: inset 0 0 0 1px #e3e7ea; }
.board-text { grid-column: 1 / -1; }
.board h1 { font: 700 clamp(2.4rem, 8vw, 4.6rem)/1.05 var(--hand); margin: 0 0 1.5rem; color: var(--ink); max-width: 14ch; }
.underlined { position: relative; white-space: nowrap; }
.underlined svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .4em; overflow: visible; }
.underlined path { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw .9s .35s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lede { max-width: 34rem; margin: 0 0 1.5rem; color: var(--ink-soft); font-size: 1.125rem; }
.prashant { grid-column: 2; width: 8rem; height: 8rem; object-fit: cover; border-radius: 4px 4px 0 0; }
.tray { height: 14px; margin: 0 6%; background: var(--frame); border-radius: 0 0 6px 6px; position: relative; }
.pen { position: absolute; top: -9px; width: 54px; height: 10px; border-radius: 5px; }
.pen.blue { left: 12%; background: var(--blue); }
.pen.green { left: 26%; background: var(--green); }
.pen.red { left: 40%; background: var(--red); transform: rotate(-4deg); }
@media (min-width: 52rem) {
  .board-surface { grid-template-columns: 1fr auto; padding: 3rem 2.5rem 0; gap: 2.5rem; }
  .board-text { grid-column: 1; align-self: center; padding-bottom: 2.5rem; }
  .prashant { grid-column: 2; width: 17rem; height: 17rem; }
}

h2 { font: 700 1.875rem/1.2 var(--hand); margin: 0 0 1rem; }

.issues { margin-bottom: 3rem; }
.issue { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--paper); border: 1px solid #dfe3e6; border-radius: 4px; padding: 1.25rem 1.25rem 1.25rem 1.5rem; cursor: pointer; position: relative; }
.issue::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--ink); border-radius: 4px 0 0 4px; }
.issue time { color: var(--ink-soft); font-size: .9375rem; }
.issue strong { display: block; font: 700 1.5rem/1.25 var(--hand); margin: .15rem 0 .4rem; }
.issue span { color: var(--ink-soft); max-width: 60ch; display: block; }
.issue:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.tools-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin-bottom: 1rem; }
.tools-head h2 { margin: 0; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.filters button { font: 500 .9375rem/1 var(--body); padding: .55rem .9rem; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filters .f-build { border-color: var(--blue); } .filters .f-build[aria-pressed="true"] { background: var(--blue); }
.filters .f-work { border-color: var(--green); } .filters .f-work[aria-pressed="true"] { background: var(--green); }
.filters .f-create { border-color: var(--red); } .filters .f-create[aria-pressed="true"] { background: var(--red); }

.tool-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 40rem) { .tool-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .tool-list { grid-template-columns: 1fr 1fr 1fr; } }
.tool { width: 100%; height: 100%; text-align: left; font: inherit; color: inherit; background: var(--paper); border: 1px solid #dfe3e6; border-left: 6px solid var(--c); border-radius: 4px; padding: 1rem 1.1rem; cursor: pointer; display: flex; flex-direction: column; gap: .3rem; }
.tool[data-cat="Build"] { --c: var(--blue); } .tool[data-cat="Work"] { --c: var(--green); } .tool[data-cat="Create"] { --c: var(--red); }
.tool b { font: 700 1.3rem/1.2 var(--hand); color: var(--c); }
.tool span { color: var(--ink); }
.tool small { color: var(--ink-soft); font-size: .875rem; margin-top: auto; padding-top: .4rem; }
.tool:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.foot { max-width: 68rem; margin: 0 auto; padding: 2rem 1rem 3rem; border-top: 1px solid #dfe3e6; color: var(--ink-soft); font-size: .9375rem; }
.foot p { max-width: 62ch; margin: 0 0 .5rem; }

.reader { border: 0; padding: 0; width: min(44rem, 100%); max-height: 100dvh; height: 100dvh; margin: 0 0 0 auto; background: var(--paper); color: var(--ink); }
.reader::backdrop { background: rgba(34, 37, 43, .45); }
.reader[open] { animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.reader-bar { position: sticky; top: 0; background: var(--paper); display: flex; justify-content: flex-end; padding: .75rem 1rem; border-bottom: 1px solid #e6e9ec; }
.close { font: 600 1rem var(--body); background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: .45rem 1rem; cursor: pointer; color: var(--ink); }
#reader-body { padding: 1.5rem 1.5rem 3rem; max-width: 38rem; }
#reader-body h1 { font: 700 2.2rem/1.15 var(--hand); margin: 0 0 .5rem; }
#reader-body h3 { font: 700 1.25rem/1.3 var(--body); margin: 1.75rem 0 .4rem; }
#reader-body p, #reader-body li { max-width: 65ch; }
#reader-body ol { padding-left: 1.4rem; }
#reader-body .meta { color: var(--ink-soft); margin: 0 0 1.25rem; }
.visit { display: inline-block; margin-top: 1.5rem; font: 600 1rem var(--body); background: var(--ink); color: var(--paper); padding: .75rem 1.25rem; border-radius: 999px; text-decoration: none; }
.gate p { max-width: 34rem; }
.gate .why { color: var(--ink-soft); font-size: .9375rem; }
.gate .g-button { margin: 1.25rem 0; min-height: 44px; }
.gate ol { padding-left: 1.4rem; }
.error { color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  .underlined path { animation: none; stroke-dashoffset: 0; }
  .reader[open] { animation: none; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.signup { margin-bottom: 3rem; padding: 1.5rem; background: var(--paper); border: 1px dashed var(--ink-soft); border-radius: 4px; }
.signup p { margin: 0 0 1rem; max-width: 52ch; color: var(--ink-soft); }
.top-right { display: flex; gap: 1rem; align-items: center; }
.sub-link { font: 600 .9375rem/1 var(--body); background: var(--blue); color: var(--paper); padding: .6rem 1rem; border-radius: 999px; text-decoration: none; }
.signup-form { display: flex; gap: .5rem; flex-wrap: wrap; max-width: 32rem; }
.signup-form label { flex: 1 1 14rem; }
.signup-form input[type="email"] { width: 100%; flex: 1 1 14rem; font: inherit; padding: .7rem .9rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--board); color: var(--ink); }
.signup-form button, .subscribe-me { font: 600 1rem var(--body); background: var(--blue); color: var(--paper); border: 0; padding: .75rem 1.25rem; border-radius: 999px; cursor: pointer; }
.signup-form .note { flex-basis: 100%; margin: .25rem 0 0; color: var(--green); font-weight: 600; font-size: .9375rem; }
.signup-form .note:empty { display: none; }
.signup-form .note.error { color: var(--red); }
.board-text .slot { margin: 0 0 1.75rem; }
.grid-sub { grid-column: 1 / -1; background: var(--ink); color: var(--paper); border-radius: 4px; padding: 1.25rem; }
.grid-sub p { margin: 0 0 .75rem; }
.grid-sub input[type="email"] { background: var(--paper); border-color: var(--paper); }
.grid-sub .note { color: #9be3b8; }
.foot-sub { margin-bottom: 2rem; }
.foot-sub h2 { color: var(--ink); }
.subscribe-me { margin-top: 1rem; }
.consent { display: flex; gap: .6rem; align-items: flex-start; margin: 1.25rem 0 0; font-weight: 500; cursor: pointer; max-width: 30rem; }
.consent input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--blue); flex: none; }
