/* R74: /v2 look — a paper-receipt page in the style of a Bear Blog theme (monospace, cream paper with torn edges,
   dashed rules, dotted-leader post lists, barcode footer). No JavaScript. Dark variant follows the system. */

      
      
    
:root {
  color-scheme: light dark;
  --width: 36rem;
  --font-main: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-secondary: var(--font-main);
  --font-scale: 0.95em;
  --background-color: #fdfcf7;
  --counter-color: #c9d1cb;
  --heading-color: #16151a;
  --text-color: #2f2d36;
  --link-color: #b2352c;
  --visited-color: #7d4a5c;
  --code-background-color: #efede4;
  --code-color: #2f2d36;
  --blockquote-color: #55525e;
  --muted-color: #75727d;
  --rule-color: #aeabb4;
  --tooth: 8px;
}

* {
  box-sizing: border-box;
}

html {
  padding: clamp(24px, 6vw, 64px) 12px;
  background: var(--counter-color);
}

body {
  position: relative;
  max-width: var(--width);
  margin: var(--tooth) auto;
  padding: clamp(28px, 6vw, 44px) clamp(18px, 6vw, 44px) 28px;
  background: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-main);
  font-size: var(--font-scale);
  line-height: 1.7;
  overflow-wrap: break-word;
  box-shadow: 0 4px 14px #1c261f1f;
}

body::before,
body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--tooth);
}

