/* nicholasbarbier.com — visual system ported from caligra.com/c100:
   Söhne Buch grotesk, iron / palladium / silver on white, 6vw gutters,
   absolute logo + nav over a full-bleed hero, subscribe band, footer grid,
   giant outro tagline. Dark mode is the same palette inverted.
   Attribution: footer credit links to Caligra c100. Home heatmap shader is
   an original implementation in js/home-bg.js (same visual language). */

/* ---- Type -----------------------------------------------------------------
   Caligra sets Söhne Buch (Klim Type Foundry — commercial, not redistributable).
   If you license it: drop the file at /fonts/soehne-buch.woff2, uncomment the
   @font-face below, set --font-features to "ss02" (Caligra's setting), then run
   the publish flow. Until then Geist Regular (OFL, the closest open grotesk) is
   the face that renders — it sits second in every font stack. */
/*
@font-face {
  font-family: soehne-buch;
  src: url(/fonts/soehne-buch.woff2) format('woff2');
  font-display: block;
  font-weight: 400;
  font-style: normal;
}
*/
@font-face {
  font-family: Geist;
  src: url(/fonts/geist-regular.woff2) format('woff2');
  font-display: optional;
  font-weight: 400;
  font-style: normal;
}

:root {
  color-scheme: light dark;
  --font-features: normal;

  /* Caligra palette */
  --iron: #2d2e2b;
  --aluminium: #e9ebe2;
  --silver: #b5b7ae;
  --palladium: #5c5d58;
  --accent: #d65822;

  --bg: light-dark(#fff, var(--iron));
  --fg: light-dark(var(--iron), var(--aluminium));
  --muted: light-dark(var(--palladium), var(--silver));
  --link: light-dark(#000, #fff);
  --border-color: light-dark(var(--silver), var(--palladium)); /* card rules (1–2px silver) */
  --rule: light-dark(var(--palladium), var(--silver));         /* hairline section rules */
  --tile-bg: light-dark(var(--silver), var(--palladium));
  --input-bg: light-dark(#eee, #3a3b37);
  --input-border: light-dark(#bbb, var(--palladium));
  --btn-bg: light-dark(var(--iron), var(--aluminium));
  --btn-fg: light-dark(#fff, var(--iron));
  --btn-border: light-dark(#000, var(--aluminium));
  --code-bg: light-dark(var(--aluminium), #3a3b37);
  --menu-bg: light-dark(#fff, var(--iron));
  --error: var(--accent);
  --success: #00c853;
}

/* Explicit user override — force palette, regardless of system preference. */
html[data-theme='light'] { color-scheme: light; }
html[data-theme='dark'] { color-scheme: dark; }

/* Same-document only (SPA). Do not enable `navigation: auto` — cross-document
   view transitions abort under Lighthouse and log InvalidStateError. */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 220ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

html, body { margin: 0; padding: 0; }

body {
  font-family: soehne-buch, Geist, sans-serif;
  font-feature-settings: var(--font-features);
  font-size: 16px;
  font-weight: 400;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
}

* { box-sizing: border-box; }

img { max-width: 100%; }

.skip-nav {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 8px 12px;
  background: var(--iron);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}

.skip-nav:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.honeypot[hidden] {
  display: block !important;
}

/* ---- Logo + navigation (absolute, top corners) ---- */
.logo {
  position: absolute;
  top: 35px;
  left: 6vw;
  display: block;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.02ch;
  color: var(--fg);
  text-decoration: none;
}

.navigation {
  position: absolute;
  top: 32px;
  right: 6vw;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font: inherit;
  font-size: 16px;
  color: var(--fg);
  cursor: pointer;
  padding: 8px 12px;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.nav-links li { margin: 0; }

.nav-links a,
.nav-links .theme-toggle {
  display: block;
  font: inherit;
  font-size: 16px;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.theme-toggle::before { content: '\263E'; }
@media (prefers-color-scheme: dark) {
  .theme-toggle::before { content: '\2600'; }
}
html[data-theme='light'] .theme-toggle::before { content: '\263E'; }
html[data-theme='dark'] .theme-toggle::before { content: '\2600'; }

@media (width >= 769px) {
  .navigation { top: 37px; }
}

@media (width <= 768px) {
  .navigation {
    left: 0;
    right: 0;
    top: calc(5vw - 2px);
    width: 100%;
  }

  .menu-toggle {
    display: block;
    width: auto;
    text-align: right;
    margin-left: auto;
    padding: 5px 6vw 10px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 12px;
    flex-direction: column;
    gap: 0;
    background: var(--menu-bg);
    border: 1px solid var(--border-color);
    border-width: 1px 0;
    padding: 8px 0;
  }

  .navigation.open .nav-links { display: flex; }

  .nav-links a,
  .nav-links .theme-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 20px;
  }
}

@media (width <= 440px) {
  .logo { top: 5vw; left: 6vw; }
}

/* ---- Main ---- */
main {
  margin: 0;
  padding: 80px 6vw 0;
}

main p {
  font-size: 18px;
  line-height: 1.5;
  max-width: 65ch;
  color: var(--fg);
  margin: 0 0 1em;
}

main a {
  color: var(--link);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-weight: 400;
  letter-spacing: -0.04ch;
  line-height: 1.05;
  color: var(--fg);
}

h1 { font-size: 72px; margin: 0 0 1.5rem; }
h2 { font-size: 32px; margin: 0 0 1rem; }

/* The big opening line (#intro on Caligra). */
.statement {
  padding-bottom: 3vw;
  font-size: 3em;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: var(--fg);
  max-width: 32ch;
  margin: 0;
}

@media (width >= 441px) {
  h1 { font-size: 84px; }
}

@media (width <= 440px) {
  h1 { font-size: 42px; }
  h2 { font-size: 24px; }
  .statement { font-size: 2.6em; }
}

/* ---- Home ----
   Caligra's intro-wrap: statement copy in the wide column, image in the narrow
   one (1.2fr / 1fr from 768px, stacked below). The Escher is portrait, so it is
   capped at 420px wide rather than bled to the viewport. */
.home-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  overflow: hidden;
  border-radius: 1ch;
  background: var(--iron);
  color: var(--aluminium);
  padding: 2rem;
}

/* Caligra c100 field canvas — fills the stage bounding box. */
.home-field-canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.home-hero,
.home-content {
  position: relative;
  z-index: 1;
}

.home-content { order: -1; }

.home-content .statement {
  color: var(--aluminium);
}

.home-content strong { font-weight: 400; }

.home-hero {
  margin: 0;
  width: min(100%, 420px);
}

.home-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1ch;
  cursor: pointer;
}

.hero-caption {
  margin: 1ch 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--aluminium);
  max-width: none;
}

.hero-caption a, .hero-caption a:link, .hero-caption a:visited {
  color: var(--aluminium);
  text-decoration: underline;
}

@media (width >= 768px) {
  .home-stage {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }
}

/* ---- About ---- */
.about { display: none; }
.about.visible { display: block; }

.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.about-copy { order: -1; }

.about-prose { max-width: 60ch; }

.about-prose p {
  font-size: 20px;
  line-height: 1.4;
  max-width: 60ch;
}

.about-prose p:last-child { margin-bottom: 0; }

.about-photos {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.about-photo {
  margin: 0;
  width: 100%;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1ch;
  cursor: pointer;
}

.about-photo .photo-caption {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  margin: 1ch 0 0;
  max-width: none;
}

@media (width >= 768px) {
  .about-intro {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }
}

.cv { margin-top: 1.5rem; }

.cv h3 {
  font-size: 28px;
  letter-spacing: -0.02ch;
  margin: 2.5rem 0 1rem;
}

.cv h3:first-child { margin-top: 0; }

.cv ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg);
  max-width: 80ch;
}

.cv li { display: flex; gap: 2ch; margin: 0.5ch 0; }

.cv .cv-year {
  display: inline-block;
  width: 7.5rem;
  flex-shrink: 0;
  color: var(--muted);
  font-feature-settings: 'tnum', 'zero';
}

.cv ul.inline-list li { display: inline; margin: 0; }

.cv ul.inline-list li + li::before {
  content: ' \00b7  ';
  color: var(--muted);
}

/* ---- Blog ---- */
.blog { display: none; }
.blog.visible { display: block; }

.blog-post-header {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.blog.blog-single .blog-post-header {
  display: flex;
}

.post-header-name {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.02ch;
  color: var(--fg);
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.post-header-name:hover { text-decoration: underline; }

.post-header-back {
  font-size: 16px;
  color: var(--fg);
  text-decoration: underline;
  margin-bottom: 1.5rem;
}

.post-header-date {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 1rem;
  font-feature-settings: 'tnum', 'zero';
}

.post-header-title {
  font-size: 3em;
  font-weight: 400;
  letter-spacing: -0.3px;
  line-height: 1.2;
  max-width: 32ch;
  margin: 0;
  padding-bottom: 3vw;
  color: var(--fg);
}

@media (width <= 440px) {
  .post-header-title { font-size: 2.6em; }
}

/* Index: posts as rows in a bordered card (Caligra's purchase-options). */
.blog-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 2px solid var(--border-color);
  border-radius: 1ch;
  font-feature-settings: 'tnum', 'zero';
  overflow: hidden;
}

.blog-post {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  column-gap: 2ch;
  align-items: start;
  padding: 2ch;
  border-top: 2px solid var(--border-color);
}

.blog-post:first-child { border-top: none; }

.blog-post .post-date {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  padding-top: 0.35em;
}

.blog-post .post-title {
  grid-column: 2;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02ch;
  line-height: 1.4;
  margin: 0;
  color: var(--fg);
}

.blog-post .post-title a,
.blog-post .post-title a:link,
.blog-post .post-title a:visited {
  color: var(--fg);
  text-decoration: none;
}

.blog-post .post-title a:hover { text-decoration: underline; }

.blog-post .post-excerpt {
  grid-column: 2;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0.5ch 0 0;
  max-width: 65ch;
}

.blog-post .post-body { grid-column: 2; }

@media (width <= 440px) {
  .blog-post { grid-template-columns: 1fr; }
  .blog-post .post-title,
  .blog-post .post-excerpt,
  .blog-post .post-body { grid-column: 1; }
  .blog-post .post-date { padding-top: 0; margin-bottom: 0.5ch; }
}

/* Single post: header above body; drop the card chrome. */
.blog.blog-single .blog-posts {
  border: none;
  border-radius: 0;
  overflow: visible;
}

.blog.blog-single .blog-post {
  display: block;
  padding: 0;
  border: none;
}

.blog.blog-single .blog-post .post-date,
.blog.blog-single .blog-post .post-title {
  display: none;
}

body:has(.blog.blog-single.visible) .logo {
  display: none;
}

.blog-post .post-body p {
  font-size: 18px;
  line-height: 1.5;
  max-width: 65ch;
}

.post-body blockquote.epigraph {
  margin: 0 0 2rem;
  padding-left: 2ch;
  border-left: 2px solid var(--border-color);
  color: var(--muted);
  max-width: 60ch;
}

.post-body blockquote.epigraph p {
  font-size: 20px;
  line-height: 1.4;
  color: var(--muted);
  margin-bottom: 0.5em;
}

.post-body blockquote.epigraph cite {
  display: block;
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
}

.post-body blockquote.epigraph cite::before { content: '\2014\00a0'; }

.blog-post .post-body h4 {
  font-size: 28px;
  letter-spacing: -0.02ch;
  margin: 2.5rem 0 1rem;
}

.blog-post .post-body ul {
  margin: 0 0 1em;
  padding-left: 2ch;
  font-size: 18px;
  line-height: 1.5;
  max-width: 65ch;
}

.blog-post .post-body li { margin: 0.5ch 0; }

.blog-post .post-body code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-feature-settings: normal;
  font-size: 0.85em;
  background: var(--code-bg);
  padding: 0.1em 0.4em;
  border-radius: 5px;
}

.blog-post .post-body .table-wrap {
  overflow-x: auto;
  margin: 2ch 0;
}

/* Spec table: the bordered specifications grid. */
.blog-post .post-body table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.4;
  font-feature-settings: 'tnum', 'zero';
  border: 1px solid var(--rule);
}

.blog-post .post-body table.spec th,
.blog-post .post-body table.spec td {
  padding: 1.5ch 2ch;
  border: 1px solid var(--rule);
  text-align: right;
  white-space: nowrap;
  font-weight: 400;
}

.blog-post .post-body table.spec th:first-child,
.blog-post .post-body table.spec td:first-child {
  text-align: left;
  white-space: normal;
}

.blog-post .post-body table.spec thead th { color: var(--muted); }

.blog-post .post-body .post-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: -1ch;
}

/* ---- Subscribe (compact: one-line label, then input + button) ---- */
.mailing-list {
  font-feature-settings: 'tnum', 'zero';
  margin: 6vw 0 0;
  padding: 6vw 0 0;
  border-top: 1px solid var(--rule);
}

.mailing-list h3 {
  margin: 0 0 1rem;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--muted);
}

.mailing-list form { margin: 0; padding: 0; max-width: 437px; }

.mailing-list input,
.mailing-list button {
  height: 40px;
  appearance: none;
  padding: 0;
  margin: 0;
  border-radius: 5px;
  border: 1px solid var(--rule);
  font: inherit;
  font-size: 16px;
  color: var(--fg);
  background: var(--bg);
}

.mailing-list input { text-indent: 1ch; min-width: 0; }

.mailing-list input::placeholder { color: var(--muted); opacity: 1; }

.mailing-list button {
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-color: var(--btn-border);
  cursor: pointer;
}

.mailing-list button:disabled { cursor: wait; opacity: 0.7; }

.ml-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  margin-bottom: 1rem;
}

.feed-links,
.mailing-list p {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  max-width: none;
  color: var(--muted);
}

.feed-links a, .feed-links a:link, .feed-links a:visited {
  color: var(--muted);
  text-decoration: underline;
}

.ml-msg {
  margin: 1rem 0 0;
  min-height: 1.4em;
  font-size: 16px;
  line-height: 1.4;
}

.ml-msg:empty { display: none; }
.ml-msg.error { color: var(--error); }
.ml-msg.success { color: var(--success); }

/* ---- Photography ---- */
.photography { display: none; }
.photography.visible { display: block; }

/* ---- Contact ---- */
.contact { display: none; }
.contact.visible { display: block; }

.contact-panel {
  width: 100%;
}

@media (width <= 640px) {
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact button { max-width: none; }

  .contact .or-email { white-space: normal; }
}

.contact form {
  display: grid;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
}

.contact-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2ch;
}

