@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(inter-latin.woff2) format("woff2");
}

:root {
  --ink: #0f172a;
  --muted: #5b6474;
  --line: #e5e7eb;
  --soft: #f6f7f9;
  --accent: #4f46e5;
  --accent-dark: #4338ca;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font: 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 650;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

a {
  color: inherit;
}

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

input,
select,
textarea,
button {
  font: inherit;
  color: inherit;
}

input,
select,
textarea {
  padding: 0.6rem 0.8rem;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo svg {
  color: var(--accent);
}

.button {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-dark);
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
}

.button.small {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

.link {
  padding: 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}

.lead {
  max-width: 40rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.note {
  flex-basis: 100%;
  min-height: 1.5em;
  color: var(--muted);
  font-size: 0.95rem;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* The landing page */

main > section {
  padding-top: clamp(56px, 9vw, 112px);
  padding-bottom: clamp(56px, 9vw, 112px);
}

main > .hero {
  padding-top: clamp(48px, 9vw, 120px);
  padding-bottom: clamp(24px, 4vw, 48px);
}

.hero h1 {
  max-width: 14em;
}

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 30rem;
  margin-top: 2.2rem;
}

.signup input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
  margin-top: 3rem;
}

.grid h3 {
  margin-bottom: 0.4rem;
}

.grid p {
  color: var(--muted);
}

.step {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.9rem;
  background: var(--soft);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 650;
  font-size: 0.95rem;
}

.snippet {
  margin: 3rem 0 0;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: 0.85rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.band {
  border-top: 1px solid var(--line);
}

.band + section {
  border-top: 1px solid var(--line);
}

.band > .button {
  margin-top: 2rem;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 28px;
  /* Room for the widget's button, which is fixed over the page's corner. */
  padding-bottom: 76px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

/* The owner dashboard */

.dash {
  font-size: 15px;
}

.dash main {
  padding-bottom: 80px;
}

.dash h1 {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.dash h2 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 34rem;
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.card h1,
.card h2,
.card p {
  flex-basis: 100%;
}

.card input {
  flex: 1 1 12rem;
  min-width: 0;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 16px 0 8px;
}

.toolbar h1 {
  margin-right: auto;
}

.toolbar label {
  color: var(--muted);
  font-size: 0.9rem;
}

.toolbar select,
.controls select {
  padding: 0.35rem 0.5rem;
}

.project {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.project-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.count,
.empty,
.saved,
.meta,
summary,
#signups li {
  color: var(--muted);
  font-size: 0.9rem;
}

summary {
  width: max-content;
  margin-top: 4px;
  cursor: pointer;
}

details .snippet {
  margin: 10px 0 6px;
}

.empty {
  margin-top: 12px;
}

.items {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}

.tag {
  padding: 1px 10px;
  background: var(--soft);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.8rem;
}

.tag.idea {
  background: #eef2ff;
  color: #3730a3;
}

.tag.problem {
  background: #fef2f2;
  color: #991b1b;
}

.text {
  margin: 10px 0 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.controls textarea {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.35rem 0.6rem;
  resize: vertical;
}

.saved {
  flex-basis: 4.5rem;
  padding-top: 0.4rem;
}

#signups {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

#signups ul {
  margin-top: 8px;
}
