/* ============================================================
   Rope and Breath — style.css
   Editorial dark aesthetic: warm ink, cream, jute gold.
   No build step required.
   ============================================================ */

:root {
    --ink: #16120d;
    --ink-soft: rgba(12, 9, 6, 0.55);
    --cream: #f5f0e8;
    --cream-dim: #d9d0c0;
    --cream-faint: rgba(245, 240, 232, 0.72);
    --gold: #c9a069;
    --gold-bright: #dcb87f;
    --gold-line: rgba(201, 160, 105, 0.45);
    --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    --sans: "Jost", "Avenir Next", "Helvetica Neue", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background-color: var(--ink);
    color: var(--cream);
    font-family: var(--sans);
    font-weight: 300;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    /* Fade-in runs in pure CSS so the page is never invisible without JS */
    animation: page-enter 700ms ease-out both;
}

body.page-exit {
    opacity: 0;
    transition: opacity 220ms ease-in;
}

@keyframes page-enter {
    from { opacity: 0; }
    to   { opacity: 1; }
}

::selection {
    background: var(--gold);
    color: var(--ink);
}

/* ------------------------------------------------------------
   Backdrop: fixed page background with breathing animation,
   warm tint, vignette, and film grain.
   ------------------------------------------------------------ */

.backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--ink);
}

.backdrop-img {
    position: absolute;
    inset: -4%;
    width: 108%;
    height: 108%;
    object-fit: cover;
    opacity: 0.38;
    filter: sepia(0.35) contrast(1.02) brightness(0.9);
    animation: breathe 11s ease-in-out infinite;
}

.backdrop-img--warm {
    opacity: 0.42;
    filter: saturate(0.9) brightness(0.85);
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.055); }
}

.backdrop-tint {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(22, 18, 13, 0.82), rgba(22, 18, 13, 0.5) 30%, rgba(22, 18, 13, 0.55) 70%, rgba(22, 18, 13, 0.9)),
        radial-gradient(ellipse at 50% 40%, rgba(201, 160, 105, 0.1), transparent 60%);
}

.backdrop-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(10, 8, 5, 0.7) 100%);
}

.backdrop-grain {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
    .backdrop-img { animation: none; }
    body { animation-duration: 1ms; }
    html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(to bottom, rgba(14, 11, 7, 0.75), rgba(14, 11, 7, 0.35));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(245, 240, 232, 0.07);
}

.nav-inner {
    max-width: 76rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 4.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wordmark {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--cream);
    text-decoration: none;
    white-space: nowrap;
}

.wordmark .amp {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
    padding: 0 0.1em;
}

.nav-links {
    display: flex;
    gap: 2.25rem;
}

.nav-links a {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--cream-faint);
    padding: 0.35rem 0;
    border-bottom: 1px solid transparent;
    transition: color 200ms ease, border-color 200ms ease;
}

.nav-links a:hover {
    color: var(--cream);
}

.nav-links a.active {
    color: var(--gold-bright);
    border-bottom-color: var(--gold-line);
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--cream-faint);
    padding: 0.5rem;
    cursor: pointer;
}

#menu-toggle:hover { color: var(--cream); }

#mobile-menu {
    display: none;
    background: rgba(12, 9, 6, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(245, 240, 232, 0.08);
    padding: 1.25rem 1.75rem 1.75rem;
}

#mobile-menu a {
    display: block;
    padding: 0.8rem 0;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--cream-faint);
    border-bottom: 1px solid rgba(245, 240, 232, 0.06);
    transition: color 200ms ease;
}

#mobile-menu a:last-child { border-bottom: none; }
#mobile-menu a:hover { color: var(--cream); }
#mobile-menu a.active { color: var(--gold-bright); }

#mobile-menu.open { display: block; }

@media (max-width: 767px) {
    .nav-links { display: none; }
    #menu-toggle { display: block; }
}

/* ------------------------------------------------------------
   Shared page structure & typography
   ------------------------------------------------------------ */

main {
    position: relative;
    min-height: 100vh;
}

.page-shell {
    max-width: 72rem;
    margin: 0 auto;
    padding: 9rem 1.5rem 6rem;
}

h1 {
    font-family: var(--serif);
    font-weight: 500;
    color: var(--cream);
    letter-spacing: 0.03em;
    line-height: 1.05;
}

.page-title {
    font-size: clamp(2.6rem, 7vw, 4.2rem);
    text-align: center;
    margin-bottom: 1.25rem;
}

.title-rule {
    width: 4.5rem;
    height: 1px;
    margin: 0 auto 3.5rem;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    border: none;
    position: relative;
}

