/* final-form.css: the home page's own parts. The home page is one of the pages: its header, footer,
   type and colours come from tokens.css and styles.css, like every other page. This sheet only lays
   out what no other page has: the clickable picture, the name row and the three cards. */

/* the picture: Luke Spooner's concept art, a full-width band directly under the header.
   It is never cropped, and hotspots are percentages of its own box, so they scale with it and
   stay on the place they name. */
.ff-hero-art { position: relative; margin: 0; }
.ff-hero-band { position: relative; background: var(--bc-night); }
.ff-hotspots { position: relative; width: 100%; line-height: 0; }
.ff-hotspots img { display: block; width: 100%; height: auto; }
.ff-spot { position: absolute; display: block; border-radius: .35rem; transition: box-shadow 160ms ease, background-color 160ms ease; -webkit-tap-highlight-color: transparent; }
.ff-spot-round { left: calc(var(--x) - var(--r)); top: var(--y); width: calc(var(--r) * 2); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; }
.ff-spot:hover { background: rgb(255 226 160 / .14); box-shadow: 0 0 0 2px rgb(255 226 160 / .75), 0 0 1.4rem .3rem rgb(255 214 130 / .55); }
.ff-spot:focus-visible { outline: 3px solid #ffd27a; outline-offset: 2px; background: rgb(255 226 160 / .14); box-shadow: 0 0 0 5px rgb(14 31 26 / .85), 0 0 1.4rem .3rem rgb(255 214 130 / .6); }
.ff-hero-below { max-width: var(--maxw-wide); margin: 0 auto; padding: .5rem var(--sp-7) 0; }
.ff-hero-links { display: none; list-style: none; margin: .2rem 0 0; padding: 0; flex-wrap: wrap; gap: .25rem .4rem; }
.ff-hero-links li a.ff-hero-link.ff-hero-link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .85rem; border: 1px solid var(--bc-line); border-radius: 2rem; font-size: .9rem; color: var(--bc-ink); text-decoration: none; }
.ff-hero-links a:hover { border-color: currentColor; }
.ff-hero-art figcaption { margin-top: .35rem; font-size: .8rem; color: var(--bc-muted); }

/* under the picture the page starts like any other, without the tall top gap */
.ff-hero-art + .wrap { padding-top: var(--sp-6); }

/* the name row fills the column: the name on the left, the roles and the contact on the right,
   and the one-line summary across the whole width under them */
.ff-hire { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: var(--sp-4) clamp(1.5rem, 5vw, 5rem); padding-block: var(--sp-6) var(--sp-9); }
.ff-hire .display { margin: 0; }
.ff-hire .lede { grid-column: 1 / -1; max-width: none; margin: 0; }
.ff-hire .sub { max-width: none; margin: 0; }
.ff-hire .sub strong { color: var(--bc-ink); font-weight: 600; }
.ff-hire-ask { display: grid; gap: var(--sp-3); justify-items: start; padding-bottom: .5rem; }

/* the three cards */
.ff-explore h2 { margin: 0 0 1.1rem; font-size: clamp(1.85rem, 3vw, 2.6rem); letter-spacing: -.03em; line-height: 1.08; }
.ff-sections {
  display: grid; grid-auto-columns: 1fr; grid-auto-flow: column;
  list-style: none; padding: 0; margin: 0;
  border-block: 1px solid var(--bc-line);
}
.ff-sections li + li { border-left: 1px solid var(--bc-line); }
.ff-sections li a.ff-section.ff-section {
  position: relative; display: grid; align-content: start; gap: .3rem;
  height: 100%; padding: 1.2rem clamp(.8rem, 2.7vw, 2rem);
  color: var(--bc-ink); text-decoration: none;
}
.ff-sections a:hover strong { text-decoration: underline; text-underline-offset: .17em; }
.ff-sections strong { font: 400 clamp(1.3rem, 2.2vw, 2rem)/1.12 var(--serif); }
.ff-section-kind { color: var(--bc-muted); font-size: .75rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.ff-section-description { font-size: .92rem; color: var(--bc-muted); }
.ff-link-arrow { position: absolute; top: .95rem; right: clamp(.8rem, 2.7vw, 2rem); }

/* the idea flower on the home page, directly under the picture (garden-live.js renderHome) */
.ff-home-garden .lg { margin-block: 0 clamp(1.5rem, 4vw, 3rem); }
.ff-home-garden .lg-header h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -.03em; }
.ff-home-garden .lg-lede { font-size: 1.08rem; }
.ff-home-garden .lg-figure h3 { font-size: 1.2rem; }
.ff-home-garden .lg-home-lists { margin-top: 1.5rem; }
.ff-home-garden .lg-home-lists > summary { cursor: pointer; font: 1.15rem var(--serif); }
.ff-home-garden .lg-home-lists .lg-lists { margin-top: 1.25rem; }

@media (max-width: 760px) {
  .ff-hire { grid-template-columns: minmax(0, 1fr); }
  .ff-hero-links { display: flex; }
  .ff-hero-below { padding-inline: var(--sp-4); }
}

