@font-face {
  font-family: Heebo;
  src: url("/fonts/Heebo.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #213652;
  --navy: #103d87;
  --lemon: #f3e65a;
  --muted: #51627c;
  --line: #c6d6eb;
  font: 16px/1.55 Heebo, Arial, sans-serif;
  color: var(--ink);
  background: #f4f8fd;
}

* { box-sizing: border-box; }
body { margin: 0; }
.brand {
  min-height: 84px;
  padding: 18px clamp(20px, 5vw, 60px);
  background: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { width: 38px; height: 38px; }
.memo-wordmark { display: inline-flex; width: 166px; }
.memo-wordmark svg { width: 100%; }
.memo-ink { fill: #f7faff; }
.juice-ink { fill: var(--lemon); }
.entry, .welcome { width: min(100% - 40px, 42rem); margin: clamp(44px, 9vh, 104px) auto 48px; }
.entry { max-width: 27rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.2rem, 7vw, 3.3rem); line-height: 1.09; letter-spacing: -.045em; }
h2 { font-size: 1.22rem; }
p { color: var(--muted); }
h1 + p { margin-top: 12px; font-size: 1.08rem; }
.access-form { margin-top: 28px; display: grid; gap: 8px; }
label { font-weight: 650; }
input, button { font: inherit; }
input {
  width: 100%;
  min-height: 50px;
  padding: 10px 13px;
  border: 1px solid #8295ad;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
}
input[aria-invalid="true"] { border-color: #9f2537; }
.error { color: #9f2537; font-size: .95rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 11px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--lemon);
  color: #172d49;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #f6ea77; }
.access-form .button { margin-top: 6px; }
:focus-visible { outline: 3px solid #2455a4; outline-offset: 3px; }
a { color: var(--navy); text-underline-offset: .2em; }
.welcome > .button { margin: 20px 0 24px; }
.install { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.install section, .account { border: 1px solid var(--line); background: white; border-radius: 14px; padding: 18px; }
.install p, .account p { margin-top: 5px; }
.account { margin-top: 12px; }
.install a, .account a { display: inline-block; margin-top: 8px; padding-block: 5px; font-weight: 650; }
.feedback { margin-top: 22px; }
.logout { margin-top: 16px; }
.logout button {
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}

@media (max-width: 540px) {
  .brand { min-height: 72px; }
  .install { grid-template-columns: 1fr; }
}
