/* Cityzen Bank's website. The pages read in order without this file (as they do in a text browser); it only arranges and dresses them for a full one. */

:root {
  --green: #173a2d;
  --green-2: #22513f;
  --brass: #b8923f;
  --brass-light: #d9b765;
  --ivory: #f7f4ec;
  --paper: #fffdf8;
  --ink: #1f2a24;
  --muted: #5d6a62;
  --line: #ddd5c3;
  --error: #8f2c22;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--green); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--ivory); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: var(--green-2); }
a:hover { color: var(--brass); }
code, pre { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; }
pre { background: #ece6d6; border-left: 3px solid var(--brass); padding: 12px 14px; overflow-x: auto; line-height: 1.45; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.small { font-size: .85rem; color: var(--muted); }

/* The masthead: the bank's green, a brass rule, the name set in capitals. */
.masthead { background: var(--green); color: #fff; border-bottom: 4px solid var(--brass); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.masthead p { margin: 0; }
.brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand a { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
/* The crest is the stylesheet's, not the page's: a text browser would show an image as a placeholder in front of the bank's name. */
.brand a::before { content: ""; display: block; width: 40px; height: 48px; background: url("/crest.svg") no-repeat center / contain; }
.name { font-family: var(--serif); font-size: 1.65rem; letter-spacing: .14em; text-transform: uppercase; }
.motto { font-family: var(--serif); font-style: italic; color: var(--brass-light); font-size: .92rem; letter-spacing: .03em; }
nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: .95rem; }
.masthead .bar { display: none; }
nav p a + .bar + a { margin-left: 20px; }
nav a { color: #fff; text-decoration: none; border-bottom: 1px solid transparent; }
nav a:hover { color: var(--brass-light); border-bottom-color: var(--brass-light); }
.signout p { color: #d8e2dc; }
.signout input { margin-left: 8px; font: inherit; font-size: .85rem; color: var(--green); background: var(--brass-light); border: 0; border-radius: 3px; padding: 3px 10px; cursor: pointer; }

main.wrap { flex: 1 0 auto; width: 100%; padding-top: 40px; padding-bottom: 56px; }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; color: var(--green); }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: 1.45rem; margin: 0 0 12px; }
table + h2, table + p, pre + p { margin-top: 28px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }

/* The home page: the bank's address to the reader beside the sign-in. */
.home { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 40px; align-items: start; }
.lede h1 { padding-top: 8px; }
.lede h1::after { content: ""; display: block; width: 72px; height: 3px; background: var(--brass); margin-top: 18px; }
.lede p { font-family: var(--serif); font-size: 1.18rem; color: #3b4741; max-width: 36em; }
.panel { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--green); padding: 22px 24px 8px; box-shadow: 0 1px 0 rgba(0, 0, 0, .04); }
.panel.single { max-width: 440px; margin: 0 auto; }
.panel.single h1 { font-size: 1.7rem; }
.signin label { font-size: .9rem; font-weight: 600; color: #34413a; }
.signin input[type=text], .signin input[type=password] { width: 100%; font: inherit; padding: 8px 10px; margin-top: 4px; border: 1px solid #b9b19c; border-radius: 2px; background: #fff; }
.signin input[type=text]:focus, .signin input[type=password]:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
.signin input[type=submit] { font: inherit; font-weight: 600; letter-spacing: .04em; color: #fff; background: var(--green); border: 0; border-radius: 2px; padding: 9px 26px; cursor: pointer; }
.signin input[type=submit]:hover { background: var(--green-2); }
.error { color: var(--error); background: #f8e9e5; border-left: 3px solid var(--error); padding: 8px 12px; }
.note { background: #eef3ee; border-left: 3px solid var(--green-2); padding: 8px 12px; }

.offers { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 32px; }
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.columns h3 { border-bottom: 1px solid var(--brass); padding-bottom: 6px; }
.notice { margin-top: 36px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brass); padding: 18px 22px 6px; }
.notice h2 { font-size: 1.2rem; }

/* Accounts and statements. */
table { border-collapse: collapse; width: 100%; background: var(--paper); border: 1px solid var(--line); }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: #f1ece0; }
td.money, th.money { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.date { white-space: nowrap; font-variant-numeric: tabular-nums; color: #3b4741; }
.accounts td:first-child a { font-family: var(--serif); font-size: 1.15rem; text-decoration: none; }
.accounts .total td { font-weight: 600; background: #f1ece0; }
.summary { font-size: 1.05rem; }
.summary strong { font-family: var(--serif); font-size: 1.35rem; font-weight: normal; color: var(--green); }
.api td:first-child { white-space: nowrap; }

footer { background: var(--green); color: #c9d5ce; font-size: .85rem; padding: 22px 0 30px; border-top: 4px solid var(--brass); }
footer p { margin: 0 0 6px; }
footer .fiction { color: var(--brass-light); }

@media (max-width: 760px) {
  .home, .columns { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .name { font-size: 1.3rem; }
  th, td { padding: 8px 8px; }
  td.date { white-space: normal; }
  .api td:first-child { white-space: normal; }
}
