/* BlogBook — https://blogbook.my */
/* Professional, fun, modern — Outfit from Google Fonts */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --font-sans:
    "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --color-bg: #fefcff;
  --color-surface: #fff;
  --color-text: #514659;
  --color-text-muted: #797080;
  --color-accent: #a02172;
  --color-accent-hover: #e14577;
  --color-border: #cdd4c3;
  --color-success: #588157;
  --color-error: #dc2626;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

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

/* Header & nav */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.site-header .wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-logo {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.site-logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  text-decoration: none;
}

.site-logo a:hover {
  color: var(--color-accent);
}

.site-logo-icon {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}

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

.site-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

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

/* Main content */
.main {
  flex: 1;
  padding: 2rem 1.5rem 3rem;
}

.main .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

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

/* Buttons & links */
a {
  color: var(--color-accent);
}

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

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

/* Forms */
form {
  max-width: 420px;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.form-error {
  font-size: 0.85rem;
  color: var(--color-error);
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

.form-message-success {
  background: #ecfdf5;
  border-color: var(--color-success);
  color: #065f46;
}

.form-message-error {
  background: #fef2f2;
  border-color: var(--color-error);
  color: #991b1b;
}

input.invalid,
textarea.invalid {
  border-color: var(--color-error);
}

/* Cards / sections */
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

/* Footer */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem;
  margin-top: auto;
}

.site-footer .wrap {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

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

.site-footer a:hover {
  color: var(--color-accent);
}

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

.hero-logo {
  width: 256px;
  height: 256px;
  max-width: 100%;
  margin: 0 auto 1rem;
  display: block;
}

.hero h1 {
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.hero .lead {
  margin-bottom: 2rem;
}

.hero-export {
  margin: 2rem auto;
  max-width: 100%;
}

.hero-export img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  /* border: 1px solid var(--color-border); */
  /* box-shadow: var(--shadow); */
}

.hero-app-store {
  display: inline-block;
  /* margin-top: 1.5rem; */
}

.hero-app-store img {
  display: block;
  height: 80px;
  max-width: 350px;
  width: auto;
}

/* Doc page */
.doc-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  /* border: 1px solid var(--color-border); */
  margin: 1rem 0;
}

.doc-content code {
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: var(--color-border);
  border-radius: 4px;
}

.doc-content figure {
  margin: 1.5rem 0;
}

.doc-content figcaption {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  width: 100%;
  text-align: center;
}

.doc-content .placeholder-img {
  background: var(--color-border);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

/* Legal / privacy */
.legal-content,
.privacy-content {
  font-size: 0.95rem;
}

.legal-content ul,
.privacy-content ul {
  margin: 0.5rem 0 1rem 1.25rem;
}

/* Responsive */
@media (max-width: 640px) {
  html {
    font-size: 16px;
  }
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav ul {
    gap: 0.5rem;
  }
  .hero h1 {
    font-size: 1.85rem;
  }
  .main {
    padding: 1.5rem 1rem 2rem;
  }
}

@media (min-width: 641px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

.site-logo-icon {
  top: 6px;
  pso:;
  position:;
}
figure {
  max-width: 100%;
}
img {
  max-width: 100%;
}
