/* Push + Proof — Times New Roman Regular 12pt on white */

:root {
  --ink: #000;
  --paper: #fff;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.logo-h { margin: 0; font: inherit; }

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: "Times New Roman", Times, "Liberation Serif", serif;
  font-weight: 400;
  font-size: 12pt;
  line-height: 20px;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:hover, a:focus-visible { text-decoration: underline; }
a:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

main {
  flex: 1;
  width: 100%;
  padding: 26vh max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}

/* logo */
.logo {
  display: block;
  width: clamp(260px, 36.7vw, 720px);
  margin: 0 auto;
}
.logo img { display: block; width: 100%; height: auto; }

/* shared block under the logo */
.block { margin: clamp(56px, 9.3vw, 170px) auto 0; }

/* index: work list */
.list {
  width: min(848px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  list-style: none;
}
@media (min-width: 761px) { .list { transform: translateX(-32px); } }
.row {
  display: grid;
  grid-template-columns: 93px 333px 190px 143px 1fr;
  align-items: baseline;
}
.row .url a { text-decoration: underline; }
.row .url a:hover { text-decoration: none; }

/* about: text column */
.about { width: min(648px, 100%); }
.about p { margin: 0 0 16px; }
.about .home { text-decoration: underline; }
.about .home:hover { text-decoration: none; }
.contact { margin-top: 52px; }
.contact div { display: flex; }
.contact dt, .contact dd { margin: 0; }
.contact dt { width: 48px; flex: none; }
.contact a:hover { text-decoration: underline; }

/* footer nav */
footer {
  padding: 0 24px calc(56px + env(safe-area-inset-bottom));
  text-align: center;
}
footer a { display: inline-block; padding: 12px 16px; }
footer .on { text-decoration: underline; }
footer .on:hover { text-decoration: none; }

@media (max-width: 760px) {
  main { padding-top: 18vh; }
  .logo { width: min(78vw, 420px); }
  .block { margin-top: 56px; }

  .row {
    grid-template-columns: 2.4em 1fr;
    grid-template-areas:
      "n name"
      ".  url"
      ".  meta";
    margin-bottom: 14px;
  }
  .row .n    { grid-area: n; }
  .row .name { grid-area: name; }
  .row .url  { grid-area: url; }
  .row .cat, .row .type { grid-area: meta; }
  .row .cat  { justify-self: start; }
  .row .type { justify-self: start; margin-left: 5.5em; }
  .row.empty { display: none; }

  .contact { margin-top: 40px; }

  /* comfortable tap targets, no hover-only states */
  body { line-height: 24px; }
  .row { margin-bottom: 18px; }
  .row .url a, .contact a, .about .home { display: inline-block; padding: 4px 0; }
  .contact div { align-items: baseline; }
  a:hover { text-decoration: inherit; }
  footer a { padding: 14px 20px; }
}

@media (max-width: 380px) {
  .row .type { margin-left: 4.5em; }
}

@media print {
  footer { display: none; }
}
