/* Flowfix Studio: the test inbox. Canvas #f6eef2, ink #22121c, magenta #b0135b, mint #3ddc97. */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #f6eef2;
  --ink: #22121c;
  --mag: #b0135b;
  --mint: #3ddc97;
  --paper: #ffffff;
  --mag-deep: #8a0f48;
  --mag-soft: #ffd9e8;
  --ink-2: #5a4351;
  --rule: #e7d9e0;
  --rule-strong: #d6c2cc;
  --wash: #fbf6f8;
  --r: 18px;
  --shadow: 0 1px 2px rgba(34, 18, 28, .06), 0 18px 40px -18px rgba(34, 18, 28, .28);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scrollbar-color: var(--mag) var(--canvas); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--mint); color: var(--ink); }

a { color: var(--mag); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { color: var(--mag-deep); text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--mag); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 1rem; }
.skip:hover { color: var(--paper); }

/* ---------- top bar: the client's chrome ---------- */
.bar { background: var(--mag); color: var(--paper); }
.bar-in {
  max-width: 1240px; margin: 0 auto; padding: .9rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem;
}
.brand { color: var(--paper); display: inline-flex; line-height: 0; border-radius: 8px; }
.brand:hover { color: var(--paper); }
.bar .wm { height: 30px; width: auto; }
.bar :focus-visible { outline-color: var(--mint); }
.nav { display: flex; flex-wrap: wrap; gap: .1rem .1rem; margin-left: -.5rem; }
@media (min-width: 640px) { .nav { margin-left: 0; gap: .1rem .25rem; } .nav a { font-size: .875rem; padding: .35rem .7rem; } }
.nav a {
  color: var(--paper); text-decoration: none; font-weight: 600; font-size: .875rem;
  padding: .3rem .5rem; border-radius: 999px; transition: background-color .2s var(--ease);
}
.nav a:hover { background: var(--mag-deep); color: var(--paper); }

/* ---------- the client window ---------- */
.client {
  max-width: 1208px; width: calc(100% - 2rem); margin: 1.25rem auto 0;
  display: grid; grid-template-areas: "read" "list"; gap: 0;
}
.reading, .list { min-width: 0; }
.reading {
  grid-area: read; background: var(--paper);
  border-radius: var(--r) var(--r) 0 0; padding: 1.5rem 1.25rem 1.75rem;
}
.list {
  grid-area: list; background: var(--mag); color: var(--paper);
  border-radius: 0 0 var(--r) var(--r); padding: 1.5rem 1.25rem 1.5rem;
}

.from {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .5rem;
  font-size: .875rem; color: var(--ink-2);
  padding-bottom: .9rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--rule);
}
.from .lbl { font-weight: 700; color: var(--ink); }
.from-name { font-weight: 700; color: var(--ink); }
.from-name::before {
  content: ""; display: inline-block; width: .6em; height: .6em; border-radius: 50%;
  background: var(--mag); margin-right: .4em; vertical-align: .05em;
}

h1 {
  font-stretch: 125%; font-weight: 800; letter-spacing: -.02em;
  font-size: 2.05rem; line-height: 1.02;
  color: var(--ink);
}
.sub { margin-top: 1.1rem; font-size: 1.0625rem; line-height: 1.5; max-width: 40em; color: var(--ink); }

.note {
  margin-top: 1.5rem; background: var(--mint); color: var(--ink);
  border-radius: 14px; padding: 1rem 1rem 1rem 1.1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem;
}
.note p { flex: 1 1 18rem; font-weight: 600; line-height: 1.45; }
.note a:not(.btn) { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--mag); color: var(--paper); text-decoration: none;
  font-weight: 800; font-stretch: 112%; font-size: 1.0625rem; letter-spacing: .005em;
  padding: .85rem 1.35rem .85rem 1.1rem; border-radius: 999px;
  box-shadow: 0 1px 1px rgba(34, 18, 28, .12), 0 10px 22px -10px rgba(138, 15, 72, .7);
  transition: transform .25s var(--ease), background-color .2s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { background: var(--mag-deep); color: var(--paper); transform: translateY(-1px); box-shadow: 0 2px 3px rgba(34, 18, 28, .14), 0 16px 26px -12px rgba(138, 15, 72, .75); }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 1.2em; height: 1.2em; }
