/* ------------------------------------------------------------------
   Shared page layout — the "hero + tile grid" landing-page look used by
   /work, /achievements, /uni and friends. Palette, fonts and cursors
   come from main.css; link this file *after* it. url()s resolve relative
   to this file (styles/), so ../assets/... works from any page depth.
   ------------------------------------------------------------------ */

body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--extralight-pink) 0%, #fff 50%, var(--light-purple) 100%);
    color: #1a1a2e;
    line-height: 1.6;
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 80px;
    position: relative;
    z-index: 1;
}

/* ---- Top bar ---- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    font-family: var(--body-font);
    font-size: 0.9rem;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-purple);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, background 0.3s ease;
}
.back-link:hover {
    transform: translateX(-3px);
    background: rgba(255, 255, 255, 0.9);
    color: var(--pink);
}
/* Beth's hand-drawn arrow, tinted with the link colour (so it turns pink on hover) */
.back-arrow {
    display: inline-block;
    width: 18px;
    height: 9px;
    background: currentColor;
    -webkit-mask: url('../assets/icons/arrow_left.svg') center / contain no-repeat;
    mask: url('../assets/icons/arrow_left.svg') center / contain no-repeat;
}
.crumb {
    color: var(--dark-grey);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 500;
}

/* ---- Hero ---- */
.hero {
    text-align: center;
    margin-bottom: 48px;
}
.hero h1 {
    font-family: var(--heading-font);
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: 1.05;
    margin: 0 0 12px;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 9s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
.tagline {
    font-family: var(--body-font);
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--dark-grey);
    max-width: 640px;
    margin: 0 auto 22px;
}
.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.chip {
    font-family: var(--body-font);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(163, 101, 209, 0.25);
    color: var(--dark-purple);
}
.chip.pink   { background: color-mix(in srgb, var(--pink) 12%, white); color: var(--dark-pink); border-color: color-mix(in srgb, var(--pink) 30%, transparent); }
.chip.purple { background: color-mix(in srgb, var(--purple) 12%, white); color: var(--dark-purple); border-color: color-mix(in srgb, var(--purple) 30%, transparent); }
.chip.blue   { background: color-mix(in srgb, var(--blue) 12%, white); color: var(--dark-blue); border-color: color-mix(in srgb, var(--blue) 30%, transparent); }
.chip.green  { background: color-mix(in srgb, var(--green) 12%, white); color: var(--dark-green); border-color: color-mix(in srgb, var(--green) 30%, transparent); }

/* ---- Tiles ---- */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}
.tile {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(163, 101, 209, 0.1);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease;
}
.tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(163, 101, 209, 0.18);
}

.tile h2 {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    margin: 0 0 14px;
    color: var(--dark-purple);
}
.tile p {
    font-family: var(--body-font);
    color: #333;
    margin: 0 0 12px;
}
.tile p:last-child { margin-bottom: 0; }

/* tile spans */
.span-12 { grid-column: span 12; }
.span-8  { grid-column: span 8; }
.span-6  { grid-column: span 6; }
.span-4  { grid-column: span 4; }

/* ---- Hero image / placeholders ---- */
.placeholder {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background:
        repeating-linear-gradient(
            45deg,
            color-mix(in srgb, var(--purple) 10%, white) 0 12px,
            color-mix(in srgb, var(--pink) 10%, white) 12px 24px
        );
    display: grid;
    place-items: center;
    color: var(--dark-purple);
    font-family: var(--body-font);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px dashed color-mix(in srgb, var(--purple) 40%, transparent);
}
.placeholder::after {
    content: attr(data-label);
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 14px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.placeholder.hero-img { aspect-ratio: 16 / 7; }
.placeholder.tall     { aspect-ratio: 3 / 4; }
.placeholder.square   { aspect-ratio: 1 / 1; }
.placeholder.wide     { aspect-ratio: 16 / 9; }

.placeholder img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.placeholder img + ::after { display: none; }

/* ---- Quick facts list ---- */
.facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.facts li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--purple) 18%, transparent);
}
.facts li:last-child { border-bottom: none; padding-bottom: 0; }
.fact-key {
    font-family: var(--body-font);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--dark-grey);
    font-weight: 600;
}
.fact-val {
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--dark-purple);
    font-weight: 500;
}

/* ---- Feature list (Session cards) ---- */
.features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.feature-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: white;
    font-family: var(--heading-font);
    font-size: 1.3rem;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--purple) 30%, transparent);
}
.feature:nth-child(2n)   .feature-icon { background: linear-gradient(135deg, var(--purple), var(--blue)); }
.feature:nth-child(3n)   .feature-icon { background: linear-gradient(135deg, var(--blue), var(--green)); }
.feature:nth-child(4n)   .feature-icon { background: linear-gradient(135deg, var(--green), var(--pink)); }
/* Hand-drawn SVG icon tinted white inside the gradient tile (via CSS mask) */
.feature-icon .fg {
    width: 60%;
    height: 60%;
    background: #fff;
    -webkit-mask: var(--i) center / contain no-repeat;
    mask: var(--i) center / contain no-repeat;
}
.feature h3 {
    font-family: var(--body-font);
    font-size: 0.98rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--dark-purple);
}
.feature p {
    font-size: 0.88rem;
    color: var(--dark-grey);
    margin: 0;
}
.feature .feature-meta {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--purple);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ---- Bullet list inside tiles ---- */
ul.dot-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}
ul.dot-list li {
    position: relative;
    padding-left: 28px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #1a1a2e;
}
ul.dot-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    /* Beth's hand-drawn star, filled with the theme gradient */
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-mask: url('../assets/icons/star.svg') center / contain no-repeat;
    mask: url('../assets/icons/star.svg') center / contain no-repeat;
}

/* ---- Tag cloud (tools) ---- */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    font-family: var(--body-font);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--dark-purple);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid color-mix(in srgb, var(--purple) 25%, transparent);
    transition: background 0.3s ease, color 0.3s ease,
                border-color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}
.tag:hover {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(163, 101, 209, 0.3);
}

/* ---- Callout note ---- */
.note {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--purple) 8%, white);
    border: 1px solid color-mix(in srgb, var(--purple) 18%, transparent);
    font-size: 0.92rem;
    color: var(--dark-purple);
}
.note strong { font-weight: 600; }

/* ---- Gallery ---- */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* ---- Responsive ---- */
@media (max-width: 880px) {
    .span-8, .span-6, .span-4 { grid-column: span 12; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .gallery { grid-template-columns: 1fr; }
    .tile { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.2s !important;
    }
}
