/* Hangsmith, hangsmith.com
   Palette follows the app icon: plaster white, ink black, and Mondrian's
   red, blue and yellow used sparingly, as signals. The black rules are the
   grid a wall is hung on. Everything here is self-hosted. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/inter-var.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #151515;
  --muted: #736c61;
  --line: #e4ded3;
  --rule: #151515;
  --red: #c8261e;
  --blue: #1d3f9e;
  --yellow: #f2c12e;
  --on-red: #ffffff;
  --on-blue: #ffffff;
  --on-yellow: #151515;
  --focus: #1d3f9e;
  --shadow: 0 1px 2px rgba(21, 21, 21, 0.06), 0 18px 40px -18px rgba(21, 21, 21, 0.28);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --surface: #1f1d1b;
    --ink: #f1eee6;
    --muted: #a39b8e;
    --line: #34302b;
    --rule: #f1eee6;
    --red: #e0503f;
    --blue: #6f8fe8;
    --yellow: #f2c12e;
    --on-red: #141312;
    --on-blue: #141312;
    --focus: #f2c12e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -18px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  font-feature-settings: "ss01" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection {
  background: var(--yellow);
  color: #151515;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* Header ------------------------------------------------------------- */
.site-head {
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px var(--line);
}
.site-nav ul {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a {
  display: inline-block;
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}
.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--red);
}
@media (max-width: 520px) {
  .site-nav .opt {
    display: none;
  }
}

/* Type --------------------------------------------------------------- */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  letter-spacing: -0.04em;
  line-height: 0.98;
}
h2 {
  font-size: clamp(30px, 4.2vw, 48px);
}
h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
p {
  margin: 0;
  text-wrap: pretty;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--red);
}
.kicker.blue::before {
  background: var(--blue);
}
.kicker.yellow::before {
  background: var(--yellow);
}
.lede {
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.5;
  color: var(--muted);
}
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

/* Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.hero-mark {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.hero-mark img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.hero-mark .name {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-mark .sub {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  color: var(--muted);
}
.hero h1 {
  margin-bottom: 24px;
}
.hero .lede {
  max-width: 34em;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.text-link {
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--line);
  padding: 4px 0;
}
.text-link:hover {
  box-shadow: inset 0 -2px 0 var(--ink);
}

/* App Store call to action. "Coming soon" until launch day; see the switch
   at the top of index.html. The badge itself is Apple's official artwork:
   never redraw or recolor it, keep its aspect, at least 40px tall, with clear
   space of a quarter of its height on every side. */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  border: 2px solid var(--ink);
  font-weight: 650;
  font-size: 16px;
  line-height: 1.2;
  background: var(--surface);
}
.soon svg {
  flex: none;
  width: 22px;
  height: 22px;
}
.soon small {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
}
.appstore {
  display: inline-block;
  line-height: 0;
  border-radius: 9px;
  margin: 13px 0;
  transition: transform 0.16s ease, opacity 0.16s linear;
}
.appstore img {
  height: 52px;
  width: auto;
}
.appstore:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}
@media (max-width: 560px) {
  .appstore img {
    height: 46px;
  }
}

/* Phone frame: a plain rounded frame around a real screen. Not a device
   render, so it never pretends to be a particular iPhone. */
