@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&display=swap');

@font-face {
    font-family: 'Edensor';
    src: url('/fonts/Edensor-Light.eot');
    src: url('/fonts/Edensor-Light.eot?#iefix') format('embedded-opentype'),
         url('/fonts/Edensor-Light.woff2') format('woff2'),
         url('/fonts/Edensor-Light.woff') format('woff'),
         url('/fonts/Edensor-Light.ttf')  format('truetype'),
         url('/fonts/Edensor-Light.svg#Edensor') format('svg');
}


.libre-baskerville-regular {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-style: normal;
}

.libre-baskerville-bold {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-style: normal;
}

.libre-baskerville-regular-italic {
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-style: italic;
}    

h1, h2, h3, h4, h5, h6 {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-style: normal;
}

.athelas {
    font-family: "Libre Baskerville", athelas, georgia, serif;
}

.pagetext {
    line-height: 1.5;
}

.seethrough {
    color: rgb(255, 255, 255, 50%);
}

footer a  {
    font-size: 1rem;
}

#page-container {
  position: relative;
  min-height: 100vh;
}

#content-wrap {
  padding-bottom: 71px;    /* Footer height */
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 71px;            /* Footer height */
}

.sitelogo {
	width: 35px;
}

header.hero {
		background-image: url(/img/london-hero-2.jpg);
		background-position: 50%;
		background-repeat: no-repeat;
		background-size: cover;    
}

.pageControls {
    text-align:center;    
}

.pageControls > select {
    text-align: center;    
    /*-webkit-appearance: none;*/
    /*-moz-appearance: none;*/
    padding: 5px;
    border: 1px;
		text-decoration: none;
		background-color: transparent;
		color: rgba(0, 0, 0, 0.25);
}

.text-content {
	max-width: 840px;
}

#book-container {
	margin-top: 30px;
}

.site-title {
	font-family: 'Edensor', serif;
	color: white;
	text-shadow: 1px 1px 10px black, 1px 1px 3px black;
	font-size: 103px;
	margin-top: -40px;
	margin-bottom: 10px;
}

#hello {
	color: rgba(255, 255, 255, .7);
	font-size: 10px;
	position: absolute;
	top: 10px;
	right: 10px;	
}

#hello a {
	color: rgba(255, 255, 255, .7);
}

article img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;    
}

.pageControls img {
    width: 300px;
}

/* ---- Obsidian-style callouts ---- */
.callout {
  --callout-bg: #f6f3f0;
  --callout-accent: #6b5b8e;
  margin: 1.5rem 0;
  padding: 0.9rem 1.1rem 0.9rem;
  border-radius: 8px;
  border-left: 4px solid var(--callout-accent);
  background: var(--callout-bg);
  font-size: 0.95em;
}

.callout-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  color: var(--callout-accent);
  margin-bottom: 0.4rem;
}

.callout-title .callout-title-text:empty {
  display: none;
}

.callout-body > :first-child {
  margin-top: 0;
}
.callout-body > :last-child {
  margin-bottom: 0;
}

/* Type variants */
.callout-note {
  --callout-bg: #f0f3f5;
  --callout-accent: #4a789c;
}
.callout-info {
  --callout-bg: #eef4fb;
  --callout-accent: #2f6fbe;
}
.callout-todo {
  --callout-bg: #f2f7f2;
  --callout-accent: #3f8f52;
}
.callout-success,
.callout-check,
.callout-done {
  --callout-bg: #eff6ef;
  --callout-accent: #2f9152;
}
.callout-question,
.callout-help,
.callout-faq {
  --callout-bg: #f5f0e8;
  --callout-accent: #b8873d;
}
.callout-warning {
  --callout-bg: #fdf6ec;
  --callout-accent: #d09930;
}
.callout-danger,
.callout-error {
  --callout-bg: #fdf1f0;
  --callout-accent: #c04a3b;
}
.callout-bug {
  --callout-bg: #faf0f4;
  --callout-accent: #b03a63;
}
.callout-example {
  --callout-bg: #f4f0fa;
  --callout-accent: #7a57b8;
}
.callout-quote,
.callout-cite {
  --callout-bg: #f5f5f5;
  --callout-accent: #6b6b6b;
}

/* ---- Minimal antique process plate (Mermaid diagrams) ----
   No parchment ground, no frame, no gradient: just iron-gall ink on the page,
   an 1800s book typeface, and a single wax-seal red accent on the beta stage. */
.mermaid {
  margin: 2.25rem auto;
  padding: 0.5rem 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  text-align: center;
  background: none;
  border: 0;
}

.mermaid svg {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}

.mermaid .nodeLabel,
.mermaid .edgeLabel,
.mermaid .cluster-label,
.mermaid .cluster-label .nodeLabel,
.mermaid span.nodeLabel,
.mermaid foreignObject div {
  font-family: "Old Standard TT", Georgia, "Times New Roman", serif !important;
}

/* Node captions sit on dark shapes, so they read light. */
.mermaid .nodeLabel,
.mermaid span.nodeLabel,
.mermaid .node foreignObject div {
  color: #f4f4f4 !important;
  text-align: center;
}

/* Borderless dark shapes with a very slight corner radius. */
.mermaid .node rect,
.mermaid .node polygon {
  rx: 2px;
  ry: 2px;
  stroke: none;
}

.mermaid .node path {
  stroke: none;
}

.mermaid .cluster rect {
  rx: 0;
  ry: 0;
  stroke-dasharray: 2 3;
}

.mermaid .cluster-label .nodeLabel,
.mermaid .cluster-label foreignObject div {
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #1c1a17 !important;
}

.mermaid .edgeLabel,
.mermaid .edgeLabel foreignObject div {
  background-color: transparent !important;
  color: #1c1a17 !important;
}

.mermaid path.flowchart-link,
.mermaid .edgePath .path,
.mermaid .edgePath path {
  stroke: #1c1a17;
  stroke-width: 1.1px;
}

/* Hollow, outlined arrowheads: a fine old-plate barb rather than a solid web triangle. */
.mermaid marker path,
.mermaid .arrowheadPath {
  fill: none;
  stroke: #1c1a17;
  stroke-width: 1.1px;
}

/* Beta-reading stage: fill the shape with the wax-seal red so it draws the eye. */
.mermaid .beta rect,
.mermaid .beta polygon,
.mermaid .beta path {
  fill: #8a2b2b !important;
  stroke: none !important;
}

.mermaid .beta .nodeLabel,
.mermaid .beta foreignObject div {
  color: #f4f4f4 !important;
  font-weight: 700;
}
