/* Mochipal website. Same palette and type as the app (src/constants/theme.ts). */
:root {
  --cream: #faf8f3;
  --white: #ffffff;
  --sage: #5b987c;
  --sage-dark: #467a62;
  --sage-soft: #e4eFe8;
  --sage-mist: #f1f6f2;
  --orange: #e8a66b;
  --orange-soft: #fbebdb;
  --orange-ink: #9c5a26;
  --rose-soft: #f9e3df;
  --rose-ink: #a84b38;
  --ink: #282c29;
  --stone-ink: #6e736c;
  --line: #eae8e1;
  --sand: #f3f0e8;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --measure: 42rem;
  --gutter: 1.25rem;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a {
  color: var(--sage-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--ink);
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  background: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  z-index: 10;
}

/* ---------- Header and footer ---------- */
.site-header,
.site-footer {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}
.brand img {
  width: 2.25rem;
  height: 2.25rem;
}
.site-nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--stone-ink);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  color: var(--stone-ink);
  font-size: 0.9rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-bottom: 0.75rem;
}

/* ---------- Document pages ---------- */
main {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.doc-head {
  padding: 2.5rem 0 1.5rem;
}
.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--sage-dark);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.1rem, 6vw, 2.9rem);
  margin: 0 0 0.75rem;
}
h2 {
  font-size: 1.55rem;
  margin: 2.75rem 0 0.75rem;
  scroll-margin-top: 1rem;
}
h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.5rem;
}
.updated {
  margin: 0;
  color: var(--stone-ink);
  font-size: 0.95rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}
li + li {
  margin-top: 0.35rem;
}
strong {
  font-weight: 650;
}

/* Callouts */
.summary,
.callout {
  border-radius: 20px;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}
.summary {
  background: var(--sage-mist);
  border: 1px solid var(--sage-soft);
}
.summary h2 {
  margin-top: 0;
  font-size: 1.25rem;
}
.summary ul {
  margin-bottom: 0;
}
.callout {
  background: var(--orange-soft);
  color: var(--ink);
}
.callout.warn {
  background: var(--rose-soft);
}
.callout p:last-child {
  margin-bottom: 0;
}

/* Contents */
.toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem 1.4rem;
  margin: 1.5rem 0 0.5rem;
  font-size: 0.95rem;
}
.toc ol {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
  columns: 2 14rem;
  column-gap: 2rem;
}
.toc li {
  break-inside: avoid;
}
.toc p {
  margin: 0;
  font-weight: 600;
}

/* Tables become stacked cards on narrow screens */
.table-wrap {
  margin: 1rem 0 1.5rem;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
th {
  background: var(--sand);
  font-weight: 650;
}
@media (max-width: 640px) {
  table,
  thead,
  tbody,
  tr,
  td {
    display: block;
  }
  thead {
    position: absolute;
    left: -9999px;
  }
  tr {
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
  }
  tr:last-child {
    border-bottom: 0;
  }
  td {
    border: 0;
    padding: 0.3rem 1rem;
  }
  td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--stone-ink);
  }
}

/* Steps on the deletion page */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem;
  margin-top: 1rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}

.button {
  display: inline-block;
  background: var(--sage-dark);
  color: var(--white);
  text-decoration: none;
  font-weight: 650;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
}
.button:hover {
  color: var(--white);
  background: var(--ink);
}

/* ---------- Home ---------- */
.hero {
  text-align: center;
  padding: 3.5rem 0 1rem;
}
.hero .mark {
  width: 6.5rem;
  height: 6.5rem;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  margin-bottom: 1rem;
}
.lede {
  font-size: 1.2rem;
  color: var(--stone-ink);
  max-width: 32rem;
  margin: 0 auto 1.75rem;
}
.badge {
  display: inline-block;
  background: var(--orange-soft);
  color: var(--orange-ink);
  font-weight: 650;
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}
.features li {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem 1.3rem;
}
.features h2 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
.features p {
  margin: 0;
  color: var(--stone-ink);
  font-size: 0.97rem;
}
.disclaimer {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--stone-ink);
  font-size: 0.92rem;
}

@media (max-width: 480px) {
  .site-nav {
    gap: 0.8rem;
    font-size: 0.9rem;
  }
  .brand span {
    display: none;
  }
}

@media print {
  .site-header nav,
  .toc,
  .skip {
    display: none;
  }
  body {
    background: #fff;
  }
}
