@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Fraunces:opsz,wght@9..144,600&display=swap');

:root {
    --ink: #28362f;
    --forest: #385849;
    --sage: #a8b9a1;
    --cream: #f8f3eb;
    --paper: #fffdf9;
    --peach: #e7ad86;
    --line: #ded8cf;
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'DM Sans', Arial, sans-serif
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.6
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit
}

main {
    min-height: calc(100vh - 88px)
}

.site-header {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(5vw, 24px);
    background: rgba(255, 253, 249, .9);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px)
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.1
}

.brand b {
    font-family: var(--serif);
    font-size: 21px
}

.brand small {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #718077
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 50% 50% 43% 57%;
    background: var(--forest);
    color: white;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: 23px;
    transform: rotate(-5deg)
}

.brand-mark.large {
    width: 58px;
    height: 58px;
    font-size: 30px;
    margin-bottom: 25px
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px
}
.mobile-menu { display:none }
.mobile-menu summary { list-style:none }
.mobile-menu summary::-webkit-details-marker { display:none }

.site-header form {
    margin: 0
}

.link-button {
    border: 0;
    background: none;
    cursor: pointer;
    color: #707a74
}

.button {
    display: inline-flex;
    border: 0;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 20px;
    border-radius: 6px;
    background: var(--forest);
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 18px #38584925;
    transition: .2s
}

.button:hover {
    transform: translateY(-2px);
    background: #294638
}

.button.small {
    padding: 10px 16px
}

.button.wide {
    width: 100%
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 11px !important;
    font-weight: 600;
    color: #8b6f5d;
    margin: 0 0 10px
}

.muted {
    color: #7b827e
}

.alert,
.success {
    padding: 13px 16px;
    border-radius: 6px;
    margin: 16px 0;
    font-size: 14px
}

.alert {
    background: #f8e1d8;
    color: #873f30
}

.success {
    background: #e2ecdf;
    color: #385849
}

.login-shell {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    min-height: 100vh
}

.login-art {
    position: relative;
    overflow: hidden;
    background: #dce6d6;
    min-height: 100vh
}

.login-words {
    position: relative;
    z-index: 3;
    padding: 15vh 11%;
    max-width: 690px
}

.login-words span {
    font-size: 14px;
    letter-spacing: .18em;
    text-transform: uppercase
}

.login-words h1,
.hero h1,
.page-intro h1,
.detail h1 {
    font-family: var(--serif);
    font-size: clamp(48px, 5.6vw, 82px);
    line-height: 1.03;
    margin: 18px 0 25px;
    font-weight: 600
}

.login-words p {
    font-size: 18px;
    max-width: 470px
}

.sun {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #f0c58f;
    right: 13%;
    top: 12%
}

.cloud {
    position: absolute;
    width: 160px;
    height: 50px;
    background: #f6f1e8;
    border-radius: 50%;
    opacity: .8
}

.c1 {
    left: 8%;
    top: 12%
}

.c2 {
    right: 7%;
    top: 38%;
    transform: scale(.7)
}

.hill {
    position: absolute;
    border-radius: 50% 50% 0 0
}

.h1 {
    width: 120%;
    height: 43%;
    background: #91aa8d;
    bottom: -10%;
    left: -30%;
    transform: rotate(4deg)
}

.h2 {
    width: 100%;
    height: 35%;
    background: #728f75;
    bottom: -12%;
    right: -35%;
    transform: rotate(-7deg)
}

.login-panel {
    background: var(--paper);
    display: grid;
    place-items: center;
    padding: 40px
}

.login-card {
    width: min(390px, 100%)
}

.login-card h2 {
    font-family: var(--serif);
    font-size: 38px;
    margin: 2px 0
}

.login-card>.muted {
    margin: 0 0 25px
}

.form {
    display: grid;
    gap: 18px
}

.form label {
    font-size: 13px;
    font-weight: 600;
    display: grid;
    gap: 7px
}

.form input,
.form textarea,
.form select,
.search input {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    padding: 13px 14px;
    border-radius: 5px;
    outline: none
}

.form input:focus,
.form textarea:focus,
.form select:focus,
.search input:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 3px #38584914
}

.privacy {
    text-align: center;
    font-size: 11px;
    color: #89908c;
    margin-top: 25px
}

.hero {
    padding: 85px max(7vw, 30px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    background: var(--paper);
    position: relative;
    overflow: hidden
}

.hero:after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    background: #e4ebdf;
    border-radius: 48% 52%;
    right: -140px;
    top: -180px
}

.hero>div:first-child {
    max-width: 730px;
    z-index: 1
}

