/* The Crypto Corner. Plain CSS, no framework. Fonts are self-hosted (fonts/fonts.css).
   Breakpoints follow the old site: phone up to 767 px, tablet 768 to 980 px, then the desktop layout, whose spacing
   scales with the screen until the 1080 px content width is reached (the min() values are the old page's, measured at 1440 px). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #000; color: #666; font: 500 14px/1.7em "Open Sans", Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: #2ea3f2; }
h1, h2, h3, h4, p { margin: 0; padding: 0; }
main { display: block; }

/* ---------- Footer (every page) ---------- */
.site-footer { background: #000; padding: min(4%, 54px) 0 3px; color: #fff; }
.ft-row { display: flex; width: 80%; max-width: 1080px; margin: 0 auto; }
.ft-links { padding: 74px 0 min(2%, 27px); }
.ft-brand { padding: min(2%, 27px) 0 6px; margin-bottom: 18px; }
.ft-col { width: 29.6667%; min-height: 1px; margin-right: 5.5%; }
.ft-col:last-child { margin-right: 0; }
.ft-links .ft-col p { margin: 0 0 5px; }
.ft-links .ft-col p:last-child { margin-bottom: 0; }
.ft-links a { color: #fff; text-decoration: none; }
.ft-logo { transform: translateX(-4px); text-align: center; }
.ft-logo a { display: block; }
.ft-logo img { display: block; width: 100%; height: auto; }
.ft-copy { font: 500 16px/1.8em "Open Sans", Helvetica, Arial, sans-serif; color: #fff; text-align: center; }

/* ---------- Links page (/links/) ---------- */
.main-links { padding-top: calc(min(4%, 54px) - 21px); background: #000; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lk-row { width: 100%; max-width: 1080px; margin: 0 auto; padding: min(2%, 27px) 0 58px; }
.lk-banner { margin-bottom: min(2.75%, 29.6875px); }
.lk-banner img { display: block; width: 100%; height: auto; }
.lk-head { margin: 26px 0 -110px; min-height: 186.594px; color: #fff; }
.lk-head h2 { padding-bottom: 10px; font: 500 23px/23px "Open Sans", Arial, sans-serif; letter-spacing: 2px; text-transform: uppercase; text-align: center; color: #fff; }
.lk-btn { display: block; margin: 0 10px min(2.75%, 29.6875px); padding: 10px 62px 0 0; background: #fff; color: #000; text-decoration: none; text-align: center; }
.lk-btn:last-child { margin-bottom: 0; }
.lk-in { display: flex; align-items: flex-start; max-width: 550px; margin: 0 auto; text-align: left; }
.lk-ic { flex: none; width: 60px; padding-left: 10px; margin-top: -4px; }
.lk-ic img { display: block; width: 50px; height: auto; }
.lk-tx { flex: 1 1 auto; min-width: 0; display: block; padding: 0 0 10px 15px; font: 400 41px/41px Abel, Helvetica, Arial, Lucida, sans-serif; color: #000; text-align: center; }
.lk-div { position: relative; height: 23px; margin-bottom: min(2.75%, 29.6875px); }
.lk-div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: 1px solid #fff; }

/* ---------- 404 ---------- */
.nf { max-width: 700px; margin: 0 auto; padding: 120px 20px; color: #fff; text-align: center; }
.nf h1 { font: 700 40px/1.2 "Open Sans", Arial, sans-serif; margin-bottom: 16px; }
.nf a { color: #fff; }

/* Tablet and phone: fixed spacing, the footer in one column */
@media (max-width: 980px) {
  .main-links { padding-top: 29px; }
  .lk-row { padding-top: 30px; }
  .lk-banner, .lk-div { margin-bottom: 30px; }
  .lk-head { margin-top: 60px; }
  .lk-btn { margin-bottom: 30px; }
  .lk-btn:last-child { margin-bottom: 0; }
  .site-footer { padding-top: 50px; }
  .ft-row { display: block; }
  .ft-links { padding: 74px 0 30px; }
  .ft-brand { padding: 30px 0 6px; }
  .ft-col { width: 100%; margin: 0 0 30px; }
  .ft-links .ft-col:last-child { margin-bottom: 0; }
  .ft-links .ft-col:nth-child(2) { padding-bottom: 5px; } /* the old site had an empty line module here: same spacing */
  .ft-brand .ft-col:not(.ft-mid) { display: none; }
  .ft-logo { width: 43%; margin: 0 auto; transform: translateY(17px); }
  .ft-copy { font-size: 15px; line-height: 27px; }
}

/* Phone */
@media (max-width: 767px) {
  .lk-head { margin: 42px 0 -136px; }
  .lk-btn { padding-right: 70px; }
  .ft-logo { width: 140.391px; max-width: 45%; padding: 0 20px; transform: translateX(-11px); }
  .ft-copy { font-size: 14px; line-height: 1.8em; }
}

/* page speed: a <picture> wrapper adds no box of its own, so the pictures lay out exactly as before */
picture { display: contents; }
