/* Manda Newsum — one-page site
   Palette: cream page, honey primary, lavender + leaf accents. */
:root {
    --bg: #fdf8ef;
    --bg-soft: #f6ecda;
    --bg-lavender: #efeaf8;
    --text: #2b2620;
    --text-mid: #4f4639;
    --text-light: #6f6557;
    --honey: #d99a2b;
    --honey-deep: #a9701a;
    --honey-dark: #7f5210;
    --lavender: #8a7fcf;
    --lavender-deep: #5f52a8;
    --leaf: #5f8a4e;
    --border: #e9dcc3;
    --shadow: 0 10px 30px rgba(77, 56, 20, 0.12);
    --radius: 18px;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--honey-deep); text-decoration: none; }
a:hover { color: var(--honey-dark); text-decoration: underline; }

.container { width: min(var(--max), 100% - 2.5rem); margin: 0 auto; }
.container.narrow { max-width: 720px; }

.skip-link {
    position: absolute; left: -999px; top: 0.5rem; padding: 0.5rem 1rem;
    background: var(--text); color: #fff; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 0.5rem; }

/* Nav */
.navbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(253, 248, 239, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(233, 220, 195, 0.7);
}
.nav-container {
    width: min(var(--max), 100% - 2.5rem); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    min-height: 64px; gap: 1rem;
}
.nav-logo {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
    color: var(--text); letter-spacing: 0.01em;
}
.nav-logo:hover { text-decoration: none; color: var(--honey-deep); }
.logo-mark { width: 30px; height: 30px; color: var(--honey); }
.nav-menu { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.nav-link { font-weight: 600; color: var(--text-mid); font-size: 0.95rem; }
.nav-link:hover { color: var(--honey-deep); text-decoration: none; }

/* Hero */
.hero {
    position: relative; min-height: min(88vh, 820px);
    display: grid; align-items: center; overflow: hidden;
    background: var(--bg-soft);
}
.hero-media, .hero-media img {
    position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-media img { object-fit: cover; object-position: 62% 50%; }
.hero-veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(253, 248, 239, 0.92) 0%, rgba(253, 248, 239, 0.72) 38%, rgba(253, 248, 239, 0.05) 70%),
        linear-gradient(0deg, rgba(253, 248, 239, 0.9) 0%, rgba(253, 248, 239, 0) 30%);
}
.hero-content {
    position: relative; z-index: 1;
    width: min(var(--max), 100% - 2.5rem); margin: 0 auto;
    padding: 6rem 0 5rem; max-width: var(--max);
}
.hero-eyebrow {
    margin: 0 0 0.5rem; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; font-size: 0.8rem; color: var(--honey-deep);
}
.hero-title {
    margin: 0; font-family: var(--font-display); font-weight: 500;
    font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 1.02; letter-spacing: -0.01em;
    color: var(--text);
}
.hero-social {
    display: inline-flex; align-items: center; gap: 0.45rem;
    margin-top: 1rem; padding: 0.4rem 0.95rem 0.4rem 0.75rem;
    border-radius: 999px; background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(169, 112, 26, 0.35);
    color: var(--honey-dark); font-weight: 700; font-size: 0.95rem;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.hero-social svg { width: 18px; height: 18px; }
.hero-social:hover { background: #fff; color: var(--honey-dark); text-decoration: none; transform: translateY(-1px); }

.hero-tagline {
    margin: 1rem 0 2rem; font-family: var(--font-display); font-style: italic; font-weight: 300;
    font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: var(--text-mid); max-width: 26ch;
}

/* Buttons */
.btn {
    display: inline-block; padding: 0.8rem 1.6rem; border-radius: 999px;
    font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--honey); color: #2b2620; box-shadow: 0 6px 18px rgba(217, 154, 43, 0.35); }
.btn-primary:hover { background: #e3a53a; color: #2b2620; }
.btn-outline { border: 2px solid var(--lavender-deep); color: var(--lavender-deep); background: #fff; }
.btn-outline:hover { background: var(--lavender-deep); color: #fff; }

/* Sections */
.section { padding: 5.5rem 0; }
.section-eyebrow {
    margin: 0 0 0.6rem; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; font-size: 0.78rem; color: var(--lavender-deep);
}
.section h2 {
    margin: 0 0 1.25rem; font-family: var(--font-display); font-weight: 500;
    font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; color: var(--text);
}
.lead { font-size: 1.25rem; color: var(--text-mid); }
.intro p:last-child { margin-bottom: 0; }

.intro { background: var(--bg); }

/* Gallery */
.gallery { background: var(--bg-lavender); }
.gallery-grid {
    display: grid; gap: 1.25rem;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    margin-top: 2.5rem;
}
.tile {
    margin: 0; position: relative; overflow: hidden; border-radius: var(--radius);
    box-shadow: var(--shadow); background: #fff;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1.1rem 0.9rem;
    color: #fff; font-weight: 600; font-size: 0.95rem;
    background: linear-gradient(0deg, rgba(30, 22, 10, 0.72), rgba(30, 22, 10, 0));
}
.tile-tall { grid-row: span 2; }
.tile-wide { grid-column: span 2; }

/* Soon */
.soon {
    text-align: center;
    background:
        radial-gradient(60% 80% at 15% 20%, rgba(217, 154, 43, 0.18), transparent 60%),
        radial-gradient(50% 70% at 85% 80%, rgba(138, 127, 207, 0.2), transparent 60%),
        var(--bg);
}
.soon .lead { margin-bottom: 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; align-items: center; }
.btn-icon { display: inline-flex; align-items: center; gap: 0.55rem; }
.btn-icon svg { width: 20px; height: 20px; flex: none; }

/* Footer */
.footer {
    background: var(--text); color: #e9dfcf; padding: 2.5rem 0; font-size: 0.9rem;
    text-align: center;
}
.footer p { margin: 0.4rem 0; }
.footer a { color: #f3d79a; }
.footer a:hover { color: #fff; }
.credits { color: #b9ae9c; font-size: 0.82rem; max-width: 760px; margin-left: auto; margin-right: auto; }
.family { margin-top: 1rem; color: #b9ae9c; }

/* Scroll-in animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .tile img { transition: none; }
}

/* Apps hub (apps/index.html) */
.nav-link.active { color: var(--honey-deep); }
.apps-hero {
    text-align: center; padding: 5rem 0 3.5rem;
    background:
        radial-gradient(60% 80% at 15% 20%, rgba(217, 154, 43, 0.22), transparent 60%),
        radial-gradient(50% 70% at 85% 80%, rgba(138, 127, 207, 0.24), transparent 60%),
        var(--bg-soft);
    border-bottom: 1px solid var(--border);
}
.apps-hero h1 {
    margin: 0 0 0.75rem; font-family: var(--font-display); font-weight: 500;
    font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.05; color: var(--text);
}
.apps-hero .lead { margin: 0 auto; max-width: 34ch; }
.apps { padding-top: 3.5rem; }
.apps-hint { text-align: center; font-size: 0.88rem; color: var(--text-light); margin: 0 0 1.5rem; }
@media (hover: none) { .apps-hint { display: none; } }
.apps-grid {
    display: grid; gap: 1.4rem;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.app-tile {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    min-height: 200px; padding: 2.1rem 1.4rem 1.6rem;
    background: #fff; color: var(--text); border-radius: var(--radius);
    border: 2px solid transparent; box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.app-tile:hover { text-decoration: none; color: var(--text); transform: translateY(-4px); border-color: var(--honey); box-shadow: 0 14px 34px rgba(169, 112, 26, 0.2); }
.app-tile:focus-visible { outline: 3px solid var(--lavender-deep); outline-offset: 2px; }
.app-tile[draggable="true"] { cursor: grab; }
.app-tile.dragging { opacity: 0.4; cursor: grabbing; }
.app-tile.drag-over { border-color: var(--lavender-deep); transform: translateY(-2px); }
.app-tile.disabled { opacity: 0.65; cursor: default; }
.app-tile.disabled:hover { transform: none; border-color: transparent; box-shadow: var(--shadow); }
.app-tile-icon {
    width: 64px; height: 64px; border-radius: 16px; margin-bottom: 1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.08);
}
.app-tile-icon svg { width: 32px; height: 32px; }
.app-tile-icon.instagram { background: linear-gradient(135deg, var(--lavender-deep) 0%, #c86a8b 55%, var(--honey) 100%); }
.app-tile-icon.gallery { background: linear-gradient(135deg, var(--leaf) 0%, #9bc37a 100%); }
.app-tile-icon.links { background: linear-gradient(135deg, var(--honey-deep) 0%, var(--honey) 100%); }
.app-tile-icon.health { background: linear-gradient(135deg, #b85c7a 0%, var(--lavender) 100%); }
.tiles-back {
    display: inline-block; margin-bottom: 1.25rem; font-weight: 700; font-size: 0.95rem;
    color: var(--lavender-deep);
}
.tiles-back:hover { color: var(--honey-dark); }
.app-tile-icon.coming-soon { background: linear-gradient(135deg, #b9ae9c 0%, #e2d8c6 100%); }
.app-tile-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.2; margin-bottom: 0.3rem; }
.app-tile-desc { font-size: 0.9rem; color: var(--text-light); line-height: 1.45; }
.app-badge {
    margin-top: 0.7rem; padding: 0.15rem 0.55rem; border-radius: 999px;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    background: var(--bg-lavender); color: var(--lavender-deep);
}
.external-banner {
    position: absolute; top: 0; left: 0; right: 0; padding: 0.25rem 0;
    background: var(--bg-soft); color: var(--text-light);
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}

/* Responsive */
@media (max-width: 900px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
    .tile-wide { grid-column: span 2; }
}
@media (max-width: 700px) {
    .section { padding: 4rem 0; }
    .apps-hero { padding: 3.5rem 0 2.5rem; }
    .apps-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .app-tile { min-height: 170px; padding: 1.6rem 1rem 1.3rem; }
    .app-tile-icon { width: 52px; height: 52px; font-size: 1.5rem; }
    .app-tile-icon svg { width: 26px; height: 26px; }
    .hero { min-height: 78vh; }
    .hero-content { padding: 4.5rem 0 4rem; }
    .hero-veil {
        background:
            linear-gradient(0deg, rgba(253, 248, 239, 0.96) 0%, rgba(253, 248, 239, 0.8) 45%, rgba(253, 248, 239, 0.1) 85%);
    }
    .hero-media img { object-position: 70% 30%; }
    .nav-menu { gap: 1rem; }
    .nav-link { font-size: 0.88rem; }
    .nav-logo span { font-size: 1.1rem; }
}
@media (max-width: 520px) {
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
    .tile-tall { grid-row: span 1; }
    .tile-wide { grid-column: span 1; }
    .nav-menu li:nth-child(3) { display: none; }
}
