/* Zephora - medieval lore theme (index.php, About.php). The older pages keep ZephoraStyle.css. */
:root {
  --night: #0f0c0a;
  --stone: #1c1714;
  --stone-2: #2a221d;
  --parchment: #ead9b7;
  --parchment-2: #dcc69a;
  --ink: #2b1d12;
  --copper: #c46a3a;
  --bronze: #8a4a26;
  --gold: #d9a74a;
  --gold-soft: rgba(217, 167, 74, .35);
  --text: #e9dcc4;
  --muted: #b8a582;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.65;
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(196, 106, 58, .18), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--gold); }
a:hover { color: #f0c46c; }
h1, h2, h3, .cinzel { font-family: "Cinzel", "Trajan Pro", Georgia, serif; letter-spacing: .04em; font-weight: 700; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ---------- top banner ---------- */
.banner {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(15, 12, 10, .97), rgba(28, 23, 20, .93));
  border-bottom: 1px solid var(--gold-soft);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
}
.banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.banner .mark img { height: 42px; display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.banner nav { display: flex; align-items: center; gap: 18px; }
.banner nav a { white-space: nowrap; color: var(--text); text-decoration: none; font-family: "Cinzel", Georgia, serif; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.banner nav a:hover { color: var(--gold); }
.banner .who { color: var(--gold); font-family: "MedievalSharp", Georgia, serif; font-size: 1rem; text-transform: none; letter-spacing: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Cinzel", Georgia, serif; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem;
  color: #1a0f07 !important; text-decoration: none !important;
  background: linear-gradient(180deg, #f0c46c, var(--gold) 45%, #a8742a);
  border: 1px solid #6e4a18; border-radius: 4px; padding: 12px 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 14px rgba(0, 0, 0, .45);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--parchment) !important; border-color: var(--gold-soft); box-shadow: none; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold) !important; }
.btn.small { padding: 8px 14px; font-size: .75rem; }
.menu-toggle { display: none; background: none; border: 1px solid var(--gold-soft); color: var(--gold); border-radius: 4px; padding: 6px 10px; font-size: 1.2rem; cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: 90px 0 0; overflow: hidden; }
.hero .logo { width: min(560px, 86vw); height: auto; filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .7)) drop-shadow(0 0 30px rgba(196, 106, 58, .25)); }
.hero .tagline { font-family: "Cinzel", Georgia, serif; font-size: clamp(1.05rem, 2.6vw, 1.45rem); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 8px 0 18px; }
.hero p.lede { max-width: 700px; margin: 0 auto 32px; color: var(--text); font-size: 1.15rem; font-style: italic; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.skyline { display: block; width: 100%; height: 150px; margin-top: 10px; }
.moon { position: absolute; top: 70px; right: 12%; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6dd, #e8cf98 55%, rgba(232, 207, 152, 0) 72%); opacity: .75; }

/* ---------- sections ---------- */
section { padding: 70px 0; }
.section-title { text-align: center; margin: 0 0 8px; font-size: clamp(1.6rem, 3.8vw, 2.4rem); color: var(--parchment); }
.section-sub { text-align: center; color: var(--muted); font-style: italic; margin: 0 auto 40px; max-width: 640px; }
.divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 auto 14px; color: var(--gold); }
.divider::before, .divider::after { content: ""; height: 1px; width: min(160px, 25vw); background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.divider svg { width: 34px; height: 34px; }

/* parchment scroll */
.scroll {
  position: relative; max-width: 860px; margin: 0 auto; padding: 46px 54px;
  color: var(--ink); background: linear-gradient(180deg, var(--parchment), var(--parchment-2));
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6), inset 0 0 60px rgba(120, 80, 30, .35);
}
.scroll::before, .scroll::after {
  content: ""; position: absolute; left: -10px; right: -10px; height: 22px; border-radius: 11px;
  background: linear-gradient(180deg, #b48c55, #7c5a2c);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .5);
}
.scroll::before { top: -11px; }
.scroll::after { bottom: -11px; }
.scroll h2, .scroll h3 { color: #5a2f14; }
.scroll p { margin: 0 0 1.1em; }
.scroll .dropcap::first-letter { float: left; font-family: "Cinzel", Georgia, serif; font-size: 3.6em; line-height: .85; padding: 6px 10px 0 0; color: var(--bronze); }
.scroll .sig { text-align: right; font-family: "MedievalSharp", Georgia, serif; color: #6b3a1a; margin: 0; }

/* features: heraldic shields */
.pillars { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.pillar {
  background: linear-gradient(180deg, var(--stone-2), var(--stone));
  border: 1px solid rgba(217, 167, 74, .22); border-radius: 8px; padding: 26px 22px; text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.pillar svg { width: 64px; height: 74px; margin-bottom: 8px; }
.pillar h3 { color: var(--parchment); margin: 6px 0 8px; font-size: 1.08rem; }
.pillar p { color: var(--muted); margin: 0; font-size: 1rem; }

/* herald's board */
.board { max-width: 860px; margin: 0 auto; border: 1px solid var(--gold-soft); border-radius: 8px; background: rgba(28, 23, 20, .7); padding: 26px 30px; }
.board .empty { text-align: center; color: var(--muted); font-style: italic; margin: 0; }
.notice { border-bottom: 1px dashed var(--gold-soft); padding: 14px 0; }
.notice:last-child { border-bottom: 0; }
.notice time { color: var(--gold); font-family: "Cinzel", Georgia, serif; font-size: .8rem; letter-spacing: .12em; }

/* call to arms */
.call {
  text-align: center; background: linear-gradient(180deg, rgba(138, 74, 38, .25), rgba(15, 12, 10, 0));
  border-top: 1px solid var(--gold-soft);
}
.call h2 { color: var(--parchment); margin: 0 0 10px; font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.call p { color: var(--muted); margin: 0 auto 26px; max-width: 600px; }
.call .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

footer { border-top: 1px solid rgba(217, 167, 74, .18); padding: 26px 0; text-align: center; color: var(--muted); font-size: .9rem; }
footer .mark { font-family: "MedievalSharp", Georgia, serif; color: var(--gold); }

/* ---------- sign-in modal (opened by #popup1, as before) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(5, 4, 3, .8); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.overlay:target { display: flex; }
.overlay .popup { width: min(420px, 100%); position: relative; color: var(--ink); }
.overlay .popup .scroll { padding: 40px 34px 30px; }
.overlay h2 { text-align: center; margin: 0 0 18px; color: #5a2f14; }
.overlay .close { position: absolute; top: 4px; right: 16px; font-size: 2rem; text-decoration: none; color: #6b3a1a; z-index: 2; line-height: 1; }
.overlay input[type=text], .overlay input[type=password] {
  width: 100%; padding: 11px 13px; margin: 0 0 12px; font: inherit; font-size: 1rem;
  background: #f6ead0; color: var(--ink); border: 1px solid #a9844f; border-radius: 4px;
}
.overlay input[type=submit] { width: 100%; cursor: pointer; margin-top: 4px; }
.overlay .forgot { display: block; text-align: center; margin-top: 14px; color: #6b3a1a; }
.notice-bar { max-width: 760px; margin: 18px auto 0; padding: 12px 16px; border-radius: 6px; background: rgba(160, 50, 30, .25); border: 1px solid rgba(220, 90, 60, .5); color: #f3d6c8; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 18px; }
  .scroll { padding: 36px 24px; }
  .hero { padding-top: 60px; }
  .moon { right: 14px; width: 40px; height: 40px; top: 14px; opacity: .6; }
}

/* ---------- create account ---------- */
.signup { max-width: 680px; }
.signup form { display: flex; flex-direction: column; gap: 4px; }
.signup .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.signup label { display: flex; flex-direction: column; font-family: "Cinzel", Georgia, serif; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #6b3a1a; margin-bottom: 10px; }
.signup input[type=text], .signup input[type=password] {
  margin-top: 6px; padding: 11px 13px; font: inherit; font-family: "EB Garamond", Georgia, serif; font-size: 1.05rem; letter-spacing: 0; text-transform: none;
  background: #f6ead0; color: var(--ink); border: 1px solid #a9844f; border-radius: 4px;
}
.signup input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.signup .hint { font-size: .95rem; color: #6b4a2a; font-style: italic; margin: 2px 0 14px; }
.signup input[type=submit] { align-self: center; cursor: pointer; padding: 13px 34px; }
.form-problem { background: rgba(160, 50, 30, .14); border: 1px solid rgba(160, 50, 30, .5); color: #7a2412; border-radius: 4px; padding: 10px 14px; margin-bottom: 16px; text-align: center; }
@media (max-width: 760px) { .signup .row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- my heroes ---------- */
.heroes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.sheet {
  color: var(--ink); background: linear-gradient(180deg, var(--parchment), var(--parchment-2));
  border-radius: 6px; padding: 24px 24px 20px; box-shadow: 0 14px 40px rgba(0, 0, 0, .55), inset 0 0 50px rgba(120, 80, 30, .3);
  border-top: 6px solid var(--bronze);
}
.sheet header { position: relative; margin-bottom: 14px; border-bottom: 1px solid rgba(107, 58, 26, .35); padding-bottom: 10px; }
.sheet h2 { margin: 0; color: #5a2f14; font-size: 1.5rem; }
.sheet .kind { margin: 2px 0 0; font-family: "MedievalSharp", Georgia, serif; color: #6b3a1a; }
.sheet .level { position: absolute; right: 0; top: 4px; font-family: "Cinzel", Georgia, serif; font-size: .8rem; letter-spacing: .1em; color: #6b3a1a; text-transform: uppercase; }
.sheet .level b { display: block; font-size: 1.7rem; text-align: center; color: var(--bronze); line-height: 1; }
.stat { display: grid; grid-template-columns: 100px 1fr 54px; align-items: center; gap: 10px; margin: 7px 0; }
.stat span { font-family: "Cinzel", Georgia, serif; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #6b3a1a; }
.stat em { font-style: normal; text-align: right; font-size: .95rem; color: #4a2c14; }
.bar { height: 9px; border-radius: 5px; background: rgba(90, 47, 20, .18); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #a8742a, var(--gold)); }
.stat.hp .bar i { background: linear-gradient(90deg, #7a1e12, #c0452a); }
.signup textarea { margin-top: 6px; padding: 11px 13px; font: inherit; font-family: "EB Garamond", Georgia, serif; font-size: 1.05rem; letter-spacing: 0; text-transform: none; background: #f6ead0; color: var(--ink); border: 1px solid #a9844f; border-radius: 4px; resize: vertical; }

/* the menu folds into the button wherever the full row would not fit */
@media (max-width: 1150px) {
  .menu-toggle { display: inline-block; }
  .banner nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--night); border-bottom: 1px solid var(--gold-soft); }
  .banner nav.open { display: flex; }
  .banner nav a, .banner nav .who { padding: 14px 22px; border-top: 1px solid rgba(217, 167, 74, .12); }
}

/* account links Session.php leaves empty (e.g. Sign In while signed in) */
.banner nav a:empty, .banner nav .who:empty { display: none; }

/* ---------- the great hall (forum) ---------- */
.crumbs { font-family: "Cinzel", Georgia, serif; font-size: .8rem; letter-spacing: .08em; margin: 0 0 18px; color: var(--muted); }
.crumbs a { color: var(--gold); text-decoration: none; }
.crumbs span { margin: 0 6px; }
.boards { display: flex; flex-direction: column; gap: 12px; max-width: 980px; margin: 0 auto; }
.fboard, .topic-row { display: grid; grid-template-columns: 1fr 130px 240px; gap: 18px; align-items: center; text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, var(--stone-2), var(--stone)); border: 1px solid rgba(217, 167, 74, .22); border-radius: 8px; padding: 16px 20px; }
.fboard:hover, .topic-row:hover { border-color: var(--gold); }
.fboard h2 { margin: 0 0 4px; font-size: 1.15rem; color: var(--parchment); }
.fboard p { margin: 0; color: var(--muted); font-size: 1rem; }
.b-count, .t-replies { text-align: center; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.b-count b, .t-replies b { color: var(--gold); font-size: 1.1rem; }
.b-last, .t-last { color: var(--muted); font-size: .9rem; line-height: 1.35; overflow: hidden; }
.b-last .t { color: var(--text); }
.board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.center { text-align: center; }
.topics { display: flex; flex-direction: column; gap: 8px; }
.topics .empty { color: var(--muted); font-style: italic; text-align: center; }
.topic-row { grid-template-columns: 1fr 110px 170px; padding: 12px 18px; }
.t-main { display: flex; flex-direction: column; }
.t-title { color: var(--parchment); font-size: 1.08rem; }
.t-main small { color: var(--muted); }
.tag { display: inline-block; font-family: "Cinzel", Georgia, serif; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; border-radius: 3px; padding: 2px 6px; vertical-align: middle; border: 1px solid; }
.tag.pin { color: var(--gold); border-color: var(--gold-soft); }
.tag.lock { color: #d98a6a; border-color: rgba(217, 138, 106, .5); }
.tag.priv { color: #9fc0e8; border-color: rgba(159, 192, 232, .5); }
.pager { display: flex; gap: 8px; justify-content: center; margin: 20px 0; }
.pager a, .pager b { padding: 4px 10px; border: 1px solid var(--gold-soft); border-radius: 4px; text-decoration: none; }
.pager b { background: var(--gold-soft); color: var(--parchment); }
.modbar { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 18px; }
form.inline { display: inline; margin: 0; }
form.inline.right { float: right; }
.linkish { background: none; border: 0; color: #8a5a2a; cursor: pointer; font: inherit; font-size: .85rem; text-decoration: underline; padding: 0; }
.posts { display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }
.post { color: var(--ink); background: linear-gradient(180deg, var(--parchment), var(--parchment-2)); border-radius: 6px; padding: 16px 22px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.post header { border-bottom: 1px solid rgba(107, 58, 26, .3); padding-bottom: 6px; margin-bottom: 8px; color: #5a2f14; }
.post header small { color: #7a5a3a; margin-left: 8px; }
.post .body p { margin: 0 0 .8em; overflow-wrap: anywhere; }
.post .body a { color: #7a3a14; }
.signup label.check { flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-family: "EB Garamond", Georgia, serif; font-size: 1rem; }
.reply { max-width: 980px; }
.board .notice h3 { margin: 4px 0; font-size: 1.1rem; }
.board .notice h3 a { color: var(--parchment); text-decoration: none; }
.board .notice p { margin: 0; color: var(--muted); }
@media (max-width: 760px) {
  .fboard, .topic-row { grid-template-columns: 1fr; gap: 6px; }
  .b-count, .t-replies { text-align: left; }
  form.inline.right { float: none; }
}
