/* cheri mail club: sign-up page, early-2000s web edition */

:root {
  --ui: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --link: #1a33b8;
  --line: #a5a5a5;
  --muted: #8d8d8d;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 12px/1.45 var(--ui);
  color: #000;
  background: #fff;
}
a { color: var(--link); }
.masthead {
  --gutter: clamp(12px, 3vw, 48px);
  padding: 8px var(--gutter) 0;
  background: repeating-linear-gradient(#fff 0 2px, #e9e9e9 2px 3px);
  border-bottom: 1px solid var(--line);
}
/* stripes run full width, tabs line up with the content column */
.masthead .tabs { max-width: 696px; margin-left: auto; margin-right: auto; }
.page { max-width: 720px; margin: 0 auto; padding: 0 12px 40px; }

/* ---------- tabs ---------- */

.tabs {
  display: grid;
  grid-template-columns: 140px repeat(2, minmax(0, 180px));
  justify-content: center;
  gap: 2px;
  align-items: end;
}
.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 6px;
  overflow: hidden;
  font-size: 14px;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(#fdfdfd, #e6e6e6 55%, #d6d6d6);
  box-shadow: inset 0 1px 0 #fff;
}
.tab:hover { background: linear-gradient(#fff, #f0f0f0 55%, #e3e3e3); }
.tab:focus-visible { outline: 2px solid #6f9be8; outline-offset: -3px; }
.tab.is-current {
  position: relative;
  z-index: 1;
  height: 28px;
  margin-bottom: -1px;
  background: linear-gradient(#fff, #f7f7f7);
}
.tab.logo { gap: 6px; }
/* little arrow on tabs that open in a new browser tab */
.ext-icon { flex: none; width: 10px; height: 10px; margin-left: 5px; opacity: .5; }
.tab:hover .ext-icon { opacity: .85; }
.tab.logo .icon { font-size: 20px; color: #3a7bd5; }

/* ---------- hero ---------- */

.hero { position: relative; padding: 72px 24px 48px; }

/* gadgets scattered down the sides; they tuck in closer on narrower screens */
.scatter img {
  position: absolute;
  width: clamp(90px, 11vw, 130px);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .18));
  transition: rotate .35s, scale .35s, translate .35s, filter .35s;
}
.s-ipod   { top: 40px;  left:  max(-70px, calc((720px - 100vw) / 2)); rotate: -9deg; }
.s-cd     { top: 300px; left:  max(-40px, calc((720px - 100vw) / 2)); rotate: 14deg; }
.s-clippy { top: 30px;  right: max(-50px, calc((720px - 100vw) / 2)); rotate: 7deg; width: clamp(76px, 9vw, 108px); }
.s-floppy { top: 280px; right: max(-70px, calc((720px - 100vw) / 2)); rotate: -11deg; }

/* hover: each one picks itself up and does its thing */
.scatter img:hover { scale: 1.08; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .22)); }
.s-ipod:hover   { animation: bop .45s ease-in-out infinite alternate; }   /* bopping to the music */
.s-cd:hover     { animation: spin 1.1s linear infinite; }                 /* spins up */
.s-clippy:hover { animation: wave .7s ease-in-out infinite; }             /* "it looks like you're..." */
.s-floppy:hover { rotate: 0deg; translate: 0 -16px; }                     /* ejects */
@keyframes bop  { to { transform: translateY(-8px) rotate(4deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wave { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }

.pitch { text-align: center; }
.pitch h1 {
  margin: 0 0 22px;
  font: 500 54px/1 var(--serif);
  letter-spacing: -.035em;
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.intro { max-width: 440px; margin: 0 auto 24px; font-size: 13px; line-height: 1.55; color: #333; }
.intro p { margin: 0 0 1.3em; }
.intro p:last-child { margin-bottom: 0; }

/* ---------- sign-up form ---------- */

.notify { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.notify label { font-weight: bold; color: #333; }
.notify-row { display: flex; justify-content: center; gap: 8px; width: 100%; }
.notify input {
  width: 240px;
  min-width: 0;
  height: 30px;
  padding: 3px 8px;
  font: 13px var(--ui);
  border: 1px solid #8e8e8e;
  border-radius: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25);
}
.notify input:focus { outline: none; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25), 0 0 0 3px rgba(80, 150, 255, .6); }
.note { font-size: 11px; color: #666; }
/* after signing up, the thank-you replaces the form */
.thanks { display: none; margin: 0; font: 400 26px/1.2 var(--serif); color: #333; }
.notify.is-done > * { display: none; }
.notify.is-done > .thanks { display: block; }
.notify-error { margin: 0; color: #b3261e; }
.notify-error:empty { display: none; }
.aqua:disabled { opacity: .6; cursor: progress; animation: none; }

.aqua {
  display: inline-block;
  min-height: 30px;
  padding: 7px 22px;
  font: 13px/1.2 var(--ui);
  color: #0b1d33;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
  cursor: pointer;
  border: 1px solid #3a6ea5;
  border-radius: 999px;
  background: linear-gradient(#cfe8fd 0%, #93c7f3 48%, #66aaeb 52%, #9bd6fc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 1px 3px rgba(0, 0, 0, .3);
  animation: throb 1.8s ease-in-out infinite;
}
.aqua:hover { filter: brightness(1.06); }
.aqua.calm { animation: none; }
.aqua:focus-visible { outline: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 0 0 3px rgba(80, 150, 255, .6); }
@keyframes throb { 50% { filter: brightness(1.08) saturate(1.15); } }

.foot { padding: 8px 0 0; font-size: 11px; text-align: center; }
.foot a { color: #777; }

/* ---------- privacy page ---------- */

.doc { padding: 30px 18px 0; }
.content { max-width: 600px; margin: 0 auto; font-size: 12.5px; line-height: 1.6; }
.content h1 { margin: 0; font: 500 42px/1.05 var(--serif); letter-spacing: -.03em; }
.content h2 { margin: 22px 0 4px; font: bold 13px var(--ui); }
.content p { margin: 0 0 10px; }
.content .sub { margin: 4px 0 18px; font: 400 22px/1.2 var(--serif); color: var(--muted); }

/* ---------- other screen sizes ---------- */

/* Big monitors: scale the page up instead of leaving a thin strip; the tabs stay the same size */
@media (min-width: 1280px) { .page { zoom: 1.15; } }
@media (min-width: 1600px) { .page { zoom: 1.3; } }
@media (min-width: 2200px) { .page { zoom: 1.6; } }

/* Small tablets and phones */
@media (max-width: 760px) {
  .hero { padding: 48px 4px 24px; }
  .scatter { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; justify-items: center; align-items: center; gap: 24px 40px; margin-top: 36px; }
  .scatter img { position: static; width: 120px; }
  .scatter .s-clippy { width: 96px; }
  .pitch h1 { font-size: clamp(36px, 9vw, 52px); }
}

/* Phones in landscape: less space at the top so the form stays in view */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 20px 12px 16px; }
  .pitch h1 { font-size: 44px; margin-bottom: 14px; }
}

/* Fingers need bigger targets than mouse pointers */
@media (pointer: coarse) {
  /* iPhones and iPads zoom into text boxes under 16px */
  .notify input { height: 36px; font-size: 16px; }
}
/* taller tabs for fingers on phones; tablets and computers keep the desktop tabs */
@media (pointer: coarse) and (max-width: 600px) {
  .tab { height: 32px; }
  .tab.is-current { height: 34px; }
}

@media (max-width: 600px) {
  .tabs { grid-template-columns: 108px repeat(2, minmax(0, 1fr)); }
  .tab { padding: 0 2px; font-size: 13px; }
  .tab.logo { gap: 4px; }
  .tab.logo .icon { font-size: 17px; }
  .notify-row { flex-direction: column; }
  .notify input { width: 100%; }
  .doc { padding: 22px 4px 0; }
  /* bigger reading text on phones */
  .intro { font-size: 15.5px; }
  .note { font-size: 13px; }
  .content { font-size: 14.5px; }
  .content h2 { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .aqua, .scatter img:hover { animation: none; }
  .scatter img { transition: none; }
}
