/* The StepHaven journal: route cards laid on the walking map.
   Needs ../site.css (or ../../site.css) first. */

.intro { position: relative; z-index: 3; padding: 64px 0 28px; }
.intro h1 { font-size: clamp(48px, 9vw, 88px); line-height: .88; }
.intro h1 span { color: var(--wood-deep); display: block; }
.intro p { color: var(--ink-soft); margin: 18px 0 0; max-width: 52ch; font-size: 19px; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 16px 0 88px; position: relative; z-index: 3; }
.post { display: flex; flex-direction: column; background: var(--key); border: 2px solid var(--ink); text-decoration: none; color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.post:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(27,42,29,.16); }
.post img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-bottom: 2px solid var(--ink); }
.post .body { padding: 18px 20px 22px; }
.post h2 { font-size: 26px; margin: 0 0 10px; line-height: 1; }
.post p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.byline { margin: 16px 0 0; font-size: 15px; color: var(--ink-soft); }

/* An article: one printed route card on the map */
.card { position: relative; z-index: 3; max-width: 820px; margin: 44px auto 88px; background: var(--key); border: 2px solid var(--ink);
  box-shadow: 0 18px 40px rgba(27,42,29,.14); }
.read { max-width: 680px; margin: 0 auto; padding: 0 28px; }
article header.read { padding: 44px 28px 26px; }
article h1 { font-size: clamp(40px, 7vw, 64px); line-height: .92; margin: 12px 0 18px; }
article .dek { font-size: 21px; line-height: 1.45; color: var(--ink-soft); margin: 0; }
.cover { margin: 0 0 36px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.cover img { width: 100%; }
.cover figcaption { font: 700 14px/1.2 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft);
  padding: 10px 28px; border-top: 1px solid rgba(27,42,29,.2); display: flex; align-items: center; gap: 12px; }
.cover figcaption::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--path); flex: none; }
article h2 { font-size: 34px; margin: 44px 0 12px; }
article p, article li { margin: 0 0 18px; }
article ul { padding-left: 22px; margin: 0 0 18px; }
article li { margin-bottom: 10px; }
article li::marker { color: var(--path); }
article a { color: var(--path-deep); }
.callout { background: var(--sign); color: #fff; border-radius: 12px; padding: 22px 24px; margin: 30px 0; outline: 2px solid #fff; outline-offset: -8px; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { font-weight: 600; }
.figure { margin: 30px 0; }
.figure img { border: 2px solid var(--ink); }
.figure.phone img { max-width: 280px; margin: 0 auto; border-radius: 24px; transform: rotate(-1.5deg); box-shadow: 0 12px 26px rgba(27,42,29,.18); }
.figure figcaption { color: var(--ink-soft); font-size: 15px; text-align: center; margin-top: 12px; font-style: italic; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 26px; font-size: 16.5px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid rgba(27,42,29,.18); vertical-align: top; }
th { font: 700 14px/1.2 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }

.download { display: flex; align-items: center; gap: 20px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 24px 0; margin: 48px 0 8px; }
.download img { width: 76px; height: 76px; border-radius: 18px; flex: 0 0 auto; }
.download h3 { margin: 0 0 6px; font-size: 26px; }
.download p { margin: 0 0 14px; color: var(--ink-soft); font-size: 16px; }
.more { padding: 28px 0 40px; }
.more h2 { margin-top: 0; font-size: 26px; }
.more ul { list-style: none; padding: 0; margin: 0; }
.more li { margin-bottom: 12px; padding-left: 26px; position: relative; }
.more li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; border-top: 3px dotted var(--path); }

@media (max-width: 820px) {
  .posts { grid-template-columns: 1fr; }
  .card { margin: 24px 0 64px; border-left: 0; border-right: 0; }
  .read, article header.read { padding-left: 20px; padding-right: 20px; }
  .cover figcaption { padding: 10px 20px; }
}
@media (max-width: 480px) {
  .download { flex-direction: column; align-items: flex-start; }
  table { font-size: 15px; }
  th, td { padding: 9px 6px; }
}
