/* Terms, Privacy and Refunds: the site's cream page, one readable column, the black notch on top.
   The site's own sans face only. No scripts, no inline styles, so a strict CSP holds. */

:root {
  --orange: #f26b3a;
  --cream: #fff4ec;
  --ink: #1d1410;
  --ink-2: #6f5d54;
  --hair: rgb(29 20 16 / 0.12);
  /* orange dark enough to read as text on cream */
  --link: #b23f17;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Inter, system-ui, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --green: #3dcf7d;
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --column: calc(68ch + 32px);
  color-scheme: light;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.006, 0.025 2.8%, 0.101 6.1%, 0.539 18.9%, 0.721 25.3%, 0.849 31.5%, 0.937 38.1%,
      0.968 41.8%, 0.991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001 85.9%, 1);
  }
}

* {
  box-sizing: border-box;
}
html {
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

/* ---------- the top bar: the site's own small notch, back to the home page ----------
   The same black shape as the front page's notch (flat on top, round below, the two little curves where
   it meets the top edge), the friend's face on the left and the page's name on the right. With a mouse,
   pointing at it turns the name into "Home". It stays at the top while you read. */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding-top: env(safe-area-inset-top, 0px);
  pointer-events: none;
}
.notch {
  --wing: 108px;
  --gap: 150px;
  --bar: 42px;
  position: relative;
  display: flex;
  align-items: center;
  width: calc(var(--gap) + 2 * var(--wing));
  height: var(--bar);
  border-radius: 0 0 19px 19px;
  background: #000;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 34px rgb(60 20 0 / 0.2);
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: width 0.6s var(--spring), border-radius 0.6s var(--spring);
}
.notch::before,
.notch::after {
  content: "";
  position: absolute;
  top: 0;
  width: 12px;
  height: 12px;
  pointer-events: none;
}
.notch::before {
  left: -12px;
  background: radial-gradient(circle at 0 100%, transparent 11.5px, #000 12px);
}
.notch::after {
  right: -12px;
  background: radial-gradient(circle at 100% 100%, transparent 11.5px, #000 12px);
}
.notch:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.wing {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 12px;
}
.gap {
  flex: 0 0 var(--gap);
}
/* the friend's head, cut from the site's one picture of faces; it blinks now and then */
.face {
  display: block;
  width: 31px;
  height: 31px;
  background: url(/m/sheet.webp) 2.277% 3.315% / 1806.4% 180.64% no-repeat;
  animation: blink 4.23s steps(1, end) infinite;
}
@keyframes blink {
  0% {
    background-position-x: 2.277%;
  }
  96.9% {
    background-position-x: 12.864%;
  }
}
.word {
  display: grid;
  font-family: var(--round);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.word > span {
  grid-area: 1 / 1;
  text-align: center;
  transition: opacity 0.25s ease, translate 0.4s var(--spring);
}
.word .to {
  opacity: 0;
  translate: 0 7px;
  color: var(--green);
}
@media (hover: hover) {
  .notch:hover {
    width: calc(var(--gap) + 2 * var(--wing) + 14px);
  }
  .notch:hover .here {
    opacity: 0;
    translate: 0 -7px;
  }
  .notch:hover .to {
    opacity: 1;
    translate: 0 0;
  }
}
.notch:focus-visible .here {
  opacity: 0;
}
.notch:focus-visible .to {
  opacity: 1;
  translate: 0 0;
}
@media (max-width: 700px) {
  .notch {
    --wing: 78px;
    --gap: 100px;
    --bar: 36px;
  }
  .face {
    width: 26px;
    height: 26px;
  }
  .word {
    font-size: 13.5px;
  }
}

/* ---------- the column ---------- */

main {
  flex: 1;
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  padding: clamp(44px, 9vw, 84px) max(16px, env(safe-area-inset-right)) 72px max(16px, env(safe-area-inset-left));
}
h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 54px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.updated {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--ink-2);
}
.intro {
  margin: 26px 0 0;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--hair);
  font-size: 19px;
  line-height: 1.55;
}
h2 {
  margin: 46px 0 12px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  margin: 0 0 14px;
}
ul {
  margin: 0 0 14px;
  padding-left: 1.25em;
}
li {
  margin: 7px 0;
  padding-left: 2px;
}
li::marker {
  color: var(--orange);
}
strong {
  font-weight: 600;
}
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgb(242 107 58 / 0.55);
}
a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 3px;
}
.path {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgb(29 20 16 / 0.06);
  overflow-wrap: anywhere;
}

