*{box-sizing:border-box} [hidden]{display:none!important} body{margin:0;background:#f6f8f4;color:#122c2a;font:1rem/1.55 system-ui,sans-serif} header,main{width:min(1120px,calc(100% - 2rem));margin:auto} header{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:1rem} .brand{display:flex;align-items:center;gap:.6rem;color:inherit;text-decoration:none;font-weight:800;font-size:1.25rem}.mark{background:#ceef82;border-radius:10px;padding:0 .55rem;font-size:1.6rem}.hero{background:#122c2a;color:#fff;border-radius:28px;padding:clamp(1.5rem,5vw,4rem);display:grid;grid-template-columns:1.3fr 1fr;align-items:center;gap:2rem}.kicker{color:#ceef82;font-size:.875rem;letter-spacing:.13em;font-weight:750}h1{font-size:clamp(2.55rem,6vw,5rem);line-height:1;letter-spacing:-.06em;margin:.3em 0}.hero p:not(.kicker){max-width:36ch;color:#d6e4dc}.cta,button{display:inline-block;background:#ceef82;color:#122c2a;border:0;border-radius:10px;padding:.7rem 1rem;font:inherit;font-weight:750;text-decoration:none;cursor:pointer}.cta{margin-top:.5rem}.art{display:grid;grid-template-columns:repeat(2,1fr);gap:.55rem;max-width:320px;width:100%;margin:auto;rotate:-7deg}.art span{display:grid;place-items:center;aspect-ratio:1.2;background:#ceef82;color:#122c2a;border-radius:24px;font-size:clamp(2rem,8vw,5rem);font-weight:800}.art span:nth-child(2){background:#e3d5ff}.art span:nth-child(3){background:#ffcbb1}.art span:nth-child(4){background:#aee8da}#recursos{margin:2.25rem 0 3rem}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem}h2{font-size:2rem;margin:.5rem 0 1rem}select,input{font:inherit;color:inherit;background:white;border:1px solid #789088;border-radius:8px;padding:.45rem .6rem}select{appearance:none;padding-right:1.8rem;background:white linear-gradient(45deg,transparent 50%,#122c2a 50%) right .85rem center/5px 5px no-repeat}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:1rem}article{border:1px solid #d9e5dc;background:#fff;border-radius:18px;padding:1.2rem}h3{font-size:1.35rem;margin:.4rem 0}.tag{color:#36564d;font-weight:700;font-size:.875rem;margin:0}.summary{color:#36564d}summary{cursor:pointer;font-weight:750}input{display:block;width:100%;margin:.4rem 0 .7rem}.actions{display:flex;flex-wrap:wrap;gap:.5rem}.secondary{background:#eaf2ed}.feedback{font-weight:650}.feedback:empty{display:none}:focus-visible{outline:3px solid #4e64b5;outline-offset:3px}@media(max-width:840px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:570px){.hero,.cards{grid-template-columns:1fr}.art{display:none}.section-heading{flex-wrap:wrap}}

header > .brand.brand-linen {
  gap:.48rem;
  padding:.34rem .75rem .38rem .43rem;
  border:1px solid #a99065;
  border-radius:7px 10px 7px 8px;
  outline:1px dashed #826848;
  outline-offset:-4px;
  background:
    repeating-linear-gradient(90deg,#8e704311 0 1px,transparent 1px 3px),
    repeating-linear-gradient(0deg,#fff8dc66 0 1px,transparent 1px 4px),
    #ead7b3;
  color:#284c3c;
  font:700 1.22rem/1 Georgia,serif;
  letter-spacing:-.035em;
  text-shadow:0 1px #fff3da;
  box-shadow:0 2px 3px #51381f42;
}
.brand-linen .brand-stitch {
  display:grid;
  place-items:center;
  width:1.65rem;
  aspect-ratio:1;
  border:1px solid #a36b50;
  border-radius:50%;
  background:#80432e;
  color:#fff0cf;
  font:bold italic 1.05rem/1 Georgia,serif;
  text-shadow:0 1px #47261c;
  box-shadow:inset 0 0 0 2px #bc8968;
}
header > .brand.brand-linen:hover {
  color:#713f2d;
  outline-color:#713f2d;
}
header > .brand.brand-linen:focus-visible {
  outline:3px solid #284c3c;
  outline-offset:3px;
}

/* The rounded clip trims the leather without clipping focus rings or text. */
.section-page .catalog article > details > summary,
.section-page .catalog :is(form,.actions) button,
:is(.home,.section-page) > header > button,
.logic-game-page main :is(#reset,#restart,#again,#play-again,#replay,#cut,#take,#back,#forward) {
  position:relative;
  --leather-width:12px;
  --leather-radius:10px;
}
.section-page .catalog article > details > summary::before,
.section-page .catalog :is(form,.actions) button::before,
:is(.home,.section-page) > header > button::before,
.logic-game-page main :is(#reset,#restart,#again,#play-again,#replay,#cut,#take,#back,#forward)::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border:1px solid transparent;
  border-image:url('./cuero-cosido.png') 16% / var(--leather-width) / 0 round;
  clip-path:inset(0 round var(--leather-radius));
  filter:contrast(1.14) brightness(1.08);
}
.section-page .catalog article > details > summary { padding-inline:1rem; }
.logic-card .logic-title { padding-inline:1rem; }

/* Screen blends the bright thread into the fabric after suppressing the dark hide. */
.home .section-button,.section-page .logic-card {isolation:isolate}
.home .section-button::before,.section-page .logic-card::before {
  content:"";
  position:absolute;
  inset:1px;
  z-index:1;
  border:1px solid transparent;
  border-image:url('./cuero-cosido.png') 16% / 19px / 0 round;
  clip-path:inset(0 round calc(var(--menu-radius) - 1px));
  filter:grayscale(1) brightness(.72) contrast(7) sepia(.36);
  mix-blend-mode:screen;
  pointer-events:none;
}
.home .section-button {--menu-radius:21px}
.section-page .logic-card {position:relative;--menu-radius:16px}
