/* The personal site's own stylesheet (LES-636, "brass & ink"): loaded on every
   page after /site/theme.css (Page.create's base stylesheets), served from
   sites/personal/static/site.css at /site/site.css. It styles the ornament
   slots that lib/ renders: the top bar, the footer, the section divider, the
   cards, the monogram. Only theme variables and allowed keywords here:
   make check-themes scans this file. */

/* The top bar and the footer: a double brass rule instead of base.css's thin
   line. */
#top-banner {
  border-bottom: 3px double var(--color-ornament);
}

.site-footer {
  border-top: 3px double var(--color-ornament);
}

/* The section divider (Section's .section-divider slot, unhashed): a brass
   double rule with a small diamond in the middle, full width. The diamond
   sits on the section's surface (--color-card). */
.section-divider {
  height: 14px;
  border-bottom: 3px double var(--color-ornament);
  position: relative;
  margin: 0 0 var(--spacing-md);
}

.section-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 9px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  border: 1px solid var(--color-ornament);
  background: var(--color-card);
}

/* The monogram in the top bar (Nav.t's monogram): the svg's diamonds stroke
   currentColor, so the class colors it. */
.brand-monogram {
  color: var(--color-ornament);
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  margin-right: var(--spacing-sm);
}

/* The footer ornament slot (Footer.t's ornament): centered on its own line
   under the footer's row. */
.site-footer-inner {
  flex-wrap: wrap;
}

.footer-ornament {
  color: var(--color-ornament);
  display: flex;
  justify-content: center;
  width: 100%;
  padding: var(--spacing-sm) 0 0;
}

/* A nav edge ornament (Nav.t's edge), when the site has one: a full-width
   block under the bar. base.css keeps #top-banner on one flex line (nowrap on
   a phone), so the wrap is conditional on the edge being there. */
#top-banner:has(> .nav-edge) {
  flex-wrap: wrap;
}

.nav-edge {
  display: block;
  width: 100%;
}

/* The card corner bracket (LES-636): an 18x18 bracket at 6px from the
   top-left corner of each card (two of its sides): the Apps cards and the DIY
   projects. Not Expandable_card's .card, which is one row of a section (a job,
   a degree): a bracket on every row read as clutter (review). */
.app-card,
.diy-project {
  position: relative;
}

.app-card::before,
.diy-project::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--color-ornament);
  border-left: 1px solid var(--color-ornament);
  pointer-events: none;
}
