/* quinnennis.com: quiet, typographic, print-like. */
/* Colours and fonts copied from the Bouncing Board Substack theme:
   warm taupe background, steel-blue accent, Lora headings, Spectral body. */
:root {
  --paper: #e3d8d1;
  --ink: #231c1f;
  --muted: #6e6466;
  --rule: #cbbfb8;
  --accent: #316281;      /* Bouncing Board blue */
  --accent-soft: #d9d3d1;
  --card: #ebe3de;
  --head: "Lora", Georgia, serif;
  --serif: "Spectral", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --measure: 40rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 18px/1.6 var(--serif); font-feature-settings: "kern", "liga", "onum";
}
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

header.site, main, footer.site { max-width: 52rem; margin: 0 auto; padding: 0 1.5rem; }
header.site { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font: 500 1.25rem/1 var(--head); text-decoration: none; }
header.site nav { display: flex; gap: 1.6rem; font: .82rem var(--head); letter-spacing: .14em; text-transform: uppercase; }
header.site nav a { text-decoration: none; color: var(--muted); }
header.site nav a[aria-current], header.site nav a:hover { color: var(--accent); }
header.site nav a[aria-current] { box-shadow: inset 0 -2px var(--accent); }
footer.site { margin-top: 5rem; padding-top: 1.25rem; padding-bottom: 3rem; border-top: 1px solid var(--rule); color: var(--muted); font: .8rem/1.5 var(--sans); }

.intro { padding: 3.5rem 0 1.5rem; }
.intro.small { padding-bottom: .5rem; }
.intro h1 { font-family: var(--head); font-size: clamp(2.2rem, 5vw, 3.1rem); line-height: 1.1; margin: 0 0 1rem; font-weight: 600; letter-spacing: -.01em; }
.lede { font-size: 1.22rem; line-height: 1.55; max-width: 36rem; margin: 0; color: var(--ink); }

h2.section { font: 600 .78rem/1 var(--head); color: var(--accent) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 3rem 0 .5rem; padding-bottom: .75rem; border-bottom: 2px solid var(--accent); }
.count { color: var(--accent); margin-left: .35em; }

.meta { font: .78rem/1.4 var(--sans); color: var(--muted); margin: 0 0 .35rem; letter-spacing: .02em; }
.pub { display: inline-block; margin-left: .6em; padding: .05em .5em; border-radius: 3px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.post .meta .pub { margin-left: 0; }

/* post list */
.card { display: grid; grid-template-columns: 10rem 1fr; gap: 1.4rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.card .cover img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 3px; background: var(--rule); }
.card h3 { font-family: var(--head); font-size: 1.32rem; line-height: 1.25; margin: 0 0 .35rem; font-weight: 600; }
.card h3 a { text-decoration: none; }
.dek { color: var(--muted); margin: 0; font-size: 1.02rem; line-height: 1.45; }
@media (max-width: 600px) { .card { grid-template-columns: 1fr; gap: .8rem; } }

/* subscribe */
.subscribe { border-top: 2px solid var(--accent); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; margin: 2rem 0 0; padding: 1.25rem 1.5rem; background: var(--accent-soft); border-radius: 6px; }
.subscribe h2 { font-family: var(--head); margin: 0; font-size: 1.1rem; font-weight: 600; }
.subscribe p { margin: .15rem 0 0; color: var(--muted); font: .85rem var(--sans); }
.subscribe form { display: flex; gap: .5rem; flex: 1 1 18rem; max-width: 24rem; }
.subscribe input { flex: 1; min-width: 0; font: .95rem var(--sans); padding: .6rem .8rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink); }
button, .btn { font: 600 .85rem/1 var(--sans); padding: .7rem 1rem; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { color: #fff; filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { color: var(--accent); background: var(--accent-soft); }

/* single post */
.post > header { max-width: var(--measure); margin: 3rem auto 1.5rem; }
.post h1 { font-family: var(--head); font-size: clamp(2rem, 4.5vw, 2.7rem); line-height: 1.12; margin: .2rem 0 .6rem; font-weight: 600; letter-spacing: -.01em; }
.post .dek { font-size: 1.25rem; }
.byline { font: .9rem var(--sans); color: var(--muted); margin: 1rem 0 0; }
.hero { margin: 0 auto 1.5rem; max-width: 46rem; }
.hero img { width: 100%; max-height: 34rem; object-fit: cover; border-radius: 3px; }
.origin { max-width: var(--measure); margin: 0 auto 2rem; padding: .9rem 1.1rem; border-left: 3px solid var(--accent); background: var(--accent-soft); font: .88rem/1.5 var(--sans); }
.origin .btn { margin: .6rem .4rem 0 0; padding: .55rem .8rem; font-size: .8rem; }
.origin.end { margin-top: 3rem; }
.post-foot { max-width: var(--measure); margin: 0 auto; font: .9rem var(--sans); }
.readon { max-width: var(--measure); margin: 1.5rem auto; font: .95rem var(--sans); }

.prose { max-width: var(--measure); margin: 0 auto; hyphens: auto; overflow-wrap: break-word; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.15em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--head); line-height: 1.25; margin: 2.2em 0 .6em; font-weight: 600; }
.prose h2 { font-size: 1.55rem; } .prose h3 { font-size: 1.3rem; } .prose h4 { font-size: 1.12rem; }
.prose blockquote { border-left: 2px solid var(--rule); padding-left: 1.1rem; color: var(--muted); font-style: italic; }
.prose .pullquote { font-size: 1.3rem; text-align: center; border: 0; margin: 2rem 0; }
.prose figure, .prose .captioned-image-container { margin: 2rem 0; }
.prose .captioned-image-container figure { margin: 0; }
.prose figure img { display: block; margin: 0 auto; border-radius: 2px; }
.prose figcaption, .prose .image-caption { font: .8rem/1.45 var(--sans); color: var(--muted); margin-top: .6rem; text-align: center; }
.prose hr { border: 0; text-align: center; margin: 2.5rem 0; }
.prose hr::after { content: "◆ ◆ ◆"; color: var(--muted); font-size: .6rem; letter-spacing: 1em; }
.prose table { border-collapse: collapse; width: 100%; font: .85rem/1.4 var(--sans); margin: 1.5rem 0; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: .45rem .6rem; text-align: left; vertical-align: top; }
.prose code { font-size: .85em; background: var(--accent-soft); padding: .1em .3em; border-radius: 3px; }
.prose .footnote { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: .6rem; margin-top: 1rem; display: flex; gap: .5rem; }
.prose .footnote:first-of-type { margin-top: 3rem; }
.prose .footnote-anchor, .prose .footnote-number { font: .7rem var(--sans); vertical-align: super; text-decoration: none; color: var(--accent); }
.prose .footnote-content p { margin: 0; }
.about { margin-left: 0; font-size: 1.1rem; }

/* projects */
.projects { margin-top: 2rem; }
.project { display: grid; grid-template-columns: minmax(0, 22rem) 1fr; gap: 1.75rem; padding: 1.5rem 0 2rem; border-bottom: 1px solid var(--rule); align-items: start; }
.project .thumb img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 4px; border: 1px solid var(--rule); }
.project h3 { font-family: var(--head); font-size: 1.6rem; margin: 0 0 .5rem; font-weight: 600; }
.project h3 a { text-decoration: none; }
.project p { margin: 0 0 1rem; }
.tags { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font: .72rem var(--sans); color: var(--muted); border: 1px solid var(--rule); border-radius: 99px; padding: .2rem .6rem; }
@media (max-width: 700px) { .project { grid-template-columns: 1fr; } }

