/* The eRaticators: parchment handouts pinned to a tavern board, with the cabal's brass, copper and oxidized-green steampunk
 * accents (docs/spec/02 §4). Light only (theme.yml dark: false). Every texture is CSS or a small inline SVG, so the theme needs
 * nothing from S3. Fonts are self-hosted in fonts/ (SIL OFL licenses beside them). */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/eb-garamond-400.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/eb-garamond-400-italic.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/eb-garamond-700.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/cinzel-600.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/cinzel-800.woff2") format("woff2"); }

:root {
  /* the contract every theme defines (shared/css/chrome.css) */
  --bg: #24160e;                 /* the board */
  --bg-alt: #1b100a;             /* the nav bar */
  --text: #2b1b10;               /* ink on parchment */
  --text-muted: #6b5233;
  --accent: #a8531f;             /* copper */
  --accent-contrast: #fff4dc;
  --border: #b39358;
  --card-bg: #f1e3bd;            /* parchment */
  --link: #1f5a52;               /* oxidized green */
  --font-body: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-head: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 3px;
  --max-width: 66rem;
  /* this theme's own palette */
  --parchment: #f2e4bd;
  --parchment-light: #f8efd3;
  --parchment-deep: #e3cb93;
  --brass: #b8893f;
  --brass-light: #e0b96c;
  --brass-dark: #6d4b1a;
  --copper: #a8531f;
  --verdigris: #3f7c6c;
  --verdigris-dark: #1f4f46;
  --oxblood: #6b1d10;
  --ink: #2b1b10;
  --lamp: rgba(255, 214, 150, .10);
}

/* ---- the board -------------------------------------------------------------------------------------------------------- */
html { background: #1b100a; }
body {
  color: #e9d8ae;
  background-color: #2a1a10;
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 12%, var(--lamp), transparent 70%),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .6) 0 2px, rgba(255, 228, 175, .06) 2px 3px, transparent 3px 220px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='220'%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.3' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .04 0 0 0 0 .02 0 0 0 0 0 0 0 0 .95 -.3'/%3E%3C/filter%3E%3Crect width='640' height='220' filter='url(%23w)'/%3E%3C/svg%3E");
  background-size: auto, auto, 640px 220px;
  background-attachment: fixed, scroll, scroll;
  font-family: var(--font-body);
  font-size: 1.1rem;
}
main.board { max-width: none; padding: 1.5rem 1rem 3.5rem; }