.btn-mint { background: var(--mint); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45); }
.btn-mint:hover { background: var(--paper); color: var(--ink); }
.close .btn:focus-visible, .list :focus-visible { outline-color: var(--mint); }

.fine { margin-top: 1rem; font-size: .875rem; color: var(--ink-2); }

/* the teardown as the message list */
.list h2 {
  font-stretch: 125%; font-weight: 800; font-size: 1.33rem; line-height: 1.15; letter-spacing: -.01em;
}
.inbox-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem;
  margin: 1rem 0 .4rem; font-size: .875rem; font-weight: 700; color: var(--mag-soft);
}
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.days span { height: 10px; border-radius: 3px; border: 1.5px solid var(--mag-soft); opacity: .8; }

.flows { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 217, 232, .35); }
.flows li {
  display: grid; grid-template-columns: 1.6rem 1fr; grid-template-areas: "mk nm" ". st"; align-items: center; gap: .1rem .6rem;
  padding: .82rem .1rem; border-bottom: 1px solid rgba(255, 217, 232, .35);
  animation: arrive .7s var(--ease) both; animation-delay: calc(var(--i) * 80ms);
}
.flows .mk { grid-area: mk; }
.flows .nm { grid-area: nm; font-weight: 700; font-size: 1.0625rem; }
.flows .st { grid-area: st; }
@media (min-width: 480px) { .flows li { grid-template-columns: 1.6rem 1fr auto; grid-template-areas: "mk nm st"; gap: .6rem; } }
.flows .nm::first-letter { text-transform: uppercase; }
.flows .st { white-space: nowrap; font-size: .875rem; font-weight: 600; color: var(--mag-soft); white-space: nowrap; }
.flows .st-open { font-weight: 500; color: var(--mag-soft); opacity: .85; }
@keyframes arrive { from { transform: translateY(-10px); } to { transform: none; } }

/* the three state marks: palette law, shape beyond colour */
.mk { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; }
.r-open .mk { border-radius: 3px; border: 2px dotted var(--mag-soft); width: 13px; height: 13px; }
.r-no .mk { border: 2px dashed var(--mag-soft); }
.legend {
  list-style: none; padding: 0; margin: 1.1rem 0 0;
  display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .875rem; font-weight: 600;
}
.legend li { display: inline-flex; align-items: center; gap: .45rem; }
.legend li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; }
.lg-open::before { border-radius: 3px; border: 2px dotted var(--mag-soft); }
.lg-fired::before { background: var(--mint); }
.lg-not::before { border: 2px solid var(--mag-soft); }
.lg-no::before { border: 2px dashed var(--mag-soft); }
.cap { margin-top: .9rem; font-size: .875rem; line-height: 1.5; color: var(--mag-soft); }

