@import url("/dirk-vibe-coding/desk.css");

:root {
  --gold: #ffc477;
  --text: #f8eddd;
  --cool: #b6e0e4;
  --border: #594739;
}
body { color: var(--text); }
.shell { width: min(100% - 3rem, 75rem); }
.skip { position: absolute; z-index: 3; top: 1rem; left: 1rem; padding: .6rem 1rem; background: #281e18; transform: translateY(-250%); }
.skip:focus { transform: none; }
.masthead { padding: .85rem 0; }
.brand {
  display: flex; align-items: center; gap: .42rem; color: var(--text);
  font: 750 1rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.brand img { margin-right: .2rem; border: 1px solid #795a42; border-radius: .3rem; }
.brand strong { color: var(--gold); }
.masthead nav { gap: .6rem 1.25rem; }
.masthead .channel { color: var(--gold); }
.hero {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.4rem); align-items: center; padding: clamp(1.25rem, 4.1vw, 3.25rem);
  margin-block: 1.25rem 0; border: 1px solid #765740; border-radius: .6rem; overflow: hidden;
  background: linear-gradient(92deg, #221711fa, #211711d9 43%, #1c1611d0), url("/dirk-vibe-coding/workstation.webp") center 54% / cover;
}
.label { color: var(--gold); font: 750 .875rem/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .75rem; }
h1 { margin: 0; font: 850 clamp(2.8rem, 5.75vw, 5.4rem)/.92 var(--display); letter-spacing: -.065em; text-transform: none; }
h1 em { color: var(--gold); font-style: normal; }
.premise { max-width: 34ch; margin: 1.2rem 0 1.35rem; color: #efe0ce; font-size: clamp(1rem, 1.55vw, 1.15rem); }
.intro { max-width: 25rem; padding: .9rem; border: 1px solid #654f3c; border-radius: .45rem; background: #171310e8; }
.intro-title { display: flex; align-items: center; gap: .65rem; }
.intro-avatar {
  position: relative; flex: 0 0 auto; width: 5.5rem; height: 5.5rem;
  overflow: hidden; border: 1px solid #75573b; border-radius: .4rem; background: #241b14;
}
.intro-avatar img, .intro-avatar canvas {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
}
.intro-title h2 { font-size: 1.125rem; }
.intro-title p { margin: .14rem 0 0; color: #cfc0ae; font-size: .875rem; }
.intro audio { display: block; margin: .7rem 0 .45rem; width: 100%; height: 2.7rem; }
.intro details { font-size: .875rem; }
.intro summary { color: var(--cool); cursor: pointer; }
.intro details p { margin: .65rem 0 0; }
.latest { min-width: 0; scroll-margin-top: 1rem; }
.screen {
  position: relative; display: grid; place-items: center; overflow: hidden;
  width: 100%; aspect-ratio: 16 / 9; border: 1px solid #88654b; border-radius: .42rem; background: #110e0a;
  box-shadow: 0 .9rem 2.8rem #0007;
}
.screen img, .screen iframe { display: block; width: 100%; height: 100%; border: 0; }
.screen img { object-fit: cover; }
.screen button {
  z-index: 1; position: absolute; inset: auto auto 1rem 1rem; padding: .65rem 1rem;
  color: #20150b; font: 750 1rem/1.3 system-ui, sans-serif; background: var(--gold);
  border: 0; border-radius: .3rem; cursor: pointer;
}
.screen button:focus-visible, .button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.episode-info { padding-top: .85rem; }
.episode-info h3 { margin: 0; font: 750 clamp(1.25rem, 2.1vw, 1.75rem)/1.15 var(--display); }
.episode-info p { margin: .45rem 0 .68rem; color: #e1ceba; }
.episode-info a, .footer a { color: var(--cool); text-underline-offset: .25em; }
.highlights, .coding { scroll-margin-top: 1rem; margin-top: 1.25rem; padding: clamp(1.1rem, 3vw, 2rem); border: 1px solid var(--border); border-radius: .55rem; background: #211914; }
.highlights { display: grid; grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr); align-items: center; gap: clamp(1rem, 4vw, 3rem); }
.highlights h2, .coding h2 { font-size: clamp(1.55rem, 3.1vw, 2.6rem); }
.highlights p, .coding p { margin: .55rem 0 0; color: #d8c8b5; max-width: 43ch; }
.reel { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid #795a42; border-radius: .4rem; background: #100d0a; }
.coding { display: flex; flex-wrap: wrap; gap: .9rem 1.5rem; align-items: center; justify-content: space-between; }
.coding h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.coding .button { color: var(--gold); padding: .55rem .85rem; border: 1px solid #816243; border-radius: .32rem; font-weight: 650; text-decoration: none; }
.coding .button:hover { background: #372719; }
.footer { display: flex; justify-content: space-between; align-items: center; padding-block: 1.45rem; color: #d3c3b1; font: .875rem/1.35 var(--mono); }

@media (max-width: 770px) {
  .shell { width: min(100% - 1.5rem, 75rem); }
  .hero, .highlights { grid-template-columns: minmax(0,1fr); }
  .story { display: contents; }
  .story .label, .story h1, .story .premise { grid-column: 1; }
  .hero { gap: .85rem; }
  .story .label, .story .premise { margin: 0; }
  .latest { grid-row: 4; margin-block: .45rem .1rem; }
  .intro { grid-row: 5; width: 100%; max-width: none; }
  .masthead nav { gap: .45rem .85rem; }
}
