body {
    background-image: url("./images/forest.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* .bg-background-tertiary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
} */

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    position: relative;
    background: transparent;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background-image: url("./images/forest.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

nav {
    width: calc(100vw * 0.618);
    /* golden ratio width */
    margin: auto auto 0 auto;
    /* center + space above */
    margin-top: calc(100vh * 0.382 * 0.618);
    padding: 16px 24px;
    /* internal padding */
    background: rgba(255, 255, 255, 0.318);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.318);
}

.navbar-nav {
    margin-left: auto;
    margin-right: auto;
}

.child-navbar {
    --golden-margin: calc(100vh * 0.382 * 0.382 * 0.382);

    margin-top: var(--golden-margin);
    margin-bottom: var(--golden-margin);
}

.navbar-collapse {
    justify-content: center;
}

.card {
    margin: auto auto 0 auto;
    margin-bottom: calc(100vh * 0.618);
    aspect-ratio: 1.618 / 1;
    background: rgba(255, 255, 255, 0.318);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.318);
}

.child-card {
    width: calc(100vw * 0.618);
}

.card-body {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    flex-direction: column;
}

.separator {
    pointer-events: none;
    user-select: none;
    /* padding: 0 12px; */
    font-size: 1.2rem;
    opacity: 0.618;
    vertical-align: middle;
    line-height: 1.75;
    display: inline-block;
}

.card-title {
    text-align: center;
    /* margin-bottom: 0.5rem; */
}

.card-separator {
    width: 61.8%;
    /* margin: auto auto 1.618rem auto; centered line */
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.golden-btn {
    width: 61.8%;
    margin-left: auto;
    margin-right: auto;
}

.photo-grid {
    width: 61.8%;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.photo-preview {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 5px;
    background: #f8f9fa;
}

.photo-preview img {
    cursor: hand;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.photo-preview:hover img {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    .photo-grid {
        width: 100%;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
}

.photo-preview {
    background: transparent;
}

.photo-preview img {
    display: block;
    background: transparent;
}

.photo-preview img {
    opacity: 0;
    transition: opacity 0.677s ease;
}

.photo-preview img.loaded {
    opacity: 1;
}

.table,
.table th,
.table td {
    background-color: rgba(255, 255, 255, 0.333) !important;
}

.table th {
    background-color: rgba(255, 255, 255, 0.333) !important;
}

.table {
    --bs-table-border-color: rgba(255, 255, 255, 0.677);
    border-radius: 12px;
    overflow: hidden;
    width: 61.8%;
    margin: 0 auto;
    /* center it */
}

.accordion-button {
    background: rgba(255, 255, 255, 0.667);
    color: inherit;
}

.accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.667);
    color: inherit;

    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.333);
}

.accordion-item {
    background: transparent;
}

.accordion-body {
    background: rgba(255, 255, 255, 0.333);
}

.recipe-card {
    aspect-ratio: auto;
    width: 61.8%;
    max-width: 100%;
    overflow: hidden;
}

.recipe-card>.card-body {
    display: block;
    text-align: left;
    width: 100%;
}

.recipe-card {
    margin-top: auto;
    margin-bottom: auto;
}

.recipe-card ul {
    list-style: none;
    padding-left: 1.618rem;
}

.recipe-card ul li::before {
    content: "⟡ ";
    opacity: 0.667;
}

.recipe-card ol {
    list-style: none;
    counter-reset: recipe-step;

    padding-left: 0;
    margin-left: 0;
}

.recipe-card li {
    margin-bottom: 0.5rem;
}

.recipe-card ol li {
    counter-increment: recipe-step;

    display: flex;
    align-items: flex-start;
}

.recipe-card ol li::before {
    content: counter(recipe-step, upper-roman) ".";

    width: 3.236rem; /* φ²-ish */
    flex-shrink: 0;

    text-align: right;
    padding-right: 0.618rem;

    opacity: 0.667;
}