.hero h1 {
    font-size: clamp(45px, 5vw, 70px)
}

.hero h1 em {
    font-weight: inherit;
    color: #718d78
}

.hero p:not(.eyebrow) {
    max-width: 580px;
    color: #66716b;
    font-size: 17px;
    margin-bottom: 30px
}

.hero-card {
    min-width: 260px;
    background: #e7ae86;
    padding: 38px;
    border-radius: 52% 48% 46% 54%;
    text-align: center;
    z-index: 1;
    box-shadow: 0 18px 45px #9e765027;
    transform: rotate(3deg)
}

.hero-card>* {
    display: block
}

.hero-card strong {
    font-family: var(--serif);
    font-size: 62px;
    line-height: 1
}

.hero-card span {
    font-family: var(--serif);
    font-size: 20px
}

.hero-card small {
    margin-top: 6px
}

.doodle {
    font-size: 28px
}

.birthday-section {
    max-width: 1180px;
    margin: 42px auto 0;
    padding: 0 30px
}

.birthday-page {
    max-width: 1000px
}

.birthday-page-heading {
    align-items: center
}

.birthday-hero-icon {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 48% 52%;
    background: #f3dfcf;
    font-size: 45px;
    transform: rotate(4deg)
}

.birthday-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.birthday-copy>small {
    color: #9a765f;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase
}

.birthday-empty a {
    color: var(--forest);
    font-weight: 600;
    text-decoration: underline
}

.birthday-profile-note {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 24px;
    padding: 14px 17px;
    border: 1px solid #d5dfd0;
    border-radius: 10px;
    background: #edf3e9;
    color: #66716b;
    font-size: 13px
}

.birthday-profile-note>span {
    font-size: 23px
}

.birthday-profile-note p {
    margin: 0
}

.birthday-profile-note a {
    color: var(--forest);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px
}

#birthday {
    scroll-margin-top: 105px
}

.birthday-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 16px
}

.birthday-heading>span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f3dfcf;
    font-size: 24px
}

.birthday-heading p,
.birthday-heading h2 {
    margin: 0
}

.birthday-heading h2 {
    font: 600 27px var(--serif)
}

.birthday-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px
}

.birthday-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 104px;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--paper);
    box-shadow: 0 10px 30px #3143380d
}

.birthday-card.is-today {
    border-color: #dc9d73;
    background: linear-gradient(135deg, #fffaf4, #f7dfcd)
}

.birthday-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 46% 54% 51% 49%;
    background: #dce7d8;
    color: var(--forest);
    font: 600 22px var(--serif)
}

.birthday-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0
}

.birthday-copy strong {
    font: 600 19px var(--serif)
}

.birthday-copy span {
    color: #77817b;
    font-size: 12px
}

.birthday-countdown {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    min-width: 82px;
    padding-left: 15px;
    border-left: 1px solid var(--line);
    color: var(--forest);
    line-height: 1.15
}

.birthday-countdown b {
    font: 600 24px var(--serif)
}

.birthday-countdown small {
    margin-top: 4px;
    color: #7b847e;
    font-size: 10px
}

.content {
    max-width: 1180px;
    margin: auto;
    padding: 70px 30px
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 35px
}

.section-head h2 {
    font: 600 34px var(--serif);
    margin: 0
}

.search {
    display: flex;
    position: relative
}

.search input {
    min-width: 230px;
    padding-right: 40px
}

.search button {
    position: absolute;
    right: 5px;
    top: 5px;
    border: 0;
    background: none;
    font-size: 23px;
    cursor: pointer
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px
}

.moment-card {
    background: var(--paper);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px #4a4a3d0c;
    border: 1px solid #e9e3da;
    transition: .25s
}

.moment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px #4a4a3d17
}

.photo {
    height: 250px;
    display: block;
    position: relative;
    background: #d8e1d3;
    overflow: hidden
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .35s
}

.moment-card:hover img {
    transform: scale(1.03)
}

.photo b,
.tag {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 5px 10px;
    background: #fffdf9e8;
    border-radius: 20px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em
}

.photo.placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #dfe8da, #b8cbb2)
}

.photo.placeholder>span {
    font-size: 70px;
    color: white
}

.moment-copy {
    padding: 23px
}

.moment-copy time,
.detail time {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #8a7567
}

.moment-copy h3 {
    font: 600 24px var(--serif);
    margin: 8px 0
}

.moment-copy p {
    font-size: 14px;
    color: #65706a
}

.moment-copy small {
    color: #929792
}

