:root {
  color-scheme: light;
  --grey: #58585a;
  --red: #dc1f2d;
  --deep: #1e1e1f;
  --paper: #fbfaf8;
  --tint: #f1efeb;
  --line: #dedbd4;
  --ink: #1e1e1f;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
.mosaic {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 9rem;
  height: 11rem;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(88, 88, 90, 0.22), rgba(88, 88, 90, 0.22)) 6.2rem 0.4rem / 1.1rem 1.1rem no-repeat,
    linear-gradient(rgba(88, 88, 90, 0.16), rgba(88, 88, 90, 0.16)) 4.4rem 1.6rem / 1.5rem 0.45rem no-repeat,
    linear-gradient(rgba(88, 88, 90, 0.2), rgba(88, 88, 90, 0.2)) 7.4rem 2.4rem / 0.7rem 0.7rem no-repeat,
    linear-gradient(rgba(220, 31, 45, 0.55), rgba(220, 31, 45, 0.55)) 5.6rem 3.2rem / 0.55rem 0.55rem no-repeat,
    linear-gradient(rgba(88, 88, 90, 0.18), rgba(88, 88, 90, 0.18)) 3.2rem 3.6rem / 0.9rem 0.9rem no-repeat,
    linear-gradient(rgba(88, 88, 90, 0.14), rgba(88, 88, 90, 0.14)) 6.8rem 4.6rem / 1.2rem 0.4rem no-repeat;
}
header, main, form, section, .layout { position: relative; z-index: 1; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.45rem 0.6rem;
}
button { cursor: pointer; font-weight: 700; }
a.primary {
  display: inline-block;
  margin: 0 0 1rem;
  background: var(--grey);
  color: var(--paper);
  border: 1px solid var(--grey);
  padding: 0.55rem 0.8rem;
  font-weight: 700;
  text-decoration: none;
}
button.danger {
  background: transparent;
  color: var(--red);
  font-weight: 700;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: flex-end; gap: 1.25rem; }
.mark { width: 8rem; height: 8rem; display: block; }
.kicker {
  margin: 0 0 0.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
}
h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--deep);
}
.rule { display: block; width: 2.5rem; height: 3px; margin: 0.7rem 0 0.55rem; background: var(--red); }
.lead { margin: 0; font-weight: 300; color: var(--grey); font-size: 1.05rem; }
h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.8rem; color: var(--deep); }
p { color: var(--grey); font-weight: 400; }
#mailbox-form { min-width: 16rem; }
.layout {
  display: grid;
  grid-template-columns: 320px 1fr 340px;
  min-height: calc(100vh - 10rem);
}
.col { padding: 1.1rem 1.2rem; border-right: 1px solid var(--line); }
.col:last-child { border-right: 0; }
.card, .item {
  border: 1px solid var(--line);
  padding: 0.75rem;
  margin-bottom: 0.7rem;
  background: var(--tint);
  border-radius: 0;
}
button.item { width: 100%; text-align: left; font-weight: 400; background: var(--paper); }
.item.active { border-color: var(--grey); border-left: 3px solid var(--red); }
.meta a, #who a { color: var(--grey); font-weight: 700; letter-spacing: 0.04em; text-transform: none; }
.meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
}
label { display: block; margin: 0.55rem 0; font-size: 0.95rem; font-weight: 400; }
label span {
  display: block;
  color: var(--grey);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
input, select, textarea { width: 100%; }
textarea { min-height: 7rem; }
.row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.trail { border-left: 1px solid var(--line); margin: 0.4rem 0 0 0.3rem; padding-left: 0.7rem; }
.empty { color: var(--grey); font-weight: 300; }
strong { font-weight: 700; color: var(--deep); }
@media (max-width: 980px) {
  header, .brand { flex-direction: column; align-items: flex-start; }
  .layout { grid-template-columns: 1fr; }
  .col { border-right: 0; border-bottom: 1px solid var(--line); }
  .mosaic { opacity: 0.45; }
}
