/* slocummassacre.org — shared styles. Matches the map's palette and type. */
:root {
  color-scheme: light;
  --bg:        #f5f2ee;   /* the map's warm off-white */
  --panel:     #edeae4;
  --text:      #1a1410;
  --muted:     #6a5e50;
  --border:    #d4cec6;
  --accent:    #4a6f97;   /* a deeper version of the map's link blue, for contrast */
  --black-owned: #a8c4e0;
  --white-local: #e8b4a0;
  --absentee:    #7fada3;
  --public:      #e8ddb8;
  --serif: Georgia, 'Times New Roman', serif;
  --sans:  system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

/* Site header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 24px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px;
}
.site-name {
  font-family: var(--serif); font-size: 20px; color: var(--text); text-decoration: none;
  margin-right: auto;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; }
.site-nav a { color: var(--text); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* The land-ownership palette as a band: each color is a category on the map */
.palette-band { display: flex; height: 6px; }
.palette-band span { flex: 1; }

main { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Home: hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px; align-items: start; padding: 28px 0 56px;
}
.hero-title { padding-top: 56px; }
.hero-title h1 {
  font-family: var(--serif); font-weight: normal;
  font-size: clamp(38px, 6vw, 68px); line-height: 1.05; letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.hero-title .place-date { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.3; color: var(--muted); margin: 0 0 26px; }
.hero .lede { font-family: var(--serif); font-size: 20px; line-height: 1.6; max-width: 34em; margin: 0 0 18px; }
.hero .lede + .actions { margin-top: 30px; }
.hero figure { margin: 0; }
.hero figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-block; padding: 12px 22px; font-size: 16px; font-family: var(--sans);
  text-decoration: none; border-radius: 3px; border: 1px solid var(--text);
}
.button.primary { background: var(--text); color: var(--bg); }
.button.primary:hover { background: #3a2f27; }
.button.secondary { color: var(--text); background: transparent; }
.button.secondary:hover { background: var(--panel); }

.hero.no-image { grid-template-columns: minmax(0, 1fr); }
.hero.no-image .lede { max-width: 38em; }

/* Home: book */
.book {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; align-items: start;
  border-top: 1px solid var(--border); padding: 48px 0;
}
.cover-col img { width: 100%; }
.cover-col .preorder { display: block; text-align: center; margin-top: 14px; }
.book.no-cover { grid-template-columns: minmax(0, 1fr); }
.book h2, .prose h2 { font-family: var(--serif); font-weight: normal; font-size: 28px; margin: 0 0 6px; }
.book h2 { margin-bottom: 2px; }
.book .subtitle { font-family: var(--serif); font-style: italic; font-size: 22px; margin: 0 0 12px; }
.book .byline { color: var(--muted); margin: 0 0 16px; }
.book p { max-width: 36em; }
.book div > p:not(.byline):not(.subtitle) { font-family: var(--serif); font-size: 18px; line-height: 1.65; }

.content-note {
  border-top: 1px solid var(--border); padding: 28px 0 44px;
  color: var(--muted); font-size: 15px; max-width: 46em;
}

/* Inner pages */
.prose { max-width: 42em; padding: 48px 0 64px; }
.prose h1 { font-family: var(--serif); font-weight: normal; font-size: clamp(34px, 5vw, 46px); line-height: 1.1; margin: 0 0 18px; }
.prose h2 { margin-top: 44px; }
.prose p, .prose li { font-family: var(--serif); font-size: 18px; line-height: 1.65; }
.prose li { margin-bottom: 8px; }
.prose .intro { font-size: 20px; }
.legend-list { list-style: none; padding: 0; }
.legend-list { margin: 4px 0 22px; }
.legend-list li { display: flex; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.swatch { flex: 0 0 26px; width: 26px; height: 17px; border: 1px solid #b9b1a6; border-radius: 2px; box-sizing: border-box; position: relative; top: 3px; }
.swatch.striped { background-image: repeating-linear-gradient(180deg, var(--c) 0 2.5px, #e0e0e0 2.5px 9px); }

.table-wrap { overflow-x: auto; }
table.abbr { border-collapse: collapse; font-size: 15px; width: 100%; }
table.abbr th, table.abbr td { text-align: left; vertical-align: top; padding: 7px 12px 7px 0; border-bottom: 1px solid var(--border); }
table.abbr th { font-weight: 600; white-space: nowrap; }
.cite { background: var(--panel); padding: 14px 18px; font-family: var(--serif); font-size: 16px; }

/* Photo set beside a section of text */
.inline-photo { float: right; width: 220px; margin: 4px 0 16px 28px; }
.inline-photo img { width: 100%; height: auto; border: 1px solid var(--border); }
.inline-photo figcaption { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

/* Notice box (About the data) */
.notice { border-left: 4px solid #a3392b; background: #f7e9e4; padding: 14px 18px; margin: 8px 0 30px; }
.notice p { margin: 0; color: #7d2a1f; }
.notice strong { color: #a3392b; }

/* Contact form */
.contact-form { display: grid; gap: 16px; max-width: 34em; margin-top: 8px; }
.contact-form label { display: grid; gap: 6px; font-family: var(--sans); font-size: 15px; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 16px; color: var(--text); background: #fff;
  border: 1px solid var(--border); border-radius: 3px; padding: 10px 12px; width: 100%;
}
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form .button { justify-self: start; cursor: pointer; font-size: 16px; }
.contact-form .hp { position: absolute; left: -9999px; }

/* Placeholders the author still needs to fill in */
.todo { background: #fff3c4; padding: 0 4px; }

.site-footer { border-top: 1px solid var(--border); }
.site-footer .inner {
  max-width: 1100px; margin: 0 auto; padding: 22px 24px 40px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted);
}
.site-footer a { color: var(--muted); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 24px 0 40px; gap: 32px; }
  .hero-title { padding-top: 36px; }
  .hero-title .place-date { font-size: 20px; margin-bottom: 8px; }
  .book { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 480px) {
  .inline-photo { float: none; width: 70%; margin: 4px 0 18px; }
  body { font-size: 16px; }
  .book { grid-template-columns: 1fr; }
  .book img { max-width: 160px; }
  .cover-col { max-width: 200px; }
}
