/* AniLore — the app's Manga Sketchbook palette on the web.
   Values mirror lib/core/theme/product_colors.dart in the app. */

@font-face {
  font-family: "Shantell Sans";
  src: url("/assets/fonts/ShantellSans-Variable.ttf") format("truetype");
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/Figtree-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ink: #282722;
  --pencil: #69645c;
  --desk-pencil: #5e5952;
  --desk: #ddd2c0;
  --paper: #f5eddf;
  --sheet: #fffaf0;
  --blue: #5b7c8d;
  --blue-ink: #455e6a;
  --coral-ink: #8f433e;
  --ochre: #d0a34f;
  --brand: "Shantell Sans", "Trebuchet MS", Arial, sans-serif;
  --reading: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--reading);
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--blue-ink); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px dashed var(--ink); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--sheet); padding: 8px 12px; border: 2px solid var(--ink);
}
.skip:focus { left: 12px; top: 12px; z-index: 10; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0 18px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--brand); font-weight: 700; font-size: 28px;
  color: var(--ink); text-decoration: none;
}
.brand img { width: 52px; height: auto; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--brand); font-weight: 600; font-size: 15px; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.lang { font-size: 14px; }

/* The sheet: raised paper, graphite outline, hard shadow */
.sheet {
  background: var(--sheet);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 40px 44px;
  margin: 0 4px 0 0;
}

h1, h2, h3 { font-family: var(--brand); line-height: 1.25; color: var(--ink); }
h1 { font-size: 34px; margin: 0 0 6px; }
h2 { font-size: 23px; margin: 36px 0 10px; }
h3 { font-size: 18px; margin: 24px 0 6px; }

.meta { color: var(--pencil); font-size: 14px; margin: 0 0 24px; }
.lede { font-size: 19px; }

ul, ol { padding-left: 22px; }
li { margin: 4px 0; }

table { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1.5px solid var(--ink); }
th { font-family: var(--brand); font-weight: 700; background: var(--paper); border-top: 2px solid var(--ink); }

.note {
  background: var(--paper);
  border: 2px dashed var(--ink);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 18px 0;
}

.toc { font-size: 15px; columns: 2; column-gap: 28px; padding-left: 20px; }

.button {
  display: inline-block;
  font-family: var(--brand); font-weight: 700; font-size: 16px;
  color: var(--sheet); background: var(--blue);
  border: 2px solid var(--ink); border-radius: 6px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 11px 22px; text-decoration: none;
}
.button:hover { color: var(--sheet); transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }

/* Home */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.hero img { width: 100%; max-width: 320px; justify-self: center; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.card {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 6px;
  padding: 16px 18px;
}
.card h3 { margin-top: 0; }

footer {
  color: var(--desk-pencil); font-size: 14px;
  padding: 26px 0 40px;
}
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
footer a { color: var(--desk-pencil); }

@media (max-width: 680px) {
  body { font-size: 16px; }
  .sheet { padding: 26px 20px; }
  h1 { font-size: 28px; }
  .top { flex-direction: column; align-items: flex-start; }
  .hero, .cards { grid-template-columns: 1fr; }
  .toc { columns: 1; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border: none; padding: 4px 0; }
  tr { border-bottom: 1.5px solid var(--ink); padding: 10px 0; }
  td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; }
}

@media print {
  body { background: #fff; }
  .top nav, footer nav, .skip { display: none; }
  .sheet { box-shadow: none; border: none; padding: 0; }
}
