/* MuslimaDaily — gaya bersama situs. Ponsel dulu, tanpa JavaScript. */

:root {
  --rose: #a0525d;
  --rose-deep: #8e4350;
  --cream: #f7efec;
  --peach: #f4cdbe;
  --sage: #a9c6a0;

  --bg: var(--cream);
  --surface: #fffaf8;
  --text: #3b2a2e;
  --muted: #6e5a5e;
  --heading: var(--rose-deep);
  --link: var(--rose-deep);
  --border: #e8d6d0;
  --accent-soft: #fbe6dd;
  --sage-soft: #e5efe1;
  --focus: var(--rose);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1719;
    --surface: #2b2023;
    --text: #f2e6e3;
    --muted: #c9b5b1;
    --heading: #f1b9ad;
    --link: var(--peach);
    --border: #46353a;
    --accent-soft: #3a2a2e;
    --sage-soft: #26302a;
    --focus: var(--peach);
  }
}

*,
*::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: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  overflow-wrap: break-word;
}

@media (min-width: 48rem) {
  body {
    font-size: 1.125rem; /* 18px */
  }
}

img {
  max-width: 100%;
  height: auto;
}

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

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

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

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.25;
  font-weight: 800;
}

h1 {
  font-size: 1.9rem;
  margin: 0.5rem 0 0.5rem;
}

h2 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.6rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.4rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

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

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* Kepala halaman */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--heading);
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.lang-switch {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Dokumen (privasi, syarat) */
.doc {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem 0.5rem;
  margin: 1.5rem 0 1rem;
}

.toc-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.toc li + li {
  margin-top: 0.2rem;
}

section {
  scroll-margin-top: 1rem;
}

.google-statement {
  display: block;
  background: var(--sage-soft);
  border-left: 4px solid var(--sage);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}

/* Beranda */
.hero {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}

.hero-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(142, 67, 80, 0.25);
}

.tagline {
  font-size: 1.2rem;
  color: var(--text);
  max-width: 32rem;
  margin: 0 auto 1rem;
}

.lang-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.lang-tabs li + li {
  margin-top: 0;
}

.lang-tabs a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.lang-block {
  padding: 1rem 0 2rem;
  scroll-margin-top: 1rem;
}

.lang-block + .lang-block {
  border-top: 1px solid var(--border);
}

.features {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

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

.features strong {
  display: block;
  color: var(--heading);
}

@media (min-width: 40rem) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

.promise {
  background: var(--accent-soft);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}

.promise h3 {
  margin-top: 0;
}

.promise p:last-child {
  margin-bottom: 0;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1rem 0;
}

.store {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  border: 1px dashed var(--rose);
  color: var(--heading);
  font-weight: 600;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 0;
  list-style: none;
}

.doc-links li + li {
  margin-top: 0;
}

/* Kaki halaman */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
  padding: 1.25rem 0 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 0.5rem;
}

.site-footer p {
  margin: 0;
}

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