/* Directions to the Christie Lake cottage — 101 Christie Lake Lane 32 */

:root {
  --ink:        #1c2321;
  --ink-soft:   #4d5a55;
  --ink-faint:  #7b8783;
  --paper:      #fbfaf6;
  --panel:      #f2efe6;
  --rule:       #ded9cb;
  --water:      #2f6b7a;
  --water-deep: #1d4854;
  --trail:      #c0492b;
  --measure:    38rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
}

.wrap {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

a { color: var(--water-deep); text-underline-offset: 2px; }
a:hover { color: var(--trail); }

img { max-width: 100%; height: auto; display: block; }

/* ---- Masthead ---- */

.masthead {
  background: var(--water-deep);
  color: #f4f1e8;
  padding-block: 2.75rem 2.25rem;
  border-bottom: 4px solid var(--trail);
}
.masthead a { color: #cfe4e8; }

.eyebrow {
  margin: 0 0 .5rem;
  font: 600 .8125rem/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9fc2c9;
}

.masthead h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5.5vw, 2.85rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.015em;
}

.address {
  margin: .6rem 0 0;
  font: 400 1.0625rem/1.4 ui-sans-serif, system-ui, sans-serif;
  color: #bfd8dd;
}

/* ---- Key facts ---- */

.facts {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.25rem 1.4rem;
  margin-block: 2.25rem;
}

.facts dl { margin: 0; display: grid; gap: .55rem; }

.facts dl > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: .25rem 1rem;
}

.facts dt {
  font: 600 .8125rem/1.6 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.facts dd { margin: 0; }

@media (max-width: 26rem) {
  .facts dl > div { grid-template-columns: 1fr; }
}

.map-link {
  margin: 1.25rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
}

.button {
  display: inline-block;
  background: var(--water);
  color: #fff;
  text-decoration: none;
  font: 600 .9375rem/1 ui-sans-serif, system-ui, sans-serif;
  padding: .7rem 1.1rem;
  border-radius: 4px;
}
.button:hover { background: var(--water-deep); color: #fff; }

.note {
  font: 400 .875rem/1.5 ui-sans-serif, system-ui, sans-serif;
  color: var(--ink-soft);
  flex: 1 1 16rem;
}

/* ---- Callout ---- */

.callout {
  border-left: 4px solid var(--trail);
  background: #fdf4ef;
  padding: 1rem 1.25rem;
  margin-block: 2rem;
  border-radius: 0 4px 4px 0;
}
.callout p { margin: 0; }

/* ---- Headings ---- */

h2 {
  margin: 3rem 0 .5rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.01em;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--rule);
}

.lede { color: var(--ink-soft); max-width: var(--measure); }

/* ---- Steps ---- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.5rem 0 0;
  padding: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.75rem 3.25rem;
  border-left: 2px solid var(--rule);
  margin-left: 1.1rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -1.15rem;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 2px solid var(--water);
  color: var(--water-deep);
  border-radius: 50%;
  font: 600 .9375rem/1 ui-sans-serif, system-ui, sans-serif;
}

.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }

.steps h3 {
  margin: .15rem 0 .5rem;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
}

.steps p { margin: 0 0 .75rem; max-width: var(--measure); }
.steps p:last-child { margin-bottom: 0; }

.marker {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-right: .4rem;
  vertical-align: -.28rem;
  background: var(--trail);
  color: #fff;
  border-radius: 3px;
  font: 700 .875rem/1 ui-sans-serif, system-ui, sans-serif;
}

.steps figure {
  margin: 1rem 0 0;
  max-width: 300px;
}

.steps figure img {
  border: 1px solid var(--rule);
  border-radius: 4px;
}

/* Corrections and asides attached to a waypoint photo — the photos are old
   enough that the ground has moved on in places. */
.steps figcaption {
  margin-top: .5rem;
  padding-left: .7rem;
  border-left: 3px solid var(--trail);
  font: 400 .875rem/1.5 ui-sans-serif, system-ui, sans-serif;
  color: var(--ink-soft);
}

.steps figcaption strong { color: var(--trail); }

/* ---- Maps ---- */

figure.map { margin: 2rem 0; }

figure.map img {
  border: 1px solid var(--rule);
  border-radius: 4px;
  width: 100%;
}

figure.map figcaption {
  margin-top: .6rem;
  font: 400 .9375rem/1.5 ui-sans-serif, system-ui, sans-serif;
  color: var(--ink-soft);
}

/* ---- Footer ---- */

footer {
  margin-top: 3.5rem;
  padding-block: 1.75rem 3rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
}
footer p { margin: 0 0 .4rem; max-width: var(--measure); }
.small { font-size: .875rem; color: var(--ink-faint); }

/* ---- Print: this page is meant to be carried in the car ---- */

@media print {
  :root { --paper: #fff; }

  body { font-size: 11pt; line-height: 1.45; }

  .wrap { max-width: none; padding-inline: 0; }

  .masthead {
    background: none;
    color: #000;
    border-bottom: 2pt solid #000;
    padding-block: 0 .5rem;
  }
  .eyebrow, .address { color: #333; }
  .masthead h1 { font-size: 20pt; }

  .facts { background: none; border: 1pt solid #999; }
  .callout { background: none; border-left: 3pt solid #000; }

  .map-link, .button { display: none; }

  /* Keep each turn and its photo together on one sheet */
  .steps > li, figure.map { break-inside: avoid; page-break-inside: avoid; }

  .steps > li::before {
    background: #fff;
    border-color: #000;
    color: #000;
  }
  .marker { background: #000; }

  figure.map { break-before: page; page-break-before: always; }

  a { color: #000; text-decoration: none; }
  /* Spell out destinations that a printed page can't click */
  .facts a[href^="http"]::after,
  footer a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
