/* The Brady Office client portal. Based on design/mocks/portal.css. */

/* Stand-in fonts, self-hosted (SIL Open Font License, see fonts/OFL-*.txt). */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/libre-franklin-latin-wght-normal.woff2") format("woff2-variations");
}
/* The licensed fonts go here when Colin supplies the files. Put them in
   fonts/ and uncomment; the stacks below already ask for them first.
@font-face { font-family: "Freight Big"; font-weight: 400; font-display: swap; src: url("fonts/freight-big-book.woff2") format("woff2"); }
@font-face { font-family: "Benton Sans"; font-weight: 400; font-display: swap; src: url("fonts/benton-sans-regular.woff2") format("woff2"); }
@font-face { font-family: "Benton Sans"; font-weight: 600; font-display: swap; src: url("fonts/benton-sans-medium.woff2") format("woff2"); }
*/

:root {
  --serif: "Freight Big", "Newsreader", Georgia, serif;
  --sans: "Benton Sans", "Libre Franklin", system-ui, sans-serif;
  --ink: #1a1917;
  --ink2: #4a4843;
  --cream: #f3eee0;
  --panel: #eeede9;
  --sect: #edece8;
  --hair: rgba(26, 25, 23, .12);
  --warn: #7d4c0e;
  --warnbg: #f6ead2;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 16px/26px var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: 80%; max-width: 1400px; margin: 0 auto; }

/* Type */
.lab { font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink2); margin: 0; line-height: 16px; }
.h1 { font-family: var(--serif); font-size: 56px; line-height: 62px; margin: 0; font-weight: 400; }
.h2 { font-family: var(--serif); font-size: 48px; line-height: 54px; margin: 0; font-weight: 400; }
.lead { font-size: 18px; line-height: 29px; color: var(--ink2); margin: 0; }
.small { font-size: 14px; line-height: 22px; color: var(--ink2); margin: 0; }
.brand { font-family: var(--serif); font-size: 21px; text-decoration: none; color: var(--ink); white-space: nowrap; }

/* Actions: one ink pill per screen, everything else is an underlined text link. */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--ink); color: #fff;
  font: 600 14px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.pill.wide { width: 100%; min-height: 54px; font-size: 15px; }
.tl {
  color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  font-size: 15px; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer;
}

/* Forms */
.field {
  width: 100%; border: 1px solid rgba(26, 25, 23, .24); border-radius: 3px; padding: 14px 16px;
  background: #fff; font: 400 16px/24px var(--sans); color: var(--ink);
}
.field[aria-invalid="true"] { border-color: var(--warn); }
.need { color: var(--warn); }
.note { background: var(--sect); border-radius: 2px; padding: 12px 16px; }

/* Signed-in frame */
.top { background: #fff; }
.topin { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 32px; }
.acct { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--ink2); white-space: nowrap; }
.acct form { margin: 0; }
.acct .tl { font-size: 14px; }
.band { background: var(--cream); }
.hero { padding: 72px 0 64px; display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.main { padding: 56px 0 72px; }
.foot { border-top: 1px solid var(--hair); padding: 28px 0 40px; font-size: 13px; color: var(--ink2); }

/* Sign-in: cream band on the left, form on the right */
.split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split > .band { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 40px 72px 48px; }
.split > .side { display: flex; align-items: center; padding: 48px 72px; }
.stack { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 22px; }
.stack form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.stack label { color: var(--ink); }
/* Reserved for the motif artwork. Stays empty until Colin supplies it. */
.mark-slot { height: 360px; width: 100%; }
.split > .band .small { max-width: 420px; }

@media (max-width: 991px) {
  .h1 { font-size: 48px; line-height: 54px; }
  .h2 { font-size: 44px; line-height: 50px; }
  .split > .band, .split > .side { padding-left: 48px; padding-right: 48px; }
}
@media (max-width: 767px) {
  .wrap { width: auto; margin: 0 20px; }
  .h1 { font-size: 40px; line-height: 46px; }
  .h2 { font-size: 36px; line-height: 41px; }
  .split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .split > .band { padding: 24px 20px 28px; gap: 20px; }
  .split > .side { padding: 40px 20px 56px; }
  .mark-slot { display: none; }
  .hero { padding: 48px 0 40px; }
  .acct > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
