/* Tote This Way stylesheet
   Clean, modern, with a warm terracotta accent and a bold wordmark. */

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

:root {
    --bg:          #fbf7ee;
    --bg-soft:     #f3ecd9;
    --ink:         #1e2a22;
    --ink-soft:    #4a5250;
    --muted:       #6b7370;
    --green:       #2f5d4a;
    --green-bright:#3f8468;
    --clay:        #c55a38;
    --clay-soft:   #e28a6a;
    --line:        rgba(30, 42, 34, 0.12);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--green);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover, a:focus { color: var(--clay); text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.1;
    color: var(--ink);
    margin: 0 0 0.6em 0;
    letter-spacing: -0.015em;
    font-variation-settings: "SOFT" 50, "WONK" 0;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em 0; }

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--clay);
    margin-bottom: 1rem;
}

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(251, 247, 238, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-variation-settings: "SOFT" 80, "WONK" 1;
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
}
.brand em {
    font-style: italic;
    color: var(--clay);
    font-weight: 600;
}
.brand::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--clay);
    margin-left: 6px;
    transform: translateY(-10px);
}
.brand:hover { color: var(--green); text-decoration: none; }

.nav {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav a {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 500;
}
.nav a:hover { color: var(--clay); text-decoration: none; }
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 100px 0 90px;
    text-align: center;
    background:
      radial-gradient(ellipse 70% 60% at 50% 0%, rgba(197, 90, 56, 0.08), transparent 70%),
      linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
}
.hero::before {
    width: 320px; height: 320px;
    left: -120px; top: -80px;
    background: radial-gradient(circle, rgba(47, 93, 74, 0.22), transparent 70%);
}
.hero::after {
    width: 260px; height: 260px;
    right: -90px; bottom: -80px;
    background: radial-gradient(circle, rgba(197, 90, 56, 0.22), transparent 70%);
}

.hero .container { position: relative; z-index: 1; }

.wordmark {
    font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: clamp(3.6rem, 11vw, 7.5rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin: 0 0 18px;
    font-variation-settings: "SOFT" 90, "WONK" 1;
}
.wordmark .line { display: block; }
.wordmark em {
    font-style: italic;
    font-weight: 500;
    color: var(--clay);
    display: inline-block;
    position: relative;
}
.wordmark em::after {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    bottom: 6%;
    height: 10%;
    background: rgba(197, 90, 56, 0.22);
    border-radius: 2px;
    z-index: -1;
}

.tagline {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    color: var(--ink-soft);
    margin: 0 0 22px;
}

.hero .lede {
    max-width: 620px;
    margin: 0 auto 36px auto;
    font-size: 1.1rem;
    color: var(--ink-soft);
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--green);
    color: var(--bg);
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 0 rgba(30, 42, 34, 0.1);
}
.btn:hover, .btn:focus {
    background-color: var(--ink);
    color: var(--bg);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 42, 34, 0.15);
}
.btn.btn-ghost {
    background-color: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
    margin-left: 8px;
    box-shadow: none;
}
.btn.btn-ghost:hover {
    background-color: var(--clay);
    border-color: var(--clay);
    color: var(--bg);
}

/* ---------- Sections ---------- */
section { padding: 90px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head {
    max-width: 680px;
    margin: 0 auto 56px auto;
    text-align: center;
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
@media (min-width: 760px) {
    .about-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; }
}
.about-card {
    position: relative;
    background-color: #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 4px 24px rgba(30, 42, 34, 0.06);
    border-left: 4px solid var(--clay);
}
.about-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--clay);
    margin-bottom: 10px;
}
.about-card p { margin: 0; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.gallery-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(30, 42, 34, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    margin: 0;
    border: 1px solid var(--line);
}
.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(30, 42, 34, 0.12);
    border-color: var(--clay-soft);
}
.gallery-card .thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--bg-soft);
}
.gallery-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.gallery-card:hover .thumb img { transform: scale(1.03); }
.gallery-card .caption { padding: 20px 22px; }
.gallery-card .caption h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.2rem;
    margin: 0 0 4px 0;
    color: var(--ink);
    font-weight: 600;
}
.gallery-card .caption p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