/* embeds rewritten from Substack */
.prose .tweet { font-style: normal; color: var(--ink); border: 1px solid var(--rule); border-radius: 6px; padding: 1rem 1.2rem; font: .95rem/1.5 var(--sans); }
.prose .tweet img { border-radius: 4px; margin: .5rem 0; }
.prose .tweet-by { color: var(--muted); font-size: .8rem; margin: 0; }
.prose .video { position: relative; aspect-ratio: 16/9; margin: 2rem 0; }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 4px; }
.prose .embed-note { font: .9rem var(--sans); padding: .8rem 1rem; border: 1px dashed var(--rule); border-radius: 6px; }

.brand img { width: 34px; height: 34px; border-radius: 7px; }
.subscribe { background: var(--card); }
.origin { background: var(--card); }
.pub { background: transparent; border: 1px solid var(--accent); }
.prose .tweet, .subscribe input { background: var(--card); }
.prose h1 { font-family: var(--head); font-size: 1.75rem; line-height: 1.2; margin: 2.2em 0 .6em; }
.prose .tweet img { max-height: 24rem; width: auto; display: block; }
.origin .actions { display: block; }

/* featured marker */
.star { color: var(--accent); font-size: .85em; margin-right: .1em; }

/* Sand to Server preview opening the home page */
.hero-project { margin: 2rem 0 0; background: #0d0b16; border-radius: 8px; overflow: hidden; display: grid; }
.hero-project .shot img { display: block; width: 100%; aspect-ratio: 16/8; object-fit: cover; object-position: center 35%; transition: opacity .2s; }
.hero-project .shot:hover img { opacity: .9; }
.hero-project .cap { padding: 1.4rem 1.75rem 1.6rem; color: #ece6dc; }
.hero-project .kicker { font: 600 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #9fb7c9; margin: 0 0 .4rem; }
.hero-project h2 { font: 600 1.9rem/1.15 var(--head); margin: 0 0 .5rem; }
.hero-project h2 a { text-decoration: none; color: inherit; }
.hero-project p { margin: 0 0 1rem; max-width: 40rem; }
.hero-project .btn { background: #ece6dc; border-color: #ece6dc; color: #1d1a2b; }
.hero-project .btn:hover { color: #1d1a2b; }
.hero-project .more { margin-left: 1rem; font: .85rem var(--sans); color: #ece6dc; }
.hero-project + .intro { padding-top: 2.5rem; }
.about .links { list-style: none; padding: 0; display: flex; gap: 1.5rem; font: .95rem var(--sans); }

/* most recent post, under the name and blurb */
.latest { margin-top: 1rem; }
.latest-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.75rem; align-items: start; margin-top: 1.5rem; }
.latest .shot img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
@media (max-width: 700px) { .latest-grid { grid-template-columns: 1fr; gap: 1rem; } }
.latest h3 { font: 600 clamp(1.7rem, 3.5vw, 2.2rem)/1.15 var(--head); margin: .2rem 0 .5rem; }
.latest h3 a { text-decoration: none; }
.latest .dek { font-size: 1.2rem; margin-bottom: .75rem; }
.latest .excerpt { max-width: var(--measure); margin: 0 0 1.1rem; }
.intro + .latest .section { margin-top: 1.5rem; }
