/* SweatStack Skunkworks. Four colours, one font, no tricks. */

:root {
  --paper: #fbfbf7;
  --ink: #1a1a1a;
  --link: #123A8A;
  --hover: #E8252C;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 48px 20px 64px;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Courier New', Courier, monospace;
  font-size: 17px;
  line-height: 1.5;
  /* Courier New is drawn very thin and has no weight between regular and bold.
     A hairline stroke thickens it a little. */
  -webkit-text-stroke: 0.3px currentColor;
}

a { color: var(--link); text-decoration: underline; }
a:hover { color: var(--hover); }
a:focus-visible, .table-scroll:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

h1, h2, p { margin: 0; }
h1 { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -0.5px; }
h2 { font-size: 18px; font-weight: 700; }

.small { font-size: 14px; }

.page, main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.page {
  max-width: 760px;
  margin: 0 auto;
}

/* Header: the skunk and the title */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 28px;
}

.mascot {
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  padding: 10px;
  background: #ffffff;
  line-height: 0;
}

/* The skunk is drawn on a 46 x 58 grid, 4px to the cell. The logo sits on top of
   it, and the paws on top of the logo, so that the skunk holds it. */
.mascot-stage { position: relative; width: 184px; height: 232px; }
.skunk-art { display: block; }
.mascot-logo { position: absolute; left: 26px; top: 98px; width: 52px; height: 52px; }
.mascot-paws { position: absolute; left: 0; top: 0; }

.masthead-text {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Note box */

.note {
  border: 1px solid var(--ink);
  padding: 10px 14px;
  font-size: 15px;
}

/* Experiments table */

.experiments {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.table-scroll { overflow-x: auto; }

.experiments table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 15px;
}

.experiments thead tr {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.experiments th {
  padding: 6px 8px;
  font-weight: 700;
  text-align: left;
}

.experiments tbody tr {
  border-bottom: 1px dotted #888;
  vertical-align: top;
}

.experiments tbody tr:last-child { border-bottom: 2px solid var(--ink); }

.experiments td { padding: 8px; }
.experiments th:first-child, .experiments td:first-child { padding-left: 0; }
.experiments th:last-child, .experiments td:last-child { padding-right: 0; }
.experiments .id, .experiments .maturity, .experiments .updated { white-space: nowrap; }
.experiments td .small { display: block; }

/* Call to action */

.further {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ways {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 24px;
}

.ways dt { font-weight: 700; }
.ways dd { margin: 0; }

.further-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  font-size: 15px;
}

.button {
  display: inline-block;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--ink);
  color: #ffffff;
  font-size: 17px;
  text-decoration: none;
}

.button:hover { background: var(--hover); color: #ffffff; }

/* Footer: the title block */

footer { display: flex; justify-content: flex-end; }

.titleblock {
  width: 100%;
  max-width: 360px;
  border-collapse: collapse;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: 12px;
}

.titleblock td { border: 1px solid var(--ink); padding: 4px 8px; }

@media (max-width: 480px) {
  body { padding: 28px 16px 48px; }
  h1 { font-size: 28px; }
}

@media print {
  body { padding: 0; background: #ffffff; }
  a { color: var(--ink); }
  .button { display: none; }
  .table-scroll { overflow: visible; }
  .experiments table { min-width: 0; }
}
