/* ==========================================================================
   FullStack Media - site.css
   The page layer for fullstacktv.com. It lays components out in the bay and
   adds the few things a single page needs. Load order: tokens.css,
   components.css, then this file.

   Contract
   - Everything here is in the site- namespace. Components keep their fs-
     classes; where one had to be adjusted the rule sits in section 12 and
     says why.
   - Only tokens: colours, spacing, radii and shadows come from tokens.css.
   - Selectors stay at one or two classes so a section rule never outranks
     a component state by accident.
   - Nothing fades, slides or animates on load or on scroll. The only motion
     is a lamp switching and a key travelling, both from components.css.

   The page, top to bottom: header, hero, then one section per piece of work.
   A section is a strip (a slim faceplate with the section's name), a picture
   in a well one rack pitch under it, and the words beneath.

   Widths: 700px tablet margins and the two rack pictures shown whole,
   1024px desktop margins and the pinned header, 1100px words in two columns,
   1280px the hero side by side and the wider column splits. Parts that sit in
   columns (header, typed sheet, schedule) measure themselves instead.

   Index
   0  Page variables          7  Journals (liner-notes theme), sign-up
   1  Base                    8  Streams
   2  Helpers, the bay        9  Channels
   3  Header                 10  Contact
   4  Pictures               11  Footer
   5  Hero                   12  Component adjustments
   6  Section: strip,        13  Print
      columns, typed sheet
   ========================================================================== */


/* 0  Page variables -------------------------------------------------------- */

:root {
  --site-gutter: var(--space-4);                 /* page margin either side of the bay */
  --site-gap: var(--u2);                         /* space between sections: u2 on phones */
  --site-inset: 0px;                             /* indent of the words under a strip */
  --site-bay: 1240px;                            /* the bay never grows past this */
  --site-pitch: var(--space-3);                  /* between stacked plates: header, strip, picture */
}
@media (min-width: 700px) {
  :root { --site-gutter: var(--space-6); --site-inset: var(--space-6); }
}
@media (min-width: 1024px) {
  /* on a desktop the words line up with the name on the strip: one ear plus the plate's padding */
  :root { --site-gutter: var(--space-8); --site-gap: var(--u3); --site-inset: calc(var(--u1) + var(--space-6)); }
}


/* 1  Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
  background-color: var(--ground);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto;                         /* pages cut */
  /* a jump to a section, and anything the keyboard focuses, stops clear of the
     window's edges, so the focus ring is never cut off (section 3 adds the pinned header) */
  scroll-padding-block: var(--space-4);
}
body {
  margin: 0;
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--font-liner);
  font-size: 19px;
  line-height: 31px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"] { padding: 0; list-style: none; }
img { display: block; max-inline-size: 100%; block-size: auto; }
a { color: inherit; }

/* one focus ring everywhere: 2px solid, 2px off the element */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
main:focus { outline: 0; }                        /* the skip link's target is not a control */


/* 2  Helpers, the bay ------------------------------------------------------- */

/* the bay: full width less the page margin, 1240px at most */
.site-bay {
  inline-size: min(100% - 2 * var(--site-gutter), var(--site-bay));
  margin-inline: auto;
}

