@import './brand.css';

main { padding-block: clamp(27px, 5vw, 50px) 38px; }
main h1 { font-size: clamp(1.85rem, 4vw, 3.3rem); }
.project-meta { margin: 10px 0 22px; color: var(--muted); }
.board-viewer { border: 1px solid #c6d6df; border-radius: 6px; overflow: hidden; background: #fff; }
.board-controls, .viewer-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 15px; padding: 8px 13px; }
.view-controls, .zoom-controls { display: flex; flex-wrap: wrap; gap: 4px; }
.board-controls button {
  min-height: 36px; border: 1px solid transparent; border-radius: 4px; padding: 4px 10px;
  background: transparent; color: var(--ink); font: inherit; font-size: .875rem; cursor: pointer;
}
.board-controls button:hover { background: #eef4f6; }
.board-controls button[aria-pressed=true] { background: #e5f2f5; border-color: #b7d9e0; color: #07586a; font-weight: 650; }
.board-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.surface { position: relative; height: clamp(300px, 63vh, 730px); background: #edf2f4; border-block: 1px solid var(--line); }
.drawing { inset: 0; position: absolute; overflow: auto; }
.drawing img { display: block; margin: 16px auto; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; }
.drawing.zoomed img { height: auto; }
#orbit, #fallback { width: 100%; height: 100%; display: block; }
#orbit { cursor: grab; touch-action: none; }
#orbit:active { cursor: grabbing; }
#fallback { object-fit: contain; }
.viewer-footer, .credits { font-size: .875rem; color: var(--muted); }
.viewer-footer { align-items: baseline; min-height: 39px; }
.viewer-footer a, .credits a { text-underline-offset: 3px; }
.credits { margin-top: 16px; }
@media (max-width: 580px) {
  .board-controls, .viewer-footer { padding-inline: 7px; }
  .board-controls button { padding-inline: 7px; }
  .surface { height: clamp(270px, 88vw, 420px); }
}
@media (max-width: 350px) { .masthead .nav-app { display: inline-flex; } }
