/* mezze.sh. The same family as potluck.sh (cream, Newsreader, ink outlines, the patch colours) with the jewel-tone
   dot border of Mezze's picture. Newsreader by Production Type, SIL Open Font License 1.1 (fonts/OFL-Newsreader.txt). */
@font-face{font-family:Newsreader;font-style:normal;font-weight:200 800;font-display:swap;
  src:url(/fonts/newsreader-roman.woff2) format("woff2")}
@font-face{font-family:Newsreader;font-style:italic;font-weight:200 800;font-display:swap;
  src:url(/fonts/newsreader-italic.woff2) format("woff2")}

:root{
  color-scheme:light;
  --cream:#FBF7EE; --card:#FFFFFF; --line:#E5DCCA;
  --ink:#1D261D; --soft:#4B5648; --green:#2F6B34; --olive:#7C9A3D;
  --mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace;
  --gutter:max(16px,calc((100vw - 1200px) / 2));
  /* The jewel colours of the picture's dot border, one dot each, 36px apart. */
  --dots:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='252' height='24'%3E%3Ccircle cx='18' cy='12' r='5' fill='%2310A66A'/%3E%3Ccircle cx='54' cy='12' r='5' fill='%232D6CE6'/%3E%3Ccircle cx='90' cy='12' r='5' fill='%23D91C4A'/%3E%3Ccircle cx='126' cy='12' r='5' fill='%238B3FD6'/%3E%3Ccircle cx='162' cy='12' r='5' fill='%23F7B514'/%3E%3Ccircle cx='198' cy='12' r='5' fill='%230DB3AE'/%3E%3Ccircle cx='234' cy='12' r='5' fill='%23FF6A55'/%3E%3C/svg%3E");
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-padding-top:16px}
/* Cream with a soft dot grid, and a row of jewel dots along the top and the bottom. */
body{background:var(--dots) 0 0/252px 24px repeat-x,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Ccircle cx='28' cy='28' r='2' fill='%23EEE4D0'/%3E%3C/svg%3E") 0 24px/56px 56px,var(--cream);
  color:var(--ink);font-family:Newsreader,"Iowan Old Style","Palatino Linotype",Georgia,serif;font-size:19px;line-height:1.5;font-optical-sizing:auto}
main,header,footer{overflow-x:clip}
a{color:var(--green);text-underline-offset:.18em;text-decoration-thickness:1px}
a:hover{color:var(--ink)}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px;border-radius:4px}
code,pre{font-family:var(--mono);font-size:.82em}
.wrap{padding:0 var(--gutter)}

.btn{display:inline-flex;align-items:center;gap:8px;font:inherit;font-size:17px;font-weight:600;line-height:1;
  padding:13px 20px;border-radius:999px;text-decoration:none;cursor:pointer;border:1.5px solid var(--ink)}
