:root {
  color-scheme: light;
  --paper: #f8f8f3;
  --ink: #191919;
  --rule: #a4a49e;
  --link: #0000b8;
  --visited: #551a8b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Courier New", Courier, monospace; font-size: 15px; line-height: 1.4; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:visited { color: var(--visited); }
a:hover { color: #661093; text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; background: #fff7b8; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
.page { max-width: 1136px; margin: 0 auto; padding: 23px 29px 0; }
.masthead { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 20px; font-family: Georgia, "Times New Roman", serif; }
.breadcrumbs { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 9px; font-size: 22px; line-height: 1.25; }
.top-reply { font-size: 19px; }
.notice { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 12px; background: #fffddc; border: 1px solid #ece8bf; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.35; }
.notice span { font-size: 23px; line-height: 1; }
.listing-heading { margin: 17px 11px 23px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 4.2vw, 46px); font-weight: 700; letter-spacing: -.8px; line-height: 1.12; margin: 0 0 8px; }
.city { white-space: nowrap; }
.star { color: #90908a; font-size: .82em; font-weight: 400; vertical-align: 3px; margin-left: 4px; }
.reply-line { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.5; }
.listing-content { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 31px; padding: 0 11px; align-items: start; }
.story section { margin: 0 0 24px; }
h2 { margin: 0 0 9px; padding-bottom: 2px; border-bottom: 1px solid var(--rule); font-family: Georgia, "Times New Roman", serif; font-size: 26px; line-height: 1.16; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
ul { padding-left: 23px; margin: 10px 0 0; }
li { padding-left: 1px; }
.gallery { margin-bottom: 12px; }
.photo-frame { border: 1px solid #adada9; padding: 4px; background: #f0f0ec; }
.main-photo img { width: 100%; }
.small-photos { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4px; margin-top: 4px; }
.selfie img { width: 100%; height: 100%; object-fit: cover; }
.cat { display: flex; flex-direction: column; }
.cat img { width: 100%; }
figcaption { display: flex; justify-content: center; align-items: center; gap: 4px; flex: 1; padding: 9px 1px 5px; text-align: center; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.2; }
figcaption span { font-size: 19px; }
.sidebar-box { border: 1px solid #c6c6c2; background: #ededeb; margin-top: 13px; }
.sidebar-box h2 { padding: 5px 11px 6px; margin: 0; background: #e2e2df; border-color: #d2d2cd; font-size: 22px; font-weight: 400; }
.sidebar-box h2 span { font-size: 18px; }
dl { margin: 4px 11px 11px; font-size: 13px; line-height: 1.3; }
dl > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); border-bottom: 1px solid #d2d2cd; }
dt { padding: 4px 7px 4px 0; }
dd { margin: 0; padding: 4px 0 4px 7px; border-left: 1px solid #d2d2cd; }
.links ul { list-style: none; margin: 0; padding: 4px 11px 10px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.45; }
.links li { padding: 1px 0; }
.contact-link { margin: 16px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.4; }
.ground-rules { margin: 0; border-top: 1px solid var(--rule); padding-top: 14px; font-size: 14px; }
footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--rule); padding: 12px 11px 24px; margin-top: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 14px; color: #52524c; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 2; padding: 10px; background: var(--paper); }
.skip-link:focus { top: 10px; }

@media (min-width: 1400px) {
  .page { padding-top: 34px; }
}

@media (max-width: 760px) {
  body { font-size: 15px; line-height: 1.45; }
  .page { max-width: 560px; padding: 17px 17px 0; }
  .masthead { gap: 12px; padding-bottom: 15px; }
  .breadcrumbs { font-size: 18px; gap: 3px 7px; }
  .top-reply { font-size: 17px; }
  .notice { font-size: 15px; padding: 9px 10px; }
  .listing-heading { margin: 18px 0 19px; }
  h1 { font-size: clamp(30px, 7.8vw, 41px); letter-spacing: -.7px; line-height: 1.1; }
  .star { display: none; }
  .reply-line { font-size: 17px; }
  .listing-content { display: flex; flex-direction: column; gap: 0; padding: 0; }
  .story, .sidebar { display: contents; }
  .gallery { order: 0; width: 100%; margin: 0 0 25px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 4px; }
  .main-photo { align-self: start; }
  .small-photos { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; margin: 0; }
  .selfie { flex: 1; min-height: 0; }
  .selfie img { max-height: 170px; object-fit: cover; }
  .cat { flex: 0 0 auto; }
  figcaption { padding: 5px 0 3px; font-size: 12px; gap: 2px; }
  figcaption span { font-size: 15px; }
  .about { order: 1; }
  .looking { order: 2; }
  .dealbreakers { order: 3; }
  .facts { order: 4; width: 100%; margin: 0 0 26px; }
  .reply-section { order: 5; }
  .links { order: 6; width: 100%; margin: 0 0 24px; }
  .story section { margin-bottom: 26px; width: 100%; }
  h2 { font-size: 25px; }
  li { padding-bottom: 3px; }
  dl { font-size: 14px; }
  dl > div { grid-template-columns: 112px minmax(0, 1fr); }
  .contact-link { font-size: 19px; }
  .ground-rules { font-size: 13px; }
  .links ul { font-size: 19px; padding-top: 4px; }
  .links li a { display: block; padding: 7px 0; }
  footer { padding: 12px 0 20px; margin: 0; font-size: 12px; gap: 12px; }
}

@media (max-width: 360px) {
  .page { padding-right: 13px; padding-left: 13px; }
  .breadcrumbs { font-size: 16px; }
  .gallery { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  figcaption { font-size: 11px; }
  dl > div { grid-template-columns: 103px minmax(0, 1fr); }
  footer { flex-wrap: wrap; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  body { background: #fff; }
  .skip-link, .top-reply, footer a { display: none; }
  .page { max-width: none; padding: 0; }
  a, a:visited { color: #000; }
  section, figure { break-inside: avoid; }
}