.phone {
  position: relative;
  width: min(100%, 320px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 44px;
  background: var(--ink);
  box-shadow: var(--shadow);
}
.phone picture,
.phone img {
  display: block;
  width: 100%;
  aspect-ratio: 390 / 844;
  border-radius: 34px;
  background: var(--bg);
  object-fit: cover;
}
@media (prefers-color-scheme: dark) {
  .phone {
    background: #2b2825;
    box-shadow: 0 0 0 1px #3a3632, var(--shadow);
  }
}
.hero-figure {
  position: relative;
  margin: 0;
}
.hero-figure figcaption {
  margin: 18px auto 0;
  width: fit-content;
  max-width: 100%;
  padding: 4px 10px;
  background: var(--bg);
}
/* A few quiet primaries behind the phone: a composition, not a copy. */
.hero-figure::before,
.hero-figure::after {
  content: "";
  position: absolute;
  z-index: -1;
}
.hero-figure::before {
  width: 38%;
  aspect-ratio: 1 / 1.35;
  right: -2%;
  top: 8%;
  background: var(--red);
}
.hero-figure::after {
  width: 20%;
  aspect-ratio: 1;
  left: 2%;
  bottom: 14%;
  background: var(--yellow);
}
.hero-figure .rule-v,
.hero-figure .rule-h {
  position: absolute;
  z-index: -1;
  background: var(--rule);
}
.hero-figure .rule-v {
  width: 6px;
  top: -200px;
  bottom: -200px;
  right: 34%;
}
.hero-figure .rule-h {
  height: 6px;
  left: -40px;
  right: -400px;
  bottom: 14%;
  margin-bottom: -6px;
}
.hero-figure .blue {
  position: absolute;
  z-index: -1;
  right: -400px;
  width: 400px;
  height: 90px;
  bottom: calc(14% - 96px);
  background: var(--blue);
}
figcaption,
.caption {
  position: relative;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* Sections ----------------------------------------------------------- */
.section {
  padding: clamp(64px, 9vw, 128px) 0;
}
.section-head {
  max-width: 40em;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 {
  margin-bottom: 18px;
}

/* How it works: three cells held by a black grid. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 6px solid var(--rule);
  background: var(--rule);
  gap: 6px;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  padding-top: 76px;
  background: var(--bg);
}
.step .num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-weight: 750;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.step:nth-child(1) .num {
  background: var(--red);
  color: var(--on-red);
}
.step:nth-child(2) .num {
  background: var(--blue);
  color: var(--on-blue);
}
.step:nth-child(3) .num {
  background: var(--yellow);
  color: var(--on-yellow);
}
.step p {
  color: var(--muted);
}
.step .phone {
  width: min(100%, 260px);
  margin: auto auto 0;
  padding: 8px;
  border-radius: 36px;
}
.step .phone img {
  border-radius: 28px;
}

/* Then hang it */
.hang {
  border-top: 1px solid var(--line);
}
.hang .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.pair {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 24px);
  justify-content: center;
}
.pair .phone {
  width: min(48%, 260px);
  padding: 8px;
  border-radius: 36px;
}
.pair .phone img {
  border-radius: 28px;
}
.pair .phone:nth-child(2) {
  margin-top: 48px;
}
.ticks {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.ticks li {
  position: relative;
  padding-left: 28px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  background: var(--ink);
}

/* The eye: the rules, and an elevation drawing of them. */
.eye {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.eye .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.rules {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}
.rules li {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.rules .fig {
  font-weight: 750;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.rules h3 {
  font-size: 17px;
  margin-bottom: 4px;
}
.rules p {
  color: var(--muted);
}
.diagram {
  position: sticky;
  top: 24px;
  margin: 0;
}
.diagram svg {
  width: 100%;
  color: var(--ink);
}
.diagram .wallface {
  fill: var(--bg);
}
.diagram .muted {
  fill: var(--muted);
}
.diagram .stroke-muted {
  stroke: var(--muted);
}
.diagram .red {
  fill: var(--red);
}
.diagram .blue {
  fill: var(--blue);
}
.diagram .yellow {
  fill: var(--yellow);
}
.diagram .plaster {
  fill: var(--surface);
}
.diagram .eyeline {
  stroke: var(--red);
}
.diagram text {
  font: 600 13px var(--sans);
  fill: var(--muted);
}
.diagram text.strong {
  fill: var(--ink);
}
.diagram text.redtext {
  fill: var(--red);
}
.note {
  margin-top: 28px;
  font-size: 15px;
  color: var(--muted);
}

/* Privacy line and the call to action */
.promise {
  padding: clamp(48px, 7vw, 88px) 0;
}
.promise p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.3;
  max-width: 28em;
}
.promise a {
  font-family: var(--sans);
  font-style: normal;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.cta {
  background: var(--ink);
  color: var(--bg);
}
.cta .wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
.cta img.icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
}
.cta h2 {
  font-size: clamp(28px, 3.6vw, 42px);
}
.cta p {
  margin-top: 10px;
  color: color-mix(in srgb, var(--bg) 72%, var(--ink));
}
.cta .soon {
  background: transparent;
  border-color: var(--bg);
  color: var(--bg);
}
.cta .soon small {
  color: color-mix(in srgb, var(--bg) 72%, var(--ink));
}
.cta :focus-visible {
  outline-color: var(--yellow);
}

/* Footer --------------------------------------------------------------- */
.site-foot {
  padding: 40px 0 48px;
  font-size: 15px;
  color: var(--muted);
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.site-foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-foot a {
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  padding: 6px 0;
}
.site-foot a:hover {
  text-decoration: underline;
}
.credit {
  display: flex;
  align-items: center;
  gap: 10px;
}
.credit::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--red);
  box-shadow: 14px 0 0 var(--blue), 28px 0 0 var(--yellow);
  margin-right: 28px;
}

/* Document pages: privacy, support, 404 ----------------------------------- */
.doc {
  padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 112px);
}
.doc .wrap {
  max-width: calc(720px + 2 * var(--gutter));
}
.doc h1 {
  font-size: clamp(38px, 6vw, 60px);
  margin-bottom: 16px;
}
.doc .meta {
  color: var(--muted);
  margin-bottom: clamp(32px, 5vw, 48px);
}
.doc h2 {
  font-size: clamp(22px, 2.6vw, 26px);
  letter-spacing: -0.02em;
  margin: 44px 0 12px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}
.doc p + p {
  margin-top: 14px;
}
.doc .lede {
  color: var(--ink);
}
.contact-card {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 24px 28px;
  border: 2px solid var(--ink);
  border-left-width: 14px;
  border-left-color: var(--blue);
  background: var(--surface);
}
.contact-card a {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.contact-card p {
  color: var(--muted);
}
.faq {
  margin-top: 8px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  display: block;
  padding: 20px 40px 20px 0;
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
}
.faq details[open] summary::after {
  background: linear-gradient(var(--red), var(--red)) center / 14px 2px no-repeat;
}
.faq .answer {
  padding: 0 0 24px;
  color: var(--muted);
}
.faq .answer p + p,
.faq .answer p + ul,
.faq .answer ul + p {
  margin-top: 12px;
}
.faq .answer ul {
  margin: 0;
  padding-left: 1.2em;
}
.faq .answer li + li {
  margin-top: 6px;
}
.faq strong {
  color: var(--ink);
  font-weight: 650;
}
kbd,
.ui {
  font: inherit;
  font-weight: 650;
  color: var(--ink);
}

/* Responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero .wrap,
  .hang .wrap,
  .eye .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-figure {
    max-width: 420px;
    margin: 8px auto 0;
  }
  .hero-figure .rule-v {
    top: -24px;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 200px);
    grid-template-rows: auto 1fr;
    column-gap: 28px;
    row-gap: 12px;
  }
  .step .phone {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }
  .diagram {
    position: static;
  }
  .cta .wrap {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .step {
    display: flex;
  }
  .step .phone {
    width: min(100%, 240px);
    margin: 12px auto 0;
  }
  .rules li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .pair .phone:nth-child(2) {
    margin-top: 32px;
  }
  .hero-mark img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }
  .site-foot .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
.eye-lede {
  margin: 18px 0 36px;
}