.contact input,
.contact textarea {
  display: block;
  width: 437px;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  appearance: none;
  border-radius: 5px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.contact input {
  height: 44px;
  padding: 0 12px;
}

.contact textarea {
  min-height: 160px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.4;
}

.contact input::placeholder,
.contact textarea::placeholder { color: var(--palladium); opacity: 1; }

.contact input:focus,
.contact textarea:focus { border-color: var(--rule); }

.contact button {
  margin: 0;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  max-width: 220px;
  appearance: none;
  border: none;
  border-radius: 5px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 20px;
  height: 50px;
  line-height: 48px;
  text-align: center;
  cursor: pointer;
}

.contact button:disabled { cursor: wait; opacity: 0.7; }

.contact .form-sent {
  font-size: 20px;
  line-height: 1.4;
}

.contact .form-error {
  color: var(--error);
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
}

.contact .or-email {
  margin: 0;
  display: grid;
  gap: 2px;
  font-size: 18px;
  line-height: 1.35;
  white-space: nowrap;
}

.contact .email-link {
  color: var(--fg);
  text-decoration: underline;
  justify-self: start;
}

@media (width <= 440px) {
  .contact input,
  .contact textarea { font-size: 16px; }
}

/* ---- Footer (Caligra #footer) ---- */
footer {
  font-size: 14px;
  line-height: 1.4;
  margin: 6vw;
  padding-top: 6vw;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 2.5rem;
  color: var(--muted);
  font-feature-settings: 'tnum', 'zero';
}

footer .footer-col { display: grid; gap: 6px; justify-items: start; }

.footer-subscribe {
  margin: 0;
  padding: 0;
  border-top: none;
  width: min(100%, 437px);
}

.footer-subscribe form { width: 100%; max-width: 437px; }

.footer-subscribe .ml-row { margin-bottom: 0; }

footer a {
  color: var(--muted);
  text-decoration: underline;
}

footer .heading { font-weight: 400; color: var(--muted); }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  justify-items: start;
}

