@font-face{font-family:Amatic;src:url(/fonts/amatic.woff) format('woff');font-display:swap}
@font-face{font-family:Bellota;font-weight:400;src:url(/fonts/bellota-400.woff) format('woff');font-display:swap}
@font-face{font-family:Bellota;font-weight:700;src:url(/fonts/bellota-700.woff) format('woff');font-display:swap}
:root{--bg:#FBF6EA;--ink:#3A1414;--soft:#7a5f56;--line:#d9cbb8;--card:#F4ECDC;--red:#9E0A14}
*{box-sizing:border-box;margin:0;padding:0}
body{background:var(--bg);color:var(--ink);font-family:Bellota,Georgia,serif;font-size:18px;line-height:1.6}
a{color:inherit}
h1,h2,h3,.btn,nav a,.brand{font-family:Amatic,'Comic Sans MS',cursive;letter-spacing:.04em;font-weight:700}
.wrap{max-width:1240px;margin:0 auto;padding:0 32px}

/* header */
header .wrap{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-top:18px;padding-bottom:18px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:12px;font-size:34px;text-decoration:none}
.brand img{height:44px}
nav{display:flex;gap:28px;flex-wrap:wrap}
nav a{font-size:26px;text-decoration:none}
nav a:hover,nav a[aria-current]{text-decoration:underline;text-underline-offset:6px}

/* banner */
.strip{display:grid;grid-template-columns:repeat(10,1fr);gap:2.2%;padding:22px 32px;max-width:1240px;margin:0 auto}
.strip img{width:100%;max-width:96px;justify-self:center}
.stripbg{background:var(--bg)}
.stripbg.top{border-top:7px solid var(--red)}
.stripbg.bot{border-bottom:7px solid var(--red)}
.textile{background:url(/img/textile.jpg) center 40%/cover;padding:70px 20px;display:flex;justify-content:center}
.titlepanel{background:var(--bg);border:3px solid var(--ink);border-radius:20px;padding:22px 56px 28px;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.35);max-width:900px}
.titlepanel h1{font-size:clamp(64px,10vw,124px);line-height:1}
.titlepanel p{font-size:clamp(18px,2.2vw,26px);color:var(--soft)}

/* sections */
section{padding:56px 0}
.card-box{background:var(--card);border-radius:18px;padding:36px 40px}
h2{font-size:clamp(40px,5vw,60px);line-height:1.05;margin-bottom:10px}
.center{text-align:center}
.btn{display:inline-block;background:var(--ink);color:var(--bg);font-size:28px;padding:8px 34px;border-radius:40px;text-decoration:none;border:2px solid var(--ink)}
.btn.light{background:transparent;color:var(--ink)}
.btn:hover{opacity:.88}

