/* phydelta.net — site styles on top of the brand web kit (vendor/brand/css/brand.css).
   Only token variables: no new colours, shadows, gradients or rounded corners. */

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ---------- hero ---------- */
.pd-hero { align-items: end; row-gap: var(--s-6); }
.pd-hero .ph-h1 { margin-top: var(--s-3); }
.pd-hero .ph-lead + p { margin-top: var(--s-3); }
.pd-break { display: block; }

/* ---------- build sheet: a spec sheet of the work in progress ---------- */
.pd-sheet { padding: 0; }
.pd-sheet__head {
  display: flex; justify-content: space-between; gap: var(--s-2);
  padding: var(--s-2) var(--s-3); border-bottom: var(--rule-w) solid var(--rule);
}
.pd-sheet dl { margin: 0; }
.pd-sheet__row {
  display: grid; grid-template-columns: 9.5em 1fr; gap: var(--s-2);
  padding: var(--s-2) var(--s-3); border-bottom: var(--rule-w) solid var(--rule);
}
.pd-sheet__row:last-child { border-bottom: 0; }
.pd-sheet dt { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted); padding-top: 2px; }
.pd-sheet dd { margin: 0; font-size: var(--fs-small); }
.pd-mono { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; }

/* Build meter: 12 cells, filled in Ink (Paper at night) one increment at a time */
.pd-meter { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-bottom: var(--s-1); }
.pd-meter__cell { height: 16px; border: var(--rule-w) solid var(--rule); transition: background-color var(--dur) var(--ease); }
.pd-meter__cell.is-on { background: var(--text); border-color: var(--text); }
@media (prefers-reduced-motion: reduce) { .pd-meter__cell { transition: none; } }

/* ---------- links ---------- */
.pd-links .ph-card { position: relative; display: flex; flex-direction: column; min-height: 220px; transition: border-color var(--dur) var(--ease); }
.pd-links .ph-card:hover, .pd-links .ph-card:focus-within { border-color: var(--text); }
.pd-links .ph-card .ph-h3 a { text-decoration: none; }
.pd-links .ph-card .ph-h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link */
.pd-links .ph-card .ph-h3 a:focus-visible { outline: none; }
.pd-links .ph-card:has(a:focus-visible) { outline: var(--focus); outline-offset: 3px; }
.pd-links .pd-card__icon { width: 28px; height: 28px; margin-bottom: var(--s-3); }
.pd-links .pd-card__url { margin-top: auto; padding-top: var(--s-3); display: inline-flex; align-items: center; gap: var(--s-1); color: var(--text-muted); }
.pd-links .pd-card__url svg { width: 18px; height: 18px; }

/* ---------- footer ---------- */
.pd-footer__meta { color: var(--text-muted); }

@media (max-width: 480px) {
  .ph-header__logo, .ph-header__logo img { width: 180px; }
  .pd-sheet__row { grid-template-columns: 1fr; gap: 4px; }
}

/* Greek letters keep their case: uppercase would turn φ into Φ */
.pd-glyph { text-transform: none; }