.footer-links a { text-decoration: underline; }

.footer-credit {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.footer-credit a {
  color: var(--muted);
  text-decoration: underline;
}

footer .social-link {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

footer .social-link svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (width >= 760px) {
  footer {
    display: grid;
    grid-template-columns: auto auto auto auto 1fr auto;
    align-items: start;
  }

  .footer-subscribe {
    grid-column: 6;
    justify-self: end;
    align-self: start;
  }
}

@media (width <= 759px) {
  .footer-subscribe {
    width: 100%;
    margin-left: auto;
  }
}

/* ---- Privacy modal ---- */
.privacy-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1500;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgb(0 0 0 / 40%);
}

.privacy-overlay.open { display: flex; }

.privacy-modal {
  position: relative;
  width: min(100%, 32rem);
  padding: 2rem;
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  line-height: 1.5;
}

.privacy-modal h3 {
  margin: 0 0 1rem;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.privacy-modal p { margin: 0; }

.privacy-modal p + p { margin-top: 0.75rem; }

.privacy-modal a {
  color: var(--fg);
  text-decoration: underline;
}

.privacy-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: none;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.privacy-close:hover { color: var(--fg); }

/* ---- Lightbox (Caligra gallery-overlay) ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: var(--iron);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox img {
  max-width: calc(100vw - 12vw);
  max-height: 100vh;
  object-fit: contain;
}

/* ---- 404 ---- */
.notfound { padding-bottom: 6vw; }

.notfound h1 {
  font-size: 72px;
  margin: 0 0 1.5rem;
  font-feature-settings: 'tnum', 'zero';
}

@media (width >= 441px) {
  .notfound h1 { font-size: 84px; }
}

@media (width <= 440px) {
  .notfound h1 { font-size: 42px; }
}

/* JS failure fallback — inline theme-preload sets .js-failed when app.js fails */
.js-failed #home,
.js-failed #home[hidden] {
  display: block !important;
}

.js-failed .about,
.js-failed .contact,
.js-failed .blog,
.js-failed .photography {
  display: block !important;
}

/* ---- Print ---- */
@media print {
  .menu-toggle,
  .theme-toggle,
  .home-field-canvas,
  .mailing-list,
  .privacy-overlay,
  .skip-nav {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  a[href]::after {
    content: none;
  }

  .home,
  .about,
  .blog,
  .photography,
  .contact {
    display: block !important;
  }
}
