@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;700;800&family=DM+Serif+Display&display=swap');

:root {
  --cream: #f5f0e5;
  --paper: #fffdf8;
  --ink: #191917;
  --muted: #706c63;
  --red: #a62f28;
  --gold: #c8942f;
  --rule: #cfc7b8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Archivo, Arial, sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--red); }
.site-header, .page { margin: 0 auto; max-width: 1040px; padding-inline: clamp(18px, 5vw, 54px); }
.site-header { padding-top: 20px; }
.home-link { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.masthead { align-items: end; border-block: 1px solid var(--rule); display: flex; gap: 28px; justify-content: space-between; margin-top: 18px; padding: 24px 0 18px; }
.brand { display: block; text-decoration: none; }
.brand span { display: block; font: 400 clamp(2rem, 5vw, 4.1rem)/.9 'DM Serif Display', Georgia, serif; letter-spacing: -.035em; }
.brand small { color: var(--red); display: block; font-size: .67rem; font-weight: 800; letter-spacing: .22em; margin-bottom: 7px; text-transform: uppercase; }
.archive-link { border-bottom: 2px solid var(--red); font-size: .72rem; font-weight: 800; letter-spacing: .12em; padding-bottom: 4px; text-decoration: none; text-transform: uppercase; }
.page { padding-block: clamp(38px, 7vw, 74px) 70px; }
.archive-note { color: var(--muted); font-size: .76rem; letter-spacing: .08em; margin: 0 0 28px; text-transform: uppercase; }

/* The original page content remains intact inside this responsive shell. */
.legacy-content > table.main { background: transparent; border-collapse: collapse; display: table; table-layout: fixed; width: 100%; }
.legacy-content td { max-width: 100%; }
.legacy-content table table { border-collapse: collapse; max-width: 100%; width: 100%; }
.legacy-content .bbbm_title {
  font: 400 clamp(2.6rem, 7vw, 5.7rem)/.9 'DM Serif Display', Georgia, serif;
  letter-spacing: -.045em;
  padding: 0 0 16px;
  text-align: left;
}
.legacy-content .bbbm_titletext { border-bottom: 1px solid var(--rule); color: var(--red); font: italic 400 clamp(1.05rem, 2.3vw, 1.4rem)/1.4 'DM Serif Display', Georgia, serif; padding: 0 0 30px; text-align: left; }
.legacy-content .bbbm_subtitle { font: 400 clamp(2rem, 5vw, 3.6rem)/1 'DM Serif Display', Georgia, serif; padding: 34px 0 22px; text-align: left; }
.legacy-content .bbbm_smalltitle, .legacy-content .bbbm_smalltitle2 { border-top: 1px solid var(--rule); color: var(--red); font: 400 clamp(1.55rem, 4vw, 2.35rem)/1.1 'DM Serif Display', Georgia, serif; padding: 32px 0 14px; text-align: left; }
.legacy-content .bbbm_text { font-size: 1rem; padding: 8px 0 20px; text-align: left; }
.legacy-content .bbbm_text strong { font-weight: 800; }
.legacy-content .bbbm_text em { color: var(--red); font-style: normal; font-weight: 800; letter-spacing: .06em; }
.legacy-content td.subtitle { border-bottom: 1px solid var(--rule); font-size: 1rem; padding: 15px 4px; }
.legacy-content td.subtitle:first-letter { color: var(--red); }
.legacy-content td.image { padding: 26px 0 34px; text-align: center; }
.legacy-content img { height: auto; max-width: 100%; }
.legacy-content td.image > img { background: var(--paper); border: 0 !important; box-shadow: 9px 9px 0 rgba(166,47,40,.11); max-height: 560px; object-fit: contain; width: auto; }
.legacy-content ul { padding-left: 22px; }
.legacy-content br + br { display: block; content: ''; margin-top: .7em; }

/* Thumbnail table on the 2003 housewarming entry. */
.housewarming .legacy-content td[valign="top"] table table { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.housewarming .legacy-content td[valign="top"] table table tbody,
.housewarming .legacy-content td[valign="top"] table table tr { display: contents; }
.housewarming .legacy-content td[valign="top"] table table td { background: var(--paper); border: 1px solid var(--rule); display: grid; min-height: 110px; padding: 8px; place-items: center; }
.housewarming .legacy-content td[valign="top"] table table img { cursor: zoom-in !important; width: auto; }

.entry-nav { align-items: center; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: 50px; padding-top: 22px; }
.entry-nav a { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: .68rem; letter-spacing: .12em; margin-top: 60px; padding-top: 18px; text-transform: uppercase; }

dialog.photo-viewer { background: #111; border: 0; color: white; max-height: 94vh; max-width: min(94vw, 1000px); padding: 14px; }
dialog.photo-viewer::backdrop { background: rgba(0,0,0,.84); }
.photo-viewer img { display: block; max-height: 78vh; max-width: 100%; object-fit: contain; }
.photo-viewer p { margin: 10px 42px 0 2px; }
.photo-viewer button { background: white; border: 0; cursor: pointer; font: 800 1rem Archivo, sans-serif; padding: 7px 11px; position: absolute; right: 12px; top: 12px; }

@media (max-width: 680px) {
  .masthead { align-items: start; flex-direction: column; }
  .legacy-content > table.main, .legacy-content > table.main > tbody, .legacy-content > table.main > tbody > tr, .legacy-content > table.main > tbody > tr > td { display: block; width: 100%; }
  .legacy-content .bbbm_title { font-size: clamp(2.45rem, 13vw, 4.3rem); }
  .legacy-content tr:has(> td.image + td[valign="top"]) { display: grid !important; }
  .housewarming .legacy-content td[valign="top"] table table { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 430px) {
  .housewarming .legacy-content td[valign="top"] table table { grid-template-columns: 1fr; }
}
