/* MindIsland — mindisland.net. The app's own palette: cream, sage, deep text. */

:root {
  --bg: #f8f5ef;
  --card: #ffffff;
  --border: #ece6da;
  --text: #263238;
  --muted: #5f6d6a;
  --sage: #a8c3a0;
  --sage-deep: #4a6e44;
  --sage-soft: #eaf1e8;
  --alert: #b3463b;
  --max: 46rem;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--sage-deep);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--card);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  z-index: 10;
}

/* Header */

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.98rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--sage-deep);
}

/* Content */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 1.5rem 0 0.5rem;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.2rem 0 0.6rem;
}

h3 {
  font-size: 1.08rem;
  margin: 1.6rem 0 0.4rem;
}

p,
ul {
  margin: 0.6rem 0;
}

ul {
  padding-left: 1.3rem;
}

li {
  margin: 0.35rem 0;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
}

.card h2,
.card h3 {
  margin-top: 0.2rem;
}

.crisis {
  border-color: #f0c9c3;
  background: #fff7f5;
}

.crisis strong {
  color: var(--alert);
}

/* Home */

.hero {
  text-align: center;
  padding: 2rem 0 0.5rem;
}

.hero img {
  width: 7rem;
  height: 7rem;
  border-radius: 1.6rem;
  box-shadow: 0 8px 24px rgba(38, 50, 56, 0.12);
}

.hero h1 {
  font-size: 2.4rem;
  margin-top: 1.25rem;
}

.features {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin: 1.5rem 0;
}

.features li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  margin: 0;
}

.features strong {
  display: block;
  margin-bottom: 0.2rem;
}

.store-note {
  text-align: center;
  color: var(--muted);
  background: var(--sage-soft);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  margin: 1.5rem auto;
  max-width: 30rem;
  font-weight: 600;
}

/* FAQ */

details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.8rem 1.1rem;
  margin: 0.6rem 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details[open] summary {
  margin-bottom: 0.4rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.site-footer p {
  margin: 0.3rem 0;
}

@media (max-width: 30rem) {
  h1 {
    font-size: 1.7rem;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
