/* Tulimea website styles.
   Palette: navy, cream and amber flame, from the logo files.
   Light and dark follow the phone or computer's own setting.
   No web fonts: the system font loads instantly and reads well everywhere. */

:root {
  color-scheme: light dark;

  --navy: #22344a;
  --ink: #1e2b3a;
  --cream: #fbf6ec;
  --flame: #f0a63e;
  --flame-deep: #de8e1f;
  --flame-light: #ffe2a6;

  --bg: var(--cream);
  --surface: #fffdf8;
  --text: var(--ink);
  --muted: #485868;          /* 6.9:1 on cream */
  --rule: #e6dccb;
  --link: var(--navy);
  --link-hover: #0f1c2b;
  --accent: var(--flame-deep);
  --badge-bg: var(--navy);
  --badge-text: #fefaf2;
  --focus: #1c5fd1;

  --radius: 18px;
  --measure: 40rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141c;
    --surface: #16202c;
    --text: #eef3f9;
    --muted: #b1bdca;        /* 9.6:1 on the dark background */
    --rule: #263445;
    --link: #f6c47a;
    --link-hover: #ffe2a6;
    --accent: #f2aa45;
    --badge-bg: #f2aa45;
    --badge-text: #0e141c;
    --focus: #8cb8ff;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
}

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

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Skip link: hidden until a keyboard user tabs to it. */
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  padding: 0.35rem 0;
}

.brand-icon {
  width: 2.25rem;
  height: 2.25rem;
}

.brand-word {
  width: 6.5rem;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.6rem 0.8rem;   /* 44-point touch target */
  min-height: 2.75rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
}

/* Home */

.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero-icon {
  width: 8rem;
  height: 8rem;
  margin: 0 auto 1.75rem;
  border-radius: 1.8rem;
  box-shadow: 0 12px 30px rgba(14, 20, 28, 0.18);
}

.hero h1 {
  margin: 0 auto;
  width: min(20rem, 80%);
}

.hero h1 img {
  width: 100%;
}

.lede {
  max-width: 34rem;
  margin: 1.75rem auto 0;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.45rem);
  line-height: 1.5;
}

.badge {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0 0 4rem;
  padding: 0;
}

.point {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.point svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.point h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.point p {
  margin: 0;
  color: var(--muted);
}

/* Text pages: privacy, support */

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.page h1 {
  font-size: clamp(2rem, 1.6rem + 2vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.page h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.page h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.25rem;
}

.page p,
.page li {
  max-width: var(--measure);
}

.page ul {
  padding-left: 1.25rem;
}

.page li + li {
  margin-top: 0.4rem;
}

.meta {
  color: var(--muted);
  margin: 0;
}

.summary {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.75rem 0 0;
}

.summary h2 {
  margin: 0 0 0.25rem;
  padding: 0;
  border: 0;
  font-size: 1.1rem;
}

.summary ul {
  margin: 0.25rem 0 0;
}

.toc {
  margin: 1.75rem 0 0;
}

.toc h2 {
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  padding: 0;
  border: 0;
}

.toc ol {
  columns: 2 14rem;
  column-gap: 2rem;
  padding-left: 1.4rem;
  margin: 0;
}

.contact {
  font-size: 1.15rem;
  font-weight: 600;
}

.faq h3 {
  margin-top: 1.75rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  display: inline-block;
  padding: 0.5rem 0;
  min-height: 2.75rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 30rem) {
  .hero {
    padding-top: 2.75rem;
  }
  .hero-icon {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 1.45rem;
  }
  .brand-word {
    display: none;
  }
  .site-nav a {
    padding: 0.6rem 0.6rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Text for screen readers only. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
