/* layout for the sales desk. one reading column, elevated cards for the artifacts, warm and plain. */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 16px;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  padding: 12px var(--space);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  border-bottom: 2px solid transparent;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.theme-toggle {
  margin-left: auto;
  display: grid;
  place-items: center;
  height: var(--tap);
  width: var(--tap);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--ink);
  cursor: pointer;
}

.site-main {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 28px var(--space) 72px;
}

.site-main h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 8px 0 16px;
}

.site-main h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 44px 0 10px;
}

.site-main h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 28px 0 6px;
}

.site-main p,
.site-main li {
  font-size: 1.03rem;
}

.site-main a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.site-main code {
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

.site-main pre {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 12px 14px;
  overflow-x: auto;
}

.site-main pre code {
  background: none;
  border: 0;
  padding: 0;
}

.site-main blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-main blockquote p {
  margin: 0.4em 0;
}

.site-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

.site-main th,
.site-main td {
  text-align: left;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.site-main th {
  color: var(--muted);
  font-weight: 600;
}

.site-main hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 40px 0;
}

/* a fact always says where it came from */
.fact-cite {
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 20px var(--space);
  text-align: center;
  font-size: 0.82rem;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 560px) {
  /* wordmark and toggle share the first line, the nav wraps to its own line below */
  .theme-toggle {
    order: 1;
  }

  .site-nav {
    order: 2;
    width: 100%;
  }
}

/* ---------------------------------------------------------------- the objection log */

.objection-index {
  margin: 24px 0 8px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.objection-index > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.objection-index > ul > li {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.objection-index ul ul {
  margin: 4px 0 0;
  padding-left: 18px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 0.98rem;
}

.objection-index ul ul li {
  margin: 0;
}

.objection-index a {
  display: inline-block;
  padding: 10px 0;
}

.objection-log h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 40px 0 12px;
}

.objection {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 6px;
  margin: 0 0 14px;
  scroll-margin-top: 16px;
}

.objection h3 {
  margin: 0 0 8px;
}

/* ---------------------------------------------------------------- wide pages */

/* the deck page is wider than the reading column; everything but the deck keeps the measure */
.site-main.is-wide {
  max-width: 76rem;
}

.site-main.is-wide > :not(.deck) {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------------------- the one-page deck */

.deck {
  margin: 28px 0 36px;
  container-type: inline-size;
  container-name: deck;
}

.deck-frame {
  /* at screenshot size the slide can be wider than the window; the frame scrolls sideways */
  overflow-x: auto;
  padding: 4px 4px 14px;
  border-radius: var(--radius);
}

/*
  the slide. one composition at a fixed 16:9 ratio, every size in container units, so a
  screenshot looks the same at any width the slide layout applies to.
*/
.deck-slide {
  container-type: inline-size;
  aspect-ratio: 16 / 9;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.6cqi;
  padding: 3.4cqi 3.8cqi 2.6cqi;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 0.9cqi solid var(--accent);
}

.deck-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.25cqi;
  color: var(--muted);
}

.deck-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2cqi;
  color: var(--ink);
}

.site-main .deck-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3.1cqi;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 44ch;
}

.deck-panels {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 1.6cqi;
}

.deck-panel {
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.5cqi 1.6cqi;
}

.site-main .deck-label {
  font-family: var(--font-body);
  font-size: 1.15cqi;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.8cqi;
}

.site-main .deck-body {
  font-size: 1.3cqi;
  line-height: 1.42;
  margin: 0;
}

.deck-foot {
  display: flex;
  justify-content: space-between;
  font-size: 1.05cqi;
  color: var(--muted);
}

/* screenshot size: exactly 1280 by 720 css pixels, whatever the window */
:root[data-deck-size="fixed"] .deck-slide {
  width: 1280px;
  height: 720px;
  max-width: none;
  /* the slide's own spacing resolves against the figure, not itself, so it is pinned in px here */
  gap: 20px;
  padding: 44px 49px 33px;
  border-left-width: 12px;
}

/*
  below 960px of room the slide stops being a slide and becomes a readable column, unless the
  visitor has asked for screenshot size. body text at 16:9 on a phone would be unreadable.
*/
@container deck (max-width: 959px) {
  :root:not([data-deck-size="fixed"]) .deck-slide {
    aspect-ratio: auto;
    gap: 14px;
    padding: 20px 18px 16px;
    border-left-width: 6px;
  }

  :root:not([data-deck-size="fixed"]) .deck-top { font-size: 0.85rem; }
  :root:not([data-deck-size="fixed"]) .deck-name { font-size: 1.15rem; }
  :root:not([data-deck-size="fixed"]) .site-main .deck-headline { font-size: 1.45rem; }
  :root:not([data-deck-size="fixed"]) .deck-panels { grid-template-columns: 1fr; grid-template-rows: none; gap: 10px; }
  :root:not([data-deck-size="fixed"]) .deck-panel { padding: 12px 14px; }
  :root:not([data-deck-size="fixed"]) .site-main .deck-label { font-size: 0.78rem; margin-bottom: 4px; }
  :root:not([data-deck-size="fixed"]) .site-main .deck-body { font-size: 1rem; line-height: 1.5; }
  :root:not([data-deck-size="fixed"]) .deck-foot { font-size: 0.8rem; flex-direction: column; gap: 2px; }
}

.deck-caption {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 0.92rem;
  color: var(--muted);
}

.deck-caption p {
  margin: 0;
  max-width: 44rem;
}

.deck-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deck-size {
  min-height: var(--tap);
  padding: 0 16px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  cursor: pointer;
}

.deck-size[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.deck-size[hidden] {
  display: none;
}

/* ---------------------------------------------------------------- placeholders and the sample SOW */

/* a placeholder is marked in words and in colour, so it never passes for a value */
.ph {
  background: var(--placeholder-bg);
  color: var(--accent);
  border-radius: 4px;
  padding: 0 4px;
  font-style: italic;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.sow-doc {
  margin: 20px 0 32px;
  padding: 28px 28px 12px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sow-kicker {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-main .sow-head h3 {
  font-size: 1.6rem;
  margin: 0 0 12px;
}

.sow-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 6px 20px;
  margin: 0 0 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}

.sow-meta div {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.sow-meta dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.sow-meta dd {
  margin: 0;
}

.sow-section {
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--hairline);
}

.sow-section:last-child {
  border-bottom: 0;
}

.site-main .sow-section h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 18px 0 6px;
}

.site-main .sow-section h5 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 12px 0 2px;
}

.sow-table table {
  margin: 8px 0;
}

@media (max-width: 560px) {
  .sow-doc {
    padding: 20px 16px 8px;
  }
}

@media print {
  .site-header, .site-footer, .skip-link, .deck-controls { display: none; }
  .sow-doc, .deck-slide, .objection { box-shadow: none; }
}
