/* Still Going — stillgoingapp.com
   The app's palette: forest ink on the fog, the forest photo, white glass. */

:root {
  color-scheme: light;

  --forest-deep: #1b2b21;  /* LaunchBackground */
  --forest-ink: #2f4e48;   /* forestText */
  --ink: #0b1a12;          /* primaryText */
  --muted: #5f6d69;        /* mutedText, darkened to keep 4.5:1 on white */
  --fog: #f4f7f6;          /* greenBckg */
  --mist: #e4eae8;         /* mainGrayBckg */
  --card: #ffffff;
  --line: rgba(47, 78, 72, 0.14);
  --link-underline: rgba(47, 78, 72, 0.35);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--fog);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
}

/* MARK: - Home */

.home {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(
      180deg,
      rgba(244, 247, 246, 0.82) 0%,
      rgba(244, 247, 246, 0.35) 34%,
      rgba(27, 43, 33, 0) 52%,
      rgba(27, 43, 33, 0.55) 82%,
      rgba(27, 43, 33, 0.85) 100%
    ),
    url("/assets/forest.jpg") center top / cover no-repeat var(--forest-deep);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: max(12vh, 72px) 24px 40px;
  text-align: center;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 900ms var(--ease-out) both;
}

.hero-icon {
  width: clamp(88px, 22vw, 112px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(27, 43, 33, 0.28));
}

.hero h1 {
  margin: 28px 0 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 9vw, 64px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--forest-deep);
}

.tagline {
  margin: 14px 0 0;
  font-size: clamp(17px, 3.6vw, 21px);
  line-height: 1.45;
  color: var(--forest-ink);
}

.soon {
  margin: 0;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 590;
  letter-spacing: 0.01em;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 30px rgba(27, 43, 33, 0.25);
  animation: rise 900ms 180ms var(--ease-out) both;
}

.soon a {
  text-decoration: none;
}

.home .site-footer {
  color: rgba(255, 255, 255, 0.86);
  animation: fade 900ms 320ms var(--ease-out) both;
}

/* MARK: - Documents */

.document {
  position: relative;
}

/* The forest band behind the masthead; the sheet rises over its lower half. */
.document::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 260px;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(27, 43, 33, 0.3) 0%, rgba(27, 43, 33, 0.62) 100%),
    url("/assets/forest.jpg") center 38% / cover no-repeat var(--forest-deep);
}

.masthead {
  max-width: 820px;
  margin: 0 auto;
  height: 96px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(27, 43, 33, 0.35);
}

.brand img {
  width: 36px;
  height: 36px;
}

.language {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 590;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background 240ms var(--ease-out);
}

.language:hover {
  background: rgba(255, 255, 255, 0.26);
}

.sheet {
  max-width: 820px;
  margin: 64px auto 0;
  padding: clamp(28px, 6vw, 64px) clamp(22px, 7vw, 80px) clamp(36px, 6vw, 72px);
  background: var(--card);
  border-radius: 28px;
  box-shadow:
    0 1px 2px rgba(27, 43, 33, 0.06),
    0 24px 60px rgba(27, 43, 33, 0.12);
  animation: rise 700ms var(--ease-out) both;
}

.sheet h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.1;
  color: var(--forest-deep);
}

.sheet .updated {
  margin: 10px 0 32px;
  font-size: 15px;
  color: var(--muted);
}

.sheet .updated strong {
  font-weight: 500;
}

.sheet h2 {
  margin: 48px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--forest-ink);
  scroll-margin-top: 24px;
}

.sheet h3 {
  margin: 32px 0 8px;
  font-size: 18px;
  font-weight: 650;
  color: var(--forest-ink);
}

.sheet p,
.sheet ul,
.sheet ol {
  margin: 0 0 16px;
}

.sheet ul,
.sheet ol {
  padding-left: 1.3em;
}

.sheet li {
  margin-bottom: 8px;
}

.sheet li::marker {
  color: var(--forest-ink);
}

.sheet a {
  color: var(--forest-ink);
  text-decoration-line: underline;
  text-decoration-color: var(--link-underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: text-decoration-color 200ms var(--ease-out);
}

.sheet a:hover {
  text-decoration-color: currentColor;
}

.sheet strong {
  font-weight: 650;
}

.sheet code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--mist);
}

.table-scroll {
  margin: 8px 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 16px;
  /* A soft shadow on the side that still scrolls, so a hidden column is seen. */
  background:
    linear-gradient(to right, var(--card) 30%, rgba(255, 255, 255, 0)) left / 40px 100% no-repeat local,
    linear-gradient(to left, var(--card) 30%, rgba(255, 255, 255, 0)) right / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(27, 43, 33, 0.14), transparent) left / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(27, 43, 33, 0.14), transparent) right / 14px 100% no-repeat scroll;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 650;
  color: var(--forest-ink);
  background: var(--fog);
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* A field still to fill in legal/: visible so it is never published unnoticed. */
.placeholder {
  padding: 1px 6px;
  border-radius: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85em;
  color: #7a4a00;
  background: #ffe9b3;
}

.document .site-footer {
  color: var(--muted);
}

/* MARK: - Footer */

.site-footer {
  padding: 28px 24px max(32px, env(safe-area-inset-bottom));
}

.site-footer ul {
  margin: 0 auto;
  padding: 0;
  max-width: 820px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 14px;
}

.site-footer a {
  text-decoration: none;
  transition: opacity 200ms var(--ease-out);
}

.site-footer a:hover {
  opacity: 0.7;
}

/* MARK: - Focus and motion */

a:focus-visible {
  outline: 2px solid var(--forest-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.home a:focus-visible,
.masthead a:focus-visible {
  outline-color: #fff;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
