/* MakingLifeSimple — making life simple.
   A calm, warm, paper-like palette: this is a workbench, not a dashboard. */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #1f2329;
  --ink-soft: #5b636e;
  --line: #e4ded3;
  --accent: #2f6f4e; /* per-card accent overrides this */
  --accent-ink: #1e4a34;
  --focus: #1d6fd6;
  --radius: 14px;
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------- header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-text strong {
  font-size: 19px;
  letter-spacing: 0.2px;
}
.brand-text small {
  color: var(--ink-soft);
  font-size: 12.5px;
}
.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--line);
}
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* ---------- hero ---------- */

.hero {
  padding: 56px 0 36px;
  background: linear-gradient(180deg, #fffdf9 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-copy {
  flex: 1 1 60%;
  max-width: 640px;
}
.hero-visual {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
}
.hero-art {
  width: 100%;
  max-width: 360px;
  height: auto;
}
@media (max-width: 820px) {
  .hero-inner {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }
  .hero-copy {
    max-width: 640px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-art {
    max-width: 300px;
  }
}
.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5.2vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.5px;
}
h1 em {
  font-style: normal;
  color: var(--accent);
  border-bottom: 4px solid rgba(47, 111, 78, 0.22);
}
.lede {
  font-size: 18.5px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.06s ease, filter 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-quiet {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn-quiet:hover {
  border-color: #cfc6b6;
}
.btn-disabled {
  background: #f1ece3;
  color: #9a9384;
  border-color: var(--line);
  cursor: not-allowed;
}

/* ---------- belief strip ---------- */

.belief {
  padding: 58px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.belief-inner {
  max-width: 740px;
}
.belief h2 {
  margin: 0 0 14px;
  font-size: 27px;
  letter-spacing: -0.2px;
}
.belief p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}
.belief strong {
  color: var(--ink);
}

/* ---------- sections ---------- */

section.apps {
  padding: 40px 0 62px;
}
section.principles {
  padding: 62px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.section-head {
  margin-bottom: 26px;
}
.section-head h2 {
  margin: 0 0 6px;
  font-size: 27px;
  letter-spacing: -0.2px;
}
.muted {
  color: var(--ink-soft);
}

/* ---------- app cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 11px;
}
.card-icon.lg {
  width: 56px;
  height: 56px;
  flex: none;
}
.icon {
  width: 22px;
  height: 22px;
}
.card-icon.lg .icon {
  width: 30px;
  height: 30px;
}
.card h3 {
  margin: 4px 0 0;
  font-size: 20px;
}
.card h3 a {
  text-decoration: none;
  color: var(--ink);
}
.card h3 a:hover {
  text-decoration: underline;
}
.card-tagline {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  flex: 1;
}
.card-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.card-actions .btn {
  padding: 9px 15px;
  font-size: 14px;
}

/* ---------- pills ---------- */

.pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-live {
  background: #dff3e6;
  color: #1c6b41;
}
.pill-beta {
  background: #fdf0d5;
  color: #8a5a10;
}
.pill-soon {
  background: #ecedef;
  color: #5b636e;
}

/* ---------- principles ---------- */

.principle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.principle-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(47, 111, 78, 0.1);
  margin-bottom: 12px;
}
.principle-icon .icon {
  width: 22px;
  height: 22px;
}
.principle-list h3 {
  margin: 0 0 5px;
  font-size: 17px;
}
.principle-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ---------- app detail / prose ---------- */

.app-page,
.prose {
  padding: 46px 0 70px;
}
.crumbs {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ink-soft);
}
.crumbs a {
  color: var(--ink-soft);
}
.app-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 26px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.app-head h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 8px;
}
.app-head .lede {
  margin: 0 0 12px;
}
.block {
  max-width: 720px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.block:last-of-type {
  border-bottom: none;
}
.block h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.block p {
  margin: 0;
  color: var(--ink-soft);
}
.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.ticks li {
  position: relative;
  padding-left: 27px;
  color: var(--ink-soft);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 12px;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg) translateY(-2px);
}
.app-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.prose {
  max-width: 100%;
}
.prose .wrap {
  max-width: 760px;
}
.prose h1 {
  font-size: clamp(30px, 4.4vw, 42px);
  margin-bottom: 16px;
}
.prose h2 {
  margin: 34px 0 10px;
  font-size: 22px;
}
.prose p {
  color: var(--ink-soft);
}

/* ---------- about me ---------- */

.about-me {
  margin-bottom: 8px;
  overflow: hidden; /* contain the floated photo so following content clears it */
}
.about-me-photo {
  float: left;
  width: 240px;
  max-width: 45%;
  height: auto;
  margin: 4px 26px 12px 0; /* space to the right + below for text to wrap around */
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
}
.about-me h1 {
  margin-top: 0;
}
.about-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0 8px;
}

