/* Honorbound's landing pages (honorbound#11). Lab::UI's light theme tokens, copied: Hunchwire hosts
   these pages, so they can't load our Rails assets (decision 0008 for the light theme). Quiet and
   phone first: one column of large serif text, one call to action, almost nothing else. */

:root {
  color-scheme: light;
  --ui-bg: #f6f5f1;
  --ui-surface: #ffffff;
  --ui-border: rgba(29, 29, 27, 0.12);
  --ui-border-strong: rgba(29, 29, 27, 0.26);
  --ui-text: #1d1d1b;
  --ui-text-muted: #57534b;
  --ui-font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui-font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ui-radius: 8px;
  --ui-ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --hb-mark: rgba(201, 162, 104, 0.32);
  --hb-paper: #fffdf8;
}

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

html {
  background: var(--ui-bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ui-bg);
  color: var(--ui-text);
  font-family: var(--ui-font);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 1px solid var(--ui-text);
  outline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
}

/* The column */
.q {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: 100%;
  max-width: 36rem;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.25rem;
  font-family: var(--ui-font-display);
  font-size: 21px;
  line-height: 1.42;
  letter-spacing: -0.005em;
}

@media (min-width: 48rem) {
  .q {
    gap: 1.3rem;
    padding: 3.5rem 1.5rem 1.5rem;
    font-size: 24px;
  }
}

.q__mark {
  align-self: flex-start;
  margin-bottom: 1.4rem;
  color: inherit;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.q h1,
.q h2,
.q p {
  margin: 0;
  font: inherit;
}

.q h2 {
  margin-top: 0.6rem;
  font-size: 0.86em;
  font-weight: 500;
}

.q strong {
  font-weight: 500;
}

.q__ex {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(29, 29, 27, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.q__ex:hover {
  text-decoration-color: var(--ui-text);
}

/* The one call to action: a highlighted line, not a button. */
.q__go {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.q__cta {
  padding: 2px 1px;
  border: 0;
  background: linear-gradient(transparent 62%, var(--hb-mark) 62%);
  color: var(--ui-text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.q__cta::after {
  content: " ›";
  font-family: var(--ui-font);
  font-size: 0.8em;
}

.q__cta:disabled {
  background: none;
  color: rgba(29, 29, 27, 0.35);
  cursor: default;
}

.q__alt {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ui-text-muted);
  font-family: var(--ui-font);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.q__tap {
  font-family: var(--ui-font);
  font-size: 12.5px;
  color: var(--ui-text-muted);
}

[hidden] {
  display: none !important;
}

/* The habit contract: a document the visitor fills in; each blank is tappable. */
.k-form {
  display: grid;
  gap: 1.1rem;
}

.k {
  display: grid;
  gap: 0.55rem;
  padding: 1.1rem 1.1rem 1rem;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  background: var(--hb-paper);
  box-shadow: 0 1px 0 rgba(29, 29, 27, 0.04);
  font-size: 19px;
  line-height: 1.55;
}

@media (min-width: 48rem) {
  .k {
    padding: 1.4rem 1.5rem 1.2rem;
    font-size: 22px;
  }
}

.k__title {
  font-family: var(--ui-font);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ui-text-muted);
}

.k__f {
  display: inline;
  padding: 0 3px;
  border: 0;
  border-bottom: 1.5px dashed rgba(29, 29, 27, 0.35);
  border-radius: 0;
  background: none;
  color: rgba(29, 29, 27, 0.42);
  font: inherit;
  cursor: pointer;
}

.k__f.is-set {
  border-bottom-style: solid;
  border-bottom-color: rgba(29, 29, 27, 0.55);
  color: var(--ui-text);
  font-style: italic;
}

.k__f.is-on {
  border-bottom-color: var(--ui-text);
  background: rgba(201, 162, 104, 0.25);
  color: var(--ui-text);
}

.k__edit {
  display: grid;
  gap: 8px;
  padding-top: 2px;
  font-family: var(--ui-font);
}

.k__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;

  button {
    padding: 5px 11px;
    border: 1px solid var(--ui-border-strong);
    border-radius: 999px;
    background: var(--ui-surface);
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
  }

  .on {
    border-color: var(--ui-text);
    background: var(--ui-text);
    color: var(--ui-bg);
  }
}

.k__type {
  display: flex;
  gap: 6px;

  input {
    flex: 1;
    min-width: 0;
    height: 2.5rem;
    padding: 0 12px;
    border: 1px solid var(--ui-border-strong);
    border-radius: var(--ui-radius);
    background: var(--ui-surface);
    color: var(--ui-text);
    font: inherit;
    font-size: 16px;
  }

  input:focus {
    border-color: var(--ui-text);
    outline: none;
  }

  button {
    height: 2.5rem;
    padding: 0 1rem;
    border: 1px solid var(--ui-text);
    border-radius: var(--ui-radius);
    background: var(--ui-text);
    color: var(--ui-bg);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
  }
}

.k__sign {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--ui-border);
  font-size: 15px;
  color: var(--ui-text-muted);
}

.k__signed {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;

  i {
    color: var(--ui-text);
    font-size: 20px;
  }

  > span:only-child {
    margin-left: auto;
  }
}

/* The footer */
.q__foot {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 2.5rem;
  font-family: var(--ui-font);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ui-text-muted);

  span {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
  }

  a {
    color: var(--ui-text-muted);
  }
}