/* ---------- the thread ---------- */
.thread { max-width: 1240px; margin: 0 auto; padding: 0 1rem; }
.msg {
  background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 1.5rem 1.25rem 1.75rem; margin-top: 1.25rem;
  scroll-margin-top: 1rem; transition: box-shadow .4s var(--ease);
}
.msg:target, .convo-wrap:target, .faq:target { box-shadow: 0 0 0 3px var(--mag), var(--shadow); }
.sender { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.sender .av { width: 40px; height: 40px; flex: none; }
.sender-compact { gap: .5rem; margin-bottom: .8rem; }
.sender-compact .av { width: 22px; height: 22px; }
.sender-name { font-weight: 700; line-height: 1.35; }
.sender-addr { font-size: .875rem; color: var(--ink-2); line-height: 1.35; }

.msg h2, .convo-wrap h2, .faq h2 {
  font-stretch: 125%; font-weight: 800; letter-spacing: -.015em;
  font-size: 1.55rem; line-height: 1.06;
}
.lead { margin-top: 1rem; max-width: 64ch; font-size: 1.0625rem; }
mark { background: var(--mint); color: var(--ink); padding: .05em .25em; border-radius: 4px; font-weight: 700; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* thread index: the message list of the thread (wide screens) */
.tindex { display: none; }
.tindex-in { position: sticky; top: 1rem; background: var(--mag); color: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.5rem 1.75rem 1.25rem; }
.tindex .toc-label { font-weight: 800; font-stretch: 125%; font-size: 1.33rem; line-height: 1.15; margin: 0; padding-bottom: .9rem; border-bottom: 1px solid rgba(255, 217, 232, .35); }
.tindex ul { list-style: none; margin: 0; padding: 0; }
.tindex li { border-bottom: 1px solid rgba(255, 217, 232, .35); }
.tindex a {
  display: grid; grid-template-columns: 1.6rem 1fr; align-items: center; gap: .6rem;
  padding: .8rem .1rem; color: var(--paper); text-decoration: none; font-weight: 700; line-height: 1.4;
  border-radius: 8px; transition: background-color .2s var(--ease);
}
.tindex a::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--mag-soft); }
.tindex a:hover { background: var(--mag-deep); color: var(--paper); }
.tindex :focus-visible { outline-color: var(--mint); }

