/* Crazy Beautiful Ideas — shared design tokens (landing page + dashboard).
   Concept: an engineering drawing office with a craft table in it. Blueline paper,
   cyanotype blueprints and title blocks, with cut-paper pieces laid on top:
   international orange card, manila folders, masking tape. */
:root {
  color-scheme: light;

  /* drafting paper + ink (cool, biased toward the blueline) */
  --paper: #eef1f5;
  --paper-2: #e2e7ee;
  --paper-3: #d3dae4;
  --white: #ffffff;
  --card: #fbfaf5;
  --ink: #0d1a38;
  --ink-2: #3d4963;
  --ink-3: #77829a;
  --line: rgba(13, 26, 56, 0.14);
  --line-2: rgba(13, 26, 56, 0.26);

  /* blueprint */
  --blue: #1f4fd8;
  --blueprint: #143f9b;
  --blueprint-deep: #0d2e77;
  --blue-wash: #dfe7fb;

  /* cut paper */
  --orange: #ff4f00;
  --orange-wash: #ffe5d8;
  --manila: #ecd8a4;
  --manila-2: #dcc385;
  --kraft: #c9a273;
  --tape: rgba(238, 212, 138, 0.82);
  --yellow: #f5c400;
  --yellow-wash: #fdf1c0;
  --green: #0c9a78;
  --green-wash: #d3f0e6;

  /* earlier names, kept so shared components and the dashboard follow the palette */
  --pink: var(--orange);
  --pink-wash: var(--orange-wash);
  --mint: var(--green);
  --mint-wash: var(--green-wash);

  /* semantic (dashboard states) */
  --ok: #0a7f62;
  --warn: #a86200;
  --bad: #c8321a;

  /* type: engineered display, a quiet serif italic, cockpit mono, a draftsman's hand */
  --font-idea: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-beauty: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "B612 Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-crazy: "Architects Daughter", "Segoe Print", "Bradley Hand", cursive;

  /* shape + depth */
  --r-s: 4px;
  --r-m: 8px;
  --r-l: 14px;
  --shadow-s: 0 1px 2px rgba(13, 26, 56, 0.1), 0 2px 8px rgba(13, 26, 56, 0.07);
  --shadow-m: 0 2px 4px rgba(13, 26, 56, 0.08), 0 12px 32px rgba(13, 26, 56, 0.14);
  --shadow-l: 0 4px 8px rgba(13, 26, 56, 0.08), 0 30px 80px rgba(13, 26, 56, 0.24);
  /* a sheet of paper lying on another sheet */
  --cut: drop-shadow(0 1px 0 rgba(13, 26, 56, 0.22)) drop-shadow(0 7px 9px rgba(13, 26, 56, 0.2));

  /* paper fibre, laid over flat colour */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .34 0 0 0 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .3 0 0 0 -.09'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--orange);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The wordmark: a cut-paper label, a serif italic, an engineered grotesk */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.wordmark .w-crazy {
  display: inline-block;
  padding: 0.16em 0.34em 0.14em;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-idea);
  font-weight: 800;
  font-stretch: 100%;
  font-size: 0.86em;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  clip-path: polygon(0 6%, 100% 0, 98% 94%, 2% 100%);
}
.wordmark .w-beautiful {
  font-family: var(--font-beauty);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  letter-spacing: -0.01em;
}
.wordmark .w-ideas {
  font-family: var(--font-idea);
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.02em;
}
