/* tempanywebstudios.co.uk: the one base stylesheet, loaded by every page, the homepage
   included, straight after scrollcraft.min.css. Tokens for both themes, the body type
   settings, the skip link and focus ring, the light switch, the quote-document components,
   the form components and the footer. The values here are
   the homepage's (28 Oct 2026); where the old sub-page copy disagreed, the homepage won.
   Sub-page layouts (the index bar, prose, cards, tables) live in tw-pages.css. */

/* ---------- tokens: paper for everyone, the dark desk only on the switch ---------- */
:root {
  color-scheme: light;
  --sc-canvas:     #efe9dd;
  --sc-surface:    #f7f3ea;
  --sc-ink:        #191712;
  --sc-ink-soft:   #61594c;
  --sc-accent:     #a1462a;
  --sc-accent-ink: #f7f3ea;
  --sc-shadow-color: 36 20% 30%;
  --sc-font-display: Alegreya, "Alegreya Fallback Georgia", "Alegreya Fallback Noto", serif;
  --sc-font-text:    "Alegreya Sans", "Alegreya Sans Fallback Segoe", "Alegreya Sans Fallback Helvetica", "Alegreya Sans Fallback Arial", "Alegreya Sans Fallback Roboto", "Alegreya Sans Fallback DejaVu", sans-serif;
  --sc-font-mono:    "Alegreya Sans", "Alegreya Sans Fallback Segoe", "Alegreya Sans Fallback Helvetica", "Alegreya Sans Fallback Arial", "Alegreya Sans Fallback Roboto", "Alegreya Sans Fallback DejaVu", sans-serif;
  --tw-glass: #f7f3ea;
  --tw-line:  rgba(25,23,18,.16);
  --tw-line-strong: #857c6c;
  --tw-ink-quiet: #6b6356;
  --tw-plate: #e6dfd1;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --sc-canvas:     #141210;
  --sc-surface:    #1d1a15;
  --sc-ink:        #efe9dd;
  --sc-ink-soft:   #a69d8a;
  --sc-accent:     #d46a41;
  --sc-accent-ink: #141210;
  --sc-shadow-color: 36 30% 3%;
  --tw-glass: #221e18;
  --tw-line:  rgba(239,233,221,.14);
  --tw-line-strong: #76705f;
  --tw-ink-quiet: #968d7b;
  --tw-plate: #1f1c17;
}

/* ---------- body type ---------- */
body { font-size: 1.125rem; font-style: normal; letter-spacing: 0; word-spacing: .04em; font-variant-numeric: lining-nums tabular-nums; }
em, i, cite { font-style: normal; }
@media (min-width: 900px) { body { font-size: 1.1875rem; } }
/* color inherits as a computed value, so the light theme restates it on body. */
:root:not([data-theme="dark"]) body { color: var(--sc-ink); }
.skip { position:absolute; left:-9999px; top:0; background:var(--sc-ink); color:var(--sc-canvas); padding:12px 20px; z-index:100; }
.skip:focus { left:0; }
:focus-visible { outline-color: var(--sc-ink); }