/* the few lines that matter most: a white card */
.short {
  margin: 34px 0 0;
  padding: 22px 22px 10px;
  border: 1px solid var(--hair);
  border-radius: 18px;
  background: #fff;
}
.short h2 {
  margin-top: 0;
}

/* the one rule: black, shaped like the notch (flat on top, round below) */
.rule {
  margin: 0 0 16px;
  padding: 18px 22px;
  border-radius: 4px 4px 22px 22px;
  background: #000;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.rule p {
  margin: 0;
}

/* ---------- tables: rows on a laptop, small cards on a phone ---------- */

table {
  width: 100%;
  margin: 16px 0 22px;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.45;
}
th,
td {
  padding: 11px 14px 11px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hair);
}
th:last-child,
td:last-child {
  padding-right: 0;
}
th {
  padding-top: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1.5px solid var(--ink);
}
td:first-child {
  font-weight: 600;
}
@media (max-width: 600px) {
  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }
  table {
    border-top: 1.5px solid var(--ink);
  }
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  tr {
    padding: 13px 0;
    border-bottom: 1px solid var(--hair);
  }
  td {
    padding: 1px 0;
    border: 0;
  }
  td:first-child {
    margin-bottom: 4px;
    font-size: 16.5px;
  }
  td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--ink-2);
  }
}

/* ---------- the footer ---------- */

footer {
  border-top: 1px solid var(--hair);
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--column);
  margin: 0 auto;
  padding: 26px max(16px, env(safe-area-inset-right)) calc(30px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.foot p {
  margin: 0;
}
.foot a {
  color: var(--ink-2);
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.foot a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- the site's own details ---------- */

/* the pixel cursors: an arrow, a hand with an orange cuff, a text beam */
html {
  cursor: url(/c/arrow.png?v=2) 3 2, auto;
  cursor: -webkit-image-set(url(/c/arrow.png?v=2) 1x, url(/c/arrow-2x.png?v=2) 2x) 3 2, auto;
  cursor: image-set(url(/c/arrow.png?v=2) 1x, url(/c/arrow-2x.png?v=2) 2x) 3 2, auto;
}
h1,
h2,
h3,
p,
li,
dt,
dd,
th,
td {
  cursor: url(/c/text.png?v=2) 12 12, text;
  cursor: -webkit-image-set(url(/c/text.png?v=2) 1x, url(/c/text-2x.png?v=2) 2x) 12 12, text;
  cursor: image-set(url(/c/text.png?v=2) 1x, url(/c/text-2x.png?v=2) 2x) 12 12, text;
}
a,
a *,
button,
button *,
summary,
summary * {
  cursor: url(/c/hand.png?v=2) 10 2, pointer;
  cursor: -webkit-image-set(url(/c/hand.png?v=2) 1x, url(/c/hand-2x.png?v=2) 2x) 10 2, pointer;
  cursor: image-set(url(/c/hand.png?v=2) 1x, url(/c/hand-2x.png?v=2) 2x) 10 2, pointer;
}

/* a scrollbar shaped like the notch: flat on top, round below */
html {
  scrollbar-width: thin;
  scrollbar-color: rgb(29 20 16 / 0.55) transparent;
}
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgb(29 20 16 / 0.6) padding-box;
  border: 3px solid transparent;
  border-radius: 2px 2px 8px 8px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #000;
}
::selection {
  background: #000;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .notch,
  .word > span {
    transition: none;
  }
  .face {
    animation: none;
  }
}

@media print {
  .bar,
  footer {
    display: none;
  }
  html,
  body,
  .short {
    background: #fff;
  }
  main {
    max-width: none;
    padding: 0;
  }
  a {
    color: inherit;
  }
  .rule {
    border: 1.5px solid #000;
    background: #fff;
    color: #000;
  }
}
