/* Artuntum's page (views/creators/artuntum.php): a sketchbook in black ink
   on warm paper. No colour of its own — the only colour is his art, which
   arrives as an ink sketch and colours itself in (creators/artuntum.js).
   Permanent Marker for the hand-lettered headings, Caveat for the notes in
   the margins, Courier Prime for the small print. */
@font-face { font-family: 'Permanent Marker'; src: url('/assets/fonts/PermanentMarker.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('/assets/fonts/caveat-600-latin.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('/assets/fonts/courier-prime-400-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('/assets/fonts/courier-prime-700-latin.woff2') format('woff2'); font-weight: 700; font-display: swap; }

body.cp-theme-artuntum {
  --paper: #F1ECE2; --paper2: #E7E0D2; --ink: #141312; --ink2: #3A3733; --graphite: #6E6A63; --rule: rgba(20, 19, 18, .14);
  /* The grain of the paper: a fixed noise tile, multiplied in. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background: var(--paper) var(--grain); color: var(--ink);
}
html:has(> body.cp-theme-artuntum) { --scroll-acc: #141312; background: #F1ECE2; }
body.cp-theme-artuntum ::selection { background: #141312; color: #F1ECE2; }

.at { position: relative; overflow-x: clip; font-family: 'Nunito', system-ui, sans-serif; }
.at-defs { position: absolute; width: 0; height: 0; }
.at section[id] { scroll-margin-top: 96px; }
.at-wrap { width: min(1220px, 100% - 40px); margin-inline: auto; }
.at h1, .at h2 { font-family: 'Permanent Marker', 'Caveat', cursive; font-weight: 400; letter-spacing: .01em; color: var(--ink); }
.at h2 { margin: 0; font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1; }
.at h2 em { font-style: normal; position: relative; z-index: 0; }
/* A rough highlighter swipe of hatching behind the second word. */
.at h2 em::after { content: ''; position: absolute; z-index: -1; left: -4%; right: -6%; bottom: .06em; height: .42em; transform: rotate(-1.2deg);
  background: repeating-linear-gradient(-58deg, rgba(20, 19, 18, .32) 0 1.5px, transparent 1.5px 6px); filter: url(#at-rough); }
.at-note { margin: 0; font-family: 'Caveat', cursive; font-weight: 600; font-size: 1.45rem; line-height: 1.15; color: var(--graphite); }

/* ---------------------------------------------------------------- buttons */
.at-do { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.at-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px 12px; border: 2.5px solid var(--ink); border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px;
  background: var(--ink); color: var(--paper); font-family: 'Courier Prime', monospace; font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  box-shadow: 4px 5px 0 rgba(20, 19, 18, .22); transition: transform .18s cubic-bezier(.2, 1.4, .4, 1), box-shadow .18s; }
.at-btn:hover { transform: translate(-2px, -2px) rotate(-.6deg); box-shadow: 7px 8px 0 rgba(20, 19, 18, .28); }
.at-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(20, 19, 18, .3); }
.at-btn--ghost { background: transparent; color: var(--ink); }
.at-btn:focus-visible, .at a:focus-visible { outline: 3px dashed var(--ink); outline-offset: 4px; }

/* ------------------------------------------------------------------- hero */
.at-hero { position: relative; padding: 118px 0 40px; }
.at-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 30px; align-items: center; min-height: min(80vh, 760px); }
.at-hero-words { position: relative; z-index: 2; container-type: inline-size; }
.at-note--top { font-size: 1.7rem; transform: rotate(-2deg); transform-origin: left; margin-bottom: 4px; }
/* Sized to its own column (cqi), so the name always fits beside the
   portrait instead of running into it; the line under it is as wide as the
   name itself, because the heading shrinks to the name. */
.at-name { position: relative; width: fit-content; max-width: 100%; margin: 0; font-size: min(9.2rem, 15cqi); line-height: .9; transform: rotate(-2.5deg); transform-origin: left bottom; }
.at-name-ink { display: inline-block; text-shadow: 3px 3px 0 rgba(20, 19, 18, .1); }
.at-stroke { display: block; width: 104%; margin-left: -2%; height: .32em; margin-top: -.02em; overflow: visible; }
.at-stroke path { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: atDraw 1.1s .45s cubic-bezier(.6, 0, .2, 1) forwards; filter: url(#at-rough); }
@keyframes atDraw { to { stroke-dashoffset: 0; } }
.at-lede { margin: 22px 0 0; max-width: 34ch; font-family: 'Courier Prime', monospace; font-size: 1.12rem; line-height: 1.5; color: var(--ink2); }
.at-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.at-tags li { padding: 5px 14px 4px; border: 2px solid var(--ink); border-radius: 4px 12px 5px 14px / 12px 5px 14px 4px; font-family: 'Courier Prime', monospace; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; transform: rotate(var(--r, 0deg)); background: var(--paper); }
.at-socials { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.at-socials a { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 48% 52% 46% 54% / 52% 46% 54% 48%; color: var(--ink); transition: background-color .18s, color .18s, transform .18s; }
.at-socials a:hover { background: var(--ink); color: var(--paper); transform: rotate(-8deg) scale(1.06); }
.at-socials svg { width: 19px; height: 19px; fill: currentColor; }
.at-handle { margin-left: 6px; font-family: 'Caveat', cursive; font-weight: 600; font-size: 1.5rem; color: var(--graphite); }

/* The portrait, inked onto the same paper: multiplied so its white is the
   page's, and its edge bleeds out rather than stopping at a box. */
.at-portrait { position: relative; margin: 0; justify-self: center; width: min(100%, 560px); }
.at-portrait img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; filter: contrast(1.08);
  -webkit-mask-image: radial-gradient(ellipse 62% 64% at 52% 46%, #000 58%, transparent 80%); mask-image: radial-gradient(ellipse 62% 64% at 52% 46%, #000 58%, transparent 80%);
  animation: atInk 1.4s .1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes atInk { from { opacity: 0; filter: contrast(1.08) blur(6px); transform: scale(1.03); } }
.at-portrait .at-note--cap { position: absolute; right: 6%; bottom: 7%; transform: rotate(-4deg); font-size: 1.35rem; }
.at-portrait .at-note--cap::before { content: '↖ '; }

/* His mark: the letters stacked in a box, the way he signs his sheets. */
.at-stamp { position: absolute; left: 4%; bottom: 12%; display: grid; padding: 7px 9px 5px; border: 3px solid var(--ink); font-family: 'Courier Prime', monospace; font-weight: 700; font-size: 1.05rem; line-height: .95; letter-spacing: .14em; color: var(--ink); transform: rotate(-7deg); opacity: .88; filter: url(#at-rough); }
.at-stamp b { font-weight: 700; }
.at-open { position: absolute; right: max(20px, calc((100% - 1220px) / 2)); top: 104px; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border: 2px dashed var(--ink); border-radius: 30px; font-family: 'Courier Prime', monospace; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; transform: rotate(3deg); background: var(--paper); }
.at-open i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); animation: atBlink 1.6s ease-in-out infinite; }
@keyframes atBlink { 50% { opacity: .2; } }

/* ----------------------------------------------------------- section head */
.at-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 20px; margin-bottom: 30px; padding-bottom: 12px; position: relative; }
.at-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink); border-radius: 3px; filter: url(#at-rough); opacity: .85; }
.at-head .at-note { transform: rotate(-1.5deg); }

/* ------------------------------------------------------------------- work */
.at-work { padding: 30px 0 30px; }
.at-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 34px 28px; align-items: start; }
.at-piece { position: relative; display: block; padding: 10px 10px 12px; background: #FBF9F4; color: var(--ink); text-decoration: none; cursor: zoom-in;
  box-shadow: 0 1px 0 rgba(20, 19, 18, .08), 6px 10px 22px -12px rgba(20, 19, 18, .45); transform: rotate(var(--r, 0deg));
  transition: transform .28s cubic-bezier(.2, 1.3, .4, 1), box-shadow .28s; }
.at-piece.is-wide { grid-column: span 2; }
.at-piece img { display: block; width: 100%; height: auto; aspect-ratio: auto; background: var(--paper2); }
.at-cap { display: block; margin-top: 8px; font-family: 'Caveat', cursive; font-weight: 600; font-size: 1.35rem; line-height: 1.1; color: var(--ink2); }
/* A strip of masking tape holding it to the page. */
.at-tape { position: absolute; z-index: 2; top: -13px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(196, 188, 168, .72); box-shadow: 0 1px 3px rgba(20, 19, 18, .22);
  -webkit-mask-image: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent calc(100% - 3px)); }
.at-piece:nth-child(3n+2) .at-tape { transform: translateX(-50%) rotate(4deg); left: 38%; }
@media (hover: hover) and (pointer: fine) {
  .at-piece:hover { z-index: 3; transform: rotate(0deg) translateY(-6px) scale(1.025); box-shadow: 0 1px 0 rgba(20, 19, 18, .08), 14px 22px 38px -16px rgba(20, 19, 18, .55); }
}

/* Ink first, colour after: until a piece is on screen it is a hard
   graphite sketch; .is-inked (artuntum.js) lets the colour flood in and it
   stays. Without the script (no .at-js) the art is simply in colour. */
.at-js .at-piece[data-at-ink] img { filter: grayscale(1) contrast(1.55) brightness(1.06); transition: filter 1.3s cubic-bezier(.4, 0, .2, 1); }
.at-js .at-piece[data-at-ink].is-inked img { filter: none; }
.at-frame { position: relative; display: block; overflow: hidden; }
.at-js .at-piece[data-at-ink] .at-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--grain); mix-blend-mode: multiply; opacity: .9; transition: opacity 1.3s cubic-bezier(.4, 0, .2, 1); }
.at-js .at-piece[data-at-ink].is-inked .at-frame::after { opacity: 0; }
.at-more { margin: 30px 0 0; text-align: right; }
.at-more a, .at-end a { color: var(--ink); font-family: 'Courier Prime', monospace; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.at-more a:hover, .at-end a:hover { text-decoration-style: wavy; }

/* ------------------------------------------------------------ commissions */
.at-sheet-sec { padding: 70px 0 30px; }
/* A page torn from a ruled notebook: blue-free rules, a margin line in ink. */
.at-sheet { position: relative; padding: 38px clamp(20px, 5vw, 64px) 34px clamp(34px, 7vw, 92px); background: #FBF9F4;
  background-image: linear-gradient(90deg, transparent calc(clamp(22px, 5vw, 70px) - 1px), rgba(20, 19, 18, .35) calc(clamp(22px, 5vw, 70px) - 1px) clamp(22px, 5vw, 70px), transparent clamp(22px, 5vw, 70px)),
                    repeating-linear-gradient(180deg, transparent 0 37px, var(--rule) 37px 38px);
  box-shadow: 0 1px 0 rgba(20, 19, 18, .08), 10px 16px 34px -18px rgba(20, 19, 18, .5); transform: rotate(-.5deg); }
.at-sheet::before { content: ''; position: absolute; left: 0; right: 0; top: -9px; height: 18px; background: radial-gradient(circle at 9px 9px, var(--paper) 5px, transparent 5.5px) 0 0 / 34px 18px repeat-x; }
.at-head--sheet::after { display: none; }
.at-chop { padding: 6px 14px 4px; border: 3px solid var(--ink); border-radius: 6px; font-family: 'Permanent Marker', cursive; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .08em; transform: rotate(-8deg); filter: url(#at-rough); }
.at-chop.is-shut { opacity: .6; }
.at-menu { margin: 0; padding: 0; list-style: none; }
.at-menu li + li { border-top: 2px dashed rgba(20, 19, 18, .22); }
.at-menu a { display: grid; grid-template-columns: minmax(0, auto) minmax(30px, 1fr) auto; align-items: end; gap: 14px; padding: 18px 0; color: var(--ink); text-decoration: none; transition: transform .2s; }
.at-menu a:hover { transform: translateX(6px); }
.at-menu a.is-shut { opacity: .55; }
.at-menu-what { display: grid; gap: 3px; max-width: 58ch; }
.at-menu-what b { font-family: 'Permanent Marker', cursive; font-weight: 400; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.1; }
.at-menu-what small { font-size: .95rem; color: var(--ink2); line-height: 1.45; }
.at-menu-what .at-menu-facts { font-family: 'Courier Prime', monospace; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); }
.at-menu-dots { align-self: end; margin-bottom: .55em; border-bottom: 3px dotted rgba(20, 19, 18, .45); }
.at-menu-price { font-family: 'Permanent Marker', cursive; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; white-space: nowrap; }
.at-menu-price i { font-family: 'Caveat', cursive; font-style: normal; font-weight: 600; font-size: 1.2rem; color: var(--graphite); }
.at-sheet-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 24px 0 0; }

/* ------------------------------------------------------------------ about */
.at-about { padding: 80px 0 30px; }
.at-about-in { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.at-about-text h2 { margin-bottom: 20px; }
.at-about-text p { margin: 0 0 16px; max-width: 64ch; font-size: 1.12rem; line-height: 1.8; color: var(--ink2); }
.at-about-text p:first-of-type::first-letter { float: left; margin: .12em .14em 0 0; font-family: 'Permanent Marker', cursive; font-size: 3.6em; line-height: .8; color: var(--ink); }
.at-tags--about { margin-top: 24px; }
.at-tags--about li { font-size: .72rem; }
/* A crosshatched card, the kind of shading in his portrait. */
.at-about-card { position: relative; isolation: isolate; padding: 26px 24px; border: 3px solid var(--ink); transform: rotate(1.2deg); }
.at-about-card::before, .at-about-card::after { content: ''; position: absolute; z-index: -1; }
.at-about-card::before { inset: 6px -14px -14px 6px; border: 2px solid var(--ink);
  background: repeating-linear-gradient(45deg, var(--ink) 0 1px, transparent 1px 5px), repeating-linear-gradient(-45deg, var(--ink) 0 1px, transparent 1px 5px); }
.at-about-card::after { inset: 0; background: #FBF9F4; }
.at-about-card dl { display: grid; gap: 16px; margin: 0; }
.at-about-card dt { font-family: 'Courier Prime', monospace; font-weight: 700; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--graphite); }
.at-about-card dd { margin: 2px 0 0; font-family: 'Permanent Marker', cursive; font-size: 1.7rem; line-height: 1.1; }

/* ------------------------------------------------------------------- shop */
.at-shop { padding: 80px 0 20px; }
.at-blank { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; padding: 26px 28px; border: 2.5px dashed rgba(20, 19, 18, .5); border-radius: 18px 6px 22px 8px / 8px 22px 6px 18px; }
.at-blank p { margin: 0; max-width: 62ch; font-size: 1.05rem; line-height: 1.6; color: var(--ink2); }
.at-blank b { font-family: 'Permanent Marker', cursive; font-weight: 400; font-size: 1.3rem; color: var(--ink); margin-right: 4px; }

/* ------------------------------------------------------------------- join */
.at-join { padding: 80px 0 30px; }
.at-join-card { position: relative; padding: clamp(28px, 5vw, 56px); background: var(--ink); color: #EDE8DE; border-radius: 6px 22px 8px 26px / 26px 8px 22px 6px; box-shadow: 0 30px 60px -36px rgba(20, 19, 18, .7); overflow: hidden; }
.at-join-card::before { content: ''; position: absolute; inset: 0; background: var(--grain); opacity: .5; mix-blend-mode: screen; pointer-events: none; }
.at-join-card > div { position: relative; max-width: 760px; }
.at-join-card h2 { color: #F4EFE6; margin: 6px 0 16px; }
.at-join-card h2 em::after { background: repeating-linear-gradient(-58deg, rgba(244, 239, 230, .4) 0 1.5px, transparent 1.5px 6px); }
.at-join-card p { color: #CFC9BD; line-height: 1.7; font-size: 1.05rem; }
.at-join-card .at-note { color: #A9A397; }
.at-join-card .at-btn { background: #F1ECE2; color: var(--ink); border-color: #F1ECE2; box-shadow: 4px 5px 0 rgba(0, 0, 0, .5); }
.at-join-card .at-btn--ghost { background: transparent; color: #F1ECE2; }

/* ----------------------------------------------------------------- footer */
.at-end { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 40px 0 80px; font-family: 'Courier Prime', monospace; color: var(--ink2); }
.at-end p { margin: 0; }
.at-stamp--end { position: static; transform: rotate(-5deg); font-size: .9rem; }

/* ------------------------------------------------------------- header bar */
body.cp-theme-artuntum .cpnav { font-family: 'Courier Prime', monospace; }
body.cp-theme-artuntum .cpnav-in { background: rgba(241, 236, 226, .72); border-color: rgba(20, 19, 18, .85); border-width: 2px; box-shadow: 4px 5px 0 rgba(20, 19, 18, .16); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { body.cp-theme-artuntum .cpnav-in { background: rgba(241, 236, 226, .97); } }
.perf-lite body.cp-theme-artuntum .cpnav-in { background: rgba(241, 236, 226, .97); }
body.cp-theme-artuntum .cpnav-who { color: var(--ink); font-family: 'Permanent Marker', cursive; font-weight: 400; font-size: 19px; border-left-color: rgba(20, 19, 18, .3); }
body.cp-theme-artuntum .cpnav-av { border-color: var(--ink); box-shadow: none; }
body.cp-theme-artuntum .cpnav-av { background: #FBF9F4; }
body.cp-theme-artuntum .cpnav-av img { object-position: 58% 22%; transform-origin: 58% 22%; transform: scale(1.35); filter: grayscale(1) contrast(1.35); mix-blend-mode: multiply; }
body.cp-theme-artuntum .cpnav-links a { color: var(--ink2); font-weight: 700; letter-spacing: .04em; }
body.cp-theme-artuntum .cpnav-links a:hover { color: var(--ink); background: rgba(20, 19, 18, .07); }
body.cp-theme-artuntum .cpnav-links a[aria-current="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
body.cp-theme-artuntum .cpnav-cart { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 rgba(20, 19, 18, .2); font-weight: 700; }
body.cp-theme-artuntum .cpnav-cart:hover { background: #3A3733; }
body.cp-theme-artuntum .cpnav-account { background: transparent; border: 2px solid var(--ink); color: var(--ink); }
body.cp-theme-artuntum .cpnav-account:hover { background: var(--ink); color: var(--paper); }
body.cp-theme-artuntum .cpnav-burger { background: transparent; border: 2px solid var(--ink); }
body.cp-theme-artuntum .cpnav-burger span { background: var(--ink); }
body.cp-theme-artuntum .cpnav-drxp img { filter: grayscale(1) contrast(1.2); }

/* --------------------------------------------------------------- smaller */
@media (max-width: 960px) {
  .at-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .at-about-in { grid-template-columns: 1fr; }
  .at-about-card { max-width: 420px; }
}
@media (max-width: 860px) {
  .at-hero { padding-top: 96px; }
  /* The Page / Hire switch gives the phone menu bar another row. */
  body:has(.cpnav-sides) .at-hero { padding-top: 124px; }
}
@media (max-width: 560px) {
  body:has(.cpnav-sides) .at-hero { padding-top: 198px; }
  .at-hero-in { grid-template-columns: 1fr; min-height: 0; gap: 10px; }
  .at-portrait { order: -1; width: min(86%, 440px); }
  .at-open { position: static; margin: 18px 0 0 20px; transform: rotate(-2deg); }
}
@media (max-width: 560px) {
  .at-wrap { width: calc(100% - 32px); }
  .at-wall { gap: 26px 14px; }
  .at-piece { padding: 6px 6px 8px; }
  .at-cap { font-size: 1.1rem; }
  .at-tape { width: 64px; height: 20px; top: -10px; }
  .at-menu a { grid-template-columns: minmax(0, 1fr) auto; }
  .at-menu-dots { display: none; }
  .at-sheet { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .at-stroke path { animation: none; stroke-dashoffset: 0; }
  .at-portrait img { animation: none; }
  .at-open i { animation: none; }
  .at-js .at-piece[data-at-ink] img, .at-js .at-piece[data-at-ink] .at-frame::after { transition: none; }
  .at-piece, .at-btn, .at-menu a { transition: none; }
}
