/* The Kanis home page (kanis.xyz): the old Webnode page, rebuilt. Same colours, fonts and order. */
:root{
  --ink:#000;
  --paper:#fff;
  --sky:#8fcfee;
  --grey:#d6d6d6;
  --red:#d7222a;
  --display:"Josefin Sans","Futura","Century Gothic",system-ui,sans-serif;
  --body:"Cardo","Iowan Old Style","Palatino Linotype",Georgia,serif;
  --pad:max(16px,env(safe-area-inset-left,0px));
  color-scheme:light;
}
html{background:var(--paper);overflow-x:clip}
body{background:var(--paper);color:var(--ink);font-family:var(--body);font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased;overflow-x:clip}
::selection{background:var(--red);color:#fff}
a{color:inherit}
section{padding:clamp(72px,10vw,128px) var(--pad);text-align:center;position:relative}
h1,h2,h3,p{margin:0}

/* buttons: thin pill, small capitals */
.btns{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.pill{display:inline-flex;align-items:center;justify-content:center;min-height:38px;box-sizing:border-box;padding:4px 20px 1px;border:1px solid currentColor;border-radius:999px;font-family:var(--display);font-size:13px;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;line-height:1.2;transition:background-color .2s,color .2s}
a.pill:hover,a.pill:focus-visible{background:var(--ink);color:var(--paper);border-color:var(--ink);outline:none}
.pill.off{cursor:default}

/* big headings */
.big{font-family:var(--display);font-weight:700;font-size:clamp(26px,3.4vw,40px);line-height:1.18;max-width:21em;margin:0 auto;text-wrap:balance}
.big em{font-style:italic}
.copy,.small{max-width:40rem;margin:28px auto 0;text-wrap:pretty}
.copy strong{font-family:var(--display);font-weight:700;font-size:.94em}
.btns.rv,p.btns{margin-top:28px}

/* top: sky blue, wordmark, buttons, Mr. J standing at the bottom edge */
.hero{background:var(--sky);padding-bottom:0;display:flex;flex-direction:column;align-items:center}
.hero h1{margin-top:clamp(8px,3vh,40px)}
.wordmark{display:block;width:clamp(200px,24vw,300px);height:auto}
/* The diamond inside the "O" of MAJORIS is a secret link to the sitemap. A diamond-shaped link sits
   exactly over it (positions are % of the logo image, 915x528, so it lines up at any size); it is
   see-through until hovered, then turns red. Phones have no hover, so it flashes red once instead. */
.hero h1{position:relative}
.logo-gem{position:absolute;left:50.93%;top:69.13%;width:5.9%;height:10.23%;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);background:transparent;cursor:pointer;transition:background-color .15s}
.logo-gem:hover,.logo-gem:focus-visible{background:#930000}
.logo-gem:focus-visible{outline:none}
@media (hover:none){.logo-gem{animation:gem-flash 1.4s ease-in-out 1.2s 1}}
@keyframes gem-flash{0%,100%{background:transparent}35%,65%{background:#930000}}
@media (prefers-reduced-motion:reduce){.logo-gem{animation:none}}
.hero .btns{margin-top:clamp(36px,6vh,64px)}
.hero .pill{min-height:30px;font-size:11.5px;padding:3px 14px 0}
/* XL button: the opposite of the other three. Black with the sky showing through the letters; on hover, see-through with black letters. */
.hero a.pill[href="/xl/"]{background:var(--ink);color:var(--sky);border-color:var(--ink)}
.hero a.pill[href="/xl/"]:hover,.hero a.pill[href="/xl/"]:focus-visible{background:transparent;color:var(--ink);border-color:var(--ink)}
.mrj{display:block;width:clamp(260px,36vw,440px);height:auto;margin-top:auto;padding-top:clamp(40px,7vh,80px)}

/* issues */
.issues{padding-bottom:clamp(96px,12vw,160px)}
.issue{display:flex;flex-direction:column;align-items:center}
.issue .cover{display:block;width:150px;height:auto;aspect-ratio:600/1067;object-fit:cover;background:#eee}
.issue .mark{height:64px;display:flex;align-items:flex-end;justify-content:center;margin:24px 0 14px}
.issue .icon{display:block;height:auto}
.issue .t{font-size:19px;font-style:italic}
.issue .t em{font-style:italic}
.issue .d{font-family:var(--display);font-weight:700;font-size:15px;margin-top:4px}
.issue .blurb{max-width:21rem;margin-top:14px;text-wrap:pretty}
.issue .btns{flex-direction:column;align-items:center;margin-top:22px}
.issue .pill{min-width:min(100%,230px)}
.feature{margin-top:clamp(48px,7vw,80px)}
.feature .cover{width:clamp(170px,18vw,210px)}
.feature .blurb{max-width:26rem}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(72px,9vw,110px) clamp(24px,6vw,72px);max-width:820px;margin:clamp(96px,12vw,150px) auto 0}
@media (max-width:560px){.grid{grid-template-columns:1fr}.mrj{width:80vw}}

/* about: grey, the piñata hanging from the top edge */
.about{background:var(--grey);padding-top:0}
.pinata{display:block;width:clamp(96px,11vw,130px);height:auto;margin:0 auto clamp(40px,6vw,64px)}
.about .copy{font-size:15px}

/* schedule: faded photo behind */
.schedule{isolation:isolate}
.schedule .bg{position:absolute;inset:0;z-index:-1;background-size:cover;background-position:center;opacity:.55}
.sched{margin:clamp(48px,6vw,72px) auto 0;display:grid;gap:22px}
.year{font-family:"Sedgwick Co",var(--display);font-size:22px;letter-spacing:.04em;margin-top:22px}
.year:first-child{margin-top:0}
.when h3{font-family:var(--display);font-weight:700;font-size:15px}
.when p{margin-top:2px}

/* contact: black */
.contact{background:#000;color:#fff}
.contact a.pill:hover,.contact a.pill:focus-visible{background:#fff;color:#000;border-color:#fff}
.contact .copy + .copy{margin-top:1em}
.small{font-family:var(--display);font-size:13px;line-height:1.6;margin-top:clamp(56px,8vw,96px);max-width:44rem}

@media (max-width:440px){
  body{font-size:16px}
  .hero .btns{gap:8px}
  .hero .pill{padding:3px 11px 0;font-size:11px}
}