@media (max-width: 510px) {
  .ff-sections { grid-auto-flow: row; }
  .ff-sections li + li { border-left: 0; border-top: 1px solid var(--bc-line); }
  .ff-sections li a.ff-section.ff-section { margin: 0; padding: 1.2rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ff-spot { animation: none !important; transition: none !important; }
}

/* Cerebral Frame drawn as its own frame (cerebral-frame-card.js): a map of rooms, then the rooms as cards */
.cf-card { margin-block: 0 clamp(2rem, 5vw, 3.5rem); padding: clamp(1.1rem, 3vw, 2rem); background: var(--card); border: var(--hair) solid var(--rule); border-radius: 14px; }
.cf-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-4); }
.cf-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.03em; line-height: 1.1; }
.cf-head .eyebrow { margin: 0 0 var(--sp-2); }
.cf-lede { max-width: 68ch; margin: var(--sp-4) 0 var(--sp-3); color: var(--bc-ink-2); }
.cf-key { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; margin: 0 0 var(--sp-4); font-size: var(--fs-label); color: var(--muted); }
.cf-key-item { display: inline-flex; align-items: center; gap: .4rem; margin-right: .6rem; white-space: nowrap; }
.cf-swatch { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; border: 1.5px solid currentColor; }
.cf-map-note { margin: var(--sp-2) 0 0; font-size: var(--fs-small); color: var(--muted); }
.cf-swatch.is-current { color: var(--state-current); background: currentColor; }
.cf-swatch.is-stale { color: var(--state-stale); background: currentColor; }
.cf-swatch.is-dark { color: var(--state-dark); border-style: dashed; }
.cf-swatch.is-veiled { color: var(--state-veiled); border-style: dotted; }

.cf-map-wrap { margin: 0 0 var(--sp-5); }
.cf-map { display: block; width: 100%; height: auto; }
.cf-box rect { fill: var(--ground); stroke: var(--rule); stroke-width: 1.5; }
.cf-box.is-centre rect { stroke: var(--state-current); stroke-width: 2; }
.cf-box.is-veiled rect { stroke: var(--state-veiled); stroke-dasharray: 5 4; }
.cf-box-name { font: 600 13px var(--sans, system-ui, sans-serif); fill: var(--cream); }
.cf-box-note { font: 10.5px var(--mono); letter-spacing: .06em; fill: var(--muted); }
.cf-box.is-veiled .cf-box-note { fill: var(--state-veiled); }
.cf-dot { stroke-width: 1.5; }
.cf-dot.is-current { fill: var(--state-current); stroke: var(--state-current); }
.cf-dot.is-stale { fill: var(--state-stale); stroke: var(--state-stale); }
.cf-dot.is-dark { fill: none; stroke: var(--state-dark); stroke-dasharray: 2.5 2.5; }
.cf-dot.is-veiled { fill: none; stroke: var(--state-veiled); stroke-dasharray: 1.5 3; }
.cf-tie { stroke: var(--muted); stroke-width: 1.25; stroke-dasharray: 5 4; }
.cf-map marker path { fill: var(--muted); }

.cf-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: var(--sp-3); list-style: none; margin: 0; padding: 0; }
.cf-card .cf-rooms > li.cf-room { margin: 0; padding: var(--sp-4); background: var(--ground); border: var(--hair) solid var(--rule); border-radius: 10px; }
.cf-veiled { margin-top: var(--sp-4); padding: var(--sp-4); border: var(--hair) dotted var(--state-veiled); border-radius: 10px; }
.cf-veiled h3 { margin: 0 0 var(--sp-2); font-size: 1.05rem; }
.cf-veiled ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.cf-card .cf-veiled li { margin: 0; font-size: var(--fs-small); color: var(--bc-ink-2); }
.cf-room h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.cf-room p { margin: 0 0 var(--sp-2); font-size: var(--fs-small, .92rem); color: var(--bc-ink-2); }
.cf-room .cf-blurb { color: var(--muted); }
.cf-tally { font-size: var(--fs-label); color: var(--muted); }
.cf-heads { list-style: none; margin: 0 0 var(--sp-2); padding: 0; display: grid; gap: .25rem; }
.cf-card .cf-heads li { display: flex; align-items: baseline; gap: .55rem; margin: 0; font-size: var(--fs-small, .92rem); color: var(--bc-ink-2); }
.cf-figure { flex: none; min-width: 2.6ch; font: 600 1.35rem var(--serif); color: var(--state-current); }
.cf-figure.is-dark { font: 500 var(--fs-label) var(--mono); letter-spacing: .08em; color: var(--state-dark); }
.cf-room details > summary { cursor: pointer; font-size: var(--fs-small, .92rem); color: var(--cream); }
.cf-readings { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: grid; gap: var(--sp-2); }
.cf-card .cf-readings li { margin: 0; font-size: var(--fs-small, .92rem); line-height: 1.45; }
.cf-source { color: var(--muted); }
.cf-foot { margin: var(--sp-4) 0 0; font-size: var(--fs-small, .92rem); color: var(--muted); }

/* the map is for a wide screen; on a phone the rooms carry the words */
@media (max-width: 760px) { .cf-map-wrap { display: none; } }

/* a room page: the picture, then one section for each place the picture names */
.room-part { padding-block: var(--sp-6); scroll-margin-top: 1rem; }
.room-part + .room-part { border-top: 1px solid var(--bc-line); }
.room-head { margin: 0 0 var(--sp-3); }

