/* Furniture shared by FourBySix's own three pages: the homepage, /schools/
   and /developers/. Not in site.css, because a school's storefront page loads
   site.css too and carries its own .band, .facts and .menu; two definitions of
   one class name on one page is a bug that only shows up on a phone.

   Page-specific furniture (the flip print on the homepage) stays inline. */

/* --- The spine ---------------------------------------------------------
   One hairline down the page, offset left: the same asymmetric divider the
   printed card carries between its map panel and its caption panel. Bands sit
   flush and pad internally, so their borders join into one continuous line. */
.band { display: grid; grid-template-columns: 15rem minmax(0, 1fr); }
.band > .lead { padding: 3.5rem 2.5rem 3.5rem 0; }
.band > .main {
  border-left: 1px solid var(--line);
  padding: 3.5rem 0 3.5rem 2.5rem;
  min-width: 0;
}
@media (max-width: 860px) {
  .band { grid-template-columns: minmax(0, 1fr); }
  .band > .lead { padding: 2.5rem 0 1.25rem; }
  .band > .main { border-left: 0; border-top: 1px solid var(--line); padding: 1.75rem 0 2.5rem; }
}
.band p, .band li, .band dd { max-width: 62ch; }
.band .main a { text-underline-offset: 3px; }

/* The opening of a page: a headline across the top, not in a band, because
   what follows it (the three doors, on the homepage) needs the full width. */
.opening { padding: 3.25rem 0 2.75rem; border-bottom: 1px solid var(--line); }
.opening h1 { max-width: 22ch; }
.opening .dek { font-size: 1.125rem; max-width: 56ch; }
/* With a picture of the product beside the headline, so the opening is not a
   column of text with nothing next to it. The picture is a small pile of real
   sheets (photographs of the printed objects, from img/), laid at slight
   angles the way they would land on a table. Paper, so literal inks. At phone
   width it drops below the words. */
.opening--split h1 { max-width: none; }
.opening--split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
  gap: 2.5rem 3.5rem; align-items: center;
}
@media (max-width: 860px) {
  .opening--split { grid-template-columns: minmax(0, 1fr); }
  .opening--split .pile { max-width: 24rem; }
}
.pile { position: relative; aspect-ratio: 4 / 3; width: 100%; }
.pile .sheet { position: absolute; }
.pile--shop .a { width: 86%; aspect-ratio: 3 / 2; right: 0; bottom: 0; transform: rotate(2deg);
                 background-image: url("img/postcard-back-brand.jpg"); }
/* Over the map, top left, so it never covers the WITH YOUR BRAND line along
   the postcard's bottom edge, which is what the picture is for. */
.pile--shop .b { width: 31%; aspect-ratio: 2 / 3; left: 2%; top: 0; transform: rotate(-4deg);
                 background-image: url("img/print.jpg"); }
.pile--app .a { width: 80%; aspect-ratio: 3 / 2; right: 0; top: 0; transform: rotate(2.5deg);
                background-image: url("img/hero-back-edgewood-2-660.jpg"); }
.pile--app .b { width: 80%; aspect-ratio: 3 / 2; left: 0; bottom: 2%; transform: rotate(-2deg);
                background-image: url("img/hero-after-tahoe-beach.jpg"); }

/* --- Cards that are links ----------------------------------------------
   A whole card is the link, so the target is the size of the thing it
   describes. The arrow nudges on hover; the border darkens to ink, like a
   pressed button. A card with a second link inside it (the third door) can't
   be one <a>, so its main link stretches over the card instead and the
   second sits above that. */
