/* One visual system for the application and server-rendered archive pages.
   Text, photographs, historical facsimiles, and their layout stay undistorted. */
:root {
  --sketch-paper: #f7f2e8;
  --sketch-sheet: #fffcf5;
  --sketch-ink: #302d2a;
  --sketch-body: #514b43;
  --sketch-muted: #6c6358;
  --sketch-rule: #c7bdab;
  --sketch-accent: #566b52;
  --sketch-wash: #e9eddf;
  --sketch-pigment: 86, 107, 82;
  --sketch-grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23837663' opacity='.055' filter='url(%23g)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
html body { color: var(--sketch-ink); background: var(--sketch-paper); }
.randomry-sketchbook {
  --ivory: var(--sketch-paper); --ivory-deep: #ece4d5; --paper: var(--sketch-sheet);
  --forest: var(--sketch-ink); --forest-deep: #39392f; --forest-muted: var(--sketch-accent);
  --moss: #76896c; --gold: #a17a35; --gold-light: #e7d8a8; --bark: var(--sketch-body);
  --line: var(--sketch-rule); --soft-line: #c7bdab80;
  --blue: #496f89; --blue-deep: #405b70; --blue-soft: #e4ebee; --mint: #e9eddf; --seafoam: #dde5d6;
  --library-ivory: var(--sketch-paper); --library-paper: var(--sketch-sheet);
  --library-forest: var(--sketch-ink); --library-forest-muted: var(--sketch-muted);
  --library-gold: #a17a35; --library-gold-wash: #eee4c8; --library-line: var(--sketch-rule);
  --cafe-cream: var(--sketch-paper); --cafe-paper: var(--sketch-sheet); --cafe-sage: #bbc8a7;
  --cafe-sage-dark: #566b52; --cafe-copper: #b47761; --cafe-copper-dark: #935742;
  --display: Georgia, "Times New Roman", serif; --font-display: Georgia, "Times New Roman", serif;
  --background: var(--sketch-paper); --foreground: var(--sketch-ink); --card: var(--sketch-sheet);
  --card-foreground: var(--sketch-ink); --primary: var(--sketch-accent); --primary-foreground: #fffdf7;
  --secondary: var(--sketch-wash); --secondary-foreground: var(--sketch-ink);
  --muted: var(--sketch-wash); --muted-foreground: var(--sketch-muted); --accent: var(--sketch-wash);
  --accent-foreground: var(--sketch-ink); --border: var(--sketch-rule); --input: var(--sketch-rule); --ring: var(--sketch-accent);
  position: relative; min-height: 100vh; color: var(--sketch-ink); background: var(--sketch-paper);
  background-image: var(--sketch-grain); font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}
.randomry-sketchbook[data-pencil-space="blue"] { --sketch-accent: #456b86; --sketch-wash: #e4ebee; --sketch-pigment: 69,107,134; }
.randomry-sketchbook[data-pencil-space="terracotta"] { --sketch-accent: #945b46; --sketch-wash: #f0e2d7; --sketch-pigment: 148,91,70; }
.randomry-sketchbook[data-pencil-space="plum"] { --sketch-accent: #785d7a; --sketch-wash: #ebe3ec; --sketch-pigment: 120,93,122; }
.randomry-sketchbook[data-pencil-space="ochre"] { --sketch-accent: #866929; --sketch-wash: #f0e8ce; --sketch-pigment: 134,105,41; }
.randomry-sketchbook[data-pencil-space="graphite"] { --sketch-accent: #5a6350; --sketch-wash: #e9e7dd; --sketch-pigment: 90,99,80; }
.pencil-filter-definitions { position: absolute; pointer-events: none; }
.randomry-sketchbook .app-page,
.randomry-sketchbook .login-page,
.randomry-sketchbook .sketchbook-notfound { color: var(--sketch-ink) !important; background: var(--sketch-paper) !important; background-image: var(--sketch-grain) !important; }
.randomry-sketchbook .app-page main { background-color: transparent !important; }
.randomry-sketchbook :is(h1,h2,h3,h4,h5,h6) { color: var(--sketch-ink) !important; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.randomry-sketchbook h1[tabindex="-1"]:focus { outline: none; }
.randomry-sketchbook :is(p,blockquote,dt,dd,legend,label,td,th) { color: var(--sketch-body); }
.randomry-sketchbook :is(.section-kicker,.eyebrow,.back-link,.text-cta,.login-kicker) { color: var(--sketch-accent) !important; }
.randomry-sketchbook :is(h1,h2,h3) em { color: var(--sketch-accent) !important; }
.randomry-sketchbook a:hover { text-decoration-color: var(--sketch-accent); text-underline-offset: 5px; }
.randomry-sketchbook :is(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid var(--sketch-accent) !important; outline-offset: 4px; }
.randomry-sketchbook :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]) { color: var(--sketch-ink) !important; background-color: var(--sketch-sheet) !important; border-color: var(--sketch-rule) !important; border-radius: 2px 4px 3px 2px; }
.randomry-sketchbook :is(input,textarea)::placeholder { color: #746b60; opacity: 1; }
.randomry-sketchbook input:is([type="checkbox"],[type="radio"]) { accent-color: var(--sketch-accent); }
.randomry-sketchbook :is(button,a)[aria-disabled="true"],.randomry-sketchbook button:disabled { opacity: .55; }

/* The shared masthead and footer use the same graphite lettering as the home. */
.randomry-sketchbook .site-header { color: var(--sketch-ink); background: #f7f2e8f2 !important; border-bottom: 1px solid var(--sketch-rule); box-shadow: none; }
.randomry-sketchbook .brand-mark,.randomry-sketchbook .brand-mark-inverted,.randomry-sketchbook .brand-tagline { color: var(--sketch-ink) !important; }
.randomry-sketchbook .brand-wordmark { font: 400 42px/1 Georgia,serif; letter-spacing: -.055em; }
.randomry-sketchbook .brand-tagline { margin-top: 5px; font-size: 7px; letter-spacing: .18em; }
.randomry-sketchbook .brand-symbol svg { filter: url(#randomry-pencil-line); stroke-width: 1.35; }
.randomry-sketchbook .brand-leaf { color: var(--sketch-accent) !important; fill: var(--sketch-wash) !important; }
.randomry-sketchbook .primary-nav-link,.randomry-sketchbook .mobile-nav a { color: var(--sketch-ink); font-family: Georgia,serif; font-weight: 400; }
.randomry-sketchbook .primary-nav-link.is-active::after { height: 3px; border-radius: 60% 25% 45% 30%; background: repeating-linear-gradient(-7deg,var(--sketch-accent) 0 1px,transparent 1px 2px) !important; }
.randomry-sketchbook .space-switcher { border-radius: 3px 6px 3px 4px; border-color: var(--sketch-rule); background: var(--sketch-sheet); box-shadow: none; }
.randomry-sketchbook .space-switcher-tab { color: var(--sketch-body); }
.randomry-sketchbook .space-switcher-tab.is-active { color: var(--sketch-ink); background: var(--sketch-wash); }
.randomry-sketchbook .mobile-nav { background: var(--sketch-paper); border-color: var(--sketch-rule); }
.randomry-sketchbook .site-footer { color: var(--sketch-ink) !important; background: transparent !important; border-top: 1px solid var(--sketch-rule); }
.randomry-sketchbook .site-footer :is(p,a,span) { color: var(--sketch-body) !important; }
.randomry-sketchbook .footer-label { color: var(--sketch-accent) !important; }
.randomry-sketchbook .footer-bottom { border-color: var(--sketch-rule); }

/* Pale pigment and visible crosshatching replace glossy blocks and deep shadows. */
.randomry-sketchbook :is(.primary-cta,.secondary-cta,.join-button,.secure-login-button,.library-search button,.hero-search button,.library-entryways-link,.library-featured-poet-link,.library-shelf-more,.writer-card-follow,.nobel-cta,.archive-status-action a,.wander-surprise button,.home-surprise-link) {
  color: var(--sketch-ink) !important; background: repeating-linear-gradient(12deg,rgba(var(--sketch-pigment),.09) 0 .7px,transparent .7px 3px),var(--sketch-wash) !important;
  border: 1px solid var(--sketch-accent); border-radius: 2px 5px 3px 4px; box-shadow: 1px 2px 0 #4c453116; font-weight: 600;
}
.randomry-sketchbook :is(.primary-cta,.secondary-cta,.join-button,.secure-login-button,.library-entryways-link,.writer-card-follow,.nobel-cta):hover { background-color: #e2ddce !important; box-shadow: 2px 3px 0 #4c453120; }
.randomry-sketchbook :is(.primary-cta,.secondary-cta,.join-button,.secure-login-button) :is(span,svg) { color: inherit !important; }
.randomry-sketchbook :is(article,aside,fieldset,[data-slot="card"],.filter-panel,.library-entryways,.library-results-introduction,.quiet-empty-state,.public-nests-empty,.reading-path-guest,.guest-nest-prompt,.life-context-card,.poem-composer,.profile-mini-editor,.community-social-panel,.literary-controls,.literary-stat-row,.writer-at-a-glance,.writer-shakespeare-flagship,.writer-discovery-section,.writer-related-poets,.writer-profile-behind-verse,.nobel-hero-note) {
  color: var(--sketch-ink) !important; background: var(--sketch-sheet) !important; border-color: var(--sketch-rule) !important; border-radius: 2px 6px 3px 4px / 4px 3px 6px 2px; box-shadow: 1px 3px 0 #5349320a;
}
.randomry-sketchbook :is(.work-card,.writer-card,.reading-path-item,.nest-card,.my-nest-card,.community-poem-card,.community-feed-poem,.community-social-featured,.community-social-welcome,.library-entryway-card,.monthly-muse-entry,.monthly-muse-place,.first-visit-steps li,.rediscovered-leaf-card,.nobel-work,.cafe-table-card,.weekly-card,.future-card,.writer-related-card,.vortex-card) {
  color: var(--sketch-ink) !important; background: var(--sketch-sheet) !important; border: 1px solid var(--sketch-rule); border-radius: 2px 5px 3px 4px; box-shadow: 1px 3px 0 #5349320b;
}
.randomry-sketchbook :is(.library-entryway-card,.first-visit-steps li,.writer-related-card,.cafe-table-card,.future-card):nth-child(3n+1) { background: repeating-linear-gradient(13deg,#72845e09 0 1px,transparent 1px 4px),#edf0e4 !important; }
.randomry-sketchbook :is(.library-entryway-card,.first-visit-steps li,.writer-related-card,.cafe-table-card,.future-card):nth-child(3n+2) { background: repeating-linear-gradient(-13deg,#5a839809 0 1px,transparent 1px 4px),#e9eff1 !important; }
.randomry-sketchbook :is(.library-entryway-card,.first-visit-steps li,.writer-related-card,.cafe-table-card,.future-card):nth-child(3n) { background: repeating-linear-gradient(13deg,#a06b5109 0 1px,transparent 1px 4px),#f2e7dc !important; }
.randomry-sketchbook :is(.work-card-featured,.community-poem-card.is-featured,.my-nest-card,.community-social-welcome,.community-social-featured,.community-feed-poem,.literary-tree-panel,.top-list-card,.writer-profile-monogram,.community-poet-monogram,.literary-method-note,.monthly-muse-round,.monthly-muse-editor-desk,.vortex-host-intro,.vortex-detail-aside,.ekphrastic-next-step) {
  color: var(--sketch-ink) !important; background: repeating-linear-gradient(-9deg,rgba(var(--sketch-pigment),.055) 0 .6px,transparent .6px 4px),var(--sketch-wash) !important;
  border-color: var(--sketch-rule); border-radius: 3px 6px 2px 5px; box-shadow: none;
}
.randomry-sketchbook :is(.work-card,.work-card-featured,.community-poem-card,.my-nest-card,.community-social-welcome,.community-social-featured,.community-feed-poem,.literary-tree-panel,.top-list-card,.literary-method-note,.monthly-muse-round,.monthly-muse-editor-desk,.vortex-host-intro,.vortex-detail-aside,.ekphrastic-next-step,.library-entryway-card) :is(p,span,b,strong,a,small,label,li) { color: var(--sketch-body) !important; }
.randomry-sketchbook :is(.work-card,.community-poem-card,.library-entryway-card,.writer-card,.nobel-card):hover { border-color: var(--sketch-accent) !important; box-shadow: 2px 5px 0 #53493212; }
.randomry-sketchbook :is(.writer-language-badge,.nobel-badge,.route-pill,.community-poem-tags a,.community-feed-tags a,.community-social-tags a,.topic-chip,.filter-chip,.interpretation-badge,.translation-badge) { color: var(--sketch-accent) !important; background: var(--sketch-wash) !important; border-color: var(--sketch-rule); border-radius: 3px 5px 2px 4px; }
.randomry-sketchbook :is(.writer-discovery-icon,.writer-at-a-glance-icon,.writer-profile-behind-verse-icon,.community-social-panel-icon,.community-composer-avatar,.eyebrow-leaf,.life-context-icon) { color: var(--sketch-accent) !important; background: repeating-linear-gradient(13deg,rgba(var(--sketch-pigment),.12) 0 .7px,transparent .7px 3px),var(--sketch-wash) !important; border-radius: 43% 53% 45% 50%; }

/* Each page introduction is a quiet spread of the same sketchbook. */
.randomry-sketchbook :is(.daily-exhibition,.hero-section,.home-philosophy-section,.path-section,.curated-section,.explore-hero,.discovery-hero,.literary-lives-hero,.spanish-archive-hero,.monthly-muse-hero,.vortex-hero,.vortex-host-section,.future-hero,.future-charter,.community-hero,.community-lane,.community-principles article,.explore-rediscovered-section,.explore-closing-section,.writer-profile-editorial-header,.login-panel) { color: var(--sketch-ink) !important; background: transparent !important; border-color: var(--sketch-rule); box-shadow: none; }
.randomry-sketchbook :is(.daily-exhibition,.hero-section,.home-philosophy-section,.path-section,.curated-section,.explore-hero,.discovery-hero,.literary-lives-hero,.spanish-archive-hero,.monthly-muse-hero,.vortex-hero,.vortex-host-section,.future-hero,.future-charter,.community-hero,.explore-closing-section,.login-visual) :is(p,blockquote,span,small,a,li) { color: var(--sketch-body) !important; }
.randomry-sketchbook :is(.community-hero::before,.hero-object::before,.daily-exhibition-glow,.login-visual-orb) { display: none; }
.randomry-sketchbook :is(.library-featured-poet,.library-entryways,.writer-at-a-glance,.writer-shakespeare-flagship,.writer-profile-behind-verse,.life-context-card,.cafe-editorial-aside-note,.ekphrastic-prompt-note,.vortex-hero-principles,.studio-aside-note) { background: var(--sketch-wash) !important; border-color: var(--sketch-rule) !important; }
.randomry-sketchbook :is(.library-featured-poet,.cafe-editorial-aside-note,.ekphrastic-prompt-note,.vortex-hero-principles,.studio-aside-note) :is(p,span,b,strong,li) { color: var(--sketch-body) !important; }
.randomry-sketchbook .writer-profile-page { --profile-ink: var(--sketch-ink); --profile-paper: var(--sketch-sheet); --profile-blue: var(--sketch-accent); --profile-yellow: #a17a35; --profile-line: var(--sketch-rule); }
.randomry-sketchbook :is(.poet-portrait,.writer-card-portrait.poet-portrait) { color: var(--sketch-ink); background: transparent !important; }
.randomry-sketchbook :is(.poet-portrait img,.nobel-portrait img,.nobel-hero-portraits img,.poet-portrait-gallery img) { filter: none !important; mix-blend-mode: multiply; border-radius: 0; }
.randomry-sketchbook .writer-card-portrait:not(.poet-portrait),.randomry-sketchbook .literary-life-card.library-book-jacket::before { color: var(--sketch-accent) !important; background: var(--sketch-wash) !important; border-color: var(--sketch-rule); }
.randomry-sketchbook .writer-card-portrait::before,.randomry-sketchbook .writer-card-portrait::after { border-color: #7b806b55; }
.randomry-sketchbook :is(.on-site-poem-text,.poem-reading-text,.english-translation-text,.text-first-reading,.poem) { color: var(--sketch-ink) !important; background: transparent !important; }
.randomry-sketchbook :is(.reading-page,.community-reading-page) :is(.work-text-section,.english-reading-aid,.translation-provenance,.provenance-citation,.reading-lens-context,.community-reading-body) { border-color: var(--sketch-rule); background: var(--sketch-sheet); }
.randomry-sketchbook :is(.reading-lenses,.text-toolbar,.quiet-action-bar,.source-reading-disclosure) { color: var(--sketch-body); border-color: var(--sketch-rule); background: var(--sketch-wash); }
.randomry-sketchbook .login-visual { color: var(--sketch-ink); background: #e8eddf !important; }
.randomry-sketchbook .login-visual::before { background: none; }
.randomry-sketchbook .login-visual :is(p,blockquote) { color: var(--sketch-ink) !important; }
.randomry-sketchbook .sketchbook-notfound { background-image: var(--sketch-grain) !important; }
.randomry-sketchbook .sketchbook-notfound [data-slot="button"] { background: var(--sketch-wash); color: var(--sketch-ink); border: 1px solid var(--sketch-accent); border-radius: 3px; }

/* Original coloured-pencil vignettes: book, coffee, and a night of discovery. */
.randomry-sketchbook :is(.library-hero,.writers-hero,.nests-hero,.reading-path-hero,.archive-status-hero) { position: relative; padding-right: 210px; }
.randomry-sketchbook :is(.library-hero,.writers-hero,.nests-hero,.reading-path-hero,.archive-status-hero)::after { content: ""; pointer-events: none; position: absolute; top: 15px; right: 0; width: 190px; height: 190px; background: url('/illustrations/coloured-pencil-vignettes.webp') left center / 300% 100% no-repeat; mix-blend-mode: multiply; }
.randomry-sketchbook :is(.nests-hero,.reading-path-hero)::after { background-position: right center; }
.randomry-sketchbook .discovery-hero-leaf { background: url('/illustrations/coloured-pencil-vignettes.webp') right center / 300% 100% no-repeat !important; border: 0; box-shadow: none; border-radius: 0; filter: none; }
.randomry-sketchbook .discovery-hero-leaf > * { visibility: hidden; }
.randomry-sketchbook .login-visual::after { content: ""; position: absolute; width: min(65%,340px); aspect-ratio: 1; top: 8%; left: 17%; background: url('/illustrations/coloured-pencil-vignettes.webp') left center / 300% 100% no-repeat; mix-blend-mode: multiply; pointer-events: none; }
.randomry-sketchbook .community-social-welcome::after { content: ""; display: block; width: 130px; height: 130px; margin: 15px 0 0 auto; background: url('/illustrations/coloured-pencil-vignettes.webp') center / 300% 100% no-repeat; mix-blend-mode: multiply; pointer-events: none; }

/* The autonomous archive uses the same stylesheet without loading React. */
.sketchbook-runtime main { max-width: 1120px; margin: auto; padding: 36px 24px; }
.sketchbook-runtime nav { padding-bottom: 24px; border-bottom: 1px solid var(--sketch-rule); }
.sketchbook-runtime nav a:first-child { font: 34px/1 Georgia,serif; letter-spacing: -.04em; color: var(--sketch-ink); }
.sketchbook-runtime section,.sketchbook-runtime .card { color: var(--sketch-ink); background: var(--sketch-sheet); border-color: var(--sketch-rule); border-radius: 3px 6px 2px 4px; }
.sketchbook-runtime button { color: var(--sketch-ink); background: var(--sketch-wash); border: 1px solid var(--sketch-accent); border-radius: 3px; }
.sketchbook-runtime a { color: var(--sketch-accent); }
@media(max-width:800px) {
  .randomry-sketchbook .brand-wordmark { font-size: 37px; }
  .randomry-sketchbook :is(.library-hero,.writers-hero,.nests-hero,.reading-path-hero,.archive-status-hero) { padding-right: 0; }
  .randomry-sketchbook :is(.library-hero,.writers-hero,.nests-hero,.reading-path-hero,.archive-status-hero)::after { position: relative; display: block; top: auto; right: auto; width: 125px; height: 125px; margin: 20px auto 0; }
  .randomry-sketchbook .login-visual::after { display: none; }
  .randomry-sketchbook .site-header-inner { gap: 16px; }
}
@media(prefers-reduced-motion:reduce) { .randomry-sketchbook *, .randomry-sketchbook *::before, .randomry-sketchbook *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .randomry-sketchbook,.randomry-sketchbook .app-page { background: white !important; } .randomry-sketchbook .site-header,.randomry-sketchbook .site-footer { display:none; } .randomry-sketchbook main { width:100%; } }
/* Portalled controls share the paper palette even outside the route surface. */
body :is([data-slot="dialog-content"],[data-slot="alert-dialog-content"],[data-slot="popover-content"],[data-slot="dropdown-menu-content"],[data-slot="select-content"],[data-sonner-toast]) { color: var(--sketch-ink) !important; background: var(--sketch-sheet) !important; border: 1px solid var(--sketch-rule); border-radius: 3px 6px 2px 4px; box-shadow: 2px 5px 18px #3d352321; }
body :is([data-slot="dialog-title"],[data-slot="alert-dialog-title"]) { font-family: Georgia,serif; font-weight: 400; }
.randomry-sketchbook :is(.library-search,.hero-search,.community-composer-card,.community-social-desk-link,.library-search-suggestions) { border-color: var(--sketch-rule); border-radius: 3px 5px 2px 4px; box-shadow: none; }
