:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #666666;
  --line: #111111;
  --panel: #ffffff;
  --shade: #f2f2f2;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

body { margin: 0; }

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 38px 18px 56px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 34px;
}

.site-mark {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  display: grid;
  place-items: center;
  background: var(--ink);
  border: 3px solid var(--line);
  color: #fff;
  font-size: 35px;
  font-weight: 850;
  letter-spacing: -.08em;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 58px);
  line-height: .95;
  letter-spacing: -.045em;
  font-weight: 850;
}

.site-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.mail-list {
  margin-bottom: 34px;
  border-top: 1px solid var(--line);
}

.mail-card {
  min-height: 72px;
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.mail-card:hover { background: var(--shade); }

.mail-thumb {
  width: 64px;
  height: 40px;
  border: 1px solid #aaa;
  object-fit: cover;
  object-position: top left;
}

.mail-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mail-subject {
  overflow: hidden;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-preview {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pinned-card {
  min-height: 108px;
  padding: 12px 15px;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 15px;
}

.pinned-card .mail-thumb {
  width: 96px;
  height: 60px;
}

.pinned-card .mail-subject { font-size: 22.5px; }
.pinned-card .mail-preview { font-size: 14px; }

.crumbs {
  margin: 0 0 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.crumbs a { color: inherit; text-underline-offset: 3px; }

.article-header {
  border-bottom: 2px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.article-header h1 { max-width: 12ch; }

.dek {
  max-width: 58ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

article h2 {
  margin: 34px 0 12px;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -.035em;
}

article p,
article li {
  font-size: 16px;
  line-height: 1.58;
}

article p { max-width: 68ch; }
article ul { max-width: 68ch; padding-left: 20px; }
article li + li { margin-top: 7px; }

code {
  padding: 2px 5px;
  background: var(--shade);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 22px 0 28px;
  border-top: 2px solid var(--line);
  border-left: 2px solid var(--line);
}

.flow div {
  min-height: 105px;
  padding: 12px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--shade);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flow strong { font-size: 14px; letter-spacing: -.02em; }
.flow span { color: var(--muted); font-size: 11px; line-height: 1.25; }

.note {
  margin: 28px 0;
  padding: 16px;
  border: 2px solid var(--line);
  background: var(--shade);
}

.note p { margin: 0; font-size: 14px; }

.page-footer {
  margin-top: 38px;
  padding-top: 14px;
  border-top: 2px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.page-footer a { color: inherit; }

@media (max-width: 700px) {
  main { padding-top: 28px; }
  .site-mark { width: 74px; height: 74px; flex-basis: 74px; font-size: 28px; }
  .flow { grid-template-columns: 1fr; }
  .flow div { min-height: 74px; }
}

@media (max-width: 440px) {
  .site-header { align-items: flex-start; }
  .site-description { max-width: 20ch; }
  .mail-card { grid-template-columns: 56px minmax(0, 1fr); }
  .mail-thumb { width: 56px; height: 35px; }
  .pinned-card { grid-template-columns: 84px minmax(0, 1fr); }
  .pinned-card .mail-thumb { width: 84px; height: 52.5px; }
}
