/* 2p.com.au — the 2P document system, set for the web.
   Palette and the sans/mono faces are taken from the 2P Document System
   artifact; the body face is serif by owner direction. Plain by intent:
   real rules instead of shadows, photographs at their own size, nothing
   that moves. Single theme, like the printed documents it matches. */

:root {
  color-scheme: light;

  /* --- the ladder, anchored on 2P Blue = rgb(24, 90, 198) --- */
  --blue:      #185AC6;
  --blue-d:    #12428F;
  --blue-dd:   #0D295C;
  --azure:     #0a6bff;

  --ink:       #1b1d29;
  --ink-soft:  #4a4f63;
  --muted:     #6b7089;
  --rule:      #bcc0d2;
  --rule-soft: #e4e6ef;
  --tint:      #E8EEF9;
  --tint-soft: #F4F7FC;
  --paper:     #ffffff;

  --serif: "Iowan Old Style", "Sitka Text", Constantia, Palatino, "Palatino Linotype",
           "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans:  Helvetica, Arial, "Helvetica Neue", "Liberation Sans", sans-serif;
  --mono:  "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16.5px/1.62 var(--serif);
}

.page { max-width: 730px; margin: 0 auto; padding: 0 20px 70px; }

a       { color: var(--blue); }
a:hover { color: var(--azure); }

/* ---------- masthead ---------- */
.masthead { border-bottom: 2px solid var(--blue); margin-bottom: 26px; padding: 30px 0 12px; }
.masthead h1 { font-size: 26px; margin: 0 0 3px; letter-spacing: -.01em; color: var(--blue); }
.masthead h1 a { color: var(--blue); text-decoration: none; }
.masthead .sub { font-size: 15px; color: var(--muted); font-style: italic; margin: 0 0 12px; }
.masthead nav { font-family: var(--sans); font-size: 13px; }
.masthead nav a { margin-right: 4px; }
.masthead nav span { color: var(--rule); margin-right: 4px; }

/* ---------- structure ---------- */
h2 {
  font-size: 19px;
  color: var(--blue);
  margin: 42px 0 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--rule);
}
h3 { font-size: 16.5px; margin: 28px 0 4px; color: var(--blue-dd); }
p  { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
.lead { font-size: 17px; }

/* ---------- photographs ---------- */
figure { margin: 20px 0 22px; }
figure img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule);
  padding: 4px;                 /* the old photo-frame look, on purpose */
  background: var(--paper);
}
figcaption {
  font-family: var(--sans);
  font-size: 12px; line-height: 1.55;
  color: var(--muted);
  margin-top: 7px;
}
.pair { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.pair figure { flex: 1 1 300px; margin: 20px 0 6px; }
/* One portrait beside one landscape leaves the captions on different lines
   and the row looking broken. Crop both to a common box. */
.pair figure img { height: 215px; object-fit: cover; }

/* ---------- work entries ---------- */
.work { margin: 0 0 36px; }
.work .who {
  font-family: var(--mono);
  font-size: 12px; font-weight: bold;
  color: var(--azure);
  margin: 0 0 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.work .who.anon { color: var(--muted); font-weight: normal; font-style: normal; }

/* ---------- odds ---------- */
.note {
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--azure);
  background: var(--tint-soft);
  padding: 13px 16px;
  margin: 0 0 20px;
  font-size: 15px;
}
.note p:last-child { margin-bottom: 0; }

a.fn {
  font-family: var(--sans); font-size: 10px; font-weight: bold;
  vertical-align: super; line-height: 0; margin-left: 1px;
  text-decoration: none; padding: 0 1px;
}
.notes {
  border-top: 1px solid var(--rule); margin: 34px 0 0; padding: 12px 0 0;
}
.notes p {
  font-family: var(--sans); font-size: 12.5px; line-height: 1.65;
  color: var(--muted); margin: 0;
}
.notes a { color: var(--muted); }

table.plain { border-collapse: collapse; font-size: 14.5px; margin: 0 0 18px; width: 100%; }
table.plain th, table.plain td {
  border-bottom: 1px solid var(--rule-soft);
  padding: 7px 10px 7px 0; text-align: left; vertical-align: top;
}
table.plain th { width: 34%; font-weight: bold; color: var(--ink-soft); }

.footer {
  border-top: 2px solid var(--blue);
  margin-top: 48px;
  padding-top: 16px;
  font-family: var(--sans);
  font-size: 12.5px; line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .pair { display: block; }
}
