/* Memorial profiles — shared by /arthur/ and /marta/ */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Source+Sans+3:ital,wght@0,400;0,600;1,400&display=swap");

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #d4d4d4;
    background: #050505;
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(40, 40, 45, 0.5), transparent 55%),
        radial-gradient(ellipse 80% 50% at 100% 100%, rgba(25, 25, 30, 0.6), transparent 45%);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 4rem;
}

/* Shell replaces legacy .fb_box */
.rip-shell {
    max-width: 42rem;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 2.5rem;
}

@media (min-width: 480px) {
    .rip-shell {
        padding: 2.25rem 1.75rem 3rem;
    }
}

.rip-header {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rip-header h1 {
    margin: 0 0 1.25rem;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 4.5vw, 1.85rem);
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.02em;
    color: #f5f5f5;
    line-height: 1.25;
    -webkit-text-stroke: 0;
}

.rip-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rip-nav a {
    color: #b8c5d6;
    text-decoration: none;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.rip-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.rip-nav a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 2px;
}

.rip-nav-sep {
    color: rgba(255, 255, 255, 0.2);
    user-select: none;
    font-weight: 400;
}

.rip-main {
    text-align: left;
}

.rip-main h2 {
    margin: 1.75rem 0 1rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ececec;
    letter-spacing: 0.02em;
    -webkit-text-stroke: 0;
}

.rip-main h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
    -webkit-text-stroke: 0;
}

.rip-main p {
    margin: 0 0 1rem;
    color: #b8b8b8;
}

.rip-hero {
    text-align: center;
    margin-bottom: 1.75rem;
}

.rip-portrait {
    width: min(280px, 88vw);
    max-height: 320px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.rip-prose {
    max-width: 40rem;
    margin: 0 auto;
}

.rip-prose.p {
    padding-left: 0;
    padding-right: 0;
}

/* Guestbook / stories entries */
.rip-entry,
.container {
    margin: 1.5rem 0;
    padding: 1.25rem 1.35rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    text-align: left;
}

.rip-entry h3,
.container h3 {
    margin-top: 0;
    color: #f0f0f0;
}

.rip-entry p,
.container p {
    margin-bottom: 0;
    color: #c4c4c4;
}

.rip-footer {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.8rem;
    color: #6b6b6b;
}

.rip-footer a {
    color: #9a9a9a;
    text-decoration: none;
}

.rip-footer a:hover {
    color: #ccc;
}

/* Legacy class kept for markup compatibility */
.fb_box {
    border: none;
    background: transparent;
    color: inherit;
    padding: 0;
    max-width: none;
    margin: 0;
}

.p {
    padding: 0;
}