/* read by screen readers, not shown */
.site-vh {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* skip link: a key that appears on the first Tab */
.site-skip {
  position: absolute;
  inset-block-start: var(--space-2);
  inset-inline-start: var(--space-2);
  z-index: 20;
}
.site-skip:not(:focus) { clip-path: inset(50%); inline-size: 1px; block-size: 1px; padding: 0; overflow: hidden; }

/* a group of keys */
.site-keys { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }


/* 3  Header ---------------------------------------------------------------- */

.site-top {
  padding-block-start: var(--space-4);
  background-color: var(--ground);
}
/* pinned where there is room for it: a desktop-sized window. Jumps and
   keyboard focus then stop under it, not behind it. */
@media (min-width: 1024px) and (min-height: 640px) {
  .site-top { position: sticky; inset-block-start: 0; z-index: 10; }
  html { scroll-padding-block-start: calc(var(--u2) + var(--space-8)); }
}

.site-header > .fs-faceplate__body { justify-content: flex-start; column-gap: var(--space-6); }

/* The parent logo, as drawn: FULLSTACK over a rule and MEDIA. The file carries
   half a cap height of clear space on every side (viewBox -50 -171 587.3 283,
   cap height 100). --site-cap sets the size of FULLSTACK; the margins take the
   clear space back so the F sits on the plate's own padding. */
.site-home { display: inline-flex; align-items: center; min-block-size: var(--u1); }
.site-logo {
  --site-cap: 28px;
  flex: none;
  inline-size: auto;
  max-inline-size: none;
  block-size: calc(var(--site-cap) * 2.83);
  margin: calc(var(--site-cap) * -0.5);
}

.site-live { margin: 0; margin-inline-start: auto; }

/* The plate measures itself (it is the fs-faceplate container). When the row
   runs out, the selector takes a row of its own under the logo and the lamp. */
@container fs-faceplate (max-width: 940px) {
  .site-header > .fs-faceplate__body { padding-block: var(--space-3); }
  .site-nav { order: 3; flex-basis: 100%; }
}
/* Below about 720px the five keys cannot share one row: they stand three
   over two, each row filled, so every section stays in sight and no key is
   narrower than a thumb. The ::before is an empty line that forces the break
   after the third key; it counts as a row, so the row gap is halved. */
@container fs-faceplate (max-width: 700px) {
  .site-nav { row-gap: var(--space-1); }
  .site-nav::before { content: ""; flex-basis: 100%; order: 1; }
  .site-nav > a { flex: 1 1 auto; }
  .site-nav > a:nth-child(n + 4) { order: 2; }
}
@container fs-faceplate (max-width: 620px) {
  .site-header > .fs-faceplate__body { padding-inline: var(--space-2); }
  .site-header .site-logo { --site-cap: 24px; }
  .site-home { padding-inline-start: var(--space-2); }
  .site-live { padding-inline-end: var(--space-2); }
  .site-nav > a { padding-inline: var(--space-2); }
}


/* 4  Pictures -------------------------------------------------------------- */

/* A picture sits in a well: square-cornered, a hairline of the plate's edge
   round it, the top inside edge in shadow and the bottom lip catching the
   light. The pictures are dark and stand straight on the ground: no card.
   The img keeps its width and height attributes and takes its shape from
   --site-pic-shape, so the space is held before the file arrives. The desk
   pictures are shown whole at every width: their edges carry the maker's
   print and the fall-off of the light, and a 16:9 cut loses both. */
.site-pic {
  --site-pic-shape: 8 / 5;                       /* the desk pictures (2400 x 1500), shown whole */
  position: relative;
  overflow: hidden;
  border: 1px solid var(--surface-edge);
  border-radius: var(--radius-none);
  background-color: var(--well);
  box-shadow: var(--shadow-well);
}
.site-pic img {
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: var(--site-pic-shape);
  object-fit: cover;
  object-position: var(--site-pic-focus, 50%) 50%;
}
/* the inside of the well, drawn over the picture's edge */
.site-pic::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: var(--shadow-well);
  pointer-events: none;
}

/* the timeline is a wide strip, shown whole */
.site-pic--strip { --site-pic-shape: 8 / 3; }

/* The two rack units (hero, deck) are 3400 x 1086 and shown whole from tablet
   up. On a phone they would be about 115px tall, so the box is made taller
   and the picture is cut to the part that matters: --site-pic-focus is where
   that part sits across the picture. */
