/* Write Like Me: a Mac app page in the manner of the 2007-2009 independent Mac developers.
   One centered sheet, real type, soft gradients, a glossy button. No grids of cards. */

:root {
  --ink: #2b2620;
  --ink-soft: #5d554b;
  --paper: #fffdf8;
  --linen-top: #ece6da;
  --linen-bottom: #d8d0c1;
  --rule: #ddd5c6;
  --accent: #8a2f1d;
  --blue-top: #6fb2f2;
  --blue-bottom: #2a6fd0;
  --blue-edge: #1f5aa8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Lucida Grande", "Lucida Sans Unicode", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--linen-bottom); }

body {
  margin: 0;
  color: var(--ink);
  font: 15px/1.6 var(--sans);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.025) 0 1px, transparent 1px 3px),
    linear-gradient(var(--linen-top), var(--linen-bottom)) fixed;
  min-height: 100vh;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 16px 32px;
}

/* Masthead */
.masthead {
  text-align: center;
  margin-bottom: 22px;
}
.app-icon {
  display: block;
  margin: 0 auto 8px;
  filter: drop-shadow(0 3px 4px rgba(60, 45, 25, .35));
}
.wordmark {
  margin: 0;
  font: 26px/1 var(--serif);
  letter-spacing: -.01em;
  color: #3a332b;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.wordmark em { color: var(--accent); }

/* The sheet */
.sheet {
  background: var(--paper);
  border: 1px solid #c9bfae;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 6px 22px rgba(70, 55, 35, .18);
  padding: 44px 56px 40px;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: normal;
  color: #221d18;
}
h1 {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 6px;
}
h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.sting {
  font: italic 22px/1.3 var(--serif);
  color: var(--accent);
  margin: 0 0 20px;
}
p { margin: 0 0 14px; }
.intro p:last-child { font-size: 16px; color: #3d362e; }

/* Leopard-era window */
.window {
  margin: 30px -14px 36px;
  border-radius: 6px;
  border: 1px solid #8f8f8f;
  box-shadow: 0 10px 28px rgba(0,0,0,.28), 0 1px 3px rgba(0,0,0,.2);
  overflow: hidden;
  background: #fff;
}
.titlebar {
  position: relative;
  height: 24px;
  background: linear-gradient(#e8e8e8, #bcbcbc);
  border-bottom: 1px solid #8a8a8a;
  text-align: center;
  font: 13px/24px var(--sans);
  color: #333;
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.lights {
  position: absolute;
  left: 9px;
  top: 6px;
  display: flex;
  gap: 7px;
}
.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.35);
  background: radial-gradient(circle at 50% 30%, #fff 0 15%, transparent 55%), #e0443e;
}
.lights i:nth-child(2) { background: radial-gradient(circle at 50% 30%, #fff 0 15%, transparent 55%), #dea123; }
.lights i:nth-child(3) { background: radial-gradient(circle at 50% 30%, #fff 0 15%, transparent 55%), #5fae3a; }

.window-body {
  display: flex;
  gap: 0;
  min-height: 170px;
}
.draft {
  flex: 1;
  padding: 22px 24px;
  font: 17px/1.55 var(--serif);
}
.draft del {
  color: #8f8579;
  text-decoration-color: rgba(138, 47, 29, .7);
  text-decoration-thickness: 1.5px;
}
.draft ins {
  text-decoration: none;
  background: linear-gradient(transparent 60%, #fbe9a6 60%);
}
.margin-note {
  width: 190px;
  flex: none;
  padding: 22px 16px;
  background: linear-gradient(90deg, #f3eedf, #f8f4e8 12px);
  border-left: 1px solid #e2dac6;
  font: italic 14px/1.45 var(--serif);
  color: #5a4a36;
}

/* Waiting list */
.join {
  padding: 26px 28px 22px;
  margin: 0 -14px 34px;
  background: linear-gradient(#f7f2e7, #f1eadb);
  border: 1px solid #e0d6c2;
  border-radius: 8px;
}
.join label[for="email"] {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field-row {
  display: flex;
  gap: 10px;
}
input[type="email"] {
  flex: 1;
  min-width: 0;
  font: 16px var(--sans);
  padding: 8px 10px;
  border: 1px solid #a99f8f;
  border-top-color: #8e8475;
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
  color: var(--ink);
}
input[type="email"]:focus {
  outline: none;
  border-color: #5b95db;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.12), 0 0 0 3px rgba(91,149,219,.35);
}
button {
  flex: none;
  font: bold 14px var(--sans);
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0,0,0,.3);
  padding: 9px 18px;
  border: 1px solid var(--blue-edge);
  border-radius: 18px;
  cursor: pointer;
  background:
    linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.08) 50%, transparent 51%),
    linear-gradient(var(--blue-top), var(--blue-bottom));
  box-shadow: 0 1px 2px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.5);
}
button:hover { filter: brightness(1.06); }
button:active { filter: brightness(.92); }
button:focus-visible { outline: 3px solid rgba(91,149,219,.5); outline-offset: 2px; }
.fine {
  font-size: 12px;
  color: #7a7064;
  margin: 12px 0 0;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Questions */
.questions dl { margin: 10px 0 0; }
.questions dt {
  font: bold 15px/1.4 var(--sans);
  color: #2e2822;
  margin-top: 18px;
}
.questions dd {
  margin: 4px 0 0;
  color: #4a4239;
}

.footer {
  text-align: center;
  font-size: 12px;
  color: #6f6559;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
  margin-top: 20px;
}
.footer p { margin: 0; }

/* Small pages: thanks and errors */
.note-page .sheet { text-align: center; padding: 48px 40px; }
.note-page h1 { font-size: 32px; }
.note-page a { color: var(--blue-edge); }

@media (max-width: 640px) {
  .page { padding-top: 24px; }
  .sheet { padding: 28px 20px 26px; border-radius: 8px; }
  h1 { font-size: 29px; }
  .sting { font-size: 19px; }
  .window, .join { margin-left: 0; margin-right: 0; }
  .window-body { flex-direction: column; }
  .margin-note {
    width: auto;
    border-left: 0;
    border-top: 1px solid #e2dac6;
    padding: 14px 24px;
    background: #f6f1e4;
  }
  .field-row { flex-direction: column; }
  button { width: 100%; }
}