/* calculator */
.calc{display:grid;grid-template-columns:1.2fr 1fr;gap:40px;align-items:center}
.calc .lead{font-size:21px;margin-bottom:18px}
.calc label.t{display:block;font-weight:700;margin-bottom:6px}
.row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}
select,input[type=number]{font:inherit;color:var(--ink);background:#fff;border:2px solid var(--ink);border-radius:12px;padding:6px 10px}
#dd{width:5.4rem}#yy{width:6.6rem}
.opt{display:inline-flex;align-items:center;gap:6px;margin-right:18px}
button{font-family:Bellota,Georgia,serif;font-weight:700;font-size:18px;color:var(--bg);background:var(--ink);border:2px solid var(--ink);border-radius:12px;padding:7px 16px;cursor:pointer}
button.ghost{background:transparent;color:var(--ink)}
.err{color:#9b1c1c;min-height:1.4em}
.note{font-size:15px;color:var(--soft);line-height:1.5;margin-top:12px}
.result{text-align:center}
.result .glyph{width:min(230px,55vw);height:auto;display:block;margin:0 auto 6px}
.result .name{font-family:Amatic,cursive;font-weight:700;font-size:56px;line-height:1}
.result .maya{font-size:20px}
.result .date{color:var(--soft);margin-top:4px}
.result .after{font-size:15px;color:var(--soft);font-style:italic}

/* intro + book */
.intro{max-width:900px;margin:0 auto;text-align:center}
.intro p{font-size:20px}
.book{display:flex;align-items:center;gap:30px;margin-top:30px;padding:22px 32px;border:2px solid var(--line);border-radius:16px;text-align:left}
.book h3{font-size:38px;line-height:1.1}
.book p{font-size:17px}
.book .btn{white-space:nowrap;font-size:24px}

/* shop */
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:26px}
.prod{background:var(--card);border-radius:18px;padding:20px;text-align:center;display:flex;flex-direction:column}
.prod .pic{height:280px;display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.prod .pic img{max-height:280px;max-width:100%;box-shadow:0 6px 18px rgba(58,20,20,.18)}
.ph{width:100%;height:100%;border:2.5px dashed var(--soft);border-radius:12px;display:flex;align-items:center;justify-content:center;color:var(--soft);font-size:16px;padding:16px}
.prod h3{font-size:34px;line-height:1.1;margin-bottom:6px}
.prod p{font-size:15px;color:var(--soft);flex:1;margin-bottom:14px}
.prod .btn{font-size:24px;padding:6px 26px;align-self:center}

/* about */
.about{display:flex;gap:30px;align-items:center}
.about img{height:80px}

.band{height:70px;background-size:cover;background-position:center}
footer{padding:30px 0}
footer .wrap{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
footer .links a{margin:0 10px}
footer .url{font-weight:700}

@media (max-width:900px){
  .calc{grid-template-columns:1fr}
  .cards{grid-template-columns:repeat(2,1fr)}
  .book{flex-direction:column;text-align:center}
}
@media (max-width:560px){
  body{font-size:17px}
  .wrap,.strip{padding-left:16px;padding-right:16px}
  .strip{gap:1.2%;padding-top:12px;padding-bottom:12px}
  .textile{padding:40px 12px}
  .titlepanel{padding:16px 20px 20px}
  .card-box{padding:24px 20px}
  .cards{grid-template-columns:1fr}
  nav{gap:16px}nav a{font-size:22px}
  .about{flex-direction:column;text-align:center}
}

.quote{margin:18px auto 26px;max-width:820px;padding:4px 0 4px 26px;border-left:4px solid var(--red);text-align:left}
.quote p{font-size:21px;font-style:italic;line-height:1.6}
.quote cite{display:block;margin-top:10px;font-size:16px;font-style:normal;color:var(--soft)}
.intro > p{text-align:left}
.book > div{flex:1}
.quote p+p{margin-top:12px}
.book .btn{background:rgba(176,23,31,.72);border-color:rgba(176,23,31,.72);color:var(--bg)}

.featured-cal{display:flex;justify-content:center;margin-top:26px}
.featured-cal .prod{width:420px}
.featured-cal .prod .pic{height:360px}
.cards.three{grid-template-columns:repeat(3,1fr);max-width:1000px;margin-left:auto;margin-right:auto}
.shopnote{max-width:900px;margin:34px auto 0;font-size:20px;line-height:1.6;text-align:left}
@media (max-width:900px){.cards.three{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.cards.three{grid-template-columns:1fr}.featured-cal .prod{width:100%}}

.featured-cal .prod:has(.two){width:820px}
.pic.two{gap:16px}
.pic.two img{max-width:48%}
.featured-cal .prod.wide{width:560px}
@media (max-width:900px){.featured-cal .prod:has(.two),.featured-cal .prod.wide{width:100%}}
.featured-cal .prod:has(.three){width:1000px}
.pic.three img{max-width:31%}
@media (max-width:900px){.featured-cal .prod:has(.three){width:100%}}
.pic.three{display:grid;grid-template-columns:1fr 1.6fr 1fr;gap:22px;align-items:center;height:auto}
.pic.three img{max-width:100%;width:100%;height:300px;object-fit:contain;box-shadow:none}
.pic.three img:nth-child(2){height:360px}
.featured-cal .prod:has(.three) .pic{height:auto;margin-bottom:18px}
.pic.three img:nth-child(1),.pic.three img:nth-child(3){height:auto;aspect-ratio:3/4;object-fit:cover}
.featured-cal .prod:has(.three) .pic{margin-top:14px}
.pic.three{grid-template-columns:1fr 1.45fr 1fr}
.pic.three img:nth-child(1),.pic.three img:nth-child(3){aspect-ratio:1/1;height:auto;object-fit:contain}
.pic.three img:nth-child(2){height:auto}
.featured-cal .prod.wide{width:calc((1000px - 48px)/3)}
@media (max-width:900px){.featured-cal .prod.wide{width:calc(50% - 12px)}}
@media (max-width:560px){.featured-cal .prod.wide{width:100%}}
.featured-cal .prod.wide .pic{height:280px}
.featured-cal .prod.wide h3{font-size:30px;white-space:nowrap}
.featured-cal .prod.wide{min-height:498px}
.pic.three{grid-template-columns:0.85fr 1.85fr 0.85fr}
.pic.three img:nth-child(2){max-height:none}

.cards.two{grid-template-columns:repeat(2,1fr);max-width:700px;margin-left:auto;margin-right:auto}
.cards.two .prod h3{white-space:nowrap}
@media (max-width:560px){.cards.two{grid-template-columns:1fr}}
.cards.two{grid-template-columns:repeat(2,minmax(0,1fr))}.cards.two .prod{min-width:0}.cards.two .prod h3{white-space:normal}
.cards.two .prod{height:511px}.cards.two .prod h3{white-space:nowrap;font-size:30px}
@media (max-width:560px){
  .cards.two{grid-template-columns:1fr;max-width:340px}
  .cards.two .prod{height:auto}
  .cards.two .prod h3{white-space:normal;font-size:30px}
  .pic.three{grid-template-columns:1fr 1fr;gap:12px}
  .pic.three img:nth-child(2){grid-column:1 / -1;grid-row:1}
  .featured-cal .prod:has(.three){padding:16px}
}
#shop .prod{background:#C4C7BB}
.about{align-items:flex-start}.about p+p{margin-top:12px}.about p{text-align:left}