.site-pic--unit { --site-pic-shape: 3400 / 1086; }
@media (max-width: 699px) {
  .site-pic--unit { --site-pic-shape: 8 / 5; }
  .site-pic--hero { --site-pic-focus: 76%; }     /* both meters, the Monitor knob and the four keys under it */
  .site-pic--deck { --site-pic-focus: 94%; }     /* the right end: Stop and Rec, the display, the jog wheel, the ear */
}


/* 5  Hero ------------------------------------------------------------------ */

/* The picture first, one pitch under the header like the next unit in the
   rack. Then the name, small, and the sentence that says what the studio is:
   the largest type on the page after the picture. */
.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--u1);
  margin-block-start: var(--site-pitch);
}
.site-hero__words {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--space-8);
  padding-inline: var(--site-inset);
}
.site-hero__words > * { min-inline-size: 0; }

/* The Liner voice at display size. Type styles are classes, not variables, so
   the two ends of this scale are written out: 30px on the narrowest phone,
   44px from a large phone up. It stays above the 40px of the section names. */
.site-hero__lead {
  max-inline-size: 16em;
  margin-block-start: var(--space-4);
  font-family: var(--font-liner);
  font-size: clamp(30px, 8.4vw, 44px);
  line-height: 1.14;
  text-wrap: balance;
}
.site-hero__more .liner { max-inline-size: 30rem; text-wrap: pretty; }
.site-hero__more .site-keys { margin-block-start: var(--space-6); }

/* side by side once seven columns hold the sentence in two lines */
@media (min-width: 1280px) {
  .site-hero__words { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-6); align-items: start; }
  .site-hero__head { grid-column: span 7; }
  .site-hero__more { grid-column: span 5; }
}


/* 6  Section, strip, columns, typed sheet ---------------------------------- */

.site-section { margin-block-start: var(--site-gap); }

/* The strip: a compact faceplate, 2U, with the section's name. Music carries
   a red lamp and Streams the green Live lamp; the others carry none. */
.site-strip > .fs-faceplate__body { flex-wrap: nowrap; }
.site-strip__lamp,
.site-strip__state { margin: 0; margin-inline-start: auto; }

/* the picture hangs one pitch under its strip, like the next plate in the rack */
.site-strip + .site-pic { margin-block-start: var(--site-pitch); }

/* Under the picture, the words. One column up to 1100px, then twelve columns
   with 24px gutters: reading takes seven and the list five. --even splits six
   and six, which gives the typed sheet the room to keep each row on one line
   from 1280px. --flip (Streams) puts the short side first: six and six, then
   five and seven from 1280px, where the schedule has room for one-line rows. */
.site-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--u1);
  margin-block-start: var(--u1);
  padding-inline: var(--site-inset);
}
.site-cols > * { min-inline-size: 0; }
@media (min-width: 1100px) {
  .site-cols { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-6); align-items: start; }
  .site-cols > :first-child { padding-inline-end: var(--space-6); }   /* a little more air than one gutter between the two sides */
  .site-cols__read { grid-column: span 7; }
  .site-cols__list { grid-column: span 5; }
  .site-cols--even > *,
  .site-cols--flip > * { grid-column: span 6; }
}
@media (min-width: 1280px) {
  .site-cols--flip > .site-cols__list { grid-column: span 5; }
  .site-cols--flip > .site-cols__read { grid-column: span 7; }
}
/* a second picture closes the section */
.site-cols + .site-pic { margin-block-start: var(--u1); }

/* A typed sheet: the credits list used on its own as a service list, with a
   hairline between rows as on the schedule. --site-tab is the tab stop the
   descriptions line up on. The sheet measures itself: the longest row is 58
   characters (522px), and in a column narrower than that the name and its
   description stack, so no row is ever half wrapped. */
.site-sheet {
  --site-tab: 23ch;
  container: site-sheet / inline-size;
  max-inline-size: 40rem;
  border-block-end: 1px solid var(--rule);
}
.site-sheet > div { padding-block: var(--space-3); border-block-start: 1px solid var(--rule); }
.site-sheet dd { text-wrap: pretty; }
@container site-sheet (max-width: 521px) {
  .site-sheet > div { display: block; }
  .site-sheet dt::after { content: none; }
  .site-sheet dd { padding-inline-start: 0; }
}


