/* mahatmama.com — static site stylesheet
   No inline styles are used anywhere, so the Content-Security-Policy can stay strict. */

:root {
  --orange: #ee9a48;
  --orange-deep: #c9741a;
  --gold: #d9a63a;
  --ink: #4a4a4a;
  --text: #666;
  --soft: #9a9a9a;
  --rule: #e4e4e4;
  --wash: #f5f4f2;
  --sky: #a9e0f5;
  --paper: #fff;
  --font-body: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  --font-nav: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-tag: "Comfortaa", "Josefin Sans", sans-serif;
  --col: 780px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--col); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-head { text-align: center; padding: 44px 0 0; }
.logo { display: inline-block; width: 84px; margin-bottom: 20px; }
.logo img { width: 84px; }
.nav { font-family: var(--font-nav); font-size: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; row-gap: 6px; }
.nav li + li { border-left: 1px solid var(--soft); }
.nav a { display: block; padding: 2px 12px; color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange-deep); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-body); font-weight: 300; color: var(--ink); line-height: 1.25; }
h1 { font-size: 34px; text-align: center; margin: 44px 0 26px; }
h2 { font-size: 26px; text-align: center; margin: 54px 0 22px; }
h3 { font-size: 19px; font-weight: 400; margin: 0 0 6px; }
p { margin: 0 0 16px; }
.center { text-align: center; }
.lede { text-align: center; font-size: 19px; }
.small { font-size: 14px; color: var(--soft); }
.tagline { font-family: var(--font-tag); text-align: center; font-size: 22px; letter-spacing: 1px; color: var(--soft); margin: 22px 0 36px; }
.tagline b { font-weight: 400; color: var(--gold); }
.tagline-sm { text-align: center; font-family: var(--font-tag); font-size: 20px; color: var(--soft); margin: 18px 0 30px; }
.cta-line { text-align: center; letter-spacing: 2px; color: #8a2a5b; font-weight: 400; margin: 22px 0; }
hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }

/* ---------- figures & grids (never crop: contain, don't stretch) ---------- */
.hero { margin: 36px 0 0; }
.hero img { margin: 0 auto; max-width: 100%; }
.hero figcaption { text-align: center; color: var(--soft); font-size: 15px; margin-top: 10px; }
.hero.narrow img { max-width: 560px; width: 100%; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.tile { display: block; text-decoration: none; color: var(--ink); text-align: center; }
.tile .box { aspect-ratio: 1 / 1; background: var(--wash); display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 2px; }
.tile .box img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.tile .label { display: block; padding-top: 8px; font-size: 15px; }
a.tile:hover .box { outline: 2px solid var(--orange); }
.box.wide { aspect-ratio: 4 / 3; }

/* ---------- rows (books, workshops) ---------- */
.row { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--rule); align-items: start; }
.row:first-of-type { border-top: 0; }
.row .thumb { background: var(--wash); display: block; border-radius: 2px; }
.row .thumb img { width: 100%; height: auto; }
.row h3 { text-transform: uppercase; letter-spacing: 1px; font-size: 16px; }
.avail { color: var(--soft); font-size: 15px; }
.avail a { color: var(--soft); }
.avail a:hover { color: var(--orange-deep); }

.band { background: var(--sky); text-align: center; padding: 28px; border-radius: 2px; margin: 28px 0; }
.band img { margin: 0 auto; }

/* ---------- buttons & forms ---------- */
.btn, button.btn {
  display: inline-block; font: 400 15px/1 var(--font-body); letter-spacing: .5px;
  background: var(--ink); color: #fff; border: 0; border-radius: 3px; padding: 13px 20px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--orange-deep); color: #fff; }
.btn.alt { background: transparent; color: var(--ink); border: 1px solid var(--soft); }
.btn.alt:hover { background: var(--ink); color: #fff; }
.btn[aria-disabled="true"] { background: var(--wash); color: var(--soft); cursor: default; border: 1px dashed var(--soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 14px 0; }

label { display: block; font-size: 15px; color: var(--ink); margin: 0 0 4px; }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: 300 17px var(--font-body); color: var(--ink);
  padding: 11px 12px; border: 1px solid #bdbdbd; border-radius: 3px; background: #fff;
}
textarea { min-height: 84px; resize: vertical; }
.field { margin-bottom: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--orange-deep); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.6em; font-size: 15px; margin-top: 10px; }
.status.ok { color: #2f6b3a; }
.status.err { color: #a12d2d; }

.signup { background: var(--wash); margin-top: 70px; padding: 44px 0 50px; }
.signup h2 { margin: 0 0 8px; font-size: 24px; }
.signup .inline { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-top: 18px; }

.card { border: 1px solid var(--rule); border-radius: 6px; padding: 24px; background: #fff; }
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 24px; }
.apps .card { text-align: center; }
.app-icon { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 20px; }

/* ---------- pattern shop ---------- */
.patterns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.pattern { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.pattern .box { aspect-ratio: 3 / 4; background: var(--wash); display: flex; align-items: center; justify-content: center; }
.pattern .box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pattern .body { padding: 12px 14px 14px; }
.pattern .price { color: var(--ink); font-size: 15px; }
.pattern label.check { margin: 8px 0 0; }
.total { text-align: right; font-size: 20px; color: var(--ink); margin: 14px 0; }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 8px; }
.result { border: 2px solid var(--orange); border-radius: 6px; padding: 22px; margin-top: 22px; }
.result[hidden], [hidden] { display: none !important; }
.order-id { font: 400 22px var(--font-nav); letter-spacing: 1px; color: var(--ink); }
.note { font-size: 14px; color: var(--soft); }

/* ---------- footer ---------- */
.site-foot { font-size: 14px; color: var(--soft); padding: 30px 0 46px; }
.site-foot a { color: var(--soft); }
.site-foot a:hover { color: var(--orange-deep); }
.site-foot ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; gap: 6px 16px; flex-wrap: wrap; }

.policy h2 { text-align: left; font-size: 21px; margin: 30px 0 10px; }
.policy ul { padding-left: 22px; }
.policy li { margin-bottom: 8px; }

@media (max-width: 700px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; margin-top: 34px; }
  .grid, .patterns { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 100px 1fr; gap: 16px; }
  .apps { grid-template-columns: 1fr; }
  .signup .inline { grid-template-columns: 1fr; }
  .nav a { padding: 2px 9px; font-size: 14px; }
}
@media (max-width: 420px) { .patterns { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .nav, .signup, .skip { display: none; } }
