/* Penny's Notebook. Colours and type follow pennyshima.com. */
:root {
  --base: #ffffff;
  --contrast: #1a1a1a;
  --muted: #5c5c5c;
  --secondary: #345c00;
  --tint: #f4f6f0;
  --line: #dfe3d8;
  --wip: #345c00;
  --finished: #1d4f91;
  --frogged: #9a3412;
  --hibernating: #6b5b95;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --small: clamp(0.875rem, 0.85rem + 0.2vw, 0.95rem);
  --medium: clamp(1rem, 0.97rem + 0.2vw, 1.125rem);
  --large: clamp(1.6rem, 1.5rem + 0.6vw, 2rem);
  --gutter: clamp(1rem, 4vw, 2rem);
  --content: 680px;
  --wide: 1140px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --base: #161616; --contrast: #ececec; --muted: #a8a8a8; --secondary: #9dcf5a;
    --tint: #20241c; --line: #34392e;
    --wip: #9dcf5a; --finished: #8ab4f0; --frogged: #f0a07a; --hibernating: #bba8e8;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--base); color: var(--contrast); font-family: var(--font); font-size: var(--medium); line-height: 1.6; }
a { color: var(--secondary); text-underline-offset: 0.15em; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: var(--large); margin: 0 0 0.5rem; }
h2 { font-size: 1.3rem; margin: 2.2rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.25rem; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--content); }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--base); padding: 0.5rem; z-index: 10; }
.muted, .date { color: var(--muted); font-size: var(--small); }

/* header and footer */
.site-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.site-title { margin: 0; font-size: 1.35rem; font-weight: 700; }
.site-title a { color: var(--contrast); text-decoration: none; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current] { color: var(--contrast); font-weight: 600; }
.site-footer { margin-top: 4rem; padding-top: 1.5rem; padding-bottom: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--small); }
.site-footer p { margin: 0.25rem 0; }

/* status labels and progress */
.status { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; text-transform: lowercase; padding: 0.05rem 0.55rem; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.status-in-progress { color: var(--wip); }
.status-finished { color: var(--finished); }
.status-frogged { color: var(--frogged); }
.status-hibernating { color: var(--hibernating); }
.progress { height: 0.55rem; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--secondary); }

/* project cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 1.5rem 1.25rem; }
.cards li { margin: 0; }
.cards img, .cards .no-photo { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 6px; background: var(--tint); margin-bottom: 0.5rem; }
.cards h3 { font-size: 1rem; }
.cards h3 a { color: var(--contrast); text-decoration: none; }
.cards h3 a:hover { text-decoration: underline; }
.cards p { margin: 0.2rem 0 0; font-size: var(--small); color: var(--muted); }
.cards .progress { margin-top: 0.4rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 1.5rem; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.filters legend { float: left; margin-right: 0.4rem; font-size: var(--small); color: var(--muted); }
.filters button { font: inherit; font-size: var(--small); color: var(--contrast); background: var(--base); border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.75rem; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--secondary); border-color: var(--secondary); color: var(--base); }
.count { font-size: var(--small); color: var(--muted); margin: -0.75rem 0 1rem; }

/* project page */
.project-top { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: minmax(0, 1fr); margin-bottom: 1.5rem; }
@media (min-width: 760px) { .project-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.project-top .cover img { width: 100%; border-radius: 6px; }
.details { background: var(--tint); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem 1.4rem; align-self: start; }
.details .status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.details .progress { flex: 1 1 8rem; }
.details dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.35rem 1rem; margin: 0.75rem 0 0; font-size: var(--small); }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.details ul { margin: 0; padding: 0; list-style: none; }
.details h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 1.1rem 0 0; }
.details h2:first-of-type { margin-top: 0.5rem; }
.jump { font-size: var(--small); margin: 1rem 0 0; }

/* entries */
.entry { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 1.5rem; max-width: var(--content); scroll-margin-top: 1rem; }
.entry h2, .entry h3 { margin: 0 0 0.15rem; font-size: 1.15rem; }
.entry h2 a, .entry h3 a { color: var(--contrast); text-decoration: none; }
.entry .meta { margin: 0 0 0.75rem; font-size: var(--small); color: var(--muted); }
.entry .meta a { color: var(--secondary); }
.body h2 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.body blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--line); color: var(--muted); }
.body .footnote { font-size: var(--small); color: var(--muted); }
.photos { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); margin: 1rem 0; }
.photos.one { grid-template-columns: minmax(0, 1fr); }
.photos figure { margin: 0; }
.photos img { width: 100%; border-radius: 4px; }
.photos:not(.one) img { aspect-ratio: 1; object-fit: cover; }
.photos figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }
.updates-list { list-style: none; padding: 0; margin: 0 0 1rem; max-width: var(--content); }
.updates-list li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.updates-list .date { padding-top: 0.1rem; }
.more { margin-top: 2rem; }
.read-more { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* home page: in-progress projects, 3 across on tablets and up */
@media (min-width: 700px) { .cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