@media (max-width: 560px) {
  /* On narrow screens, stop wrapping — photo on top, text full width below. */
  .about-me-photo {
    float: none;
    display: block;
    width: 200px;
    max-width: 60%;
    margin: 0 0 18px;
  }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 30px 0;
  margin-top: auto;
}
.footer-inner p {
  margin: 0 0 4px;
  font-size: 15px;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .hero {
    padding: 52px 0 44px;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .site-nav {
    gap: 16px;
  }
  .app-head {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

/* ===================== auth: header area ===================== */

.auth-area {
  display: flex;
  align-items: center;
  gap: 9px;
}
.btn-sm {
  padding: 8px 14px;
  font-size: 14px;
}
.inline-form {
  display: inline;
  margin: 0;
}
.avatar-link {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
}
.avatar-link:hover {
  background: #f3efe8;
}
.avatar {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.avatar.lg {
  width: 62px;
  height: 62px;
  font-size: 22px;
}
.avatar-name {
  font-size: 14.5px;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===================== auth: forms ===================== */

.auth-wrap {
  padding: 52px 20px 70px;
  display: flex;
  justify-content: center;
}
.auth-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.auth-card h1 {
  font-size: 28px;
  margin: 0 0 6px;
}
.auth-card > .muted {
  margin: 0 0 20px;
  font-size: 15.5px;
}
.auth-card label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0 6px;
}
.auth-card .optional {
  font-weight: 400;
  color: var(--ink-soft);
}
.auth-card form {
  width: 100%;
}
.auth-card input {
  display: block;
  width: 100%;
  min-width: 0; /* stops the browser's intrinsic input width winning */
  box-sizing: border-box;
  padding: 11px 13px;
  font-size: 16px; /* 16px avoids mobile zoom-on-focus */
  border: 1px solid #d8d0c2;
  border-radius: 10px;
  background: #fffdfa;
  color: var(--ink);
  font-family: inherit;
}
/* Email addresses are long — let it use every pixel of the form. */
.auth-card input[type="email"] {
  width: 100%;
  text-overflow: ellipsis;
}
.auth-card input:focus {
  border-color: var(--accent);
}
.auth-card input[aria-invalid="true"] {
  border-color: #c0392b;
  background: #fff8f7;
}
.btn-block {
  width: 100%;
  margin-top: 22px;
  text-align: center;
}
.hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.field-error {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: #b03a2e;
  font-weight: 600;
}
.fineprint {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
}
.auth-alt {
  margin: 18px 0 0;
  text-align: center;
  font-size: 15px;
}

.notice {
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 14.5px;
  margin: 0 0 18px;
  border: 1px solid transparent;
}
.notice-ok {
  background: #e7f6ec;
  border-color: #bfe3cc;
  color: #1c6b41;
}
.notice-bad {
  background: #fdeceb;
  border-color: #f3c8c4;
  color: #a5332a;
}

/* social sign-in */

.social-block {
  margin: 4px 0 0;
}
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--surface);
  border: 1px solid #d8d0c2;
  color: var(--ink);
  padding: 11px 16px;
}
.btn-social:hover {
  border-color: #bdb3a1;
}
.btn-social.btn-disabled:hover {
  border-color: var(--line);
}
.gicon {
  width: 19px;
  height: 19px;
  flex: none;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 2px;
  color: var(--ink-soft);
  font-size: 13px;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ===================== profile ===================== */

.profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.profile-head h1 {
  margin: 0 0 4px;
  font-size: clamp(26px, 4vw, 34px);
}
.profile-head .muted {
  margin: 0;
  font-size: 15px;
}
.profile-list {
  margin: 0;
  padding: 0;
}
.prow {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.prow dt {
  flex: 0 0 150px;
  font-weight: 600;
  font-size: 15px;
}
.prow dd {
  margin: 0;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .auth-area {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
  .avatar-name {
    max-width: 100px;
  }
  .auth-card {
    padding: 22px;
  }
  .prow {
    flex-direction: column;
    gap: 2px;
  }
  .prow dt {
    flex-basis: auto;
  }
}
