/* softwareinabottle.com: software help for small companies. The bottle
   look, shared with siteinabottle (whose style.css this started from), in
   steel instead of forest. Its own piece is the scope sheet: the document a
   client gets before any work starts. Fraunces is self-hosted
   (fonts/OFL.txt); there is no script. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #121a24;
  --bg-deep: #0e141c;
  --rule: #2b3a4b;
  --ink: #f0e8d7;
  --muted: #bfb8a4;
  --dim: #8f9482;
  --mark: #8fc3dd;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --page: 70rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 400;
}

p {
  margin: 0;
}

a {
  color: var(--ink);
  text-decoration-color: var(--mark);
  text-underline-offset: 0.22em;
}

:focus-visible {
  outline: 2px solid var(--mark);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
}

.skip:focus {
  top: 1rem;
}

/* the page's measure: every band shares one column edge */
.mast,
.hero,
.sec,
.ask,
.foot {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------- mast -- */

.mast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: 500 1.2rem var(--serif);
  text-decoration: none;
  white-space: nowrap;
}

.mast-ask {
  font-size: 0.95rem;
  white-space: nowrap;
}

/* ------------------------------------------------------------ buttons -- */

.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: 4px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 650;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background: #fff8ea;
}

.more {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.more:hover {
  color: var(--ink);
  border-color: var(--mark);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

/* --------------------------------------------------------------- hero -- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem);
}

.kicker {
  margin-bottom: 1.5rem;
  color: var(--mark);
  font: italic 400 1.15rem var(--serif);
}

.hero h1 {
  font-size: clamp(3rem, 7.5vw, 5.75rem);
  line-height: 1;
}

.hero .lede {
  max-width: 32rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 1.1875rem;
}

.hero .actions {
  margin-top: 2.25rem;
}

.promises {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--dim);
  font-size: 0.9rem;
}

.promises li:not(:last-child)::after {
  content: "·";
  margin-inline: 0.75rem;
  color: var(--mark);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
  color: var(--dim);
  font-size: 0.9rem;
}

.status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--mark);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mark) 20%, transparent);
}

/* ----------------------------------------------------------- sections -- */

.sec {
  display: grid;
  grid-template-columns: minmax(0, 21rem) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

/* the rule sits inside the measure, like a printed page's */
.sec::before {
  content: "";
  grid-column: 1 / -1;
  height: 1px;
  margin-bottom: clamp(1rem, 3vw, 2rem);
  background: var(--rule);
}

.no {
  margin-bottom: 1rem;
  color: var(--mark);
  font: italic 400 1.25rem var(--serif);
}

.sec-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

.sec-head > p:last-child {
  margin-top: 1.25rem;
  color: var(--muted);
}

.note {
  margin-top: 1.5rem;
  color: var(--dim);
  font: italic 400 1.05rem var(--serif);
}

/* -------------------------------------------------------------- sheet -- */

/* the scope as a document: a darker sheet, a letterhead, ruled parts and
   two signature lines. Still dark, but it reads as paper, not a card. */
.doc-sheet {
  margin: 0;
  rotate: -1.5deg;
}

.sheet {
  width: 23rem;
  padding: 1.75rem 1.75rem 1.5rem;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.035), transparent 30%),
    #19222e;
  border: 1px solid #334357;
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.05) inset,
    0 30px 60px -30px rgb(0 0 0 / 0.8);
  font-size: 0.875rem;
  line-height: 1.5;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ink);
  color: var(--dim);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sheet-head span:first-child {
  color: var(--ink);
  font-weight: 650;
}

.sheet-title {
  margin: 1.1rem 0 1.25rem;
  font: 500 1.45rem/1.15 var(--serif);
}

.sheet-part {
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}

.sheet-h,
.sheet-terms dt {
  color: var(--mark);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sheet ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.sheet-terms {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0.85rem 0;
  border-block: 1px solid var(--rule);
}

.sheet-terms dt {
  padding-top: 0.15em;
}

.sheet-terms dd {
  margin: 0;
  color: var(--muted);
}

.sheet-sign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.sheet-sign span {
  padding-top: 0.4rem;
  border-top: 1px solid var(--dim);
  color: var(--dim);
  font: italic 400 0.8rem var(--serif);
}

.doc-sheet figcaption {
  max-width: 23rem;
  margin-top: 1rem;
  color: var(--dim);
  font-size: 0.875rem;
  text-align: center;
}

/* ------------------------------------------------------ kinds · steps -- */

.kinds,
.steps,
.proof {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kinds li,
.proof li {
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
}

.kinds li:first-child,
.proof li:first-child {
  padding-top: 0;
  border-top: 0;
}

.kinds h3,
.steps h3,
.proof h3 {
  font-size: 1.4rem;
}

.proof h3 a {
  text-decoration: none;
  border-bottom: 1px solid var(--mark);
}

.kinds p,
.steps p,
.proof p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
}

.steps li::before {
  content: counter(step) ".";
  grid-row: span 2;
  color: var(--mark);
  font: italic 400 1.4rem/1.2 var(--serif);
}

.log {
  width: 100%;
  margin-top: 2.5rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.log caption {
  padding-bottom: 0.75rem;
  color: var(--dim);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.log th,
.log td {
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.log th {
  width: 5.5rem;
  color: var(--mark);
  font: italic 400 1rem var(--serif);
}

.log td:last-child {
  color: var(--dim);
  text-align: right;
}

/* ------------------------------------------------------------ columns -- */

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

.col h3 {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.4rem;
}

.col ul {
  display: grid;
  gap: 0.9rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.col li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
}

.col li b {
  color: var(--ink);
  font-weight: 600;
}

.col li::before {
  position: absolute;
  left: 0;
  top: 0;
}

.in li::before {
  content: "✓";
  color: var(--mark);
}

.out li::before {
  content: "–";
  color: var(--dim);
}

/* ---------------------------------------------------------------- ask -- */

.ask {
  padding-block: clamp(4rem, 10vw, 7rem);
}

.ask::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: clamp(3rem, 7vw, 5rem);
  background: var(--rule);
}

.ask h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.ask p {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.1875rem;
}

.ask .actions {
  margin-top: 2rem;
}

/* --------------------------------------------------------------- foot -- */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 2rem 3rem;
  color: var(--dim);
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------- 404 -- */

.lost {
  display: grid;
  align-content: center;
  min-height: 80vh;
  max-width: var(--page);
  margin-inline: auto;
  padding: var(--gutter);
}

.lost h1 {
  margin-bottom: 2rem;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

/* ------------------------------------------------------------- motion -- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .col,
    .kinds li,
    .steps li,
    .proof li {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 1.25rem;
  }
}

/* -------------------------------------------------------------- small -- */

@media (max-width: 56rem) {
  .hero,
  .sec {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-sheet {
    justify-self: center;
  }
}

@media (max-width: 40rem) {
  .columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-sheet {
    justify-self: stretch;
    rotate: none;
  }

  .sheet,
  .doc-sheet figcaption {
    width: auto;
    max-width: none;
  }

  .log td:last-child {
    display: none;
  }
}
