/* Palette and type match the "Lantern Hour" system from redbeechcabin-web
   (css/style.css) so these Stripe pages don't look bolted on. Fonts are
   copied locally rather than re-fetched from that project so this stays a
   standalone deploy. */

@font-face {
    font-family: "EB Garamond";
    src: url('fonts/ebgaramond-var.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Work Sans";
    src: url('fonts/worksans-var.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Forces light rendering regardless of OS/browser dark mode. Without
       this, some browsers apply their own native dark-mode chrome to
       unstyled form controls on hover/focus — on buttons this showed up as
       the background going black and swallowing the text, since our own
       background/text colors don't override that native layer unless
       appearance is also reset (see button, .rbc-tile below). */
    color-scheme: light;
    --paper: #F7F1E4;
    --ink: #241F18;
    --pine: #24392C;
    --pine-deep: #152219;
    --ember: #9A4B33;
    --ember-bright: #AD6C56;
    --stone: #E7DFCC;
    --primary: #FFFDF8;
    --text-color: #3A342A;
    --font-1: "EB Garamond", "Iowan Old Style", Georgia, serif;
    --font-2: "Work Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--text-color);
    font-family: var(--font-2);
    line-height: 1.5;
}

.rbc-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

.rbc-card {
    background: var(--primary);
    border: 1px solid var(--stone);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(21, 34, 25, 0.08);
}

h1 {
    font-family: var(--font-1);
    font-size: 1.7rem;
    margin: 0 0 0.25rem;
    color: var(--pine-deep);
}

.rbc-subtitle {
    color: #6b6459;
    font-size: 0.95rem;
    margin: 0 0 1.75rem;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pine-deep);
    margin: 1rem 0 0.35rem;
}

input[type=text], input[type=number], input[type=date], input[type=email], input[type=password] {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--stone);
    border-radius: 6px;
    font-family: var(--font-2);
    font-size: 1rem;
    background: var(--paper);
    color: var(--ink);
}

input:focus { outline: 2px solid var(--pine); outline-offset: 1px; }

.rbc-hint {
    font-size: 0.8rem;
    color: #7a7263;
    margin-top: 0.3rem;
}

button, .rbc-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    margin-top: 1.75rem;
    width: 100%;
    background: var(--pine);
    color: var(--primary);
    border: none;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    font-family: var(--font-2);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

button:hover, .rbc-btn:hover { background: var(--pine-deep); color: var(--primary); }

.rbc-notice {
    font-size: 0.85rem;
    background: var(--stone);
    border-left: 4px solid var(--pine);
    color: var(--ink);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
}

.rbc-error {
    font-size: 0.9rem;
    background: #f7e6e0;
    border-left: 4px solid var(--ember);
    color: var(--ember);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.25rem;
}

.rbc-link-box {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    word-break: break-all;
    background: var(--paper);
    border: 1px solid var(--stone);
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    user-select: all;
    color: var(--ink);
}

.rbc-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--stone);
}

.rbc-summary-row strong { color: var(--pine-deep); }

.rbc-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #9c9484;
    margin-top: 2rem;
}

a { color: var(--pine); }
a:hover { color: var(--pine-deep); }
.rbc-footer a, .rbc-history-link { color: var(--pine); text-decoration: none; }
.rbc-footer a:hover, .rbc-history-link:hover { text-decoration: underline; }
