:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #202e29;
  background: #f8f6ef;
  --green: #284b40;
  --muted: #58665e;
  --rule: #c7cabe;
  --serif: 'Iowan Old Style', Baskerville, 'Palatino Linotype', Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
input:focus-visible, button:focus-visible { outline: 3px solid #567c81; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
.masthead {
  width: min(1184px, calc(100% - 80px)); margin: auto; min-height: 86px;
  border-bottom: 1px solid var(--rule); display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; font: 600 30px/1 var(--serif); letter-spacing: -.05em; }
.brand-mark { display: block; width: 26px; height: 21px; border: 2px solid var(--green); border-radius: 2px; position: relative; }
.brand-mark::before { content: ''; position: absolute; inset: 3px -2px auto; border-bottom: 2px solid var(--green); }
.brand-mark::after { content: ''; position: absolute; width: 8px; height: 2px; left: 7px; top: 9px; background: var(--green); }
#account { display: flex; align-items: baseline; gap: 18px; min-width: 0; }
#account-name { color: var(--muted); font-size: .875rem; overflow: hidden; text-overflow: ellipsis; }
#logout { white-space: nowrap; flex-shrink: 0; }
.boot { text-align: center; padding: 15vh 24px; color: var(--muted); }
.auth {
  width: min(960px, calc(100% - 80px)); margin: clamp(48px, 10vh, 110px) auto;
  display: grid; grid-template-columns: .9fr 1fr; align-items: center; gap: clamp(44px, 8vw, 116px);
}
.illustration {
  display: grid; place-items: center; height: clamp(350px, 51vh, 490px); overflow: hidden;
  background: radial-gradient(ellipse at 25% 25%, #e7e8dc, transparent 65%), #d5dbca;
  border-radius: 3px; position: relative; isolation: isolate;
}
.illustration::before {
  content: ''; position: absolute; inset: 16px; border: 1px solid #8b9a814a;
}
.folder { width: 64%; aspect-ratio: 1.23; position: relative; margin-top: 14%; transform: rotate(-9deg); }
.sheet {
  position: absolute; left: 4%; right: 4%; height: 90%; top: -9%; border: 1px solid #b6b49d;
  border-radius: 3px; box-shadow: 1px 3px 5px #23382729;
}
.sheet.back { transform: rotate(-9deg); background: #c4aa72; }
.sheet.front {
  transform: rotate(6deg); top: -14%; background: repeating-linear-gradient(to bottom, #f7f3e7 0 16px, #bdc6ba 16px 17px);
  border-top: 18px solid #efe8d4;
}
.folder-face {
  position: absolute; inset: 13% 0 0; background: linear-gradient(130deg, #577360, #3f5e4d);
  border: 1px solid #3e5c48; border-radius: 1px 6px 4px 4px; box-shadow: 2px 10px 14px #27372730;
}
.folder-face::before { content: ''; position: absolute; top: -10%; left: -1px; width: 38%; height: 12%; background: #55715e; border-radius: 4px 6px 0 0; }
.folder-face i {
  position: absolute; top: 26%; left: 30%; width: 40%; height: 24%; border: 3px solid #b09b70;
  background: #eae2cb; box-shadow: inset 0 0 0 1px #7b715e, 0 1px 3px #20392a85;
}
.folder-face i::after { content: ''; position: absolute; left: 16%; right: 16%; top: 51%; border-bottom: 1px solid #a59e88; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); letter-spacing: -.055em; line-height: 1.04; text-wrap: balance; }
.intro { margin: 17px 0 30px; max-width: 35ch; color: var(--muted); line-height: 1.55; }
label { display: block; margin-bottom: 8px; font-size: .875rem; font-weight: 600; }
input { width: 100%; border: 1px solid #97a496; border-radius: 5px; background: #fffdf8; padding: 12px 14px; color: inherit; min-height: 48px; }
input::placeholder { color: #69756b; }
#invite-field { margin-top: 18px; }
.primary { background: var(--green); color: white; border: 1px solid var(--green); border-radius: 5px; min-height: 48px; padding: 10px 20px; font-weight: 600; }
.primary:hover { background: #203d34; }
#continue { width: 100%; margin-top: 18px; }
.text-button { border: 0; padding: 9px 0; background: transparent; color: var(--green); font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; }
.auth-links { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 16px; margin-top: 12px; }
.android-download { display: inline-block; }
.status { line-height: 1.5; color: var(--muted); font-size: .92rem; }
.status:not(:empty) { margin-top: 14px; }
.status.error { color: #933622; }
.archive { width: min(820px, calc(100% - 80px)); margin: clamp(44px, 8vh, 88px) auto 72px; }
#search-form { display: flex; gap: 10px; margin: 24px 0 44px; }
#search-form input { min-width: 0; }
.results-heading { border-bottom: 1px solid #a8b3a5; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; }
h2 { font-size: 1.55rem; letter-spacing: -.025em; }
#count, .metadata { color: var(--muted); font-size: .8rem; }
#messages { list-style: none; margin: 0; padding: 0; }
#messages li { padding: 20px 0 21px; border-bottom: 1px solid var(--rule); }
.message-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.address { font-weight: 650; overflow-wrap: anywhere; }
.metadata { line-height: 1.5; }
.message-body { margin-top: 8px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
#empty { padding: 34px 0; }
#empty h3 { font-size: 1.4rem; }
#empty p { margin-top: 7px; color: var(--muted); line-height: 1.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .masthead { width: calc(100% - 40px); min-height: 66px; }
  .auth { display: flex; flex-direction: column; align-items: stretch; gap: 28px; width: min(420px, calc(100% - 40px)); margin: 30px auto; }
  .illustration { height: 142px; }
  .illustration::before { inset: 8px; }
  .folder { width: 100px; margin-top: 12px; }
  .sheet.front { border-top-width: 6px; background-size: auto 9px; }
  .folder-face i { border-width: 2px; }
  .intro { margin: 12px 0 22px; }
  .archive { width: calc(100% - 40px); margin-top: 38px; }
  #search-form { margin: 18px 0 32px; }
}
@media (max-width: 420px) { #account { gap: 7px; } #account-name { max-width: 28vw; } }