/* ---------- the light switch ---------- */
.tw-lights {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0;
  background: transparent; color: var(--sc-ink-soft);
  border: 1px solid var(--tw-line-strong); border-radius: 50%;
  cursor: pointer; transition: color var(--sc-d-fast) var(--sc-ease-out), border-color var(--sc-d-fast) var(--sc-ease-out);
}
.tw-lights:hover { color: var(--sc-ink); border-color: var(--sc-ink-soft); }
.tw-lights svg { width: 17px; height: 17px; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tw-lights .tw-lights__moon { display: none; }
:root[data-theme="dark"] .tw-lights .tw-lights__moon { display: block; }
:root[data-theme="dark"] .tw-lights .tw-lights__sun { display: none; }

/* ---------- the quote: the document components ---------- */
.tw-quote { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
@media (min-width: 900px) { .tw-quote { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 4rem; } }
.tw-quote > h2 { grid-column: 1 / -1; margin: 0; }
.tw-quote__intro { grid-column: 1 / -1; color: var(--sc-ink-soft); max-width: 46rem; margin: -.5rem 0 0; }
.tw-clause { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; align-items: start; padding-top: 1rem; border-top: 1px solid var(--tw-line-strong); }
.tw-clause--wide { grid-column: 1 / -1; }
.tw-clause__num { font: 700 1rem/1 var(--sc-font-text); color: var(--sc-ink-soft); padding-top: .45rem; font-variant-numeric: lining-nums tabular-nums; }
.tw-clause h3 { font-family: var(--sc-font-display); font-weight: 700; color: var(--sc-ink); letter-spacing: -.005em; font-size: clamp(1.3rem, 1.15rem + .5vw, 1.55rem); line-height: 1.15; margin: 0 0 .4rem; }
.tw-clause p { margin: 0 0 .75rem; color: var(--sc-ink-soft); max-width: 36rem; text-wrap: pretty; }
.tw-clause p:last-child { margin-bottom: 0; }
.tw-clause strong { color: var(--sc-ink); font-weight: 700; }
.tw-figure { font: 700 clamp(2.6rem, 2rem + 2.4vw, 3.9rem)/.95 var(--sc-font-display); letter-spacing: -.02em; margin: .15rem 0 .6rem !important; color: var(--sc-ink) !important; font-variant-numeric: lining-nums tabular-nums; }
.tw-figure small { display: inline-block; font: 700 1.0625rem/1 var(--sc-font-text); letter-spacing: 0; color: var(--sc-ink-soft); margin-left: .55rem; vertical-align: .95em; font-variant-numeric: lining-nums tabular-nums; }
.tw-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .5rem 0; border-bottom: 1px dashed var(--tw-line-strong); color: var(--sc-ink-soft); font-size: 1.0625rem; }
.tw-line > span { flex: 1 1 6rem; min-width: 0; }
.tw-line:last-of-type { border-bottom: 0; margin-bottom: .35rem; }
.tw-line strong { font: 700 1.0625rem/1.3 var(--sc-font-text); color: var(--sc-ink); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.tw-line a { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0; }
.tw-qa dt { font-weight: 700; color: var(--sc-ink); margin: 0 0 .25rem; }
.tw-qa dd { margin: 0 0 1rem; color: var(--sc-ink-soft); }

/* ---------- the form ---------- */
.tw-field { display: block; margin-bottom: 1rem; }
.tw-field > span { display: block; font-size: 1rem; font-weight: 700; word-spacing: .065em; color: var(--sc-ink-soft); margin-bottom: .4rem; }
.tw-field > span em { font-weight: 400; color: var(--tw-ink-quiet); }
.tw-field input, .tw-field select, .tw-field textarea { width: 100%; min-height: 48px; padding: .75rem .9rem; color: var(--sc-ink); background: var(--sc-surface); border: 1px solid var(--tw-line-strong); border-radius: 4px; font: 400 1.125rem/1.35 var(--sc-font-text); }
.tw-field input::placeholder, .tw-field textarea::placeholder { color: var(--tw-ink-quiet); opacity: 1; }
.tw-field textarea { resize: vertical; min-height: 7rem; }
.tw-field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sc-ink-soft) 50%), linear-gradient(135deg, var(--sc-ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.6rem; }
.tw-field input:focus-visible, .tw-field select:focus-visible, .tw-field textarea:focus-visible { outline: 2px solid var(--sc-ink); outline-offset: 2px; }
.tw-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1rem; }
@media (min-width: 620px) { .tw-row { grid-template-columns: 1fr 1fr; } }
.tw-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tw-submit { width: 100%; min-height: 52px; padding: 1rem 1.4rem; background: var(--sc-accent); color: var(--sc-accent-ink); border: 0; border-radius: 4px; font: 700 1.1875rem/1 var(--sc-font-text); cursor: pointer; }
.tw-submit:hover { filter: brightness(1.06); }
.tw-submit:active { transform: translateY(1px); }
.tw-submit:disabled { opacity: .6; cursor: default; }
.tw-submit:focus-visible { outline: 2px solid var(--sc-ink); outline-offset: 3px; }
.tw-status { min-height: 1.4em; margin: .75rem 0 0; color: var(--sc-ink-soft); }
.tw-status.is-ok { color: var(--sc-ink); }
.tw-status.is-error { color: #a13333; }
:root[data-theme="dark"] .tw-status.is-error { color: #e08b8b; }
.tw-fine { color: var(--sc-ink-soft); font-size: 1rem; margin: .5rem 0 0; }
.tw-fine a { color: var(--sc-ink-soft); padding: 10px 0; }
@media (prefers-reduced-motion: reduce) { .tw-submit { transition: none; } }
/* The no-script post goes to Web3Forms' own page, so the claim only shows when the page does the posting. */
.tw-fine__here { display: none; }
form[data-posts-here] .tw-fine__here { display: inline; }

/* ---------- the foot ---------- */
.tw-foot { overflow-wrap: anywhere; margin-top: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--tw-line-strong); color: var(--sc-ink-soft); font-size: 1rem; }
.tw-foot p { margin: 0 0 .6rem; max-width: 62rem; line-height: 1.9; }
/* Inline links: vertical padding does not move the line, so the 13px takes each link to 44px of hit area. */
.tw-foot a { color: var(--sc-ink-soft); padding: 13px 0; }
/* Cookie choice: a hit area that grows only downwards, into the space under its line (it is always the last link of its paragraph), so it never takes a tap meant for a link above. */
.tw-foot a[data-cookie-choice] { padding: 0 0 30px; }
.tw-foot__last { margin-top: 1rem !important; }

/* ---------- Graphite and highlighter (4 Nov 2026) ----------
   Black ink on white for the sketchpad, graphite spreads for the work and the reply,
   highlighter yellow under whatever sells. Big Shoulders, Work Sans, Azeret Mono. */
@font-face{font-family:"Big Shoulders Display";font-weight:800;font-display:swap;src:url(/fonts/big-shoulders-display-latin-800-normal.woff2) format("woff2")}
@font-face{font-family:"Big Shoulders Display";font-weight:700;font-display:swap;src:url(/fonts/big-shoulders-display-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Work Sans";font-weight:400;font-display:swap;src:url(/fonts/work-sans-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Work Sans";font-weight:500;font-display:swap;src:url(/fonts/work-sans-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Work Sans";font-weight:600;font-display:swap;src:url(/fonts/work-sans-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Azeret Mono";font-weight:500;font-display:swap;src:url(/fonts/azeret-mono-latin-500-normal.woff2) format("woff2")}
:root:root{
  --sc-canvas:#f5f5f2; --sc-surface:#eaeae6; --sc-ink:#141516; --sc-ink-soft:#575a5e;
  --sc-accent:#f5d547; --sc-accent-ink:#141516; --sc-shadow-color:210 8% 15%;
  --tw-glass:#ffffff; --tw-line:rgba(20,21,22,.14); --tw-line-strong:#94979b; --tw-ink-quiet:#686b70; --tw-plate:#eaeae6;
  --sc-font-display:"Big Shoulders Display","Arial Narrow",Impact,sans-serif;
  --sc-font-text:"Work Sans","Helvetica Neue",Arial,sans-serif;
  --sc-font-mono:"Azeret Mono",ui-monospace,monospace;
  --sk-paper:#ffffff; --sk-graphite:#141516; --sk-faint:#47494d; --sk-hatch:#8a8c90;
  --sk-rust:#f5d547; --sk-rust-ink:#141516;
  --sk-text:"Work Sans","Helvetica Neue",Arial,sans-serif;
  --sk-shadow:0 1px 1px rgba(22,15,12,.08),0 10px 24px -10px rgba(22,15,12,.22),0 36px 60px -34px rgba(20,21,22,.28);
  --tw-slab:#23272b; --tw-slab-2:#2e3338; --tw-slab-ink:#f5f5f2; --tw-slab-soft:#b3b8bd; --tw-slab-accent:#f5d547;
}
:root:root[data-theme="dark"]{
  --sc-canvas:#141516; --sc-surface:#1c1f22; --sc-ink:#f5f5f2; --sc-ink-soft:#a9adb2;
  --sc-accent:#f5d547; --sc-accent-ink:#141516; --tw-glass:#1c1f22; --tw-line:rgba(245,245,242,.13);
  --tw-line-strong:#55595e; --tw-ink-quiet:#8e9297; --tw-plate:#1c1f22;
  --tw-slab:#23272b; --tw-slab-2:#2e3338;
}
body{font-family:var(--sc-font-text)}
/* the headline: café menu-board type */
html body .sk h1{font:800 clamp(2rem,1.4rem + 2.6vw,3.6rem)/.92 var(--sc-font-display);text-transform:uppercase;letter-spacing:0;color:var(--sk-graphite)}
html body .sk h1 .tw-hi{color:#141516;background:linear-gradient(transparent 14%,#f5d547 14%,#f5d547 90%,transparent 90%);padding:0 .12em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
html body .sk-facts{font-family:var(--sc-font-mono);font-size:.875rem;letter-spacing:.02em;text-transform:uppercase;color:var(--sk-graphite);border-color:var(--sk-graphite)}
html body .sk-facts span{background:none!important;color:inherit!important}
html body .act h2,.tw-quote>h2{font-weight:800;text-transform:uppercase;letter-spacing:0;line-height:.92;font-size:clamp(2.2rem,1.5rem + 2.6vw,3.6rem)}
html body .act h3,.tw-clause h3{font-weight:700;text-transform:uppercase;letter-spacing:.01em}
html body .tw-figure{font-weight:800}
html body .tw-clause{grid-template-columns:minmax(0,1fr)}
html body .tw-clause__num{display:none}
html body .tw-clause{border-top-color:var(--sc-ink)}
html body .tw-submit,.sk-send button,.sk-send a{border-radius:3px}
/* espresso spreads */
html body .act--work,.act--demos,.act--reply{
  --sc-canvas:var(--tw-slab); --sc-surface:var(--tw-slab-2); --tw-plate:var(--tw-slab-2); --tw-glass:var(--tw-slab-2);
  --sc-ink:var(--tw-slab-ink); --sc-ink-soft:var(--tw-slab-soft); --tw-ink-quiet:#9a9ea3;
  --tw-line:rgba(245,243,239,.13); --tw-line-strong:rgba(245,243,239,.3);
  --sc-accent:var(--tw-slab-accent); --sc-accent-ink:#141516;
  background:var(--tw-slab); color:var(--tw-slab-ink);
  box-shadow:0 0 0 100vmax var(--tw-slab); clip-path:inset(0 -100vmax);
}
html body .act--work a,.act--demos a,.act--reply a{color:var(--tw-slab-accent)}
html body .act--work::before,.act--demos::before,.act--reply::before,.act--quote::before,.act--me::before{display:none}
html body .act--quote{padding-top:clamp(3rem,5vw,5rem)}

html body .act blockquote,html body .act blockquote p,html body .act figure blockquote{font-family:var(--sc-font-text);font-weight:400;text-transform:none;font-size:1.15rem;line-height:1.55}

/* yellow on near-white needs an edge: buttons and the send bar get an ink outline */
html body .tw-submit,html body .sk-send button,html body .sk-send a,html body .sk [type=submit]{box-shadow:inset 0 0 0 1.5px #141516}
html body .act--work .tw-submit,html body .act--reply .tw-submit{box-shadow:none}
html body .act--work a,html body .act--demos a,html body .act--reply a{text-decoration-color:#f5d547}

/* yellow can't be read as text on white: on paper, accent text is ink with a highlighter swipe */
:root:not([data-theme="dark"]) .tw-card dd b,
:root:not([data-theme="dark"]) .tw-where__list [aria-current],
:root:not([data-theme="dark"]) .tw-week__hold,
:root:not([data-theme="dark"]) .lib-flag--live { color: #141516 !important; background: linear-gradient(transparent 12%, #f5d547 12%, #f5d547 88%, transparent 88%); padding: 0 .15em; }
:root:not([data-theme="dark"]) .lib-entry__no { color: #141516; text-decoration: underline; text-decoration-color: #f5d547; text-decoration-thickness: .14em; text-underline-offset: .08em; }
:root:not([data-theme="dark"]) .tw-sheet__foot a { color: #141516; text-decoration-color: #f5d547; text-decoration-thickness: 3px; }

/* ---------- The bar on top, Back to the top, and the sketchbook (4 Nov 2026) ----------
   The homepage's top edge stays pinned to the top as you scroll (sub-pages pin their index bar
   the same way, in tw-pages.css). The Back to the top tab that used to float bottom left
   was removed on 10 Nov 2026 (it covered links), as were the tear-off between pages and the
   sheets swinging down on scroll (they skewed the text and left blank screens mid-render).
   Each act keeps its ring binding along the top edge, drawn still. */
html body .te { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--sc-canvas) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
html body.tw-scrolled .te { border-bottom-color: var(--tw-line); }
html { scroll-padding-top: 4.5rem; }
@media (max-width: 719px) {
  html body .te__nav { display: block; order: 10; flex: 1 0 100%; margin: 0 -12px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, #000 85%, #0000); mask: linear-gradient(90deg, #000 85%, #0000); }
  html body .te__nav::-webkit-scrollbar { display: none; }
  html body .te__nav ul { flex-wrap: nowrap; white-space: nowrap; column-gap: 1.1rem; padding-right: 2rem; }
  html body .te__nav li:has(> .te__where) { display: none; }
  html body .sk { --sk-chrome: calc(var(--te-h) + var(--sk-safe-t) + 68px); }
  html { scroll-padding-top: 7.5rem; }
}


#work, #quote, #me, #reply { position: relative; z-index: 1; }
:where(#quote, #me) { background-color: var(--sc-canvas); }
#work::after, #quote::after, #me::after, #reply::after {
  content: ""; position: absolute; top: 7px; left: 50%; width: min(100% - 32px, 1180px); height: 16px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #0000 3.2px, var(--sc-ink) 3.6px, var(--sc-ink) 5.2px, #0000 5.6px) 0 0 / 26px 16px repeat-x;
  opacity: .55;
}