.empty {
    text-align: center;
    padding: 80px 20px;
    border: 1px dashed #c9c2b8;
    border-radius: 10px
}

.empty>span {
    font-size: 45px;
    color: var(--sage)
}

.empty h3 {
    font: 600 27px var(--serif);
    margin: 10px
}

.standalone {
    margin: 15vh auto;
    max-width: 650px
}

.page-intro {
    text-align: center;
    padding: 65px 20px 35px
}

.page-intro>a,
.detail>a {
    font-size: 13px;
    color: #778079
}

.page-intro h1 {
    font-size: 50px;
    margin: 10px
}

.page-intro>p:last-child {
    color: #737d77
}

.editor-card {
    max-width: 780px;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 40px;
    margin: 0 auto 80px;
    border-radius: 12px;
    box-shadow: 0 15px 50px #323a3310
}

.two-col {
    grid-template-columns: 1fr 1fr
}

.full {
    grid-column: 1/-1
}

.upload {
    border: 1px dashed #aeb9ae;
    padding: 28px !important;
    text-align: center;
    place-items: center;
    background: #f8faf6;
    cursor: pointer
}

.upload input {
    display: none
}

.upload-icon {
    font-size: 30px
}

.upload small {
    font-weight: 400;
    color: #7b847e
}

.upload img {
    display: none;
    max-height: 250px;
    max-width: 100%;
    margin-top: 15px;
    border-radius: 6px
}

.actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
    margin-top: 10px
}

.detail {
    max-width: 920px;
    margin: 55px auto 90px;
    padding: 0 25px
}

.detail-image {
    width: 100%;
    max-height: 610px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 30px
}

.detail-copy {
    position: relative;
    max-width: 720px;
    margin: 45px auto
}

.detail-copy .tag {
    position: static;
    display: inline-block;
    background: #dfe9db;
    margin-right: 14px
}

.detail h1 {
    font-size: 52px;
    margin: 20px 0
}

.story {
    font-family: Georgia, serif;
    font-size: 19px;
    line-height: 1.9;
    color: #46524c
}

.author {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: #7c837f
}

