Skip to content
/* Pear — a small, quiet task list. */

:root {
  color-scheme: light;
  --ink: #1c2430;
  --muted: #6b7583;
  --faint: #9aa2ae;
  --line: #e6e9ee;
  --surface: #f7f8fa;
  --accent: #315efb;
  --accent-hover: #244bd4;
  --success: #2f7d4f;
}

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

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

body {
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

/* Layout shell ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  width: min(100% - 2.5rem, 46rem);
  min-height: 3.75rem;
  margin: 0 auto;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand:hover {
  color: var(--ink);
}

.primary-nav {
  display: flex;
  gap: 1.1rem;
}

.primary-nav a {
  color: var(--muted);
  font-size: 0.875rem;
}

.primary-nav a:hover {
  color: var(--ink);
}

.account {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 0.9rem;
}

.account-name {
  display: none;
  color: var(--muted);
  font-size: 0.875rem;
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.link-button:hover {
  color: var(--ink);
}

.page-shell {
  width: min(100% - 2.5rem, 46rem);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: auto;
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-sm {
  min-height: 2rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #fff;
}

.btn-outline {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.btn-outline:hover {
  border-color: #c9cfd8;
  background: var(--surface);
  color: var(--ink);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--ink);
}

.text-link {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: underline;
  text-decoration-color: #c7cdd6;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--ink);
}

/* Forms ------------------------------------------------------------------- */

.input,
.textarea,
.select {
  width: 100%;
  height: auto;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: #9db1f9;
  box-shadow: 0 0 0 3px rgba(49, 94, 251, 0.12);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--faint);
}

.textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.stack-form {
  display: flex;
  max-width: 36rem;
  flex-direction: column;
  gap: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field > label {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

/* Page headings ----------------------------------------------------------- */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.page-title h1 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.page-meta {
  display: flex;
  margin: 0.35rem 0 0;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.dot {
  color: #c4cad3;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Task list --------------------------------------------------------------- */

.view-tabs {
  display: inline-flex;
  gap: 0.25rem;
  margin: 0 0 1.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--surface);
}

.view-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.4rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.view-tab:hover {
  color: var(--ink);
}

.view-tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.view-count {
  color: var(--faint);
  font-size: 0.75rem;
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
}

.tag-filter {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
}

.tag-filter:hover {
  border-color: #c9cfd8;
  color: var(--ink);
}

.tag-filter.is-active {
  border-color: #b9c7fb;
  background: #f2f5ff;
  color: var(--accent);
}

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

.task {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.task-body {
  min-width: 0;
  flex: 1;
}

.task-title {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.task.is-closed .task-title {
  color: var(--muted);
  font-weight: 500;
}

.task-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.task-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.tag {
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
}

.task-side {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
}

.task-outcome {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.task-outcome.is-done {
  color: var(--success);
}

.empty-state {
  padding: 2.5rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.empty-state p {
  margin: 0 0 0.6rem;
}

/* Guest landing ----------------------------------------------------------- */

.guest-landing {
  display: flex;
  min-height: min(72vh, 640px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.guest-landing h1 {
  max-width: 38rem;
  margin: 0.3rem 0 0.9rem;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.guest-intro {
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.guest-count {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 2rem 0;
  color: var(--muted);
}

.guest-count strong {
  color: var(--ink);
  font-size: 3rem;
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
}

.guest-count span {
  font-size: 0.8rem;
}

.guest-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

/* Auth pages -------------------------------------------------------------- */

.max-w-sm {
  max-width: 24rem;
}

.w-full {
  width: 100%;
}

.mx-auto {
  margin-right: auto;
  margin-left: auto;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.gap-4 {
  gap: 1rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.text-sm {
  font-size: 0.875rem;
}

.opacity-70 {
  opacity: 0.7;
}

.form-control {
  display: flex;
  flex-direction: column;
}

.card {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #fff;
}

.card-body {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.card-title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.bg-base-200 {
  background: var(--surface);
}

.label {
  display: block;
  margin: 0 0 0.35rem;
}

.label-text {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.link,
.link-primary {
  color: var(--accent);
}

.link:hover,
.link-primary:hover {
  text-decoration: underline;
}

.alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--surface);
  font-size: 0.875rem;
}

.alert-error {
  border-color: #f2c6c6;
  background: #fdf2f2;
  color: #9b1c1c;
}

.alert-success {
  border-color: #bfe3ce;
  background: #f1faf4;
  color: #1f6b41;
}

/* Small screens ----------------------------------------------------------- */

@media (min-width: 520px) {
  .account-name {
    display: inline;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .page-shell {
    width: min(100% - 1.5rem, 46rem);
  }

  .header-inner {
    gap: 0.8rem;
  }

  .primary-nav {
    gap: 0.8rem;
  }

  .page-head h1 {
    font-size: 1.45rem;
  }

  .task {
    flex-direction: column;
    gap: 0.7rem;
  }

  .task-side {
    width: 100%;
    justify-content: flex-start;
  }
}