:root {
  --ink: #1c1412;
  --muted: #5c4e48;
  --paper: #f7f1ea;
  --card: #fffaf6;
  --line: #e4d5c8;
  --wine: #7a2430;
  --wine-deep: #4e1520;
  --gold: #b5813a;
  --ok: #1d6b3a;
  --warn: #8a5a12;
  --shadow: 0 16px 40px rgba(78, 21, 32, 0.08);
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 100% -10%, rgba(181, 129, 58, 0.18), transparent 60%),
    var(--paper);
  font: 17px/1.6 "Segoe UI", Georgia, "Times New Roman", serif;
}

a { color: var(--wine); }
a:hover { color: var(--wine-deep); }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
}
.skip:focus { left: 12px; z-index: 5; }

.site-header {
  background: var(--wine-deep);
  color: #f8efe8;
}
.site-header a { color: #f8efe8; text-decoration: none; }
.bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.brand { display: inline-flex; line-height: 0; }
.brand-logo {
  display: block;
  height: 75px;
  width: auto;
  border-radius: 5px;
}
nav { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 0.95rem; }
nav a { border-bottom: 2px solid transparent; padding-bottom: 2px; }
nav a[aria-current="page"] { border-color: #e8c48a; }
.nav-drop { position: relative; }
.nav-drop summary {
  list-style: none;
  cursor: pointer;
  color: #f8efe8;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: " ▾"; color: #e8c48a; }
.nav-drop[open] summary,
.nav-drop summary[aria-current="true"] { border-color: #e8c48a; }
.nav-drop ul {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  z-index: 6;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  background: #3a1018;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.nav-drop li { list-style: none; margin: 0; }
.nav-drop a {
  display: block;
  padding: 7px 16px;
  border-bottom: 0;
}
.nav-drop a[aria-current="page"] { border-bottom: 0; background: rgba(232, 196, 138, 0.16); }

main { max-width: var(--max); margin: 0 auto; padding: 36px 24px 72px; }
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}
.hero img, .figure img, .card img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  box-shadow: var(--shadow);
}
h1 { font-size: 2.4rem; line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 1.55rem; margin: 2rem 0 0.6rem; }
h3 { font-size: 1.15rem; margin: 1.4rem 0 0.4rem; }
.lede { font-size: 1.15rem; color: var(--muted); margin-top: 0; }

.card, .note, .callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card h2, .card h3 { margin-top: 0; }
.meta { color: var(--muted); font-size: 0.92rem; }

ol.steps { padding-left: 1.2rem; }
ol.steps li { margin: 0.45rem 0; }
code, .path {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
  background: #f3e7dc;
  padding: 0.1em 0.35em;
  border-radius: 6px;
}
pre {
  background: #2a1718;
  color: #f6eadf;
  padding: 14px 16px;
  border-radius: 12px;
  overflow: auto;
}
pre code { background: transparent; color: inherit; padding: 0; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f3e6da; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: #8a817c; }

.note { border-left: 5px solid var(--gold); }
.callout { border-left: 5px solid var(--wine); }
.figure { margin: 18px 0 8px; }
.figure figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.canvasly-shot { max-width: 720px; }
.canvasly-shot a { display: block; }
.canvasly-shot img { width: 100%; height: auto; }

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px;
  text-align: center;
  font-size: 0.92rem;
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .brand-logo { height: 75px; }
}
