/* porchhouse.ch — the homepage as a desk of see-through, old-Mac-style windows
   over the video, in the SessionNotes colours and type. Loaded after style.css. */

@font-face{ font-family: "Atkinson"; src: url("fonts/listen/AtkinsonHyperlegible-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face{ font-family: "Atkinson"; src: url("fonts/listen/AtkinsonHyperlegible-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face{ font-family: "DM Mono"; src: url("fonts/listen/DMMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
/* ChicagoFLF — Robin Casady's public-domain remake of the System 7 face */
@font-face{ font-family: "ChicagoFLF"; src: url("fonts/oldmac/ChicagoFLF.woff") format("woff"), url("fonts/oldmac/ChicagoFLF.ttf") format("truetype"); font-display: swap; }

:root{
  --paper: 250, 248, 243;
  --ink: #1c1b18;
  --secondary: #5f5a52;
  --line: #1c1b18;                    /* window frames and title stripes: full ink, one pixel */
  --soft: rgba(28, 27, 24, .22);
  --hover: rgba(28, 27, 24, .08);
  --accent: #2f6fb0;
  --glass: .8;                        /* how solid a window is: lower shows more video */
  --ui: Monaco, "DM Mono", Menlo, monospace;   /* old Mac mono; DM Mono stands in off-Mac */
  --mono: "DM Mono", Menlo, monospace;
  --chicago: "ChicagoFLF", "Lulo Clean", sans-serif;
  --pad: 22px;
}
@media (prefers-color-scheme: dark){
  :root{
    --paper: 24, 24, 24;
    --ink: #ece7dc;
    --secondary: #b4afa5;
    --line: #ddd8cd;
    --soft: rgba(221, 216, 205, .28);
    --hover: rgba(221, 216, 205, .1);
    --accent: #6aa9ea;
    --glass: .76;
  }
}

body{
  background: #000;
  color: var(--ink);
  font-family: var(--ui);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0;
}
:focus-visible{ outline: 2px solid var(--accent) !important; outline-offset: 2px; }

/* before the video arrives: black sky, the galaxy already drifting over it.
   The iframe flashes white while it loads, so it stays invisible until then. */
.bg{ background: #000; }
.bg iframe{ opacity: 0; transition: opacity 4.5s ease-in-out; }
.bg iframe.loaded{ opacity: .5; }      /* half there: the galaxy keeps the upper hand */
/* style.css cuts every transition short under Reduce Motion; plain fades are
   not motion, so these keep their time (the player just skips its little slide) */
@media (prefers-reduced-motion: reduce){
  .bg iframe{ transition-duration: 4.5s !important; }
  .np{ transition-duration: .5s !important; }
  .np.is-off{ transform: translate(-50%, 0) !important; }
}

/* the stars lie over the video, under the windows */
/* the sky's front sheet: over the windows, under the player; only lit while music plays */
#dreamFront{
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 20; pointer-events: none; opacity: 0;
}
#dream{
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
  image-rendering: pixelated;
}
.vignette{ display: none; }

/* ---------- the desk ----------
   One column of windows at every width (2026-11-13: the narrow-screen
   arrangement became the arrangement). A wider screen keeps the same column
   in the middle and simply shows more video and stars beside it. */
main{
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 12px 110px;
  text-align: left;
  display: block;
}

/* ---------- a window: see-through paper, a one-pixel frame, a hard shadow ---------- */
.mwin{
  background: rgba(var(--paper), var(--glass));
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  border: 1px solid var(--line);
  box-shadow: 2px 2px 0 var(--line);
  min-width: 0;
}
/* the title bar: six pinstripes, the name on a patch of paper, a close box on the left */
.mtitle{
  position: relative; height: 18px;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
  padding: 0 30px;
}
.mtitle::before{
  content: ""; position: absolute; left: 3px; right: 3px; top: 4px; height: 10px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 2.4px);
  opacity: .8;
}
.mtitle span{
  position: relative; z-index: 1; padding: 0 8px;
  background: rgb(var(--paper));
  font-family: var(--chicago);
  font-size: 12px; font-weight: 400; line-height: 16px; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.mclose{
  position: absolute; left: 8px; top: 3px; z-index: 1;
  width: 11px; height: 11px; border: 1px solid var(--line);
  background: rgb(var(--paper)); box-shadow: 0 0 0 2px rgb(var(--paper));
}
.mbody{ padding: var(--pad); }

/* windows move by their title bar */
.mwin{ position: relative; display: flex; flex-direction: column; }
.mbody{ flex: 1; min-height: 0; overflow: auto; }
/* the grow box, bottom-right, two nested squares like System 7 */
.mgrow{
  position: absolute; right: 0; bottom: 0; z-index: 2;
  width: 9px; height: 9px;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  background:
    linear-gradient(var(--line), var(--line)) 2px 2px / 4px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 2px 2px / 1px 4px no-repeat,
    rgb(var(--paper));
  cursor: nwse-resize; touch-action: none;
}
.mwin.resizing{ box-shadow: 5px 5px 0 var(--line); }
.mtitle{ cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.mwin.dragging .mtitle{ cursor: grabbing; }
.mwin.dragging{ box-shadow: 5px 5px 0 var(--line); }

/* ---------- inside the windows ---------- */
.hero-row{ margin: 0 0 14px; padding: 0; justify-content: space-between; align-items: center; gap: 12px 20px; }
h1.line, .hero-row h1.line{ margin: 0; font-size: 16px; font-weight: 700; letter-spacing: 0; line-height: 1.45; }
.line{ margin: 0; font-size: 12px; line-height: 1.75; }
.line > span, .block .line > span{ background: none; padding: 0; text-shadow: none; }
/* the roles step forward — highlighted like selected text on an old Mac */
.block .line{ font-size: 13px; line-height: 2.05; }
.block .line > span{
  font-weight: 700;
  background: var(--ink); color: rgb(var(--paper));
  padding: 1px 6px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.block{ margin: 0; padding: 0; }
.poem p{ font-size: 12px; line-height: 1.75; letter-spacing: 0; opacity: 1; color: var(--ink); }

.sayhi{ justify-content: flex-start; gap: 14px; }
.sayhi-label{ display: none; }                 /* the window's title says it */
.grid-label, .worked-label{ display: none; }
.social{ gap: 10px; }
.social a, .rec-btn, .np-toggle, .np-plats .plat, .scatter-close{
  border: 1px solid var(--line); border-radius: 7px;      /* the old rounded-rect button */
  background: rgba(var(--paper), .55);
  color: var(--ink); opacity: 1;
  transition: background .12s ease, color .12s ease;
}
.social a{
  padding: 0 9px; min-width: 34px; height: 27px; display: grid; place-items: center;
  box-shadow: 2px 2px 0 var(--line);
  transition: transform .16s ease, box-shadow .16s ease, background .12s ease, color .12s ease;
}
.social a:hover{ transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.social a:active{ transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--line); }
.social a:hover svg, .social a:hover .tchip{ animation: chipWave .45s ease; }
@keyframes chipWave{ 0%{ transform: rotate(0) } 30%{ transform: rotate(-3deg) } 65%{ transform: rotate(2deg) } 100%{ transform: rotate(0) } }
.social a:hover, .rec-btn:hover, .np-toggle:hover, .np-plats .plat:hover, .scatter-close:hover{
  background: var(--ink); color: rgb(var(--paper)); border-color: var(--line);   /* pressed: it inverts */
}
.social svg{ width: 18px; height: 18px; }
.social .tchip{ font-family: var(--chicago); font-size: 11px; line-height: 1; }
/* the Instagram chip wears Instagram's own colours */
.social a[aria-label="Instagram"]{
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
}
.social a[aria-label="Instagram"]:hover{
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff; filter: saturate(1.25) brightness(1.06);
}

.rec-btn{ height: 30px; padding: 0 13px; gap: 9px; font-size: 9px; letter-spacing: .08em; }
.rec-txt{ top: 0; }
.rec-dot{ display: none; }

/* ---------- the studio window: a little slide carousel ---------- */
.studio-show{
  display: block; width: 100%;
  aspect-ratio: 960 / 1110;                    /* the video minus a slice off the top */
  overflow: hidden;
  padding: 0; border: 1px solid var(--line);
  background: var(--hover); cursor: pointer;
}
.studio-slide{
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 100%;   /* anchor to the bottom: the top gets trimmed */
}

/* ---------- the music ---------- */
.grid{ padding: 0; column-gap: 16px; row-gap: 4px; margin-bottom: 0; }
.tile .art{ border: 1px solid var(--line); }
.tile .cap{ font-size: 10px; line-height: 1.45; letter-spacing: 0; color: var(--ink); min-height: 2.9em; margin-top: 7px; }
.tile.is-playing .art{ box-shadow: 2px 2px 0 var(--accent); border-color: var(--accent); }

.worked{ margin: 0; padding: 0; text-align: left; }
.worked-list{ font-size: 11px; line-height: 1.9; letter-spacing: 0; color: var(--ink); max-width: none; }
.worked-list .sep{ color: var(--secondary); }
.worked-list span.nm{ color: var(--secondary); }
.worked-list a.nm{ color: var(--ink); border-bottom: 1px dotted var(--secondary); }
.worked-list a.nm:hover{ border-bottom-style: solid; border-color: var(--accent); color: var(--accent); }

/* ---------- the mini player: one more small window ---------- */
.np{
  background: rgba(var(--paper), .8); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  box-shadow: 2px 2px 0 var(--line);
  padding: 9px 18px 9px 9px; gap: 12px;
  animation: none;
  transition: opacity .5s ease, transform .5s ease;
}
.np.is-off{ opacity: 0; transform: translate(-50%, 10px); pointer-events: none; }
.np-art{ border: 1px solid var(--line); will-change: transform; }   /* round and turning; its own layer, so phones keep the spin smooth */
.np-toggle{ width: 32px; height: 32px; border-radius: 50%; }   /* round, like the pill they sit in */
.np-meta{ font-size: 11px; letter-spacing: 0; line-height: 1.4; gap: 2px; flex: 0 1 auto; min-width: 0; max-width: 38%; }
.np-wave{ flex: 1 1 46px; min-width: 46px; height: 24px; cursor: pointer; }
.np-title{ font-weight: 700; }
.np-artist{ font-size: 10px; opacity: 1; color: var(--secondary); }
.np-plats{ gap: 6px; }
.np-plats-label{ font-size: 9px; letter-spacing: 0; opacity: 1; color: var(--secondary); max-width: 110px; }
.np-plats .plat{ width: 28px; height: 28px; border-radius: 50%; }
.np-bar{ display: none; }      /* the waveform shows the progress */

/* ---------- the studio photos ---------- */
.scatter-close{ width: 38px; height: 32px; }
.scatter-hint{
  color: var(--ink); font-size: 10px; letter-spacing: 0; opacity: 1;
  border: 1px solid var(--line); border-radius: 0; background: rgba(var(--paper), .85);
}

/* while a song plays the Listen window lifts a little out of the dimmed room:
   a thin wash of light over its paper, the covers a touch brighter */
.w-music{ transition: box-shadow 1.2s ease; }
.w-music .tile{ transition: filter 1.2s ease; }
body.music-on .w-music{ box-shadow: 2px 2px 0 var(--line), inset 0 0 0 3000px rgba(255, 255, 255, .1); }
body.music-on .w-music .tile{ filter: grayscale(.1) contrast(1.05) brightness(1.05); }      /* the covers wake up */
body.music-on .w-music .tile:hover, body.music-on .w-music .tile.is-playing{ filter: brightness(1.1); }
@media (prefers-reduced-motion: reduce){
  .w-music, .w-music .tile{ transition-duration: 1.2s !important; }
}

/* the column: spacing, the little stagger, type sizes */
:root{ --pad: 16px; }
.mwin{ margin: 0 0 20px; }
.w-poem{ margin-left: 22px; }                /* a little stagger, like windows on a desk */
.w-sayhi{ margin-right: 22px; }
.w-hi, .w-poem, .w-sayhi{ margin-bottom: 36px; }   /* the first three breathe */
.w-studio{ margin-top: 9vh; }      /* the first three windows own the first screen; the gallery waits below */
.worked-list{ font-size: 14px; line-height: 2.1; }
h1.line, .hero-row h1.line{ font-size: 14px; letter-spacing: 0; }
.rec-btn{ flex-direction: row; font-size: 8.5px; letter-spacing: .06em; gap: 9px; }
.rec-txt{ order: 0; }
.grid{ column-gap: 12px; }

/* the column as Giuliano nudged it by hand on desktop (2026-11-13, second
   arrangement). left/top sit under the drag transform, so dragging still works
   and a double-click on a title bar returns the window to this spot. */
@media (min-width: 861px){
  .w-hi{     left: 1px;  top: 30px; }
  .w-poem{   left: 16px; top: 19px; }
  .w-sayhi{  left: -7px; top: 18px; }
  .w-studio{ width: 767px; height: 892px; left: 9px;  top: -46px; }
  .w-people{ width: 597px; height: 348px; left: 88px; top: 45px; }
}

@media (max-width: 860px){
  .mtitle{ cursor: default; touch-action: auto; }   /* phones scroll, windows stay put */
  .mgrow{ display: none; }
  .np-art{ animation: none; }   /* phones: the waveform loop turns the cover instead */
}
