/* The social media page (social.html). Every selector here starts with .soc- so nothing on another page can be
   touched. The look is rules, grids and big type: no rounded cards, no drop shadows, no gradients. Colours and
   fonts come from css/style.css; coral is this page's colour and is only ever used flat, with graphite on it.
   The community section and the steps use the shared classes (.push, .push-list, .steps) and need nothing here. */

/* The small capitals label, in the same typewriter face as the shared chapter line */
.soc-facts dt, .soc-made li::before, .soc-in, .soc-n, .soc-kind, .soc-spec dt, .soc-tag {
  font-family: var(--mono, ui-monospace, Consolas, monospace); font-weight: 700; font-size: 0.7rem; line-height: 1.4;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate);
}

/* ---- The introduction (a field of coral): four facts on rules, then a row of pictures from edge to edge ---- */
.soc-intro { --soc-rule: rgba(30, 31, 38, 0.36); }
.soc-intro.intro { padding-bottom: 0; }
.soc-intro :focus-visible { outline-color: var(--graphite); }
.soc-facts { display: grid; margin: 44px 0 0; border-top: 2px solid currentColor; }
.soc-facts div { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 13px 0 14px; border-bottom: 1px solid var(--soc-rule); }
.soc-facts div:last-child { border-bottom: 0; }
.soc-facts dt { color: inherit; }
.soc-facts dd { margin: 0; font-family: Sora, "Sora Fallback", sans-serif; font-weight: 700; font-size: 1rem; line-height: 1.3; letter-spacing: -0.01em; }
.soc-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; background: var(--graphite); }
.soc-strip img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.soc-strip .px-frame { aspect-ratio: 4 / 3; }
.soc-strip .px-frame img { height: 100%; }
@media (min-width: 760px) { .soc-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .soc-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 60px; }
  .soc-facts div { display: block; padding: 16px 22px 6px; border-bottom: 0; border-left: 1px solid var(--soc-rule); }
  .soc-facts div:first-child { padding-left: 0; border-left: 0; }
  .soc-facts dt { margin-bottom: 8px; }
  .soc-facts dd { font-size: 1.08rem; }
  .soc-strip { margin-top: 56px; }
}

/* ---- What gets made each month: six rows on rules. The sixth is the new thing: a band of coral across the
        whole screen that runs straight into the stage below it. ---- */
.soc-work { padding-bottom: 0; }
.soc-made { list-style: none; margin: 0; padding: 0; counter-reset: soc-made; border-top: 2px solid var(--graphite); }
.soc-made li { counter-increment: soc-made; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 8px 12px; align-items: baseline; padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.soc-made li::before { content: counter(soc-made, decimal-leading-zero); }
.soc-made h3 { margin: 0; font-size: clamp(1.75rem, 4.4vw, 3rem); line-height: 1; letter-spacing: -0.04em; }
.soc-made p { margin: 0; grid-column: 2; }
.soc-what { color: var(--slate); max-width: 46ch; }
.soc-in { color: var(--accent-ink); }
.soc-tag { display: inline-block; vertical-align: middle; position: relative; top: -0.3em; margin-left: 0.4em; padding: 5px 8px 4px; background: var(--graphite); color: var(--stone); font-size: 0.66rem; line-height: 1.2; }
/* the band reaches both edges of the screen without widening the page: the spread paints it and the clip trims it,
   one pixel proud above and below so no hairline of the white behind shows where the band meets the stage */
.soc-made .soc-new { background: var(--coral); color: var(--graphite); border-bottom: 0; padding-top: 26px; padding-bottom: 30px; box-shadow: 0 0 0 100vmax var(--coral); clip-path: inset(-1px -100vmax); }
.soc-made .soc-new::before, .soc-made .soc-new .soc-what, .soc-made .soc-new .soc-in { color: var(--graphite); }
@media (min-width: 900px) {
  .soc-made li { grid-template-columns: 3.4rem minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 0.66fr); column-gap: 28px; padding: 24px 0 26px; }
  .soc-made p { grid-column: auto; }
  .soc-in { text-align: right; }
  .soc-made .soc-new { padding-top: 34px; padding-bottom: 38px; }
  .soc-made .soc-new h3 { grid-column: 2 / 4; font-size: clamp(2.4rem, 5vw, 3.7rem); }
  .soc-made .soc-new .soc-what { grid-column: 2 / 4; grid-row: 2; }
  .soc-made .soc-new .soc-in { grid-column: 4; grid-row: 1; }
}

