 

:root {
  --paper-cover: 0.35;
  --paper-cover-dark: 0.25;
}

.page-shell,
.page-shell.has-chapter-fold::after,
.site-topbar,
.topbar-paper-stock,
.topbar-drawer-stock,
.topbar-drawer,
.topbar-account-drawer {
  background-color: var(--card) !important;
  background-image:
    linear-gradient(rgb(247 247 247 / var(--paper-cover)), rgb(247 247 247 / var(--paper-cover))),
    url(./design/paper-light.webp?v=2) !important;
  background-size: auto, 512px 512px !important;
  background-repeat: repeat !important;
}
:root.theme-dark .page-shell,
:root.theme-dark .page-shell.has-chapter-fold::after,
:root.theme-dark .site-topbar,
:root.theme-dark .topbar-paper-stock,
:root.theme-dark .topbar-drawer-stock,
:root.theme-dark .topbar-drawer,
:root.theme-dark .topbar-account-drawer {
  background-image:
    linear-gradient(rgb(26 27 31 / var(--paper-cover-dark)), rgb(26 27 31 / var(--paper-cover-dark))),
    url(./design/paper-dark.webp?v=2) !important;
}

.page-shell > .card:not(.project-card-black):not(.about-card):not(.project-card-clone) {
  background: transparent !important;
}

:root {
  --paper-edge-line: rgba(120, 96, 52, 0.7);  
}
:root.theme-dark {
  --paper-edge-line: rgba(216, 205, 184, 0.16);
}
.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid var(--paper-edge-line);
}

.site-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid var(--paper-edge-line);
}

.site-topbar.is-menu-open::before,
.site-topbar.is-account-open::before {
  clip-path: inset(0 0 1px 0);
}
.topbar-drawer::before,
.topbar-account-drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid var(--paper-edge-line);
  clip-path: inset(1px 0 0 0);
}

body[data-page="www"] .site-topbar.has-coin-cutout {

--topbar-notch-y: 0px;
  --topbar-notch-radius: 0px;
  background: transparent !important;
  box-shadow: none;
}
.site-topbar.has-coin-cutout::before { content: none; }
.topbar-paper,
.topbar-drawer-paper {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  filter: var(--drop-sheet);
}

.topbar-shadow {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.topbar-shadow-ply {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.topbar-shadow-ply-1 { filter: var(--drop-sheet-1); }
.topbar-shadow-ply-2 { filter: var(--drop-sheet-2); }
.topbar-shadow-ply-3 { filter: var(--drop-sheet-3); }
.topbar-shadow-ply-4 { filter: var(--drop-sheet-4); }

.topbar-paper-stock {
  --paper-mask: var(--topbar-paper-mask, none);
  --paper-rim: var(--topbar-paper-rim, none);
}
.topbar-paper-stock,
.topbar-drawer-stock {
  position: absolute;
  inset: 0;
}
.topbar-paper-stock,
.topbar-drawer-stock {
  -webkit-mask-image: var(--paper-mask, none);
  mask-image: var(--paper-mask, none);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.topbar-paper-stock::before,
.topbar-drawer-stock::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 0;
  clip-path: none;
  background: var(--paper-rim, none) 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}
body[data-page="www"] .has-coin-cutout > :is(.topbar-drawer, .topbar-account-drawer) {
  background: transparent !important;
  box-shadow: none;
}
.has-coin-cutout > :is(.topbar-drawer, .topbar-account-drawer)::before {
  content: none;
}
.has-coin-cutout .topbar-account-inner {
  border-top-color: transparent;
  background: linear-gradient(var(--line), var(--line))
    24px 0 / calc(100% - 48px) 1px no-repeat;
  background-origin: border-box;
}
#topbarDrawer .topbar-drawer-stock {
  --paper-mask: var(--menu-paper-mask, none);
  --paper-rim: var(--menu-paper-rim, none);
}
#topbarAccountDrawer .topbar-drawer-stock {
  --paper-mask: var(--account-paper-mask, none);
  --paper-rim: var(--account-paper-rim, none);
}
.site-topbar:is(.is-menu-open, .is-account-open) > .topbar-paper {
  filter: none;
}
.topbar-drawer-paper {

clip-path: inset(0 -28px -28px);
}

:root {
  --carve-text:
    0.016em 0.024em 0.012em rgba(255, 255, 255, 0.62),
    -0.014em -0.016em 0.016em rgba(0, 0, 0, 0.34);
  --carve-icon:
    drop-shadow(0.8px 1.1px 0.5px rgba(255, 255, 255, 0.62))
    drop-shadow(-0.6px -0.8px 0.5px rgba(0, 0, 0, 0.34));

--carve-avatar:
    drop-shadow(1.6px 2.2px 1px rgba(255, 255, 255, 0.9))
    drop-shadow(-1.4px -1.8px 1.1px rgba(0, 0, 0, 0.5));
}
:root.theme-dark {
  --carve-text:
    -0.014em -0.017em 0.014em rgba(0, 0, 0, 0.62),
    0.016em 0.024em 0.01em rgba(255, 255, 255, 0.2);
  --carve-icon:
    drop-shadow(-0.6px -0.8px 0.5px rgba(0, 0, 0, 0.62))
    drop-shadow(0.8px 1.1px 0.5px rgba(255, 255, 255, 0.2));
  --carve-avatar:
    drop-shadow(-1.4px -1.8px 1.1px rgba(0, 0, 0, 0.75))
    drop-shadow(1.6px 2.2px 1px rgba(255, 255, 255, 0.3));
}
.brand,
showing the
   real page backdrop. The sheet keeps its own shadow and all its content. */
html body main.page-shell.has-coin-cutout.has-coin-cutout {
  background: transparent !important;
}

.page-shell.has-coin-cutout::before {
  -webkit-mask:
    var(--shell-notch-mask) 0 0 / 100% var(--shell-notch-box) no-repeat,
    linear-gradient(#000 0 0) 0 calc(var(--shell-notch-box) - 1px) / 100% calc(101% - var(--shell-notch-box)) no-repeat;
  mask:
    var(--shell-notch-mask) 0 0 / 100% var(--shell-notch-box) no-repeat,
    linear-gradient(#000 0 0) 0 calc(var(--shell-notch-box) - 1px) / 100% calc(101% - var(--shell-notch-box)) no-repeat;
}