/* attachments */
.att { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.att li {
  display: inline-flex; align-items: flex-start; gap: .5rem; max-width: 100%;
  background: var(--wash); border: 1px solid var(--rule-strong); border-radius: 10px; padding: .45rem .8rem .5rem .55rem;
  font-size: .875rem; line-height: 1.45; font-weight: 600;
}
.att .ico { width: 1.15rem; height: 1.15rem; flex: none; color: var(--mag); margin-top: .1rem; }

/* the teardown spec list */
.msg-free { background: var(--ink); color: var(--paper); }
.msg-free .sender-addr { color: var(--mag-soft); }
.msg-free .lead { color: var(--paper); }
.spec { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid rgba(255, 255, 255, .18); max-width: 64ch; }
.spec li { padding: .75rem 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.how { margin-top: 1.4rem; font-weight: 600; max-width: 64ch; }
.lim-h { margin-top: 1.6rem; font-weight: 800; font-stretch: 112%; font-size: 1.0625rem; color: var(--mag-soft); }
.spec-lim { margin-top: .6rem; }
.spec-lim li { font-size: .9375rem; }
.msg-free a { color: var(--mint); }
.msg-free a:hover { color: var(--paper); }
.msg-free :focus-visible { outline-color: var(--mint); }

/* how it works: the conversation */
.convo-wrap { margin-top: 3rem; padding: 0 .25rem; scroll-margin-top: 1rem; border-radius: var(--r); }
.convo { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.convo li { max-width: 34rem; padding: 1rem 1.15rem 1.1rem; border-radius: 20px; }
.convo h3 { font-stretch: 112%; font-weight: 800; font-size: 1.33rem; line-height: 1.25; margin-bottom: .3rem; }
.b-we { background: var(--mag); color: var(--paper); border-bottom-left-radius: 6px; justify-self: start; }
.b-you { background: var(--paper); color: var(--ink); border: 1.5px solid var(--rule-strong); border-bottom-right-radius: 6px; justify-self: end; }

/* price */
.msg-price { margin-top: 3rem; }
.pl { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; }
.pl-k { font-weight: 700; width: 100%; }
.amt { font-stretch: 125%; font-weight: 800; font-size: 2.8rem; line-height: 1; letter-spacing: -.03em; color: var(--mag); }
.amt-2 { font-size: 1.8rem; color: var(--ink); }
.pl-r { font-weight: 600; }
.pl-2 { padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.terms { margin: 1.5rem 0 0; padding: 0 0 0 1.1rem; max-width: 70ch; display: grid; gap: .45rem; }
.terms li::marker { color: var(--mag); }
.glink { margin-top: 1rem; }
.glink a { font-weight: 800; }
.msg-price h3 {
  margin-top: 2rem; font-stretch: 112%; font-weight: 800; font-size: 1.33rem;
}
.excl { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; border-top: 1px solid var(--rule); }
.excl li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .6rem; align-items: start; padding: .65rem 0; border-bottom: 1px solid var(--rule); }
.excl .ico { width: 1.1rem; height: 1.1rem; color: var(--mag); margin-top: .25rem; }

/* faq: the inbox of unread subjects */
.faq { margin-top: 3rem; scroll-margin-top: 1rem; border-radius: var(--r); }
.faq-list { margin-top: 1.25rem; padding: .5rem; background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer; border-radius: 12px;
  display: grid; grid-template-columns: 1.6rem 1fr auto; gap: .6rem; align-items: center;
  padding: 1rem 1.1rem; font-weight: 800; font-stretch: 106%; line-height: 1.35;
  transition: background-color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: .6rem; height: .6rem; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease);
}
.faq summary:hover { background: var(--wash); }
.faq .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--mag); transition: transform .3s var(--ease), background-color .3s var(--ease); }
.faq details[open] summary { font-weight: 600; }
.faq details[open] .dot { background: transparent; box-shadow: inset 0 0 0 2px var(--rule-strong); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .a { padding: 0 1.1rem 1.2rem 3.3rem; max-width: 72ch; color: var(--ink); }

/* the close: a reply field */
.close { background: var(--mag); color: var(--paper); margin-top: 3.5rem; scroll-margin-top: 0; }
.close-in { max-width: 1240px; margin: 0 auto; padding: 3.5rem 1.25rem 3.75rem; }
.close h2 {
  font-stretch: 125%; font-weight: 800; letter-spacing: -.02em; max-width: 16ch;
  font-size: 2rem; line-height: 1.02;
}
.close p { margin: 1.1rem 0 1.6rem; font-size: 1.33rem; line-height: 1.5; max-width: 46ch; }
.close a:not(.btn) { color: var(--paper); }

/* footer: an email's legal footer */
.foot { background: var(--canvas); color: var(--ink-2); font-size: .875rem; margin-top: 0; }
.foot-in { max-width: 1208px; width: calc(100% - 2rem); margin: 0 auto; padding: 1.75rem 0 3rem; border-top: 1px solid var(--rule-strong); display: grid; gap: .5rem; justify-items: start; }
.foot-mark { color: var(--ink); line-height: 0; margin-bottom: .35rem; }
.foot .wm { height: 22px; width: auto; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--mag); }
.foot-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
body:not(.home) .foot-in { margin-top: 2.5rem; }

/* ---------- single message pages ---------- */
.solo { max-width: 1240px; margin: 1.25rem auto 0; padding: 0 1rem; }
.reading.reading-solo { border-radius: var(--r); box-shadow: var(--shadow); max-width: 52rem; margin-inline: auto; }
.big-mail { margin-top: 1.75rem; }
.big-mail a {
  display: inline-flex; align-items: center; gap: .5rem;
  font-stretch: 100%; font-weight: 800; font-size: 1.25rem;
  text-decoration-thickness: 3px; overflow-wrap: anywhere;
}
.big-mail .ico { width: 1em; height: 1em; }