/* 7  Journals (liner-notes theme), sign-up --------------------------------- */

/* data-theme="light" on the section turns the tokens over: bone ground,
   black ink. The band runs the full width of the window; the picture stays
   dark on it, like a plate printed in a booklet. */
.site-journals {
  margin-block-start: var(--site-gap);
  padding-block: var(--site-gap);
  background-color: var(--ground);
  color: var(--ink);
  /* a jump to #journals lands on the strip, as in the other sections, not on the band's padding */
  scroll-margin-block-start: calc(-1 * var(--site-gap));
}

.site-notebooks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-block-start: var(--u1);
  border-block-end: 1px solid var(--rule);
}
.site-notebooks > li { padding-block: var(--space-4); border-block-start: 1px solid var(--rule); }
.site-notebooks .liner { margin-block-start: var(--space-2); max-inline-size: 30rem; text-wrap: pretty; }
@media (min-width: 620px) {
  .site-notebooks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); }
}

.site-signup__about { max-inline-size: 26rem; text-wrap: pretty; }
.site-signup__label { display: block; margin-block: var(--space-6) var(--space-2); color: var(--ink-dim); }
.site-signup__row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.site-signup__status { min-block-size: 20px; margin-block-start: var(--space-3); }

/* a typed field: one unit tall, an ink border you can see, key radius */
.site-field {
  flex: 1 1 12rem;
  min-inline-size: 0;
  block-size: var(--u1);
  padding: 0 var(--space-4);
  border: 1px solid var(--ink);
  border-radius: var(--radius-key);
  background-color: var(--surface);
  color: var(--ink);
}


/* 8  Streams --------------------------------------------------------------- */

.site-cols__list > .site-keys { margin-block-start: var(--space-8); }

/* tour dates: the list fills its columns but stops at 46rem */
.site-section .fs-schedule { max-inline-size: 46rem; }
@media (min-width: 1100px) {
  .site-cols--flip > .fs-schedule { justify-self: end; inline-size: 100%; }
}


/* 9  Channels -------------------------------------------------------------- */

/* A footnote: the sentence, then the three logos in a row, each with its one
   line and its links as small keys.
   The logo files share one drawing scale (FULLSTACK is 100 units tall) and
   one origin (its baseline is 171 units below the top of the file), but each
   has its own width, height and left margin. Sized by --vb-h and pulled left
   by --vb-x (both set on the img, from the file's viewBox), the three get the
   same FULLSTACK size, --site-cap, the same baseline, and an F that starts on
   the column's left edge. The top margin takes back the clear space above. */
.site-channels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--space-8);
  margin-block-start: var(--u1);
  padding-inline: var(--site-inset);
}
.site-channels__row {
  --site-cap: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8) var(--space-6);
}
.site-channel { display: grid; justify-items: start; align-content: start; row-gap: var(--space-3); }
/* one box height for the three logos (the tallest is Form, 5.37 caps from the
   lamps to the foot of the title, which leaves the same gap above the typed line
   as the tallest logo had in 1.3), so the lines under them stay level */
.site-channel__name { block-size: calc(var(--site-cap) * 5.37); line-height: 0; }
.site-channel__name img {
  inline-size: auto;
  max-inline-size: none;
  block-size: calc(var(--site-cap) * var(--vb-h) / 100);
  margin-block-start: calc(var(--site-cap) * -0.5);
  margin-inline-start: calc(var(--site-cap) * var(--vb-x) / -100);
}
.site-channel__what { color: var(--ink-dim); }

/* small keys: 32px tall to the eye, with the full unit as the touch target */
.site-channel .fs-key { position: relative; block-size: var(--space-8); padding-inline: var(--space-3); }
.site-channel .fs-key::after { content: ""; position: absolute; inset: calc((var(--space-8) - var(--u1)) / 2) 0; }