body::before {
  bottom: 100%;
  background: conic-gradient(from 135deg at top, var(--background-color) 90deg, #0000 0) 50% / calc(var(--tooth) * 2) 100%;
}

body::after {
  top: 100%;
  background: conic-gradient(from -45deg at bottom, var(--background-color) 90deg, #0000 0) 50% / calc(var(--tooth) * 2) 100%;
}

::selection {
  color: var(--background-color);
  background: var(--heading-color);
}

a {
  color: var(--link-color);
  text-decoration-style: dashed;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

a:hover {
  color: var(--heading-color);
  text-decoration-style: solid;
}

:focus-visible {
  outline: 2px dashed var(--link-color);
  outline-offset: 3px;
}

header {
  padding-bottom: 20px;
  border-bottom: 2px dashed var(--rule-color);
  text-align: center;
}

.title {
  color: var(--heading-color);
  text-decoration: none;
}

.title h1 {
  margin: 0 0 10px;
  font-size: 1.35em;
  letter-spacing: .2em;
  text-transform: uppercase;
}

nav {
  font-size: .85em;
}

nav p {
  margin: 0;
}

nav a {
  display: inline-block;
  margin: 0 6px;
  color: var(--muted-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
}

nav a:hover {
  color: var(--heading-color);
  text-decoration: underline dashed;
}

main {
  padding: 28px 0 8px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  line-height: 1.35;
  text-wrap: balance;
}

h1 {
  margin: 0 0 20px;
  font-size: 1.5em;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.post main > h1:first-child + p {
  margin: -12px 0 28px;
  color: var(--muted-color);
  font-size: .85em;
  text-align: center;
}

h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0 14px;
  font-size: 1em;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-wrap: pretty;
}

h2::before,
h2::after {
  content: "";
  flex: 1 1 1.5em;
  border-top: 2px dashed var(--rule-color);
}

h3 {
  margin: 28px 0 10px;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: .06em;
}

h4, h5, h6 {
  margin: 24px 0 8px;
  font-size: 1em;
}

p {
  margin: 0 0 16px;
}

strong, b {
  color: var(--heading-color);
}

small, figcaption {
  color: var(--muted-color);
  font-size: .85em;
}

ul, ol {
  padding-left: 1.5em;
}

ul {
  list-style: square;
}

li {
  margin: 4px 0;
}

blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  border: 2px dashed var(--rule-color);
  color: var(--blockquote-color);
  text-align: center;
}

blockquote p:last-child {
  margin-bottom: 0;
}

hr {
  height: 8px;
  margin: 28px 0;
  border: 0;
  background: radial-gradient(circle, var(--rule-color) 1.5px, #0000 2px) 0 50% / 10px 8px repeat-x;
}

img, video, audio {
  max-width: 100%;
}

img, video {
  height: auto;
  filter: grayscale(1) contrast(1.1);
  transition: filter .3s;
}

img:hover, video:hover {
  filter: none;
}

figure {
  margin: 24px 0;
  text-align: center;
}

figcaption, caption {
  margin-top: 6px;
  font-size: .8em;
}

table {
  display: block;
  max-width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border-collapse: collapse;
  border-top: 2px dashed var(--rule-color);
  border-bottom: 2px dashed var(--rule-color);
  font-size: .9em;
}

th, td {
  padding: 6px 12px 6px 0;
  text-align: left;
  vertical-align: top;
}

th:last-child, td:last-child {
  padding-right: 0;
  text-align: right;
}

th {
  color: var(--heading-color);
  text-transform: uppercase;
  letter-spacing: .06em;
}

code, pre, kbd, samp {
  font-family: var(--font-main);
  font-size: .92em;
}

code {
  padding: 1px 4px;
  color: var(--code-color);
  background: var(--code-background-color);
}

pre {
  padding: 14px 16px;
  overflow-x: auto;
  border-left: 3px solid var(--rule-color);
  color: var(--code-color);
  background: var(--code-background-color);
  line-height: 1.55;
}

pre code {
  padding: 0;
  background: none;
  font-size: 1em;
}

.highlight {
  max-width: 100%;
  overflow-x: auto;
}

kbd {
  padding: 1px 5px;
  border: 1px solid var(--rule-color);
  border-bottom-width: 2px;
}

input, textarea, select, button {
  max-width: 100%;
  padding: 6px 10px;
  border: 2px dashed var(--rule-color);
  border-radius: 0;
  background: var(--background-color);
  color: var(--text-color);
  font: inherit;
}

textarea {
  width: 100%;
}

button {
  cursor: pointer;
}

button:hover {
  border-style: solid;
  border-color: var(--heading-color);
}

.inline {
  width: auto;
}

ul.blog-posts {
  list-style: none;
  padding: 0;
}

ul.blog-posts li {
  display: grid;
  grid-template-columns: auto minmax(1.5em, 1fr) auto;
  align-items: end;
  margin: 0;
  padding: 7px 0;
}

ul.blog-posts li a {
  grid-area: 1 / 1;
}

ul.blog-posts li::after {
  content: "";
  grid-area: 1 / 2;
  margin: 0 8px .5em;
  border-bottom: 2px dotted var(--rule-color);
}

ul.blog-posts li > span {
  grid-area: 1 / 3;
  color: var(--muted-color);
  font-size: .85em;
  white-space: nowrap;
}

ul.blog-posts li > span i {
  font-style: normal;
}

ul.blog-posts li > p,
ul.blog-posts li > div,
ul.blog-posts li > img {
  grid-column: 1 / -1;
  margin: 6px 0 0;
}

ul.blog-posts li > p {
  color: var(--muted-color);
  font-size: .9em;
}

ul.blog-posts li a:visited {
  color: var(--visited-color);
}

.footnote {
  margin-top: 32px;
  padding-top: 12px;
  border-top: 2px dashed var(--rule-color);
  font-size: .85em;
}

.tags {
  margin-top: 28px;
  font-size: .85em;
}

.tags a {
  display: inline-block;
  margin: 0 8px 6px 0;
  padding: 0 6px;
  border: 1px solid currentColor;
  text-decoration: none;
}

footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px dashed var(--rule-color);
  color: var(--muted-color);
  font-size: .75em;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
}

footer a {
  color: inherit;
}

footer::after {
  content: "";
  display: block;
  width: min(100%, 14rem);
  height: 44px;
  margin: 18px auto 0;
  background: repeating-linear-gradient(90deg,
    var(--heading-color) 0 2px, #0000 2px 4px,
    var(--heading-color) 4px 7px, #0000 7px 8px,
    var(--heading-color) 8px 9px, #0000 9px 12px,
    var(--heading-color) 12px 13px, #0000 13px 14px,
    var(--heading-color) 14px 17px, #0000 17px 19px,
    var(--heading-color) 19px 20px, #0000 20px 23px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #1b1a1f;
    --counter-color: #0f0e12;
    --heading-color: #f1efe6;
    --text-color: #d3d0c8;
    --link-color: #ff8a7e;
    --visited-color: #c79bb0;
    --code-background-color: #26242b;
    --code-color: #d3d0c8;
    --blockquote-color: #b9b6bf;
    --muted-color: #9a97a2;
    --rule-color: #55525e;
  }
  body { box-shadow: 0 4px 14px #0008; }
}

/* R80: Aurora page and curriculum inside the v2 layout */
.shot { display: block; margin: 24px 0; }
.shot.phone { max-width: 300px; margin: 24px auto; }
.avatar { vertical-align: middle; margin-right: 16px; }
.tagline { color: var(--muted-color); font-style: italic; margin-top: 0; }
code.install { display: block; padding: 14px 16px; margin: 20px 0; overflow-x: auto; white-space: pre; font-size: .85em; }
.count { color: var(--muted-color); font-weight: normal; margin-right: .5em; }
.role { font-weight: bold; margin-bottom: 4px; }
blockquote footer { margin: 4px 0 0; padding: 0; border: 0; text-align: left; text-transform: none; letter-spacing: normal; font-size: .85em; }
blockquote footer::after { content: none; display: none; }
.shot { filter: none; }
.articles { list-style: none; padding: 0; }
.articles li { margin-bottom: 12px; }
.articles .meta { display: block; color: var(--muted-color); font-size: .85em; }