/* ---------- policy pages: long reading inside the client ---------- */
.policy { max-width: 1240px; margin: 1.25rem auto 0; padding: 0 1rem; display: grid; gap: 1.25rem; }
.toc { background: var(--mag); color: var(--paper); border-radius: var(--r); padding: 1.1rem 1.1rem 1.2rem; align-self: start; }
.toc-label { font-weight: 800; font-stretch: 112%; margin-bottom: .5rem; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.toc a { color: var(--paper); text-decoration: none; display: block; padding: .3rem .5rem; border-radius: 8px; font-size: .875rem; line-height: 1.35; }
.toc a:hover { background: var(--mag-deep); color: var(--paper); }
.toc :focus-visible { outline-color: var(--mint); }
.doc { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.5rem 1.25rem 2.5rem; min-width: 0; }
.doc > * { max-width: 70ch; }
.doc h1 { font-size: 2rem; }
.doc h1 + p { margin-top: .9rem; color: var(--ink-2); font-size: .875rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--rule); }
.doc h2 { font-stretch: 118%; font-weight: 800; font-size: 1.45rem; line-height: 1.2; margin-top: 2.4rem; scroll-margin-top: 1rem; }
.doc h3 { font-stretch: 106%; font-weight: 800; font-size: 1.33rem; margin-top: 1.6rem; scroll-margin-top: 1rem; }
.doc p { margin-top: .85rem; }
.doc ul { margin: .85rem 0 0; padding-left: 1.2rem; }
.doc li { margin-top: .3rem; }
.doc li::marker { color: var(--mag); }
.doc h2:target, .doc h3:target { color: var(--mag); }
.doc a { overflow-wrap: anywhere; }

/* ---------- wide screens ---------- */
@media (min-width: 900px) {
  .client {
    grid-template-columns: minmax(330px, 410px) 1fr; grid-template-areas: "list read";
    margin-top: 1.75rem; border-radius: var(--r); box-shadow: var(--shadow);
  }
  .list { border-radius: var(--r) 0 0 var(--r); padding: 2rem 1.75rem; }
  .reading { border-radius: 0 var(--r) var(--r) 0; padding: 2rem 3rem 2.5rem; }
  .msg { padding: 2.25rem 3rem 2.75rem; margin-top: 1.75rem; }
  .att { grid-template-columns: 1fr 1fr; }
  .convo { gap: 1rem; }
  .convo li { max-width: 30rem; }
  .convo-wrap, .faq { margin-top: 4.5rem; }
  .msg-price { margin-top: 4.5rem; }
  .close-in { padding: 5rem 1.25rem 5.5rem; }
  .reading-solo { padding: 2.5rem 3rem 3rem; }
  .policy { grid-template-columns: 17rem 1fr; margin-top: 1.75rem; }
  .toc { position: sticky; top: 1rem; }
  .doc { padding: 2.5rem 3.5rem 3.5rem; }
  h1 { font-size: 3.9rem; }
  .sub { font-size: 1.33rem; }
  .doc h1 { font-size: 3.2rem; }
  .doc h2 { font-size: 1.75rem; }
  .msg h2, .convo-wrap h2, .faq h2 { font-size: 2.4rem; }
  .amt { font-size: 5rem; }
  .amt-2 { font-size: 2.6rem; }
  .close h2 { font-size: 4.2rem; }
  .big-mail a { font-size: 2.2rem; font-stretch: 118%; }
}
@media (min-width: 1100px) {
  .thread { display: grid; grid-template-columns: minmax(330px, 410px) 1fr; column-gap: 1.75rem; }
  .thread > * { grid-column: 2; }
  .tindex { display: block; grid-column: 1; grid-row: 1 / span 6; margin-top: 1.75rem; }
  .convo { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .convo li { grid-column: 1; max-width: none; }
  .convo .b-you { grid-column: 2; }
  .convo li:nth-child(1) { grid-row: 1; }
  .convo li:nth-child(2) { grid-row: 2; }
  .convo li:nth-child(3) { grid-row: 3; }
  .convo li:nth-child(4) { grid-row: 4; }
  .convo li:nth-child(5) { grid-row: 5; }
}

@media (prefers-reduced-motion: reduce) {
  .flows li { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
