/* ilovephoto.in — shared styles for every page */
:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #f1f2f0;
  --text: #17191e;
  --muted: #5a6170;
  --faint: #8a909c;
  --line: #e3e5e8;
  --accent: #c8244a;
  --accent-hover: #a91c3d;
  --accent-soft: #fcebef;
  --ok: #157a55;
  --ok-soft: #e6f4ee;
  --warn: #9a5a07;
  --warn-soft: #fdf3e2;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111317; --surface: #1a1d23; --surface-2: #22262d; --text: #eceef1;
    --muted: #a3a9b5; --faint: #7c8390; --line: #2c3139;
    --accent: #ff5c7f; --accent-hover: #ff7a95; --accent-soft: #3a1d25;
    --ok: #4cc493; --ok-soft: #173327; --warn: #f0b25a; --warn-soft: #3a2c15;
    --shadow: none;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.12rem; letter-spacing: -.3px; white-space: nowrap; }
.brand .heart { color: var(--accent); }
.brand small { font-weight: 500; color: var(--faint); font-size: .78rem; letter-spacing: 0; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; padding: 7px 12px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-2); }
@media (max-width: 640px) {
  .site-header .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 6px; }
  .brand small { display: none; }
  .nav { margin-left: 0; width: 100%; overflow-x: auto; }
  .nav a { padding: 6px 10px; font-size: .85rem; white-space: nowrap; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 64px; padding: 36px 0 28px; font-size: .88rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); margin: 0 0 10px; font-weight: 700; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--faint); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: .92rem; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--faint); color: var(--text); }
.btn-secondary:disabled { opacity: .45; cursor: not-allowed; }
.btn-small { padding: 6px 12px; font-size: .82rem; border-radius: 8px; }

/* Content pages */
.page { padding-top: 40px; padding-bottom: 8px; }
.crumbs { font-size: .84rem; color: var(--faint); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -.8px; margin: 0 0 14px; }
.lede { font-size: 1.1rem; color: var(--muted); margin: 0 0 18px; }
.meta { font-size: .82rem; color: var(--faint); margin-bottom: 28px; }
.prose h2 { font-size: 1.4rem; letter-spacing: -.3px; margin: 40px 0 12px; line-height: 1.25; }
.prose h3 { font-size: 1.08rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--faint); }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 28px; font-size: .92rem; }
.toc strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

.spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 22px 0; overflow: hidden; box-shadow: var(--shadow); }
.spec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.spec-head h3 { margin: 0; font-size: 1rem; }
.spec table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.spec th, .spec td { text-align: left; padding: 10px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 38%; color: var(--muted); font-weight: 500; }
.spec td { font-weight: 600; }
.spec td small { display: block; font-weight: 400; color: var(--muted); }

.answer { border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; margin: 0 0 18px; box-shadow: var(--shadow); }
.answer > strong { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .6px; color: var(--accent); margin-bottom: 4px; }
.answer p { margin: 0; }
.note { border-radius: var(--radius); padding: 14px 18px; margin: 22px 0; font-size: .94rem; border: 1px solid var(--line); background: var(--surface); }
.note > strong { display: block; margin-bottom: 2px; }
.note p { margin: 4px 0 0; }
.note-warn { background: var(--warn-soft); border-color: transparent; }
.note-ok { background: var(--ok-soft); border-color: transparent; }
.note-accent { background: var(--accent-soft); border-color: transparent; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 28px 0; }
.cta p { margin: 0; font-weight: 600; }
.cta span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }

.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 16px 0 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-table th, .data-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.data-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding: 2px 0 10px 40px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--faint); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 18px 14px; color: var(--muted); }
.faq details > div p { margin: 0 0 8px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 14px 0 8px; }
.card-link { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--accent); color: var(--text); }
.card-link strong { display: block; font-size: .98rem; }
.card-link span { display: block; font-size: .84rem; color: var(--muted); margin-top: 2px; }
.section-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); font-weight: 700; margin: 30px 0 4px; }

.sources { font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 36px; padding-top: 14px; }
.sources ul { padding-left: 18px; }

/* Forms (contact) */
.form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-status { font-size: .9rem; }