.cards { display: grid; gap: .75rem; margin-top: 2rem; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .cards--3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .cards--2 { grid-template-columns: minmax(0, 1fr); } }
.choice {
  position: relative; display: flex; flex-direction: column; gap: .4rem;
  padding: 1.2rem 1.2rem 1.1rem;
  border: 1px solid var(--line); border-radius: 9px; background: var(--paper);
  color: inherit; text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.choice:hover, .choice:focus-within { border-color: var(--ink); box-shadow: 0 3px 5px rgba(28,35,44,.10); }
.choice-label { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.choice-name { font-weight: 800; font-size: 1.0625rem; line-height: 1.3; }
.choice-what { color: var(--soft); font-size: .9375rem; line-height: 1.45; flex: 1; }
.choice-go { font-weight: 800; font-size: .9375rem; margin-top: .5rem; text-decoration: none; color: var(--ink); }
.choice-go::after { content: "\2192"; display: inline-block; margin-left: .3em; transition: transform .15s; }
.choice-go.external::after { content: "\2197"; }
.choice:hover .choice-go::after { transform: translateX(3px); }
.choice:hover .choice-go.external::after { transform: translate(2px, -2px); }
.choice .stretch::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.choice .also { position: relative; z-index: 1; font-size: .875rem; color: var(--soft); margin-top: .1rem; }
.choice .also:hover { color: var(--ink); }
.choice--primary { border-color: var(--faint); }
@media (prefers-reduced-motion: reduce) { .choice, .choice-go::after { transition: none; } }

/* --- Lists -------------------------------------------------------------- */
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.facts li:first-child { border-top: 0; padding-top: .25rem; }
.facts b { font-weight: 800; }
.facts span { color: var(--soft); }

/* Numbered steps. A numeral, not an icon: there is no icon set here and
   one would be the first decoration on the site that isn't a printed object. */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 1.1rem 0 1.1rem 2.75rem; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: .25rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1.05rem;
  font-weight: 900; font-size: 1.375rem; line-height: 1.2; color: var(--faint);
}
.steps li:first-child::before { top: .2rem; }
.steps b { font-weight: 800; }
.steps span { color: var(--soft); }

.faq { margin: 0; }
.faq dt { font-weight: 800; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.faq dt:first-child { border-top: 0; padding-top: .25rem; }
.faq dd { margin: .35rem 0 0; padding-bottom: 1.1rem; color: var(--soft); }

/* The trust strip: four short facts in a row, hairlines between. */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin: 0; padding: 0; list-style: none; }
.strip li { padding: 1.4rem 1.25rem 1.4rem 0; }
.strip b { display: block; font-weight: 800; }
.strip span { color: var(--soft); font-size: .9375rem; }

.host { color: var(--ink); white-space: nowrap; font-weight: 600; }
.quiet { color: var(--soft); font-size: .9375rem; }

/* --- The lockup --------------------------------------------------------
   What a partner's name looks like on paper: PRINTED BY FOURBYSIX, the
   co-brand rings, WITH and their name. The rings appear only here, beside a
   partner's name, because they mean "two brands" and are not a logo. */
.lockup {
  font-size: .82em; letter-spacing: .16em; white-space: nowrap;
  display: flex; align-items: center; gap: .55em; padding-bottom: .2em;
}
.lockup .pre { color: #8b97a3; }
.lockup .name { color: #55616e; font-weight: 900; }
.lockup .name .by { font-weight: 300; }
/* Geometry from photoprep/back.sh: r .455 in a 1.65:1 box, centres .65 apart. */
.rings { stroke: var(--accent); fill: none; stroke-width: .09; width: 1.32em; height: .8em; flex: none; }
.partner-lockup {
  margin-top: 1.9rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-size: .6875rem;
}
.partner-lockup .lockup { padding: 0; flex-wrap: wrap; }
.partner-lockup .cap { display: block; margin-top: .9rem; color: var(--faint); font-size: .8125rem; letter-spacing: 0; }
@media (prefers-color-scheme: dark) {
  .lockup .pre { color: var(--faint); }
  .lockup .name { color: var(--soft); }
}

/* --- A depicted sheet ----------------------------------------------------
   Paper, so its inks are literal and it stays paper in the dark. */
.sheet {
  position: relative; border-radius: var(--sheet-radius); overflow: hidden;
  background: var(--stock) center / cover no-repeat;
  border: .5px solid var(--rule); box-shadow: var(--shadow);
}

/* --- The menu, at phone width only -------------------------------------
   The same menu as a storefront's page (www/storefronts/), so the two sites
   fold up the same way. <details>, so it needs no script. */
.topbar { align-items: center; position: relative; }
.topnav a[aria-current="page"] { color: var(--ink); }
.menu { display: none; }
@media (max-width: 640px) {
  .topbar { flex-wrap: nowrap; }
  .topnav { display: none; }
  .menu { display: block; }
}
.menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; margin: -10px -10px -10px 0;
  display: grid; place-content: center; gap: 5px; border-radius: 8px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 22px; height: 2px; border-radius: 2px;
                     background: var(--ink); transition: transform .2s, opacity .2s; }
.menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu nav {
  position: absolute; right: 0; top: calc(100% + .25rem); z-index: 10; min-width: 13rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(28,35,44,.14); padding: .4rem; display: grid;
}
.menu nav a { padding: .75rem .9rem; border-radius: 6px; text-decoration: none; color: var(--ink); }
.menu nav a:hover, .menu nav a:focus-visible { background: var(--code-bg); }
@media (prefers-reduced-motion: reduce) { .menu summary span { transition: none; } }

/* The footer's brand-family line and legal line. */
.family { flex-basis: 100%; margin: 0; color: var(--faint); font-size: .8125rem; max-width: none; }
.family a { color: var(--soft); }
