/* ============================================================================
   look.css — THE one look for every guest page (hub, bingo, booth, portraits,
   album, upload, rsvp). Made 16 Oct 2026.

   Every colour, font, text size and corner lives HERE, once. Pages use these
   names and never write their own colour codes — that's how 7 private copies
   drifted into 37 colours and 28 text sizes before.

   Want a different colour theme (e.g. pink)? Change the 4 colour lines in
   :root below. Every page follows.

   Rule for older eyes: nothing smaller than --t-xs (14px), and no tiny
   spaced-out CAPITALS for things people must read.
   ============================================================================ */

:root{
  /* colours — cream & gold */
  --bg:#f7f3ee;          /* page background */
  --card:#fbf8f3;        /* cards, tiles */
  --line:#e8ddd0;        /* borders, dividers */
  --gold:#b89a6a;        /* decoration: ornaments, icons, accents */
  --gold-text:#8a6a35;   /* gold that is dark enough to READ */
  --ink:#2a2118;         /* main text, main buttons */
  --mid:#6f604f;         /* second text (passes contrast on the cream) */
  --white:#ffffff;
  --ok:#2e6b3a;  --ok-bg:#eaf4ec;
  --bad:#8a2f2f; --bad-bg:#fbeaea;

  /* fonts — only these two */
  --serif:'Cormorant Garamond',Georgia,'Times New Roman',serif;   /* names, titles */
  --sans:'Jost',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif; /* everything else */

  /* text sizes — only these */
  --t-xs:14px;   /* the smallest anything may be */
  --t-sm:16px;   /* normal small text, hints */
  --t-md:18px;   /* body text, buttons */
  --t-lg:22px;   /* tile names, card names */
  --t-xl:30px;   /* section titles */
  --t-hero:clamp(40px,11vw,56px); /* "Verna & Angelo" */

  /* corners — only these */
  --r-sm:10px;   /* inputs, small things */
  --r-md:16px;   /* cards, tiles, buttons */
  --r-pill:999px;

  --shadow:0 8px 24px rgba(42,33,24,.07);
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{background:var(--bg)}
/* the soft paper texture every page shares */
body::before{content:'';position:fixed;inset:0;pointer-events:none;z-index:0;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E")}
/* a quiet underlined text button ("Not you?", "change", …) */
.linkbtn{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;background:none;border:none;
  font-family:var(--sans);font-size:var(--t-sm);color:var(--mid);text-decoration:underline;cursor:pointer}
body{font-family:var(--sans);color:var(--ink);font-size:var(--t-md);line-height:1.5;
  min-height:100vh;overflow-x:hidden;-webkit-text-size-adjust:100%}

/* ---- page frame ---- */
.page{position:relative;z-index:1;width:100%;max-width:480px;margin:0 auto;padding:22px 20px 48px;text-align:center}

/* ONE back button, top-left, on every page except the hub */
.back{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 16px;
  font-family:var(--sans);font-size:var(--t-sm);color:var(--ink);text-decoration:none;
  background:var(--card);border:1px solid var(--line);border-radius:var(--r-pill);box-shadow:var(--shadow);cursor:pointer}
.back:active{transform:scale(.98)}
.backbar{position:sticky;top:12px;z-index:60;text-align:left;margin-bottom:6px}  /* stays reachable on long pages */
.page-head{text-align:center;margin-bottom:22px}
.page-title.sub{font-size:clamp(34px,9vw,44px)}   /* the title on every page except the hub */

/* ---- titles ---- */
.ornament{display:block;font-family:var(--serif);font-size:24px;color:var(--gold);margin:6px 0 10px}
.page-title{font-family:var(--serif);font-weight:400;font-size:var(--t-hero);line-height:1.05;color:var(--ink)}
.page-title em{font-style:italic;color:var(--gold)}
.section-title{font-family:var(--serif);font-weight:500;font-size:var(--t-xl);line-height:1.15;color:var(--ink)}
.page-sub{font-size:var(--t-sm);color:var(--mid);margin-top:6px;line-height:1.5}
.divider{display:flex;align-items:center;gap:12px;margin:18px auto 22px;max-width:240px}
.divider::before,.divider::after{content:'';flex:1;height:1px;background:var(--line)}
.divider span{font-family:var(--serif);font-size:18px;color:var(--gold);line-height:1}

/* ---- text ---- */
.muted{color:var(--mid)}
.hint{font-size:var(--t-sm);color:var(--mid);line-height:1.5}
.small{font-size:var(--t-xs);color:var(--mid)}
.err{font-size:var(--t-sm);color:var(--bad);background:var(--bad-bg);border-radius:var(--r-sm);padding:10px 12px;line-height:1.45}
.okmsg{font-size:var(--t-sm);color:var(--ok)}

/* ---- the ONE button ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;padding:14px 20px;
  font-family:var(--sans);font-size:var(--t-md);font-weight:500;letter-spacing:.02em;text-decoration:none;
  background:var(--ink);color:var(--bg);border:1.5px solid var(--ink);border-radius:var(--r-md);cursor:pointer;
  transition:background .2s,color .2s}
.btn:active{transform:scale(.99)}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.light{background:var(--card);color:var(--ink);border-color:var(--line)}   /* the quieter second button */
.btn.auto{width:auto}
.btn svg{width:22px;height:22px;flex-shrink:0}

/* ---- cards & tiles ---- */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-md);padding:20px;text-align:left}
.tile{display:flex;align-items:center;gap:16px;min-height:72px;padding:16px 20px;text-align:left;text-decoration:none;color:var(--ink);
  background:var(--card);border:1px solid var(--line);border-radius:var(--r-md);cursor:pointer;transition:border-color .2s,box-shadow .2s}
.tile:active{transform:scale(.99);border-color:var(--gold)}
.tile .ic{flex-shrink:0;width:30px;height:30px;color:var(--gold);display:flex;align-items:center;justify-content:center}
.tile .ic svg{width:26px;height:26px}
.tile .tx{flex:1;min-width:0;font-family:var(--serif);font-weight:500;font-size:var(--t-lg);line-height:1.15}
.tile .arrow{color:var(--gold);font-size:22px}

/* ---- inputs ---- */
.field{margin-bottom:14px;text-align:left;position:relative}
.field label{display:block;font-size:var(--t-sm);font-weight:500;color:var(--ink);margin-bottom:8px}
.field input,.field textarea,.field select{width:100%;font-family:var(--sans);font-size:20px;color:var(--ink);
  background:var(--white);border:1.5px solid var(--line);border-radius:var(--r-sm);padding:14px 16px;outline:none}
.field input:focus,.field textarea:focus{border-color:var(--gold)}

/* ---- empty states ---- */
.empty{padding:48px 10px;text-align:center}
.empty .section-title{margin-bottom:6px}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* LAST on purpose: "hidden" must always win — without it .btn{display:inline-flex} beat it
   and a hidden "Find my table" button still showed (caught 16 Oct by looking at the picture).
   Kept last as well as !important so every browser, and the test browser, agree. */
[hidden]{display:none!important}
