/* Brick & Shelf home draft 2026-11-07 — square-card grid. Scoped to the home page only. */
main { max-width: 1120px; padding: 40px 24px 80px; }
.hero { padding: 8px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -0.8px; font-weight: 600; max-width: 18ch; }
.hero .sub { font-size: 19px; color: var(--text); margin-top: 12px; max-width: 40rem; }
.hero-note { font-size: 14px; color: var(--muted); margin-top: 10px; max-width: 40rem; }
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.routes a { display: block; background: var(--card); border: 1px solid #1a1a1a; padding: 14px 16px; text-decoration: none; min-height: 44px; }
.routes a:hover { background: #f1f1f1; }
.routes strong { display: block; font-size: 17px; font-weight: 600; }
.routes strong::after { content: " →"; }
.routes span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.section-label { font-size: 22px; font-weight: 600; letter-spacing: -0.3px; margin: 8px 0 16px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid #1a1a1a; display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 1px solid #1a1a1a; background: #eee; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media .ai-label { position: absolute; left: 10px; bottom: 10px; margin: 0; background: rgba(26,26,26,.82); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; }
.card-media .entry-actions { position: absolute; top: 8px; right: 8px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card h2 { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -0.2px; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.promise { font-size: 15px; color: var(--muted); }
.card:not(:has(details[open])) .promise {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.frame-price { font-size: 15px; font-weight: 600; }
.card:has(details[open]) .frame-price { display: none; }
details.full summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}
details.full summary::-webkit-details-marker { display: none; }
details.full summary:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 3px; }
details.full[open] .when-closed,
details.full:not([open]) .when-open { display: none; }
details.full[open] .prices,
details.full[open] .checked { animation: card-open 200ms ease-out; }
@keyframes card-open { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  details.full[open] .prices,
  details.full[open] .checked { animation: none; }
}
.prices { list-style: none; border-top: 1px solid var(--line); margin-top: 4px; }
.prices li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.prices li a { text-decoration: none; border-bottom: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.prices li a:hover { border-bottom-color: var(--text); }
.pk { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 4px; }
.pv { font-weight: 600; white-space: nowrap; }
.pv small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); white-space: normal; text-align: right; }
.prices li.total { background: #f4f4f4; padding: 7px 6px; }
.ext-hint { font-size: 12px; color: var(--muted); margin-left: 6px; }
.checked { font-size: 12px; color: var(--muted); }
.more { margin-top: auto; font-weight: 600; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.guides { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 24px; }
.guide-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.guide-list a { display: block; padding: 14px 2px; border-bottom: 1px solid var(--line); text-decoration: none; min-height: 44px; }
.guide-list strong { display: block; font-weight: 600; }
.guide-list span { font-size: 14px; color: var(--muted); }
.all-guides { margin-top: 16px; font-weight: 600; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  main { padding: 24px 16px 60px; }
  .routes, .grid, .guide-list { grid-template-columns: 1fr; }
  .hero .sub { font-size: 17px; }
}
.card-media .ai-label { right: auto; top: auto; width: auto; max-width: calc(100% - 20px); }
.prices li { flex-direction: column; }
.pv small { text-align: left; }
