:root {
  --bg: #f2f0eb;
  --ink: #0a0a0a;
  --accent: #ff4422;
  --accent-2: #ffd400;
  --rule: #0a0a0a;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 16px; line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--accent); color: var(--bg); }

.frame {
  border: 3px solid var(--ink);
  margin: 24px;
  min-height: calc(100vh - 48px);
  background: var(--bg);
  position: relative;
}

/* top tape */
.tape {
  border-bottom: 3px solid var(--ink);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
}
.tape > * {
  padding: 14px 20px;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tape .id { background: var(--ink); color: var(--bg); font-weight: 700; }
.tape .role { display: flex; align-items: center; }
.tape .live { background: var(--accent); color: var(--bg); border-left: 3px solid var(--ink); display: flex; align-items: center; gap: 8px; }
.tape .live .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg); animation: blink 1s steps(1) infinite;
}
@keyframes blink { 0%,49% { opacity: 1 } 50%,100% { opacity: 0 } }

/* hero */
.hero {
  padding: 56px 40px 48px;
  border-bottom: 3px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 40px;
  align-items: end;
}
.meta-row {
  display: flex; gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.chip {
  border: 2px solid var(--ink);
  padding: 4px 10px;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg);
}
.chip.solid { background: var(--ink); color: var(--bg); }
.chip.accent { background: var(--accent); color: var(--bg); border-color: var(--ink); }

h1.title {
  font-size: 132px;
  line-height: 0.86;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0 0 24px;
  text-transform: uppercase;
  text-wrap: balance;
}
h1.title .hl {
  background: var(--accent);
  color: var(--bg);
  padding: 0 12px;
  display: inline-block;
  line-height: 0.9;
  transform: rotate(-1deg);
}
h1.title .strike {
  position: relative;
  color: var(--ink);
}
h1.title .strike::after {
  content: ''; position: absolute;
  left: -4px; right: -4px; top: 52%;
  height: 6px; background: var(--ink);
  transform: rotate(-1.5deg);
}
.deck {
  font-size: 22px;
  line-height: 1.3;
  max-width: 700px;
  font-weight: 400;
  margin: 0;
}
.deck b { font-weight: 700; background: var(--accent-2); padding: 0 4px; }

.portrait {
  width: 200px; height: 240px;
  border: 3px solid var(--ink);
  background:
    repeating-linear-gradient(0deg, var(--bg) 0, var(--bg) 8px, var(--ink) 8px, var(--ink) 9px);
  position: relative;
  cursor: grab;
  background-size: cover;
  background-position: center;
}
.portrait.has-image { background-image: var(--portrait-image); }
.portrait:active { cursor: grabbing; }
.portrait .lab {
  position: absolute;
  bottom: -3px; left: -3px; right: -3px;
  background: var(--ink); color: var(--bg);
  padding: 6px 10px;
  font-family: "Space Mono", monospace;
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex; justify-content: space-between;
}
.portrait .corner {
  position: absolute; top: -3px; right: -3px;
  background: var(--accent); border: 3px solid var(--ink); border-top: none; border-right: none;
  padding: 4px 8px;
  font-family: "Space Mono", monospace;
  font-size: 10px; font-weight: 700;
  color: var(--bg);
}