/* ---- The stage: the 3D work on graphite, where its colours show best ---- */
.soc-stage { padding: 56px 0 64px; }
.soc-feature { display: grid; gap: 30px; }
.soc-feature > * { min-width: 0; }
.soc-feature h3 { margin: 0; max-width: 13em; font-size: clamp(2.1rem, 6.2vw, 4.6rem); line-height: 0.96; letter-spacing: -0.045em; }
.soc-uses { margin-top: 26px; max-width: 30rem; font-family: Sora, "Sora Fallback", sans-serif; font-weight: 700; }
.soc-shot { margin: 0; }
.soc-shot img, .soc-shot video { display: block; width: 100%; height: auto; }
.soc-cap { padding-top: 14px; border-top: 1px solid #4A4B55; }
.soc-cap h4, .soc-wall-head h4 { margin: 0 0 6px; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.05; letter-spacing: -0.03em; }
.soc-cap p, .soc-wall-head p { margin: 0; color: #BDBBB5; max-width: 50ch; }
.soc-wall-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin: 56px 0 24px; padding-top: 22px; border-top: 2px solid var(--stone); }
.soc-toggle { min-height: 44px; padding: 0 18px; border: 1.5px solid currentColor; border-radius: 0; background: transparent; color: var(--stone); font-family: Sora, "Sora Fallback", sans-serif; font-weight: 700; font-size: 0.84rem; cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: manipulation; transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease; }
.soc-toggle[hidden] { display: none; }
.soc-toggle:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .soc-toggle:hover { background: var(--stone); color: var(--graphite); border-color: var(--stone); } }
.soc-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
.soc-tile { margin: 0; }
.soc-tile video, .soc-tile img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #15161B; outline: 1px solid rgba(237, 235, 230, 0.16); outline-offset: -1px; }
.soc-tile figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 9px; font-family: Sora, "Sora Fallback", sans-serif; font-weight: 700; font-size: 0.9rem; line-height: 1.3; letter-spacing: -0.01em; }
.soc-kind { color: #A9A9B3; font-size: 0.66rem; }
.soc-stage-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 56px; padding-top: 24px; border-top: 1px solid #4A4B55; }
.soc-stage-foot p { margin: 0; max-width: 34ch; font-family: Sora, "Sora Fallback", sans-serif; font-weight: 700; font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.015em; }
/* on a phone the first and last tiles take the full width, so the wall opens and closes on a large picture */
@media (max-width: 699px) { .soc-wall li:first-child, .soc-wall li:last-child { grid-column: 1 / -1; } }
@media (min-width: 700px) {
  .soc-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
  /* the heading across the top; under it the words on the left, the jar on the right, and the jar's caption
     at the foot of the left column so it finishes level with the picture */
  .soc-feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); grid-template-rows: auto 1fr auto; gap: 0 40px; }
  .soc-f-head { grid-column: 1 / -1; margin-bottom: 40px; }
  .soc-f-text { grid-column: 1; grid-row: 2; padding-bottom: 40px; }
  .soc-shot { grid-column: 2; grid-row: 2 / 4; }
  .soc-cap { grid-column: 1; grid-row: 3; align-self: end; max-width: 30rem; }
}
@media (min-width: 900px) {
  .soc-stage { padding: 88px 0 96px; }
  .soc-feature { column-gap: 72px; }
  .soc-f-head { margin-bottom: 48px; }
  .soc-wall-head { margin-top: 88px; }
}
@media (min-width: 1000px) { .soc-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; } }
@media (prefers-reduced-motion: reduce) { .soc-toggle { transition: none; } }

/* ---- Three columns divided by rules: the packages, then the add-ons, the bundle and the terms ---- */
.soc-cols { display: grid; gap: 40px; }
.soc-col { min-width: 0; border-top: 2px solid var(--graphite); padding-top: 18px; }
.soc-n { margin: 0 0 14px; color: var(--accent-ink); }
.soc-plan h3 { margin: 0 0 12px; font-size: clamp(2.1rem, 4.2vw, 3rem); line-height: 1; letter-spacing: -0.045em; }
.soc-for { margin: 0 0 20px; color: var(--slate); }
.soc-spec { margin: 0 0 22px; border-top: 1px solid var(--line); }
.soc-spec div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.soc-spec dd { margin: 0; font-family: Sora, "Sora Fallback", sans-serif; font-weight: 700; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.02em; white-space: nowrap; }
.soc-notes { margin-top: 56px; }
.soc-notes .soc-col { border-top-width: 1px; }
.soc-notes h3 { margin-bottom: 12px; }
@media (min-width: 900px) {
  .soc-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .soc-col { padding: 18px 28px 0; border-left: 1px solid var(--line); }
  .soc-col:first-child { padding-left: 0; border-left: 0; }
  .soc-col:last-child { padding-right: 0; }
  .soc-notes { margin-top: 72px; }
  /* each package's name, sentence, figures and list sit on the same lines as its neighbours' */
  @supports (grid-template-rows: subgrid) {
    .soc-plans { grid-template-rows: repeat(5, auto); }
    .soc-plan { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; align-content: start; }
  }
}
