/* ============================================================================
   Shared stylesheet for every page on easyphotoshow.com:
   index.html, organization.html, privacy.html, refund.html, eula.html.

   Everything in here is used by more than one page — the palette, the type
   scale, the buttons, the small print, the footer. Page-specific layout (the
   home page's hero, step grid and screenshot row) stays in index.html's own
   <style> block, which loads AFTER this file and can therefore override
   anything below it.

   Colours and fonts are declared once, as custom properties on :root. Change a
   value there and all five pages follow. Do not hard-code a hex value anywhere
   else, including inside index.html — silent drift between the home page and
   the rest of the site is exactly what this file exists to prevent.
   ========================================================================= */

:root {
    --bg: #F5F2EE;
    --surface: #FFFFFF;
    --text: #1A1714;
    --muted: #6B6560;
    --accent: #8B6F3F;
    --accent-hover: #7A6035;
    --border: #E8E2D9;
    --accent-tint: rgba(139, 111, 63, 0.12);
    --accent-shadow: rgba(139, 111, 63, 0.08);

    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-head: 'Lora', Georgia, serif;
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }

h1, h2 {
    font-family: var(--font-head);
    color: var(--text);
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--surface);
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-body);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-arrow { margin-right: 10px; font-weight: 400; }

/* Purchase action. Same component and same gold as .btn, outlined rather than
   filled so the free download stays the dominant choice. Vertical/horizontal
   padding is reduced by exactly the 2px border so both buttons render at
   identical height and sit flush beside each other. */
.btn-buy {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 16px 38px;
}
.btn-buy:hover { background: var(--accent); color: var(--surface); }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

/* ----- Small print ----- */
.quiet {
    font-size: 14px;
    color: var(--muted);
    margin: 16px 0 0;
}
/* Inline links in small print use the accent so they're findable without
   competing with a button. The underline is the browser default. */
.quiet a { color: var(--accent); }

/* Tertiary action: a plain text link that sits below the buttons. Deliberately
   not a .btn variant — it should read as a third, quieter option. */
.tertiary-link {
    margin: 18px 0 0;
    font-size: 15px;
}
.tertiary-link a { color: var(--accent); text-decoration: underline; }
.tertiary-link a:hover { color: var(--accent-hover); }

/* ----- Persistent site header on the legal / info pages -----
   index.html has no wordmark text of its own (its branding is the icon image
   plus an h1), so this uses the site heading face, Lora, at a size that reads
   as chrome rather than as a page title. The inner wrapper matches
   .legal-body's 720px column so the wordmark's left edge lines up exactly with
   the prose beneath it: the page then has one continuous left margin instead of
   a centred block sitting on top of left-aligned text. */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.site-header-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 24px;
}
.wordmark {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s ease;
}
.wordmark:hover { color: var(--accent); }

/* ----- Legal / info page title block ----- */
.legal-header {
    text-align: left;
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 0;
    background: var(--bg);
}
.legal-header h1 { font-size: 34px; line-height: 1.2; }
.legal-header .product {
    font-size: 17px;
    color: var(--muted);
    margin: 10px 0 0;
}
.legal-header .updated {
    font-size: 14px;
    color: var(--muted);
    margin: 14px 0 0;
}

/* ----- Legal / info page body -----
   text-align is left (inherited from body). Stated explicitly here so a future
   edit to .legal-header's alignment cannot accidentally centre the prose. */
.legal-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px 72px;
    text-align: left;
}
.legal-body h2 {
    font-size: 22px;
    margin: 42px 0 14px;
}
.legal-body > h2:first-child { margin-top: 0; }
.legal-body p {
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 18px;
}
.legal-body strong { font-weight: 700; }
.legal-body a { color: var(--accent); }

/* Lettered clauses, e.g. "a) redistribute...". list-style is suppressed because
   the markers are part of the source text and must be reproduced exactly. */
.clauses {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}
.clauses li {
    font-size: 17px;
    line-height: 1.7;
    padding-left: 28px;
    text-indent: -28px;
    margin-bottom: 10px;
}

/* Block of capitalised statutory text (warranty / liability disclaimers). */
.legal-body p.caps { line-height: 1.65; }

/* Centred call-to-action block used on organization.html. */
.cta-block { text-align: center; margin: 36px 0 8px; }

/* ----- Footer ----- */
footer {
    padding: 44px 24px 56px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    background: var(--bg);
}
footer .name { color: var(--text); font-weight: 700; font-size: 15px; }
footer .tagline { margin-top: 4px; }
footer .legal-links { margin-top: 10px; }
footer .legal-links a { color: var(--muted); text-decoration: underline; }
footer .legal-links a:hover { color: var(--accent); }

/* ----- Responsive: shared components ----- */
@media (max-width: 480px) {
    .site-header-inner { padding: 16px 20px; }
    .wordmark { font-size: 18px; }
    .legal-header { padding: 32px 20px 0; }
    .legal-header h1 { font-size: 27px; }
    .legal-body { padding: 26px 20px 56px; }
    .legal-body h2 { font-size: 20px; margin: 34px 0 12px; }
    .legal-body p, .clauses li { font-size: 16.5px; }
    .btn { display: block; width: 100%; padding: 18px 24px; }
    .btn-buy { padding: 16px 22px; }
    .btn-row { flex-direction: column; align-items: stretch; gap: 12px; }
}
