/* ronbronson.dev on the block layer (DDR-012): site-specific rules that sit
   on top of faces.css + core.css. Ron's rulings, shared with the other two
   sites: nav items are plain, in the display face at the rail-heading size,
   underlined and nothing else; no arrows anywhere; the colophon stays small
   and monospaced, exactly as live .dev has it. */

.site--blocks .topbar nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site--blocks .topbar nav a { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: -.03em; color: var(--ink); text-decoration: underline; text-underline-offset: .14em; text-decoration-thickness: 2px; }

/* Colophon: RX100, 13px uppercase heading, 16px lines, right-aligned. These
   are the live site's measured values; scale--front had blown the heading
   up to 46px. */
.site--dev .colophon, .site--dev .colophon p { font-family: var(--mono); font-size: 16px; font-weight: 500; letter-spacing: .01em; }
.scale--front.site--dev .colophon h2 { margin: 0 0 8px; font-family: var(--mono); font-size: 13px; font-weight: 600; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; }

/* Pages whose content starts on the plain ground (projects, AT Protocol,
   404) get the breathing room the old masthead used to give them. */
.site--blocks .topbar + :not(.block) { margin-top: clamp(40px, 5vw, 72px); }
/* The TopBar's own lead-colour rule is enough; no second rule under it. */
.site--blocks .topbar + .block::before { display: none; }

/* Tile grid, for the Writing shelf on the front page. Same component the
   other two sites carry in their own home.css; .dev keeps its label in the
   mono face, which is the only difference. */
.tg { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.site--blocks .block a.tile, .tile { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 132px; padding: 18px 20px 20px; border: var(--frame-heavy) solid var(--k-ink); background: var(--k-bg); color: var(--k-ink); text-decoration: none; transition: transform .12s ease; }
.tile .lab { min-height: 1.3em; font-family: var(--mono); font-size: 14px; line-height: 1.3; color: var(--ink-soft); }
.block--deeper .tile .lab, .block--deep .tile .lab, .block--ink .tile .lab { color: var(--k-ink); }
.tile b { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.15; letter-spacing: -.025em; }
.site--blocks .block a.tile:hover { transform: translateY(-3px); background: var(--k-lead); color: var(--k-on-lead); text-decoration: none; }
.site--blocks .block a.tile:hover .lab { color: var(--k-on-lead); }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }

/* Phone screens, for project pages whose evidence is a mobile app. Each
   frame keeps the screenshot's own proportions; the grid, not object-fit,
   decides how many sit side by side, so nothing gets cropped. */
.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(12px, 2vw, 18px); margin: clamp(28px, 4vw, 48px) 0 0; }
.phones .figure { margin: 0; }
.phones .figure img { border: var(--frame) solid var(--ink); }

/* Contact: envelope in the nav, plain link in the footer. */
.topbar nav .nav__contact { text-decoration: none; font-size: 1.2em; line-height: 1; }

/* Social row: the same icons as .design and the masthead, above the colophon. */
.hx-icons { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 0 0 28px; }
.hx-i { display: inline-flex; width: 22px; height: 22px; color: var(--ink); }
.hx-i svg { width: 100%; height: 100%; }
.hx-i:hover { color: var(--accent); }
