/* SkullSeed shared styles: tokens, fonts, type, buttons.
   HTML pages in the Finder can link this file to pick up the house look. */

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2B2A28;
  --cream: #F6F0E1;
  --wallpaper: #F28C6B;

  --font: 'Nunito', system-ui, sans-serif;
  --weight-regular: 400;
  --weight-bold: 800;

  --border-width: 3px;
  --border: var(--border-width) solid var(--ink);

  --radius-window: 14px;
  --radius-icon: 10px;
  --radius-button: 8px;
  --radius-small: 6px;

  --shadow-window: 8px 8px 0 var(--ink);
  --shadow-small: 5px 5px 0 var(--ink);
  --shadow-finder-icon: 4px 4px 0 var(--ink);

  --focus-ring: 3px dashed var(--ink);

  /* The pointer: a cream arrow with an ink outline and a hard shadow, like a classic Mac.
     Used everywhere, so nothing suggests a single click where a double-click is needed. */
  --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M3 3v19l5-4.5 3.5 7.5 3.5-1.5-3.5-7.5H18Z' transform='translate(2.5 2.5)' fill='%232B2A28' stroke='%232B2A28' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M3 3v19l5-4.5 3.5 7.5 3.5-1.5-3.5-7.5H18Z' fill='%23F6F0E1' stroke='%232B2A28' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 3 3, default;

  --dither-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='1' fill='%232B2A28'/%3E%3C/svg%3E");
  --dither-medium: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Crect width='1' height='1' fill='%232B2A28'/%3E%3C/svg%3E");
}

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

html { cursor: var(--cursor); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: var(--weight-regular);
  line-height: 1.6;
  color: var(--ink);
}

h1, h2, h3 { font-weight: var(--weight-bold); line-height: 1.3; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }

:focus-visible { outline: var(--focus-ring); outline-offset: 4px; }

.hello { font-size: 28px; line-height: 1.2; }
.heading { font-size: 22px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Buttons: flat, no shadow. Explicit backgrounds so nothing falls back to browser defaults. */
.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 8px 18px;
  font: var(--weight-bold) 15px/1.2 var(--font);
  text-decoration: none;
  border: var(--border);
  border-radius: var(--radius-button);
  cursor: var(--cursor);
  transition: transform 0.08s;
}
.btn-primary { background-color: var(--ink); color: var(--cream); }
.btn-primary:hover { box-shadow: inset 0 0 0 2px var(--cream); }
.btn-primary:active { transform: translate(2px, 2px); }

.btn-ghost { background-color: transparent; color: var(--ink); }
.btn-ghost:hover { background-color: var(--ink); color: var(--cream); }
.btn-ghost:active { background-color: var(--ink); color: var(--cream); transform: translate(2px, 2px); }

.btn-link {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: var(--weight-bold) 15px/1.2 var(--font);
  text-decoration: none;
  cursor: var(--cursor);
}
.btn-link .arrow { display: inline-block; transition: transform 0.12s; }
.btn-link:hover .label { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.btn-link:hover .arrow { transform: translateX(4px); }
.btn-link:active { transform: translate(1px, 1px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