.title-rule::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 5px;
    transform: translate(-50%, -50%) rotate(45deg);
    background: var(--gold);
}

/* ------------------------------------------------------------
   Home / hero
   ------------------------------------------------------------ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* symmetric padding so flex centering is true vertical center */
    padding: 5rem 1.5rem;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 5.75rem);
    margin-bottom: 1.5rem;
}

.hero h1 .amp {
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
}

.hero-tagline {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.15rem, 3.4vw, 1.6rem);
    letter-spacing: 0.06em;
    color: var(--cream-dim);
    max-width: 60ch;
    text-wrap: balance;
}

/* ------------------------------------------------------------
   Prose pages (About)
   ------------------------------------------------------------ */

.prose {
    max-width: 42rem;
    margin: 0 auto;
    text-align: left;
}

.prose p {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--cream-dim);
    margin-bottom: 1.6rem;
}

.prose p:first-of-type::first-letter {
    font-size: 3.2em;
    float: left;
    line-height: 0.85;
    padding: 0.06em 0.12em 0 0;
    color: var(--gold);
    font-style: italic;
}

.prose h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 2rem;
    letter-spacing: 0.04em;
    color: var(--cream);
    margin: 3.25rem 0 0.6rem;
}

.prose h2 + .rule-left {
    width: 3.25rem;
    height: 1px;
    border: none;
    background: var(--gold-line);
    margin: 0 0 1.6rem;
}

.prose ul {
    list-style: none;
    margin-bottom: 1.6rem;
}

.prose li {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--cream-dim);
    padding-left: 1.6rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.prose li::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 0.72em;
    width: 5px;
    height: 5px;
    transform: rotate(45deg);
    background: var(--gold-line);
}

.prose li a {
    color: var(--cream);
    font-style: italic;
    text-decoration: none;
    border-bottom: 1px solid var(--gold-line);
    transition: color 200ms ease, border-color 200ms ease;
}

.prose li a:hover {
    color: var(--gold-bright);
    border-bottom-color: var(--gold);
}

/* ------------------------------------------------------------
   Offerings
   ------------------------------------------------------------ */

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    max-width: 62rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .card-grid { grid-template-columns: 1fr 1fr; }
}

.card {
    background: var(--ink-soft);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(245, 240, 232, 0.09);
    border-radius: 2px;
    padding: 2.5rem 2.25rem 2.25rem;
    position: relative;
    transition: border-color 250ms ease, transform 250ms ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 2.25rem;
    right: 2.25rem;
    height: 1px;
    background: linear-gradient(to right, var(--gold), transparent);
}

.card:hover {
    border-color: rgba(201, 160, 105, 0.35);
    transform: translateY(-3px);
}

.card h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.75rem;
    letter-spacing: 0.02em;
    color: var(--cream);
    margin-bottom: 1rem;
}

.card .card-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--cream-dim);
    margin-bottom: 1.75rem;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    font-size: 0.98rem;
}

.price-row .label {
    color: var(--cream-faint);
    letter-spacing: 0.03em;
}

.price-row .leader {
    flex: 1;
    border-bottom: 1px dotted rgba(245, 240, 232, 0.25);
    transform: translateY(-0.25em);
}

.price-row .price {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--gold-bright);
    white-space: nowrap;
}

.offerings-note {
    text-align: center;
    margin-top: 4rem;
}

.offerings-note p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--cream-dim);
    margin-bottom: 2.25rem;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--cream);
    background: rgba(201, 160, 105, 0.08);
    border: 1px solid var(--gold-line);
    border-radius: 2px;
    padding: 1rem 2.5rem;
    cursor: pointer;
    transition: background 250ms ease, border-color 250ms ease, color 250ms ease;
}

.btn:hover {
    background: rgba(201, 160, 105, 0.2);
    border-color: var(--gold);
    color: #fff;
}

/* ------------------------------------------------------------
   Centered panel pages (Testimonials, Bookings)
   ------------------------------------------------------------ */

.center-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 1.5rem 5rem;
    text-align: center;
}

.panel {
    max-width: 44rem;
    width: 100%;
    background: var(--ink-soft);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(245, 240, 232, 0.09);
    border-radius: 2px;
    padding: 3rem 2.5rem;
    position: relative;
}

.panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 2.5rem;
    right: 2.5rem;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.panel p {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--cream-dim);
}

.panel p + p { margin-top: 0.9rem; }

.panel .lead { margin-bottom: 2.25rem; }

.panel a:not(.btn) {
    color: var(--gold-bright);
    font-style: italic;
    text-decoration: none;
    border-bottom: 1px solid var(--gold-line);
    transition: color 200ms ease;
}

.panel a:not(.btn):hover { color: var(--cream); }