/* ---- chrome, restyled for the board ------------------------------------------------------------------------------------ */
.site-nav { background: linear-gradient(#2c1b10, #1b100a); border-bottom: 3px solid var(--brass-dark); box-shadow: 0 2px 0 #000, 0 6px 16px rgba(0, 0, 0, .5); color: #cdb27a; }
.site-nav__inner { max-width: 70rem; }
.site-nav__brand { color: var(--brass-light); font-family: var(--font-head); font-weight: 800; letter-spacing: .06em; }
.site-nav__crumbs span { color: #8d7440; }
.site-nav__crumbs a, .site-nav__links a, .site-nav__tools a { color: #f1d79a; }
.site-nav .chip { color: #f1d79a; border-color: #8a6a3a; }
.site-nav .muted { color: #b89a5c; }
.site-nav__tools a, .site-nav__tools .chip { white-space: nowrap; }
.site-nav .search-input { background: #f4e8c8; color: #2b1b10; border-color: #8a6a3a; }
.search-drop { box-shadow: 0 10px 28px rgba(0, 0, 0, .55); border-color: var(--brass-dark); }
.search-result__title { font-family: var(--font-head); font-size: .95rem; }
.site-footer { color: #b89a5c; border-top-color: rgba(255, 230, 170, .2); max-width: 66rem; }
.site-footer a { color: var(--brass-light); }

/* ---- the parchment sheet ------------------------------------------------------------------------------------------------ */
.sheet {
  position: relative; max-width: 60rem; margin: 1.2rem auto 3rem; padding: 2.4rem 3rem 3rem;
  color: var(--ink); background-color: var(--parchment); border-radius: 2px;
  background-image:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(255, 246, 215, .8), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800'%3E%3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.011' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .36 0 0 0 0 .12 0 0 0 .55 -.16'/%3E%3C/filter%3E%3Crect width='800' height='800' filter='url(%23b)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .29 0 0 0 0 .12 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
  box-shadow:
    inset 0 0 0 1px rgba(109, 75, 26, .35), inset 0 0 80px rgba(150, 100, 40, .5), inset 0 0 9px rgba(90, 55, 15, .75),
    0 24px 46px rgba(0, 0, 0, .7), 0 3px 0 rgba(255, 235, 190, .12);
}
.sheet::before {   /* the Homebrewery-style double rule inside the page edge */
  content: ""; position: absolute; inset: .85rem; pointer-events: none;
  border: 1px solid rgba(109, 75, 26, .7); outline: 1px solid rgba(109, 75, 26, .45); outline-offset: 3px;
}
.sheet__rivet {
  position: absolute; width: .95rem; height: .95rem; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 34% 30%, #f6d58b 0 16%, var(--brass) 45%, var(--brass-dark) 92%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .55), inset 0 -1px 1px rgba(0, 0, 0, .35);
}
.sheet__rivet--tl { top: 1.1rem; left: 1.1rem; } .sheet__rivet--tr { top: 1.1rem; right: 1.1rem; }
.sheet__rivet--bl { bottom: 1.1rem; left: 1.1rem; } .sheet__rivet--br { bottom: 1.1rem; right: 1.1rem; }
.sheet__head { margin: 0 0 1.2rem; }
.sheet__title {
  margin: 0; font: 800 clamp(1.7rem, 4.2vw, 2.55rem)/1.1 var(--font-head); letter-spacing: .035em; color: var(--oxblood);
  text-shadow: 0 1px 0 rgba(255, 244, 210, .7);
}
.sheet__summary { margin: .5rem 0 0; font-style: italic; color: var(--text-muted); font-size: 1.15rem; }
.ornament {          /* a brass rule with a gear in the middle */
  position: relative; height: 1.5rem; margin: .7rem 0 0;
  background: linear-gradient(90deg, transparent, var(--brass) 14%, var(--brass) 86%, transparent) center / 100% 2px no-repeat;
}
.ornament::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 1.5rem; height: 1.5rem; transform: translate(-50%, -50%);
  background: var(--brass-dark); -webkit-mask: url("gear.svg") center / contain no-repeat; mask: url("gear.svg") center / contain no-repeat;
  box-shadow: none; outline: 0;
}
.ornament::before { content: ""; position: absolute; left: 50%; top: 50%; width: 2.1rem; height: 2.1rem; transform: translate(-50%, -50%); border-radius: 50%; background: var(--parchment); }
.ornament::after { z-index: 1; }
.sheet__hero { margin: 0 0 1.4rem; }
.sheet__hero img { display: block; width: 100%; height: auto; border: 6px solid var(--parchment-light); box-shadow: 0 4px 12px rgba(60, 35, 10, .5); }

/* ---- prose ----------------------------------------------------------------------------------------------------------------- */
.prose { font-size: 1.2rem; line-height: 1.42; hyphens: auto; -webkit-hyphens: auto; }
.prose p { margin: 0 0 .8em; }
.prose a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose a:hover { color: var(--copper); }
.prose strong { font-weight: 700; }
.prose h2 {
  position: relative; margin: 1.5em 0 .55em; padding-bottom: .2em; font: 800 1.4rem/1.15 var(--font-head); letter-spacing: .04em;
  color: var(--oxblood); border-bottom: 2px solid var(--brass); break-after: avoid;
}
.prose h2::after {
  content: ""; position: absolute; right: .1rem; bottom: -.72rem; width: 1.15rem; height: 1.15rem; background: var(--brass-dark);
  -webkit-mask: url("gear.svg") center / contain no-repeat; mask: url("gear.svg") center / contain no-repeat;
}
.prose h3 { margin: 1.15em 0 .3em; font: 700 1.2rem/1.2 var(--font-body); font-variant: small-caps; letter-spacing: .06em; color: var(--verdigris-dark); break-after: avoid; }
.prose h4 { margin: 1em 0 .25em; font: 700 1.05rem var(--font-body); font-style: italic; color: var(--oxblood); break-after: avoid; }
.prose > h2:first-child { margin-top: .2em; }
.prose ul, .prose ol { margin: 0 0 .85em; padding-left: 1.4rem; }
.prose li { margin: .2em 0; }
.prose li::marker { color: var(--brass-dark); }
.prose blockquote {
  margin: .9rem 0; padding: .15rem 1rem; border-left: 4px solid var(--verdigris); color: #4b3a22; font-style: italic;
  background: linear-gradient(90deg, rgba(63, 124, 108, .13), transparent 80%);
}
.prose blockquote p { margin: .3em 0; }
.prose hr { border: 0; height: 2px; margin: 1.4rem 0; background: linear-gradient(90deg, transparent, var(--brass), transparent); }
.prose img { max-width: 100%; height: auto; border: 5px solid var(--parchment-light); box-shadow: 0 3px 9px rgba(60, 35, 10, .45); }
/* a committed thumbnail standing in for an image that is not in S3 yet fills the same width the original will */
.prose p > img.is-thumb:only-child:not(.fig-right) { width: 100%; }
.prose .fig-right { float: right; width: min(38%, 17rem); margin: .2rem 0 1rem 1.4rem; transform: rotate(1.2deg); }
.prose code { background: rgba(109, 75, 26, .12); padding: 0 .25em; border-radius: 2px; font-size: .9em; }
.prose pre {
  margin: .6rem 0; padding: .8rem 1rem; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .86rem; line-height: 1.45;
  background: rgba(109, 75, 26, .14); border: 1px solid rgba(109, 75, 26, .45); border-radius: 2px; color: #3a2a17;
}
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose table { width: 100%; display: table; margin: 1rem 0; border-collapse: collapse; font-size: 1rem; background: rgba(255, 248, 225, .38); border: 2px solid var(--brass-dark); }
.prose th {
  padding: .35rem .6rem; text-align: left; font: 600 .78rem/1.2 var(--font-head); letter-spacing: .06em; text-transform: uppercase;
  color: #f8ebc6; background: linear-gradient(#7a2a14, #5a1d0d); border: 1px solid #3d1408;
}
.prose td { padding: .3rem .6rem; vertical-align: top; border: 1px solid rgba(109, 75, 26, .35); }
.prose tbody tr:nth-child(even) td { background: rgba(184, 137, 63, .16); }
.prose td strong { color: var(--oxblood); }
.table-scroll { overflow-x: auto; }
.prose details { margin: .8rem 0; border: 1px solid var(--brass-dark); border-radius: 2px; background: rgba(255, 248, 225, .38); }
.prose summary { cursor: pointer; padding: .5rem .85rem; font: 600 .92rem/1.3 var(--font-head); letter-spacing: .04em; color: var(--oxblood); }
.prose details[open] > summary { border-bottom: 1px solid var(--brass-dark); background: rgba(184, 137, 63, .18); }
.prose details > :not(summary) { margin-left: .85rem; margin-right: .85rem; }
.prose details > pre { margin-bottom: .85rem; }

/* the first paragraph under the first heading opens with a drop cap */
.sheet--plain .prose > h2:first-of-type + p::first-letter,
.sheet--handout .prose > h2:first-of-type + p::first-letter {
  float: left; margin: .06em .1em 0 0; font: 800 3.5em/.8 var(--font-head); color: var(--oxblood); text-shadow: 1px 1px 0 rgba(184, 137, 63, .55);
}

/* ---- directives ------------------------------------------------------------------------------------------------------------ */
.callout {
  position: relative; margin: 1.1rem 0; padding: .65rem 1rem .75rem; font-size: 1.06rem; line-height: 1.38; break-inside: avoid;
  border: 1px solid var(--brass-dark); border-left: 6px solid var(--brass); border-radius: 2px;
  background: linear-gradient(135deg, rgba(227, 203, 147, .78), rgba(240, 224, 180, .78));
  box-shadow: inset 0 0 18px rgba(120, 80, 30, .22), 0 1px 0 rgba(255, 245, 215, .6);
}
.callout--warning { border-left-color: var(--copper); background: linear-gradient(135deg, rgba(231, 190, 135, .82), rgba(241, 216, 170, .82)); }
.callout--quote { border-left-color: var(--verdigris); font-style: italic; background: linear-gradient(135deg, rgba(196, 207, 170, .55), rgba(238, 226, 186, .8)); }
.callout--player { border-left-color: var(--verdigris-dark); }
.callout__title { margin: 0 0 .3rem; font: 600 .82rem/1.2 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--oxblood); }
.callout__title:empty { display: none; }
.callout p { margin: 0 0 .5em; }
.callout__body > :last-child { margin-bottom: 0; }

.statblock {
  position: relative; margin: 1.3rem 0; padding: 1.15rem 1.25rem 1.1rem; break-inside: avoid; font-size: 1.04rem; line-height: 1.34; color: var(--ink);
  background: linear-gradient(180deg, #faf1d9, #f4e7c4); border: 1px solid #7b5a28;
  box-shadow: 0 0 0 3px rgba(184, 137, 63, .38), 0 8px 16px rgba(70, 40, 10, .38);
}
.statblock::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 7px; background: linear-gradient(90deg, var(--copper), var(--brass) 55%, var(--verdigris)); }
.statblock p { margin: .15rem 0; }
.prose .sb-name { margin: 0; font: 800 1.45rem/1.15 var(--font-head); font-variant: normal; letter-spacing: .03em; color: var(--oxblood); }
.sb-meta { margin: .1rem 0 .55rem; font-style: italic; }
.sb-note-line { margin: 0 0 .6rem; padding: .3rem .5rem; font-size: .92rem; color: #4b3a22; border-left: 3px solid var(--verdigris); background: rgba(63, 124, 108, .1); }
.sb-core, .sb-props { border-top: 2px solid var(--oxblood); }
.sb-core { padding-top: .35rem; }
.sb-core strong, .sb-props strong { color: var(--oxblood); }
.sb-abilities { width: 100%; border-collapse: collapse; text-align: center; font-size: .98rem; }
.sb-abilities th, .sb-abilities td { padding: .14rem .3rem; text-transform: none; letter-spacing: 0; font-family: inherit; }
.sb-abilities thead th { font: 600 .62rem/1.2 var(--font-head); letter-spacing: .08em; text-transform: uppercase; padding-bottom: 0; }
.sb-abilities tbody th { font: 700 .95rem var(--font-body); text-align: left; }
.sb-props { padding-top: .35rem; }
/* the ability table is not a prose table: no frame, no head colour, its own zebra */
.prose .sb-abilities { background: none; border: 0; border-top: 2px solid var(--oxblood); border-bottom: 2px solid var(--oxblood); margin: .45rem 0; }
.prose .sb-abilities th, .prose .sb-abilities td { border: 0; background: none; color: inherit; }
.prose .sb-abilities th:nth-child(4n+1), .prose .sb-abilities td:nth-child(4n+1) { border-left: 1px solid rgba(107, 29, 16, .35); }
.prose .sb-abilities th:nth-child(1), .prose .sb-abilities td:nth-child(1) { border-left: 0; }
.prose .sb-abilities thead th { color: var(--text-muted); }
.prose .sb-abilities tbody th { color: var(--oxblood); }
.prose .statblock .sb-abilities td { text-align: center; }
.prose .statblock .sb-abilities tbody tr > * { background: none; }
.prose .statblock .sb-abilities tbody tr:nth-child(odd) > * { background: rgba(184, 137, 63, .16); }
.sb-section { margin-top: .85rem; }
.sb-section h4 {
  margin: 0 0 .3rem; padding-bottom: .1rem; font: 800 1.02rem/1.2 var(--font-head); font-style: normal; letter-spacing: .06em; color: var(--oxblood);
  border-bottom: 2px solid var(--oxblood);
}
.sb-entry { margin: .3rem 0; }
.sb-entry strong em { font-style: italic; }
.sb-note { font-size: .96rem; }

/* ---- handout: two columns of text on the page --------------------------------------------------------------------------- */
@media (min-width: 900px) {
  .sheet--handout .sheet__body { column-count: 2; column-gap: 2.5rem; column-rule: 1px solid rgba(109, 75, 26, .4); }
  .sheet--handout .sheet__body > h2, .sheet--handout .sheet__body li, .sheet--handout .sheet__body .callout { break-inside: avoid; }
  .sheet--handout .sheet__body table, .sheet--handout .sheet__body > .callout, .sheet--handout .sheet__body > details,
  .sheet--handout .sheet__body > p:has(> img:only-child) { column-span: all; }
}

/* ---- dossier: the pinned portrait and the file --------------------------------------------------------------------------- */
.dossier { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.dossier__portrait { max-width: 20rem; margin: 0 auto; width: 100%; }
@media (min-width: 900px) {
  .dossier { grid-template-columns: minmax(13rem, 16.5rem) minmax(0, 1fr); gap: 2.3rem; }
  .dossier__portrait { position: sticky; top: 1.2rem; align-self: start; margin: .6rem 0 0; }
}
.pin { position: relative; margin: 0; padding: .65rem .65rem .55rem; background: var(--parchment-light); box-shadow: 0 8px 18px rgba(55, 30, 8, .55), 0 0 0 1px rgba(109, 75, 26, .4); transform: rotate(-1.4deg); }
.pin img { display: block; width: 100%; height: auto; border: 0; box-shadow: none; }
.pin__tack {
  position: absolute; top: -.6rem; left: 50%; width: 1.15rem; height: 1.15rem; margin-left: -.57rem; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 35% 30%, #f2c765, var(--copper) 55%, #5a2410); box-shadow: 0 2px 3px rgba(0, 0, 0, .55);
}
.pin figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding-top: .5rem; font: 600 .72rem/1.2 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--oxblood); }
.pin__epithet { color: var(--verdigris-dark); text-align: right; }
.dossier__head { position: relative; margin-bottom: 1rem; }
.dossier__file { margin: 0 0 .25rem; font: 600 .72rem/1 var(--font-head); letter-spacing: .32em; text-transform: uppercase; color: var(--text-muted); }
.dossier__head .sheet__title { padding-right: 0; }
.stamp {
  display: inline-block; margin: .5rem 0 0; padding: .1rem .7rem; font: 800 1rem/1.3 var(--font-head); letter-spacing: .24em; text-transform: uppercase;
  color: rgba(150, 28, 24, .86); border: 3px double rgba(150, 28, 24, .86); border-radius: 3px; transform: rotate(-5deg); transform-origin: left center; mix-blend-mode: multiply; opacity: .92;
}
@media (min-width: 900px) { .stamp { position: absolute; top: 1.1rem; right: 0; margin: 0; transform: rotate(-8deg); } .dossier__head .sheet__title { padding-right: 8rem; } }

/* ---- the seating order ---------------------------------------------------------------------------------------------------- */
.seating { font-size: .95rem; }
.seating td:first-child, .seating th:first-child { text-align: center; width: 2.2rem; }
.seats { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1.6rem 2rem; position: relative; z-index: 1; }
.seat { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem; background: rgba(255, 248, 225, .42); border: 1px solid rgba(109, 75, 26, .5); box-shadow: inset 0 0 0 3px rgba(255, 248, 225, .35); }
.seat__portrait { display: block; align-self: start; padding: .35rem; background: var(--parchment-light); box-shadow: 0 5px 11px rgba(55, 30, 8, .5); transform: rotate(-1.5deg); }
.seat:nth-child(even) .seat__portrait { transform: rotate(1.3deg); }
.seat__portrait img { display: block; width: 100%; height: auto; }
.seat__no { margin: 0; font: 600 .72rem/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.seat__no span { color: var(--verdigris-dark); margin-left: .4rem; }
.seat h3 { margin: .15rem 0 .1rem; font: 800 1.12rem/1.2 var(--font-head); letter-spacing: .03em; font-variant: normal; color: var(--oxblood); }
.seat h3 a { color: inherit; text-decoration: none; }
.seat h3 a:hover { color: var(--copper); }
.seat__tag { margin: 0 0 .4rem; font-style: italic; font-size: .98rem; color: #4b3a22; }
.seat dl { margin: 0; font-size: .95rem; line-height: 1.32; }
.seat dt { float: left; clear: left; margin-right: .35rem; font-weight: 700; font-variant: small-caps; letter-spacing: .05em; color: var(--verdigris-dark); }
.seat dt::after { content: "."; }
.seat dd { margin: 0 0 .25rem; }
.seat blockquote { margin: .55rem 0 0; padding: .1rem .75rem; font-size: .95rem; font-style: italic; color: #4b3a22; border-left: 3px solid var(--verdigris); background: linear-gradient(90deg, rgba(63, 124, 108, .13), transparent 80%); }
@media (max-width: 560px) { .seat { grid-template-columns: 5.5rem minmax(0, 1fr); padding: .75rem; } }

/* ---- the teaser: a sealed letter and a photograph pinned to the board ------------------------------------------------------- */
.board--teaser { padding-top: 2.2rem; }
.teaser { position: relative; max-width: 58rem; margin: 0 auto; }
.teaser__photo { max-width: 38rem; margin: 0 auto -2.6rem; z-index: 1; transform: rotate(-2deg); }
.teaser__photo img { border: 0; box-shadow: none; }
.letter {
  position: relative; max-width: 40rem; margin: 0 auto; padding: 3.6rem 3rem 2.2rem; color: var(--ink); text-align: center; transform: rotate(.5deg);
  background-color: var(--parchment); border-radius: 2px;
  background-image:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(255, 246, 215, .8), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800'%3E%3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.011' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .36 0 0 0 0 .12 0 0 0 .55 -.16'/%3E%3C/filter%3E%3Crect width='800' height='800' filter='url(%23b)'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 80px rgba(150, 100, 40, .5), inset 0 0 9px rgba(90, 55, 15, .75), 0 24px 46px rgba(0, 0, 0, .7);
}
.letter__seal {
  position: absolute; bottom: -1.5rem; right: 2.6rem; width: 4.4rem; height: 4.4rem; border-radius: 50% 46% 52% 48%; z-index: 2;
  background: radial-gradient(circle at 34% 28%, #d4483a, #8a1a12 58%, #4a0b08); box-shadow: 0 5px 10px rgba(0, 0, 0, .55), inset 0 -3px 5px rgba(0, 0, 0, .4);
}
.letter__seal::after { content: ""; position: absolute; inset: 20%; background: rgba(255, 224, 200, .88); -webkit-mask: url("sigil.svg") center / contain no-repeat; mask: url("sigil.svg") center / contain no-repeat; }
.letter__to { margin: 0 0 .6rem; font-style: italic; color: var(--text-muted); }
.letter__title { margin: 0; font: 800 clamp(2rem, 6vw, 2.9rem)/1.05 var(--font-head); letter-spacing: .04em; color: var(--oxblood); text-shadow: 0 1px 0 rgba(255, 244, 210, .7); }
.letter__body { margin-top: .5rem; }
.letter__body p { font-size: 1.4rem; line-height: 1.4; }
.letter__body p:last-child { font-style: italic; color: var(--oxblood); }
.letter__sign { margin: 1rem 0 0; font: 600 .8rem/1.2 var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.notes { max-width: 50rem; margin: 3rem auto 0; }
.notes__title { margin: 0 0 1rem; text-align: center; font: 800 1rem/1.2 var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-light); }
.notes__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.note {
  position: relative; width: 13.5rem; padding: 1.3rem 1rem .9rem; display: flex; flex-direction: column; gap: .35rem; transform: rotate(-2deg);
  background: linear-gradient(180deg, #f7ebb0, #efdc92); color: var(--ink); box-shadow: 0 8px 14px rgba(0, 0, 0, .5);
}
.note:nth-child(even) { transform: rotate(2.2deg); } .note:nth-child(3n) { transform: rotate(-.8deg); }
.note__pin { position: absolute; top: -.5rem; left: 50%; width: 1rem; height: 1rem; margin-left: -.5rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f2c765, var(--copper) 55%, #5a2410); box-shadow: 0 2px 3px rgba(0, 0, 0, .55); }
.note a { font: 800 1rem/1.2 var(--font-head); letter-spacing: .03em; color: var(--oxblood); text-decoration: none; }
.note a:hover { color: var(--copper); }
.note__caption { font-style: italic; font-size: 1rem; line-height: 1.3; color: #4b3a22; }

/* ---- reveal and admin lists ---------------------------------------------------------------------------------------------- */
.reveal-links { margin-top: 1.5rem; padding: .8rem 1.2rem; border: 1px solid var(--brass-dark); background: rgba(255, 248, 225, .4); position: relative; z-index: 1; }
.admin-links { position: relative; z-index: 1; max-width: 40rem; margin: 2.5rem auto 0; padding: .6rem 1.4rem 1rem; color: var(--ink); background: var(--parchment); border: 2px dashed var(--brass-dark); box-shadow: 0 8px 18px rgba(0, 0, 0, .5); }
.admin-links h2 { font: 800 1rem/1.2 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--oxblood); }
.admin-links a { color: var(--link); }
.sheet .admin-links { box-shadow: none; max-width: none; margin-top: 2rem; }

/* ---- small screens ------------------------------------------------------------------------------------------------------ */
@media (max-width: 700px) {
  main.board { padding: .8rem .5rem 2.5rem; }
  .sheet { padding: 1.7rem 1.35rem 2rem; margin-top: .6rem; }
  .sheet::before { inset: .5rem; }
  .sheet__rivet--tl, .sheet__rivet--tr { top: .7rem; } .sheet__rivet--bl, .sheet__rivet--br { bottom: .7rem; }
  .sheet__rivet--tl, .sheet__rivet--bl { left: .7rem; } .sheet__rivet--tr, .sheet__rivet--br { right: .7rem; }
  .prose { font-size: 1.12rem; }
  .prose table { display: block; overflow-x: auto; }
  .prose .fig-right { float: none; display: block; width: min(100%, 17rem); margin: .4rem auto 1rem; }
  .letter { padding: 3.2rem 1.4rem 1.6rem; }
  .teaser__photo { margin-bottom: -1.8rem; }
}

/* Session kits (templates/session.html.j2): the printer-friendly link, and maps sized to the sheet. Print rules are in print.css. */
.session-tools { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; justify-content: center; margin: .6rem 0 0; font-size: .95rem; }
.session-tools__screen-view { display: none; }
html.print-view .session-tools__screen-view { display: inline; }
.session-tools button { font: inherit; padding: .2rem .8rem; border: 1px solid var(--brass-dark, #7a5a2a); background: var(--parchment-light); border-radius: var(--radius); cursor: pointer; }
.session-map { margin: 1.2rem auto; max-width: 40rem; }
.session-map svg { display: block; width: 100%; height: auto; border: 1px solid var(--border); }
.session-map figcaption { font-size: .9rem; color: var(--text-muted); margin-top: .3rem; }

/* The eRaticators Admin page (templates/admin.html.j2): the kit lists, and the hidden-pages panel sitting flat on the sheet instead of pinned
 * under it. The teaser's door (admin-door.js) keeps the pinned look of .admin-links. */
.admin-index__list { padding-left: 1.4rem; }
.admin-index__list li { margin: .35rem 0; }
.admin-index__list .muted { display: block; font-size: .92rem; color: var(--text-muted); }
.sheet--admin .admin-links { max-width: none; margin: 1.8rem 0 0; box-shadow: none; }
.admin-links--door p { margin: .4rem 0 0; }
.admin-index__lead .muted { display: block; font-size: .92rem; color: var(--text-muted); }