/* from tablet up the three stand in a row; each column is as wide as its own
   line of type, so no line breaks and the keys stay level */
@media (min-width: 700px) {
  .site-channels__row { grid-template-columns: repeat(3, max-content); justify-content: start; column-gap: var(--space-6); }
}
@media (min-width: 1024px) {
  .site-channels__row { --site-cap: 20px; column-gap: var(--u1); }
}
/* wide: the sentence takes the first three columns and the row the rest */
@media (min-width: 1280px) {
  .site-channels { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-6); align-items: start; }
  .site-channels__about { grid-column: span 3; }
  .site-channels__row { grid-column: span 9; }
}


/* 10  Contact -------------------------------------------------------------- */

.site-cols__read > .site-keys { margin-block-start: var(--space-8); }

/* the work order has one-word roles: a short tab stop keeps each line whole */
.site-sheet--order { --site-tab: 11ch; }

/* The contact form: the sign-up's parts, one field more (added 23 November 2026) */
.site-contact { margin-block-start: var(--space-8); margin-inline-start: var(--site-inset); max-inline-size: 40rem; }
.site-contact .site-field { inline-size: 100%; }
.site-field--long { block-size: auto; min-block-size: 9rem; padding-block: var(--space-3); resize: vertical; }


/* 11  Footer --------------------------------------------------------------- */

/* logo, links, copyright line: stacked on a phone, the two lines of type
   beside the logo on a tablet, one row on a desktop */
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2) var(--u1);
  margin-block-start: var(--site-gap);
  padding-block: var(--space-8) var(--u1);
  border-block-start: 1px solid var(--rule);
}
.site-footer > .site-home { justify-self: start; }

/* Each link is padded out to a full touch target; the list steps back by the
   same amount so the first word still starts on the margin. The five fit one
   row at 360px. */
.site-footnav ul { display: flex; flex-wrap: wrap; margin-inline: calc(-1 * var(--space-2)); }
.site-footnav a {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--u1);
  padding-inline: var(--space-2);
  text-decoration: none;
}
.site-footnav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }

.site-fine { color: var(--ink-dim); }

@media (min-width: 700px) {
  .site-footnav ul { column-gap: var(--space-2); }
  .site-footer { grid-template-columns: auto minmax(0, 1fr); }
  .site-footer > .site-home { grid-row: span 2; }
}
@media (min-width: 1024px) {
  .site-footer { grid-template-columns: auto minmax(0, 1fr) auto; }
  .site-footer > .site-home { grid-row: auto; }
}


/* 12  Component adjustments -------------------------------------------------
   Every rule that changes how a design-system component looks or behaves on
   this page is here, or named here. If a component is changed upstream,
   delete its rule.

   Elsewhere, beside the layout they belong to: the Selector standing three
   keys over two on a phone (section 3), the Faceplate body that does not wrap
   in a strip (section 6), and the Key at 32px for the channel links
   (section 9). */

/* Faceplate, as a section strip: the name is .shout-m (40px) and goes down to
   26px on the narrowest phone so the longest one, "Music production", stays
   on one line beside its lamp. The component only scales .shout-l. */
.site-strip .fs-faceplate__title { font-size: clamp(26px, 8.4cqi, 40px); }

/* Credits list used as a service list. The role column is 20ch in the
   component, exactly the length of "Beats and production", which leaves that
   row without a leader: the tab stop moves out to --site-tab (section 6).
   The description steps back to ink-dim so the name leads. */
.site-sheet dt { flex-basis: var(--site-tab); }
.site-sheet dd { color: var(--ink-dim); }

/* Schedule: the length steps back to ink-dim */
.fs-schedule__length { color: var(--ink-dim); }


/* 13  Print ---------------------------------------------------------------- */

@media print {
  .site-top { position: static; }
  .site-skip { display: none; }
}