/* big number ticker */
.ticker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 3px solid var(--ink);
}
.ticker > div {
  padding: 28px 24px;
  border-right: 3px solid var(--ink);
}
.ticker > div:last-child { border-right: none; }
.ticker .n {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.ticker .l {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ticker > div:nth-child(2) { background: var(--accent-2); }
.ticker > div:nth-child(4) { background: var(--ink); color: var(--bg); }

/* sections */
.sec {
  border-bottom: 3px solid var(--ink);
  padding: 48px 40px;
  position: relative;
}
.sec-label {
  position: absolute;
  top: 0; left: 40px;
  transform: translateY(-50%);
  background: var(--bg);
  border: 3px solid var(--ink);
  padding: 4px 12px;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.sec h2 {
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 32px;
  max-width: 900px;
  text-wrap: balance;
}
.sec h2 em {
  font-style: normal;
  background: var(--accent);
  color: var(--bg);
  padding: 0 8px;
}

/* projects */
.grid-projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 3px solid var(--ink);
  border-left: 3px solid var(--ink);
}
.gp {
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 24px;
  background: var(--bg);
  transition: background 0.12s;
  position: relative;
}
.gp:hover { background: var(--accent-2); }
.gp-link { text-decoration: none; color: inherit; display: block; }
.gp .num {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: flex; justify-content: space-between;
}
.gp h3 {
  font-size: 32px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.gp p { margin: 0; font-size: 15px; line-height: 1.5; }
.gp .status {
  position: absolute;
  bottom: 0; right: 0;
  border-left: 3px solid var(--ink);
  border-top: 3px solid var(--ink);
  padding: 4px 10px;
  font-family: "Space Mono", monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.gp .status-active { background: var(--accent); color: var(--bg); }
.gp .status-done { background: var(--ink); color: var(--bg); }
.gp .status-hold { background: var(--accent-2); color: var(--ink); }
.gp-done h3 { text-decoration: line-through; text-decoration-thickness: 3px; }
.gp-done { opacity: 0.85; }

/* talks */
.talks {
  list-style: none; padding: 0; margin: 0;
  border-top: 3px solid var(--ink);
}
.talks li {
  display: block;
  border-bottom: 3px solid var(--ink);
  padding: 18px 16px;
  transition: background 0.12s;
}
.talks li:last-child { border-bottom: none; }
.talks li:hover { background: var(--ink); color: var(--bg); }
.talks .when {
  font-family: "Space Mono", monospace;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase;
  padding-left: 16px;
}
.talks .what {
  font-size: 22px; font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.talks .where {
  font-family: "Space Mono", monospace;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-right: 16px;
}
.talks .arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  margin-right: 16px;
}

/* music */
.music {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 3px solid var(--ink);
  border-left: 3px solid var(--ink);
}
.tr {
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.tr:nth-child(2) { background: var(--accent); color: var(--bg); }
.tr:nth-child(3) { background: var(--ink); color: var(--bg); }
.tr .num {
  font-family: "Space Mono", monospace;
  font-weight: 700; font-size: 64px;
  line-height: 1; letter-spacing: -0.05em;
  margin-bottom: 16px;
}
.tr h3 {
  font-size: 22px; margin: 0 0 6px;
  text-transform: uppercase; letter-spacing: -0.01em;
  font-weight: 700;
}
.tr .meta {
  font-family: "Space Mono", monospace;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-bottom: 16px;
}
.tr .play {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid currentColor;
  padding: 6px 12px;
  font-family: "Space Mono", monospace;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.tr .play svg { display: block; }

/* contact / footer */
.contact {
  padding: 64px 40px;
  border-bottom: 3px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact h2 {
  font-size: 96px;
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}
.contact h2 .arrow {
  display: inline-block;
  transform: translateY(8px);
  color: var(--accent);
}
.links a {
  display: flex; justify-content: space-between; align-items: center;
  text-decoration: none; color: var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 18px 0;
  font-size: 24px; font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transition: padding 0.15s;
}
.links a:first-child { border-top: 3px solid var(--ink); }
.links a:hover { padding-left: 16px; background: var(--accent); color: var(--bg); border-color: var(--ink); }
.links a .h {
  font-family: "Space Mono", monospace;
  font-size: 12px; text-transform: lowercase;
  letter-spacing: 0;
}

footer.foot {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* prose pages (about, blog, posts) */
.page {
  padding: 56px 40px;
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
}
.page-title {
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 32px;
  text-wrap: balance;
}
.page h1, .page h2, .page h3, .page h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 1.6em 0 0.5em;
}
.page h1 { font-size: 40px; text-transform: uppercase; }
.page h2 {
  font-size: 28px;
  text-transform: uppercase;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 8px;
}
.page h3 { font-size: 22px; }
.page h4 { font-size: 18px; font-family: "Space Mono", monospace; text-transform: uppercase; letter-spacing: 0.06em; }
.page p { margin: 0 0 1.2em; }
.page a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.page a:hover { background: var(--accent); color: var(--bg); text-decoration: none; }
.page ul, .page ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.page li { margin-bottom: 0.4em; }
.page blockquote {
  border-left: 6px solid var(--accent);
  margin: 1.4em 0;
  padding: 4px 0 4px 20px;
  font-style: normal;
  color: var(--ink);
}
.page blockquote p:last-child { margin-bottom: 0; }
.page img {
  max-width: 100%;
  height: auto;
  border: 3px solid var(--ink);
  display: block;
  margin: 1.4em 0;
}
.page hr {
  border: none;
  border-top: 3px solid var(--ink);
  margin: 2em 0;
}
.page code {
  font-family: "Space Mono", monospace;
  font-size: 0.92em;
  background: var(--accent-2);
  padding: 1px 5px;
}
.page pre {
  background: var(--ink);
  color: var(--bg);
  padding: 16px 20px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
  margin: 1.4em 0;
}
.page pre code { background: transparent; color: inherit; padding: 0; }
.page strong { font-weight: 700; }
.page em { font-style: italic; }

@media (max-width: 800px) {
  .page { padding: 32px 20px; font-size: 16px; }
  .page-title { font-size: 40px; }
  .page h1 { font-size: 28px; }
  .page h2 { font-size: 22px; }
}

/* marquee */
.marquee {
  background: var(--ink); color: var(--bg);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  font-family: "Space Mono", monospace;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.marquee-track {
  display: inline-block;
  animation: scroll 35s linear infinite;
  padding-left: 100%;
}
.marquee-track span.item { margin: 0 24px; }
.marquee-track .dot { color: var(--accent); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* responsive */
@media (max-width: 800px) {
  .frame { margin: 12px; }
  .tape { grid-template-columns: 1fr; }
  .tape > * { border-left: none !important; }
  .hero { grid-template-columns: 1fr; padding: 32px 20px; }
  h1.title { font-size: 64px; }
  .ticker { grid-template-columns: 1fr 1fr; }
  .ticker > div { border-bottom: 3px solid var(--ink); }
  .ticker > div:nth-child(2n) { border-right: none; }
  .sec { padding: 36px 20px; }
  .sec h2 { font-size: 36px; }
  .grid-projects { grid-template-columns: 1fr; }
  .talks li { padding: 14px 12px; }
  .talks .what { font-size: 17px; }
  .music { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; padding: 36px 20px; }
  .contact h2 { font-size: 56px; }
  .links a { font-size: 18px; padding: 14px 0; }
}