/* ---------- Contact ---------- */
#contact {
    background-color: var(--bg-soft);
    position: relative;
}
.contact-card {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    background-color: #fff;
    padding: 56px 36px 42px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(30, 42, 34, 0.08);
    border-top: 6px solid var(--clay);
}
.contact-card h2 { margin-top: 0; }
.contact-card a.email {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Fraunces', serif;
    margin-top: 4px;
    color: var(--green);
    border-bottom: 2px solid var(--clay-soft);
    padding-bottom: 2px;
}
.contact-card a.email:hover {
    color: var(--clay);
    border-bottom-color: var(--clay);
    text-decoration: none;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-soft);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.socials a:hover {
    transform: translateY(-3px);
    background-color: var(--clay);
}
.socials img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.contact-meta {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
}
.contact-meta a { color: var(--green); font-weight: 500; }
.contact-meta a:hover { color: var(--clay); }

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--ink);
    color: #cfd6d2;
    padding: 48px 0;
    text-align: center;
    font-size: 0.92rem;
}
.site-footer .footer-brand {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.site-footer .footer-brand em { color: var(--clay-soft); font-style: italic; }
.site-footer .footer-links {
    margin: 14px 0 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.site-footer .footer-links a {
    color: #e7d9b8;
    font-weight: 500;
}
.site-footer .footer-links a:hover { color: #fff; }
.site-footer .footer-meta { color: #8a938e; font-size: 0.82rem; margin: 0; }

/* ---------- Privacy page ---------- */
.content-page { padding: 80px 0 100px 0; }
.content-page .container { max-width: 780px; }
.content-page h1 { margin-bottom: 24px; }
.content-page h2 {
    margin-top: 2em;
    font-size: 1.4rem;
    font-family: 'Fraunces', serif;
    color: var(--green);
}
.content-page ul { padding-left: 1.2em; margin-bottom: 1em; }
.content-page ul li { margin-bottom: 0.4em; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .nav-toggle { display: inline-flex; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 16px;
        flex-direction: column;
        gap: 0;
        background-color: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 8px;
        min-width: 180px;
        box-shadow: 0 8px 24px rgba(30, 42, 34, 0.1);
    }
    .nav.open { display: flex; }
    .nav a { padding: 10px 14px; border-radius: 8px; }
    .nav a:hover { background-color: var(--bg-soft); }
    section { padding: 64px 0; }
    .hero { padding: 70px 0 60px 0; }
    .contact-card { padding: 40px 24px 32px; }
    .brand { font-size: 1.35rem; }
    .brand::after { width: 6px; height: 6px; margin-left: 4px; transform: translateY(-8px); }
}

/* ---------- Interactive gallery (filters, favourites, lightbox) ---------- */
.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }

.nav a[aria-current="true"] { color: var(--clay); }

.gallery-tools {
    display: flex; flex-wrap: wrap; gap: 14px 20px;
    align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    font: inherit; font-size: 0.9rem; font-weight: 500;
    padding: 8px 18px; border-radius: 999px; cursor: pointer;
    background: #fff; color: var(--ink); border: 1px solid var(--line);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover { border-color: var(--clay-soft); }
.chip[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.search-wrap input {
    font: inherit; font-size: 0.95rem; width: 100%; min-width: 220px;
    padding: 10px 16px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.gallery-status { color: var(--muted); font-size: 0.9rem; margin: 0 0 20px; min-height: 1.4em; }

.gallery-card .thumb {
    display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
}
.gallery-card .caption {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.fav-btn {
    flex: none; background: none; border: 0; padding: 6px; cursor: pointer;
    color: var(--muted); border-radius: 50%; line-height: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}
.fav-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fav-btn:hover { color: var(--clay); transform: scale(1.12); }
.fav-btn[aria-pressed="true"] { color: var(--clay); }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.is-visible:hover { transform: translateY(-4px); }

.fav-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
    margin-top: 28px; padding: 16px 20px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
}
.fav-bar[hidden] { display: none; }
.fav-bar span { font-weight: 600; margin-right: auto; }
.fav-bar .btn { margin: 0; }

#lightbox {
    border: 0; padding: 0; background: transparent; color: #fff;
    max-width: min(92vw, 760px); width: 100%; overflow: visible;
}
#lightbox::backdrop { background: rgba(20, 28, 23, 0.85); }
#lightbox[open] { display: flex; align-items: center; gap: 8px; }
#lightbox figure { margin: 0; flex: 1; min-width: 0; text-align: center; }
#lightbox img { max-height: 75vh; width: auto; max-width: 100%; margin: 0 auto; background: var(--bg-soft); border-radius: 12px; }
#lightbox figcaption { margin-top: 12px; font-size: 1rem; }
.lb-nav, .lb-close {
    flex: none; background: rgba(255, 255, 255, 0.15); color: #fff; border: 0;
    width: 44px; height: 44px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lb-nav:hover, .lb-close:hover { background: rgba(255, 255, 255, 0.3); }
.lb-close { position: absolute; top: -52px; right: 0; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .gallery-card, .fav-btn { transition: none; }
}
@media (max-width: 640px) {
    .search-wrap, .search-wrap input { width: 100%; }
    .lb-nav { width: 38px; height: 38px; }
}

/* ---------- Favourites page, custom enquiry, nav badge ---------- */
.nav-count {
    display: inline-block; min-width: 1.4em; padding: 0 6px; margin-left: 2px;
    border-radius: 999px; background: var(--clay); color: #fff;
    font-size: 0.75rem; font-weight: 600; line-height: 1.5; text-align: center;
}
.nav-count[hidden] { display: none; }

.fav-page { padding-top: 56px; }
.fav-empty {
    text-align: center; padding: 48px 24px; background: #fff;
    border: 1px dashed var(--line); border-radius: 16px; margin-bottom: 32px;
}
.fav-empty[hidden] { display: none; }
.fav-empty p { color: var(--muted); }
.btn-small { padding: 7px 16px; font-size: 0.85rem; flex: none; }

.custom-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
    margin-top: 40px; padding: 26px 28px;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px;
}
.custom-cta h3 { margin: 0 0 4px; }
.custom-cta p { margin: 0; color: var(--ink-soft); }
button.btn { font-family: inherit; cursor: pointer; }
button.btn:not(.btn-ghost) { border: 0; }
.gallery-card .btn-ghost { margin-left: 0; }

/* ---------- How it's made ---------- */
.build-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.build-card {
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 26px 26px 18px; box-shadow: 0 2px 14px rgba(30, 42, 34, 0.06);
}
.build-step {
    display: inline-block; margin-bottom: 10px;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay);
}
.build-card h3 { margin-bottom: 10px; }
.build-card p { color: var(--ink-soft); font-size: 0.97rem; }
.build-label {
    margin: 36px 0 12px; text-align: center;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay);
}
.tech-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tech-list li { background: var(--green); color: #fff; border-radius: 999px; padding: 7px 18px; font-size: 0.92rem; font-weight: 500; }

.fav-empty h2 { font-size: 1.5rem; margin-bottom: 8px; }
