/* Shared styles for inner pages + navigation breakpoint for 3+ links.
   Loaded after style.css. */

/* Nav: with 3+ links, switch to the hamburger below 768px instead of 600px */
@media (min-width: 600px) and (max-width: 767px) {
  .site-nav { display: none; }
  .site-header.has-menu .menu-btn { display: inline-flex; }
  .site-header.menu-open .site-nav {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    padding: 4px 20px 12px;
  }
  .site-header.menu-open .site-nav ul { flex-direction: column; gap: 0; max-width: 480px; margin: 0 auto; }
  .site-header.menu-open .site-nav a { display: block; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .site-header.menu-open .site-nav li:last-child a { border-bottom: 0; }
}

/* Inner page layout */
main.page { display: block; max-width: 760px; padding-top: 40px; }
.page-head { margin-bottom: 8px; }
.page-head h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
}
.lead { margin: 0 0 20px; max-width: 60ch; color: var(--muted); font-size: 1.15rem; }
.meta { margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; }
.btn-pill {
  display: inline-block; padding: 8px 18px;
  border: 1.5px solid var(--accent); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.btn-pill:hover { background: var(--accent); color: #0f1626; }
.toc { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: 0.85rem;
}
.toc a:hover { background: var(--accent); color: #0f1626; }

.section { margin-top: 56px; }
.section > h2 {
  margin: 0 0 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em;
}

/* About: CV-style entries */
.entry { display: grid; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.entry:last-child { border-bottom: 0; }
.entry-when { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.entry h3 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.entry .org { margin: 0 0 8px; font-weight: 600; }
.entry p, .entry ul { margin: 0 0 8px; color: var(--muted); }
.entry ul { padding-left: 1.1em; }
@media (min-width: 640px) { .entry { grid-template-columns: 150px 1fr; } }

/* Workspace: figure, prose, gear, apps, lists */
.figure { margin: 0 0 24px; }
.figure .thumb { border-radius: 16px; overflow: hidden; }
.figure figcaption { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
.prose p { max-width: 65ch; margin: 0 0 1em; line-height: 1.7; }
.prose h3 { margin: 1.6em 0 0.5em; font-size: 1.15rem; font-weight: 800; }
.gear-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gear-grid { grid-template-columns: repeat(2, 1fr); } }
.gear { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.gear-body { padding: 16px; }
.gear-cat { margin: 0 0 4px; color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.gear h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; }
.gear p:last-child { margin: 0; color: var(--muted); font-size: 0.95rem; }
.app-group { margin-top: 32px; }
.app-group:first-of-type { margin-top: 0; }
.app-group h3 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 800; }
.app-list { list-style: none; margin: 0; padding: 0; }
.app { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.app-icon {
  flex: 0 0 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); font-weight: 800;
}
.app strong { display: block; }
.app p { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }
.plain-list { margin: 0; padding-left: 1.2em; line-height: 1.7; }
.note { margin: 48px 0 0; color: var(--muted); font-size: 0.85rem; }