.btn.solid{background:var(--ink);color:var(--cream)}
.btn.solid:hover{background:var(--green);border-color:var(--green);color:#fff}
.btn.line{background:transparent;color:var(--ink)}
.btn.line:hover{background:#fff}

.masthead{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:44px;padding-bottom:10px}
.logo{display:flex;align-items:center;gap:9px;font-size:28px;font-weight:700;letter-spacing:-.02em;color:var(--ink);text-decoration:none}
.logo svg{width:36px;height:36px}
.masthead nav{display:flex;align-items:center;gap:26px;font-size:17px}
.masthead nav a{color:var(--ink);text-decoration:none}
.masthead nav a:hover{text-decoration:underline}
.masthead nav .btn{padding:10px 16px;font-size:16px}

/* Hero: the words on the left, the robot and its plates on the right. */
.hero{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:32px;align-items:center;padding-top:28px;padding-bottom:40px}
.hero h1{font-size:clamp(40px,4.6vw,66px);line-height:1.02;font-weight:700;letter-spacing:-.028em;margin-bottom:20px}
.hero h1 em{font-style:normal;color:var(--green)}
.lede{font-size:21px;line-height:1.45;color:var(--soft);max-width:31em;margin-bottom:20px}
.lede code{color:var(--ink)}
.pills{list-style:none;display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.pills li{font-weight:700;font-size:17px;padding:6px 16px;border-radius:999px}
.p-green{background:#A9C98A}.p-blue{background:#9FC2DA}.p-yellow{background:#F0CB74}
.fine{font-size:17px;color:var(--soft);max-width:34em}
.ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.stage{position:relative;max-width:520px;justify-self:center;width:100%}
.stage img{display:block;width:100%;height:auto}
/* The live robot (robot.js) draws over the picture, in the same box and pose, so nothing moves when it arrives. */
.stage canvas{position:absolute;inset:-8% -14% -2%;width:128%;height:110%;opacity:0;transition:opacity .4s;pointer-events:none}
.stage.live{cursor:pointer}
.stage.live canvas{opacity:1}
/* Hidden by opacity only, so the picture stays in the accessibility tree: the canvas and labels are aria-hidden. */
.stage.live img{opacity:0;transition:opacity 0s .4s}
.tags{position:absolute;inset:0;z-index:1;pointer-events:none}
/* The labels of the picture, beside their plates: white pills with a coloured dot, as on potluck.sh. */
.tags{list-style:none}
.tags li{position:absolute;left:var(--x);top:var(--y);transform:translateX(-50%);display:flex;align-items:center;gap:6px;
  white-space:nowrap;background:#fff;border:1.5px solid var(--ink);border-radius:999px;padding:2px 12px 3px 8px;
  font-size:15px;font-style:italic;font-weight:600;box-shadow:0 6px 14px -8px rgba(92,74,42,.5)}
i[class^="d"]{display:inline-block;width:11px;height:11px;border-radius:50%;border:1.2px solid var(--ink);flex:none;font-style:normal}
.d6{background:#FF6A55}.d0{background:#10A66A}.d1{background:#2D6CE6}.d2{background:#D91C4A}.d3{background:#8B3FD6}.d4{background:#F7B514}.d5{background:#0DB3AE}

.block{padding-top:28px;padding-bottom:28px}
h2{font-size:clamp(28px,3vw,38px);line-height:1.1;letter-spacing:-.02em;margin-bottom:14px}
h3{font-size:21px;line-height:1.2;margin-bottom:8px;display:flex;align-items:center;gap:9px}
.card{background:var(--card);border:1.5px solid var(--ink);border-radius:18px;padding:26px 28px;box-shadow:0 14px 30px -24px rgba(29,38,29,.6)}
.card p+p{margin-top:12px}
.intro{max-width:46em;color:var(--soft);margin-bottom:14px}
.intro+.term{margin-top:4px}
.plates{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px}
.plates li{background:var(--card);border:1.5px solid var(--ink);border-radius:18px;padding:22px 24px}
.plates p,.three p{color:var(--soft)}
.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.note{background:#FFF8E6}
.term{background:#1D261D;color:#F3EEDF;border-radius:14px;padding:20px 22px;overflow-x:auto;line-height:1.6;margin-bottom:14px;font-size:15px}
.term code{font-size:inherit}

.talk{display:grid;gap:14px;margin-top:16px;max-width:760px}
.talk .two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.talk label{display:grid;gap:4px;font-size:16px;font-weight:600}
.talk input,.talk select,.talk textarea{font:inherit;font-size:17px;font-weight:400;padding:10px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);width:100%}
.talk input:focus,.talk select:focus,.talk textarea:focus{border-color:var(--ink);outline:none}
.talk .trap{position:absolute;left:-9999px}
.addr{margin-top:14px;color:var(--soft);font-size:17px}

footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;padding-top:30px;padding-bottom:56px;font-size:16px;color:var(--soft);
  background:var(--dots) 0 100%/252px 24px repeat-x}
footer nav{display:flex;gap:18px}

/* The sent page (thanks.html, and the form's answer when it could not keep a message). */
.sent{padding-top:80px;padding-bottom:80px;max-width:640px}
.sent h1{font-size:44px;margin-bottom:12px}

@media (max-width:900px){
  .hero{grid-template-columns:1fr}
  .stage{max-width:440px}
  .three{grid-template-columns:1fr}
  .masthead nav .sec{display:none}
}
@media (max-width:560px){
  .tags li{font-size:12px;padding:1px 8px 2px 6px}
  i[class^="d"]{width:9px;height:9px}
  .talk .two{grid-template-columns:1fr}
  .card{padding:20px}
  .lede{font-size:19px}
}
