/* Colors & fonts taken from the main Lodge site (Google Sites theme). */
:root {
  --brown: #493b31;
  --brown-2: #6a5646;
  --ink: #1c1c1c;
  --cream: #f9f9f9;
  --paper: #fffdfb;
  --tan: #cec3ba;
  --blush: #f4cccc;
  --pink: #e0609d;
  --lavender: #a99bd6;
  --muted: #6b6159;
  --radius: 14px;
  --hand: "Delicious Handrawn", "Mali", cursive;
  --body: "Mali", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--cream); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-decoration-color: var(--pink); text-underline-offset: 3px; }
a:hover { color: var(--pink); }
h1, h2, h3 { font-family: var(--hand); font-weight: 400; color: var(--brown); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.6rem; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.narrow { max-width: 640px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px; z-index: 10; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.inline { display: inline; }
.hp { position: absolute; left: -9999px; }

/* Header */
.site-header { background: var(--brown); color: var(--cream); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-family: var(--hand); font-size: 2rem; color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--blush); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.nav a, .nav .linkish { color: var(--cream); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav .linkish:hover { color: var(--blush); }
.nav-donate { background: var(--blush); color: var(--brown) !important; padding: 2px 12px; border-radius: 999px; font-weight: 600; }
.linkish { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

main { padding-bottom: 48px; min-height: 60vh; }
section { padding: 40px 0; }

/* Footer */
.site-footer { background: var(--ink); color: #ddd; padding: 32px 0; font-size: .95rem; }
.site-footer a { color: var(--blush); }
.footer-inner { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 2fr 1fr; } .footer-inner p { grid-column: 1 / -1; } }
.footer-links { display: flex; flex-direction: column; gap: 4px; }

/* Hero */
.hero { background: var(--paper); border-bottom: 1px solid var(--tan); padding: 24px 0 32px; text-align: center; }
.hero .banner { margin: 0 auto 8px; max-width: 760px; width: 100%; }
.hero p.lead { font-size: 1.15rem; max-width: 640px; margin: 0 auto 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 600; cursor: pointer; border-radius: 999px; padding: 10px 22px; border: 2px solid var(--brown); background: var(--brown); color: var(--cream); text-decoration: none; }
.btn:hover { background: var(--brown-2); color: #fff; }
.btn-pink { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn-pink:hover { background: #c94d87; border-color: #c94d87; }
.btn-ghost { background: transparent; color: var(--brown); }
.btn-ghost:hover { background: var(--blush); color: var(--brown); }
.btn-sm { padding: 4px 14px; font-size: .9rem; }

/* Cards & grids */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.two-col { display: grid; gap: 28px; align-items: center; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.card { background: var(--paper); border: 1px solid var(--tan); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-top: 0; }
.photo { border-radius: var(--radius); border: 1px solid var(--tan); }
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.product-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--tan); }
.product-card .body { padding: 14px 16px; }
.product-card .placeholder { aspect-ratio: 4 / 3; background: var(--blush); display: grid; place-items: center; font-family: var(--hand); font-size: 2.2rem; color: var(--brown); }
.price { font-weight: 600; color: var(--pink); }

/* Forms */
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
label { font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--tan); border-radius: 10px; background: #fff; width: 100%; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--pink); outline-offset: 1px; border-color: var(--pink); }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--pink); }
.help { color: var(--muted); }
.error { color: #b00020; }
.req { color: var(--pink); }
.field ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.field ul label { font-weight: 400; display: flex; gap: 6px; align-items: center; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.presets button { font: inherit; border: 2px solid var(--brown); background: #fff; color: var(--brown); border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.presets button:hover, .presets button.on { background: var(--blush); }

/* Flash messages */
.flash { margin: 16px 0; padding: 12px 16px; border-radius: 10px; background: var(--blush); border: 1px solid #e8a9a9; }
.flash-success { background: #dff3e4; border-color: #9fd3ad; }
.flash-error { background: #fde2e2; border-color: #f0a4a4; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px dashed var(--tan); }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--blush); border: 2px solid var(--brown); }
.timeline .year { font-family: var(--hand); font-size: 1.6rem; color: var(--pink); display: block; line-height: 1.2; }

/* Forum & lists */
.list { list-style: none; padding: 0; margin: 0; background: var(--paper); border: 1px solid var(--tan); border-radius: var(--radius); overflow: hidden; }
.list > li { padding: 14px 18px; border-top: 1px solid var(--tan); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.list > li:first-child { border-top: 0; }
.list .title { font-weight: 600; }
.tag { font-size: .75rem; background: var(--blush); color: var(--brown); padding: 1px 8px; border-radius: 999px; margin-right: 4px; vertical-align: middle; }
.crumbs { font-size: .9rem; margin: 20px 0 4px; color: var(--muted); }
.post { background: var(--paper); border: 1px solid var(--tan); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; scroll-margin-top: 16px; }
.post-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.post-meta strong { color: var(--brown); }
.post-body { overflow-wrap: anywhere; }
.post-body p:first-child { margin-top: 0; }
.post-body p:last-child { margin-bottom: 0; }
.post-actions { display: flex; gap: 12px; margin-top: 8px; font-size: .88rem; }
.post-actions .linkish { color: var(--brown); text-decoration: underline; text-decoration-color: var(--pink); }
.deleted { color: var(--muted); font-style: italic; }
.pager { display: flex; gap: 12px; justify-content: center; margin: 20px 0; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.search { display: flex; gap: 8px; max-width: 420px; width: 100%; }
table.simple { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.simple th, table.simple td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--tan); }
.table-scroll { overflow-x: auto; }
label.check { display: flex; gap: 8px; align-items: center; }
label.check input { flex: none; }

/* Account privacy + board approvals */
.privacy { border: 1px dashed var(--tan); border-radius: var(--radius); padding: 8px 16px 4px; margin: 0 0 16px; }
.privacy legend { font-weight: 600; padding: 0 6px; }
.privacy .field { margin-bottom: 6px; }
.badge { display: inline-block; min-width: 1.4em; padding: 0 6px; border-radius: 999px; background: var(--pink); color: #fff; font-size: .8rem; font-weight: 600; text-align: center; line-height: 1.5; }
.approval { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 14px; }
.approval .actions { justify-content: flex-end; }
.approval blockquote { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--pink); background: var(--cream); }

/* Gallery */
.album-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--blush); }
.album-cover.empty { display: grid; place-items: center; color: var(--muted); }
.photo-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(45%, 160px), 1fr)); margin: 16px 0; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.photo-view { margin: 0 0 12px; text-align: center; }
.photo-view img { max-width: 100%; max-height: 80vh; border-radius: var(--radius); }
.photo-view figcaption { margin-top: 8px; }
