/*
 * Base layout for the Notion-style markup. This is a minimal reconstruction of the
 * Super renderer defaults, sized from the values captured in the source dossier
 * (computed styles of the original site). Original per-site custom CSS lives
 * unchanged in original-custom.css and is loaded after this file.
 */
:root {
  --padding-left: 96px;
  --padding-right: 96px;
  --padding-left-mobile: 24px;
  --padding-right-mobile: 24px;
  --layout-max-width: 1200px;
  --collection-card-gap: 16px;
  --collection-card-cover-size-medium: 260px;
  --primary-font: Diplomata-SC, Inter, Helvetica, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", EmojiSymbols, -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", sans-serif;
  --divider-border: 1px solid rgba(55, 53, 47, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--primary-font);
  font-size: 16px;
  font-weight: 400;
  color: rgb(0, 0, 0);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.notion-root {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 var(--padding-right) 0 var(--padding-left);
  max-width: var(--layout-max-width);
  margin-left: auto;
  margin-right: auto;
}
.notion-root.has-footer { padding-bottom: 5vh; }

.notion-text { min-height: 2rem; }
.notion-text__content {
  padding: 3px 2px;
  margin: 0;
  line-height: 24px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.notion-heading {
  font-weight: 600;
  margin: 0;
  padding: 3px 2px;
  position: relative;
  font-family: var(--primary-font);
}
h1.notion-heading { font-size: 40px; font-weight: 700; line-height: 1.2; }
h2.notion-heading { font-size: 1.5rem; margin-top: 1rem; }
h3.notion-heading { font-size: 15px; line-height: 19.5px; margin-top: 0.75rem; }

.notion-divider { width: 100%; margin: 8px 0; border-bottom: var(--divider-border); }

.notion-image {
  margin: 0.5rem 0;
  align-items: center;
  position: relative;
  line-height: 0;
  display: flex;
  flex-direction: column;
}
.notion-image img { display: block; width: 100%; max-width: 480px; height: auto; }

.notion-header { width: 100%; margin-bottom: 16px; font-family: var(--primary-font); }
.notion-header__content { max-width: var(--layout-max-width); margin: auto; }
.notion-header__title-wrapper { margin-top: 0; margin-bottom: 4px; position: relative; }
.notion-header__title { margin: 0; padding: 3px 2px; font-size: 40px; font-weight: 700; line-height: 1.2; }

.notion-collection-gallery {
  display: grid;
  padding-top: 16px;
  padding-bottom: 4px;
  gap: var(--collection-card-gap);
  grid-template-columns: repeat(auto-fill, minmax(var(--collection-card-cover-size-medium), 1fr));
}
.notion-collection-card {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 120ms ease-in 0s;
}
.notion-collection-card__content { display: flex; flex-direction: column; flex: 1; }
.notion-collection-card .notion-property__title {
  line-height: 1.5;
  display: flex;
  justify-content: center;
  padding: 6px 4px;
}
.notion-property__date { white-space: nowrap; padding: 0 4px 2px; }
.notion-property { display: block; }

.super-footer {
  width: 100%;
  display: flex;
  flex-direction: row;
  color: rgb(55, 53, 47);
  padding: 20px;
  gap: 10px;
}

.not-found { text-align: center; padding-top: 12vh; }
.not-found a { text-decoration: underline; }

@media (max-width: 546px) {
  .notion-root {
    padding-left: var(--padding-left-mobile);
    padding-right: var(--padding-right-mobile);
  }
  .notion-root.has-footer { padding-bottom: 45px; }
}

/*
 * Responsive correction (not in the original CSS). The original custom CSS scales only
 * h1.notion-heading to 18pt at <=768px; the page-title h1.notion-header__title was left at
 * 40px and clipped on phones. Apply the same 18pt scale and guard against horizontal overflow.
 */
@media (max-width: 768px) {
  .notion-header__title { font-size: 18pt; overflow-wrap: anywhere; }
}
.notion-root, .notion-header__content { min-width: 0; }
.notion-header__title, .notion-heading { overflow-wrap: break-word; }
.notion-collection-gallery { grid-template-columns: repeat(auto-fill, minmax(min(var(--collection-card-cover-size-medium), 100%), 1fr)); }

/* ---- original site custom CSS (unchanged) ---- */


body {
  background-color: #f5deb3; /* Base color similar to old paper */
  background-image: 
    radial-gradient(circle, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    radial-gradient(circle, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    radial-gradient(circle, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    radial-gradient(circle, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 20px 20px, 10px 10px, 5px 5px, 2px 2px;
  background-position: 0 0, 10px 10px, 20px 20px, 30px 30px;
  
  cursor: pointer; /* Make the cursor a pointer across the entire site */
}

/* General text font size */
@media (max-width: 768px) {
  body .notion-text__content {
    font-size: 14pt !important;
  }

  body h1.notion-heading {
    font-size: 18pt !important;
  }

  body h2.notion-heading {
    font-size: 10pt !important;
  }

  body h3.notion-heading {
    font-size: 10pxpt !important;
  }
  
 

}

.notion-toggle__summary {
  display: none !important;
}

h1.notion-heading {
  
  font-family: "Diplomata SC", serif;
  text-align: center;
  font-size: 30pt ;

  
}

h2.notion-heading {
  
  font-family: "Diplomata SC", serif;
  text-align: center;
  font-size: 10pt ;

  
}



.notion-header__title {
  
  font-family: "Diplomata SC", serif;
}


.notion-property__title {
  font-family: "Montagu Slab";
  font-weight: 600;
}


h2, h3 {
  
font-family: 'IM Fell DW Pica', serif;
text-align: center;
  
}

p {
  
font-family: 'IM Fell DW Pica', serif;
  
}

notion-table__wrapper {

  font-family: 'IM Fell DW Pica', serif;
  align-content: center;

}



.notion-collection-card__content {
  font-family: "IM Fell DW Pica", serif;
  text-align: center; /* Center text inside the callout */
}

/* Apply a single 1px border with minimal padding to the callout cards */
.notion-collection-card.gallery {
  position: relative;
  padding: 5px; /* Minimal padding */
  border: 1px solid black; /* 1px border */
  border-radius: 0; /* Remove any existing border radius */
  background-color: transparent; /* Make background transparent */

}
/* Add shadow on hover */
.notion-collection-card.gallery:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3), 0 0 0 1px black, 0 0 0 .5px black; /* Add shadow effect */
}

/* Position the collection card date property */
.notion-collection-card.gallery {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.notion-property__date {
  align-self: flex-end; /* Align to the right */
  font-size: 12px;
}


.notion-property__date::before {
  content: "Received: ";
  font-weight: bold;
}


/* Double-line divider */
.notion-divider {
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  padding: 2px 0; /* Small space between lines */
  margin: 20px 0; /* Add some margin above and below the divider */
}

/* Center items in the footer */
.super-footer {
  display: flex;
  justify-content: center; /* Center items horizontally */
  align-items: center; /* Center items vertically */
  gap: 10px; /* Add space between footer items */
  background: none; /* Make footer background transparent */
  padding: 20px;
}