@media(max-width:800px) {
    .site-header>nav { display:none }
    .mobile-menu { display:block; position:relative }
    .mobile-menu summary { display:grid; gap:5px; width:42px; height:42px; padding:10px; border:1px solid var(--line); border-radius:7px; background:var(--paper); cursor:pointer }
    .mobile-menu summary span { display:block; height:2px; border-radius:2px; background:var(--forest) }
    .mobile-menu[open] summary { background:#edf2ea }
    .mobile-menu-panel { position:absolute; right:0; top:50px; display:grid; min-width:230px; padding:9px; border:1px solid var(--line); border-radius:9px; background:var(--paper); box-shadow:0 16px 45px #24332a2b }
    .mobile-menu-panel a,.mobile-menu-panel button { display:block; width:100%; padding:11px 12px; border:0; border-radius:5px; background:none; color:var(--ink); font:500 14px var(--sans); text-align:left; cursor:pointer }
    .mobile-menu-panel a:hover,.mobile-menu-panel button:hover { background:#edf2ea }
    .mobile-menu-panel form { margin:5px 0 0; padding-top:5px; border-top:1px solid var(--line) }
    .login-shell {
        grid-template-columns: 1fr
    }

    .login-art {
        min-height: 420px
    }

    .login-words {
        padding: 70px 8%
    }

    .login-words h1 {
        font-size: 48px
    }

    .login-panel {
        padding: 50px 25px
    }

    .site-header {
        height: 72px
    }

    .site-header nav>a:first-child,
    .link-button {
        display: none
    }

    .timeline {
        grid-template-columns: 1fr 1fr
    }

    .hero {
        padding: 55px 25px
    }

    .hero-card {
        display: none
    }

    .section-head {
        align-items: stretch;
        flex-direction: column
    }

    .search input {
        min-width: 100%
    }

    .two-col {
        grid-template-columns: 1fr
    }

    .full {
        grid-column: 1
    }

    .editor-card {
        margin: 0 15px 50px;
        padding: 25px
    }

    .page-intro h1 {
        font-size: 40px
    }
}

@media(max-width:540px) {
    .timeline {
        grid-template-columns: 1fr
    }

    .content {
        padding: 50px 18px
    }

    .photo {
        height: 270px
    }

    .site-header {
        padding: 0 15px
    }

    .brand small {
        display: none
    }

    .button.small {
        font-size: 12px
    }

    .hero h1 {
        font-size: 42px
    }

    .hero {
        padding-top: 50px
    }

    .birthday-section {
        margin-top: 30px;
        padding: 0 18px
    }

    .birthday-card {
        padding: 15px 13px
    }

    .birthday-countdown {
        min-width: 70px;
        padding-left: 10px
    }

    .birthday-countdown b {
        font-size: 20px
    }

    .birthday-page-list {
        grid-template-columns: 1fr
    }

    .birthday-hero-icon {
        width: 64px;
        height: 64px;
        font-size: 31px
    }

    .actions {
        justify-content: space-between
    }

    .detail h1 {
        font-size: 40px
    }
}

.forgot-link { justify-self:end; margin-top:-10px; color:var(--forest); font-size:12px; text-decoration:underline; text-underline-offset:3px }
.auth-page { display:grid; place-items:center; min-height:100vh; padding:35px 20px; background:linear-gradient(145deg,#dce6d6,var(--cream)) }
.auth-card { width:min(430px,100%); padding:38px; border:1px solid var(--line); border-radius:12px; background:var(--paper); box-shadow:0 18px 55px #31433818 }
.auth-card>a:first-child { display:inline-block; margin-bottom:25px; color:#727d77; font-size:12px }
.auth-card h1 { margin:3px 0 10px; font:600 36px var(--serif); line-height:1.15 }

.photo-count { position:absolute; right:12px; bottom:12px; background:#26382dcc; color:#fff; border-radius:20px; padding:4px 10px; font-size:12px }
.upload #file-count { font-weight:500; color:var(--forest) }
#previews { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; width:100%; margin-top:10px }
#previews img { display:block; width:100%; height:90px; object-fit:cover; border-radius:6px }
.gallery { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:170px; gap:10px; margin-top:30px; overflow:hidden; border-radius:14px }
.gallery-item { position:relative; min-width:0; min-height:0; border:0; padding:0; background:#dfe3df; overflow:hidden; cursor:zoom-in }
.gallery-item img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .35s ease,filter .35s ease }
.gallery-item:hover img { transform:scale(1.035); filter:brightness(.92) }
.gallery-item:focus-visible { z-index:2; outline:3px solid var(--peach); outline-offset:-3px }
.gallery-zoom { position:absolute; right:12px; bottom:12px; display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:#213128b8; color:#fff; font-size:22px; line-height:1; opacity:0; transform:translateY(4px); transition:.25s }
.gallery-item:hover .gallery-zoom,.gallery-item:focus-visible .gallery-zoom { opacity:1; transform:none }
.gallery-extra { display:none }
.gallery-overflow { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; background:#213129a8; color:#fff; text-shadow:0 1px 5px #0005; transition:background .25s }
.gallery-item:hover .gallery-overflow { background:#213129bd }
.gallery-overflow b { font:600 35px/1 var(--serif) }
.gallery-overflow small { margin-top:7px; font-size:11px; font-weight:600; letter-spacing:.04em }
.gallery-count-1 { display:block; max-height:650px; background:#e6e5e1 }
.gallery-count-1 .gallery-item { display:block; width:100%; height:clamp(360px,62vw,650px) }
.gallery-count-1 .gallery-item img { object-fit:contain }
.gallery-count-2 { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:clamp(330px,48vw,510px) }
.gallery-count-3 { grid-template-columns:2fr 1fr; grid-template-rows:repeat(2,220px) }
.gallery-count-3 .gallery-item:first-child { grid-row:span 2 }
.gallery-count-4 { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(2,260px) }
.gallery-count-5,.gallery-many { grid-template-rows:repeat(2,210px) }
.gallery-count-5 .gallery-item:first-child,.gallery-many .gallery-item:first-child { grid-column:span 2; grid-row:span 2 }
@media(min-width:601px) and (max-width:850px) {
    .gallery { grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:180px }
    .gallery-count-1 { display:block }
    .gallery-count-2 { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:400px }
    .gallery-count-3 { grid-template-columns:2fr 1fr; grid-template-rows:repeat(2,200px) }
    .gallery-count-4 { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(2,220px) }
    .gallery-count-5,.gallery-many { grid-template-rows:repeat(2,190px) }
    .gallery-count-5 .gallery-item:first-child,.gallery-many .gallery-item:first-child { grid-column:span 2; grid-row:span 2 }
}
#lightbox { padding:0; border:0; background:transparent; width:100vw; max-width:100vw; height:100vh; max-height:100vh; overflow:hidden }
#lightbox::backdrop { background:#17201be8; backdrop-filter:blur(4px) }
#lightbox .lightbox-stage { position:absolute; inset:4vh 8vw; display:grid; place-items:center; touch-action:pan-y }
#lightbox img { display:block; max-width:100%; max-height:88vh; object-fit:contain; border-radius:7px; user-select:none; -webkit-user-drag:none }
#lightbox button { border:0; color:white; cursor:pointer; z-index:2 }
.lightbox-close { position:fixed; right:25px; top:15px; background:none; font-size:42px }
.lightbox-arrow { position:fixed; top:50%; width:52px; height:70px; margin-top:-35px; border-radius:8px; background:#ffffff18; font-size:54px; line-height:1 }
.lightbox-arrow:hover { background:#ffffff30 }
.lightbox-prev { left:20px }
.lightbox-next { right:20px }
.lightbox-counter { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); padding:5px 13px; border-radius:20px; background:#111b; color:#fff; font-size:13px; letter-spacing:.06em }

@media(max-width:600px) {
    #previews { grid-template-columns:repeat(3,1fr) }
    #previews img { height:75px }
    .gallery { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:145px; gap:6px; border-radius:10px }
    .gallery-count-1 .gallery-item { height:min(72vh,520px) }
    .gallery-count-2 { grid-template-columns:1fr; grid-template-rows:repeat(2,260px) }
    .gallery-count-3,.gallery-count-4,.gallery-count-5,.gallery-many { grid-template-rows:none }
    .gallery-count-3 .gallery-item:first-child,.gallery-count-4 .gallery-item:first-child,.gallery-count-5 .gallery-item:first-child,.gallery-many .gallery-item:first-child { grid-column:1/-1; grid-row:auto; height:220px }
    .gallery-zoom { display:none }
    .gallery-overflow b { font-size:31px }
    .gallery-overflow small { margin-top:5px; font-size:10px }
    #lightbox .lightbox-stage { inset:5vh 0 8vh }
    .lightbox-arrow { width:44px; height:60px; margin-top:-30px; background:#17201b99; font-size:45px }
    .lightbox-prev { left:6px }
    .lightbox-next { right:6px }
}

.role-preview { display:flex; align-items:center; justify-content:center; gap:10px; min-height:40px; padding:5px 20px; background:#28362f; color:#fff; font-size:12px }
.role-preview form { margin:0 }
.role-preview select { padding:3px 26px 3px 8px; border:1px solid #ffffff55; border-radius:4px; background:#3d5147; color:#fff }
.role-preview small { color:#c4cec8 }
.new-badge { position:absolute; right:12px; top:12px; padding:6px 10px; border-radius:20px; background:var(--peach); color:#34271f; font-size:10px; font-style:normal; font-weight:600; letter-spacing:.08em; text-transform:uppercase; box-shadow:0 3px 10px #0002 }
.timeline-tools { display:flex; align-items:flex-end; gap:12px }
.timeline-tools>label { display:grid; gap:4px; color:#7b847e; font-size:10px; font-weight:600; letter-spacing:.08em; text-transform:uppercase }
.timeline-tools select { min-width:175px; height:48px; padding:0 34px 0 12px; border:1px solid var(--line); border-radius:5px; background:var(--paper); font-size:13px; letter-spacing:0; text-transform:none }
.feed-filters { display:flex; gap:8px; margin:-15px 0 28px }
.feed-filters a { display:flex; align-items:center; gap:6px; padding:7px 12px; border:1px solid var(--line); border-radius:20px; color:#707a74; background:var(--paper); font-size:12px }
.feed-filters a.active { border-color:var(--forest); background:var(--forest); color:#fff }
.feed-filters b { display:grid; place-items:center; min-width:20px; height:20px; padding:0 5px; border-radius:12px; background:#e7ad86; color:#372820; font-size:10px }
.unread-dot { width:7px; height:7px; border-radius:50%; background:var(--peach) }
.memory-filters { display:flex; align-items:flex-end; gap:12px; padding:18px; margin:-15px 0 18px; border:1px solid var(--line); border-radius:9px; background:var(--paper) }
.memory-filters>label { display:grid; gap:4px; color:#7b847e; font-size:10px; font-weight:600; letter-spacing:.08em; text-transform:uppercase }
.memory-filters select { min-width:145px; height:46px; padding:0 32px 0 11px; border:1px solid var(--line); border-radius:5px; background:#fff; font-size:13px; letter-spacing:0; text-transform:none }
.memory-filters .search { flex:1 }
.memory-filters .search input { height:46px }
.filter-row { display:flex; align-items:flex-start; justify-content:space-between; gap:20px }
.filter-row .feed-filters { margin:0 0 28px }
.clear-filters { color:#77817b; font-size:12px; text-decoration:underline; text-underline-offset:3px }
.child-switcher { display:flex; gap:9px; margin:-12px 0 24px; overflow-x:auto; padding:3px }
.child-switcher a { display:flex; align-items:center; gap:8px; flex:none; padding:7px 13px 7px 8px; border:1px solid var(--line); border-radius:24px; background:var(--paper); color:#69736d; font-size:13px }
.child-switcher a span { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#dce6d7; color:var(--forest); font:600 14px var(--serif) }
.child-switcher a.active { border-color:var(--forest); background:var(--forest); color:#fff }
.child-switcher a.active span { background:var(--peach); color:#fff }
.child-picker { display:flex; flex-wrap:wrap; gap:10px; padding:16px; border:1px solid var(--line); border-radius:8px }
.child-picker legend { padding:0 8px; font-size:13px; font-weight:600 }
.child-picker label { position:relative; display:flex; grid-template-columns:none; align-items:center; gap:8px; padding:7px 13px 7px 7px; border:1px solid var(--line); border-radius:24px; background:#fff; cursor:pointer }
.child-picker input { position:absolute; opacity:0; pointer-events:none }
.child-picker label>span { display:grid; place-items:center; width:29px; height:29px; border-radius:50%; background:#e4ebe1; font:600 14px var(--serif) }
.child-picker label:has(input:checked) { border-color:var(--forest); background:#e9f0e6 }
.child-picker label:has(input:checked)>span { background:var(--forest); color:#fff }
.moment-children { display:inline-block; margin:0 10px 8px 0; padding:4px 9px; border-radius:15px; background:#e4ebdf; color:var(--forest); font-size:11px; font-weight:600 }
.children-list { padding:28px; border:1px solid var(--line); border-radius:12px; background:var(--paper) }
.children-list h2 { margin-top:0; font:600 27px var(--serif) }
.children-list article { display:flex; align-items:center; gap:13px; padding:17px 0; border-top:1px solid var(--line) }
.children-list article>div:nth-child(2) { display:flex; flex:1; flex-direction:column }
.children-list span { color:#7b847e; font-size:12px }
.children-list em { color:#8b7668; font-size:11px }
.child-avatar { display:grid; place-items:center; width:45px; height:45px; border-radius:48% 52%; background:#dce7d8; color:var(--forest); font:600 20px var(--serif) }
.child-actions { display:flex; align-items:center; gap:12px }
.child-actions>a { color:var(--forest); font-size:12px; font-weight:600 }
.child-actions form { margin:0 }
.cancel-edit { justify-self:center; color:#77817b; font-size:12px; text-decoration:underline; text-underline-offset:3px }
.removed-children { margin-top:28px; padding-top:20px; border-top:1px dashed var(--line) }
.removed-children h3 { margin:0 0 5px; color:#7b847e; font:600 18px var(--serif) }
.removed-children article { opacity:.78 }
.muted-avatar { filter:grayscale(1) }
.admin-heading-actions { display:flex; align-items:center; gap:16px }
.category-icon { display:grid; place-items:center; width:45px; height:45px; border-radius:10px; background:#e4ebe1; color:var(--forest); font-size:23px }
.icon-suggestions { display:flex; align-items:center; gap:5px; margin:0; color:#78817c; font-size:12px }
.icon-suggestions button { display:grid; place-items:center; width:30px; height:30px; padding:0; border:1px solid var(--line); border-radius:6px; background:#fff; cursor:pointer }
.icon-suggestions button:hover { border-color:var(--forest); background:#edf2ea }
.user-edit { flex:none; color:var(--forest); font-size:12px; font-weight:600 }
.profile-page { max-width:1000px }
.profile-title { display:flex; align-items:center; gap:18px }
.profile-avatar { display:grid; place-items:center; flex:none; width:68px; height:68px; border-radius:48% 52% 45% 55%; background:var(--forest); color:#fff; font:600 32px var(--serif); transform:rotate(-3deg) }
.profile-title h1 { font-size:46px }
.profile-title p:last-child { margin:4px 0 0 }
.profile-settings { overflow:hidden; border:1px solid var(--line); border-radius:14px; background:var(--paper); box-shadow:0 16px 45px #3340370c }
.setting-row { display:grid; grid-template-columns:minmax(220px,280px) minmax(0,1fr); gap:55px; padding:36px 40px }
.setting-row+.setting-row { border-top:1px solid var(--line) }
.setting-intro { display:flex; align-items:flex-start; gap:14px }
.setting-icon { display:grid; place-items:center; flex:none; width:42px; height:42px; border-radius:10px; background:#e5ede1; color:var(--forest); font:600 16px var(--serif) }
.setting-intro h2 { margin:0; font:600 25px var(--serif) }
.setting-intro p { margin:5px 0 0; color:#77817b; font-size:12px; line-height:1.55 }
.setting-form { max-width:500px }
.setting-form>small { margin-top:-8px; color:#7d8581; font-size:11px }
.setting-form>.button { justify-self:start }
@media(max-width:700px) { .setting-row { grid-template-columns:1fr; gap:24px; padding:28px 22px }.profile-title { align-items:flex-start }.profile-avatar { width:52px; height:52px; font-size:24px }.profile-title h1 { font-size:38px }.profile-heading { gap:20px }.setting-form>.button { width:100% } }
.post-author { display:flex; align-items:center; gap:8px; margin-top:17px; padding-top:14px; border-top:1px solid #ece7df; color:#78817c; font-size:12px }
.avatar.mini { width:29px; height:29px; font-size:14px }
.detail-author { display:flex; align-items:center; gap:12px; margin-top:35px; padding-top:20px; border-top:1px solid var(--line) }
.detail-author p { display:flex; flex-direction:column; margin:0; color:#626c66; font-size:13px }
.detail-author small { color:#929995 }
.detail-toolbar { display:flex; justify-content:space-between; align-items:center }
.detail-toolbar>span { display:flex; align-items:center; gap:16px }
.detail-toolbar form { margin:0 }
.text-action,.danger-link { font-size:13px; text-decoration:underline; text-underline-offset:3px }
.danger-link { border:0; padding:0; background:none; color:#a34236; cursor:pointer }
.comments { max-width:720px; margin:-30px auto 90px; padding:40px 25px; border-top:1px solid var(--line) }
.comments h2 { margin:0 0 22px; font:600 30px var(--serif) }
.comments h2 small { font:500 12px var(--sans); display:inline-grid; place-items:center; width:25px; height:25px; border-radius:50%; background:#dfe9db }
.comment-form { display:grid; gap:12px; justify-items:end; margin-bottom:35px }
.comment-form textarea { width:100%; min-height:95px; resize:vertical; padding:14px; border:1px solid var(--line); border-radius:7px; background:var(--paper); font:inherit }
.comment-list article,.user-list article { display:flex; gap:13px; padding:18px 0; border-top:1px solid var(--line) }
.comment-list article>div:last-child { flex:1 }
.comment-list b,.comment-list time { margin-right:8px; font-size:13px }
.comment-list time { color:#8b928e }
.comment-list p { margin:5px 0 0 }
.avatar { flex:none; display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:#d9e4d5; color:var(--forest); font:600 18px var(--serif) }
.existing-images { display:grid; grid-template-columns:repeat(5,1fr); gap:8px }
.image-option { position:relative; min-width:0 }
.cover-option { position:relative; width:100%; min-width:0; padding:0; border:3px solid transparent; border-radius:8px; background:none; overflow:hidden; cursor:pointer }
.cover-option img { display:block; width:100%; height:90px; object-fit:cover; border-radius:5px }
.cover-option span { position:absolute; inset:auto 3px 3px; padding:4px; border-radius:4px; background:#18231dcc; color:#fff; font-size:9px; line-height:1.2; opacity:0; transition:.2s }
.cover-option:hover span,.cover-option.selected span { opacity:1 }
.cover-option.selected { border-color:var(--peach); box-shadow:0 0 0 2px #e7ad8633 }
.cover-option.selected:after { content:'✓'; position:absolute; right:5px; top:5px; display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--peach); color:#fff; font-weight:700 }
.remove-image { position:absolute; z-index:3; left:6px; top:6px; display:grid; place-items:center; width:25px; height:25px; padding:0; border:0; border-radius:50%; background:#26352ee6; color:#fff; font:500 19px/1 var(--sans); cursor:pointer; box-shadow:0 2px 7px #0003 }
.remove-image:hover { background:#9a4f43 }
.image-option.is-removed { display:none }
.removed-image-notice { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:3px; padding:10px 13px; border:1px solid #e6c9b5; border-radius:7px; background:#fff5ed; color:#725b4c; font-size:12px }
.removed-image-notice[hidden] { display:none }
.removed-image-notice button { padding:0; border:0; background:none; color:var(--forest); font:600 12px var(--sans); text-decoration:underline; text-underline-offset:3px; cursor:pointer }
.cover-help { margin:-9px 0 5px; color:#737d77; font-size:12px; text-align:center }
.card-meta { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-top:17px; padding-top:14px; border-top:1px solid #ece7df }
.card-meta .post-author { margin:0; padding:0; border:0 }
.comment-count { display:flex; align-items:center; gap:5px; flex:none; padding:4px 8px; border-radius:16px; background:#edf1ea; color:var(--forest); font-size:12px; font-weight:600 }
.comment-count svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round }
.comment-thread { position:relative }
.comment-thread .comment-thread { margin-left:48px }
.comment-thread .comment-thread:before { content:''; position:absolute; left:-29px; top:0; width:18px; height:28px; border-left:2px solid #d7dfd4; border-bottom:2px solid #d7dfd4; border-radius:0 0 0 10px }
.comment-item { display:flex; gap:13px; padding:18px 0; border-top:1px solid var(--line) }
.comment-body { flex:1; min-width:0 }
.comment-heading { display:flex; align-items:center; gap:8px }
.comment-heading time { color:#8b928e; font-size:12px }
.replying-to { display:inline-block; margin-bottom:3px; color:#758879; font-size:11px; font-weight:600 }
.reply-toggle,.reply-cancel { padding:0; border:0; background:none; color:var(--forest); font-size:12px; font-weight:600; cursor:pointer }
.reply-toggle:hover,.reply-cancel:hover { text-decoration:underline }
.reply-form { margin:0 0 15px 51px; padding:14px; border-radius:8px; background:#edf2ea }
.reply-form[hidden] { display:none }
.reply-form label { width:100%; color:#65736b; font-size:12px; font-weight:600 }
.reply-form textarea { min-height:75px; margin-top:5px; background:#fff }
.reply-form>div { display:flex; align-items:center; justify-content:flex-end; gap:14px }
.no-comments { padding:20px 0; color:#858d88; font-style:italic }
.admin-page { max-width:1100px; margin:0 auto; padding:65px 30px 90px }
.admin-heading { display:flex; justify-content:space-between; align-items:center; gap:30px; margin-bottom:35px }
.admin-heading h1 { margin:0; font:600 48px var(--serif) }
.admin-heading p:last-child { color:#6e7872 }
.admin-list { display:grid; gap:12px }
.admin-list article { display:flex; align-items:center; justify-content:space-between; gap:25px; padding:22px; border:1px solid var(--line); border-radius:8px; background:var(--paper) }
.admin-list h3 { margin:7px 0 2px; font:600 22px var(--serif) }
.admin-list p,.admin-list small { margin:0; color:#78817c; font-size:12px }
.role-pill { display:inline-block; padding:4px 9px; border-radius:20px; background:#e3e8df; font:600 10px var(--sans); font-style:normal; letter-spacing:.08em; text-transform:uppercase }
.role-admin { background:#f2d6c3 }.role-owner { background:#d6c6e9 }.role-lurkeren { background:#e5e5e5 }
.users-layout { display:grid; grid-template-columns:380px 1fr; gap:45px; align-items:start }
.user-create { margin:0; padding:28px }
.user-create h2,.user-list h2 { margin-top:0; font:600 27px var(--serif) }
.user-list { padding:28px; background:var(--paper); border:1px solid var(--line); border-radius:12px }
.user-list article { align-items:center }
.user-list article>div:nth-child(2) { display:flex; flex:1; flex-direction:column }
.user-list span,.user-list small { color:#7c8580; font-size:12px }

@media(max-width:800px) {
    .site-header nav>a:not(.button) { display:none }
    .role-preview small { display:none }
    .users-layout { grid-template-columns:1fr }
    .admin-heading { align-items:flex-start; flex-direction:column }
    .timeline-tools { width:100% }
    .timeline-tools>label,.timeline-tools .search { flex:1 }
    .memory-filters { flex-wrap:wrap }
    .memory-filters>label { flex:1 }
    .memory-filters select { width:100% }
    .memory-filters .search { flex-basis:100% }
}
@media(max-width:540px) {
    .role-preview { position:sticky; top:72px; z-index:9 }
    .admin-page { padding:45px 18px }
    .admin-list article { align-items:flex-start; flex-direction:column }
    .existing-images { grid-template-columns:repeat(3,1fr) }
    .timeline-tools { align-items:stretch; flex-direction:column }
    .timeline-tools select { width:100% }
    .memory-filters { align-items:stretch; flex-direction:column }
    .memory-filters>label,.memory-filters .search { width:100% }
    .filter-row { align-items:flex-end; flex-direction:column-reverse; gap:5px }
}
