/* ============================================================
   BOWYER RESEARCH — shared design tokens & textures
   Grounded in the isometric-cube logo: cream paper, muted
   peach-orange faces, burnt-orange hard shadows, warm ink.
   ============================================================ */

:root{
  /* --- Cream / paper (whites are replaced by warm creams) --- */
  --paper:        #F3ECDD;   /* base background  */
  --paper-hi:     #FBF6EC;   /* lifted surface   */
  --paper-lo:     #EADFC9;   /* recessed surface */
  --panel:        #EFE6D3;   /* default panel    */

  /* --- Ink / warm near-blacks --- */
  --ink:          #211B12;   /* primary text     */
  --ink-soft:     #5A5043;   /* secondary text   */
  --ink-faint:    #8C8273;   /* tertiary / meta  */
  --rule:         #CDBFA4;   /* hairline rules   */

  /* --- Orange family (from the cube faces) --- */
  --face:         #E6A86B;   /* light cube face  */
  --face-deep:    #D98E47;   /* deeper face      */
  --orange:       #C9742F;   /* primary accent / actions / data */
  --orange-ink:   #A8501C;   /* deep burnt — hard shadows */
  --orange-pale:  #F1D2A9;   /* pale wash        */

  /* --- Cube greys (the cube's underside / ground) --- */
  --grey:         #C6BEB0;
  --grey-deep:    #B0A696;

  /* --- Geometry --- */
  --skew: -14deg;            /* cube-face skew    */
  --iso:  30deg;             /* axonometric angle */

  /* --- Hard, sharp, multi-layered drop shadow (no blur) --- */
  --shadow-rhombus:
      4px  4px  0 var(--paper-hi),
      9px  9px  0 var(--face),
      14px 14px 0 var(--orange-ink);
  --shadow-hard:
      6px 6px 0 var(--orange-ink);
  --shadow-hard-sm:
      3px 3px 0 var(--orange-ink);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:104px; }
body{ margin:0; background:var(--paper); color:var(--ink); }
img{ display:block; max-width:100%; }
a{ color:inherit; }
button{ font:inherit; color:inherit; cursor:pointer; }
h1,h2,h3,h4,p{ margin:0; }

/* ---- Textures (used as background layers) -------------------- */

/* Fine blueprint grid */
.tx-grid{
  background-image:
    linear-gradient(to right,  rgba(33,27,18,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(33,27,18,.045) 1px, transparent 1px);
  background-size: 28px 28px;
}
.tx-grid-fine{
  background-image:
    linear-gradient(to right,  rgba(33,27,18,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(33,27,18,.05) 1px, transparent 1px);
  background-size: 14px 14px;
}

/* Subtle cream paper grain (fractal noise, very low opacity) */
.tx-grain{ position:relative; }
.tx-grain::before{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:0;
  opacity:.5; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/></svg>");
}

/* Diagonal deco hatching */
.tx-hatch{
  background-image: repeating-linear-gradient(45deg,
     rgba(168,80,28,.16) 0, rgba(168,80,28,.16) 1.5px,
     transparent 1.5px, transparent 7px);
}

/* Tabular numerals helper */
.tnum{ font-variant-numeric: tabular-nums; font-feature-settings:"tnum" 1; }
