/* 66°North wholesale: the sign-in, landing and 404 pages. Brand rules: ink #191919, blue #003A92 the one accent,
   red only in the logo, Ultramarine with Arial fallback, no radius, no shadows, hairline rules, left-aligned. */
@font-face { font-family: "Ultramarine Display"; src: url(/fonts/Ultramarine-DisplayRegular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ultramarine Text"; src: url(/fonts/Ultramarine-TextRegular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ultramarine Text"; src: url(/fonts/Ultramarine-TextBold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root { --ink: #191919; --grey-1: #53565A; --grey-2: #B1B3B3; --grey-3: #E8E8E8; --grey-4: #F4F4F4; --white: #FFFFFF; --blue: #003A92; --display: "Ultramarine Display", Arial, sans-serif; --text: "Ultramarine Text", Arial, sans-serif; --gutter: clamp(16px, 5vw, 50px); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--white); color: var(--ink); font: 15px/1.45 var(--text); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; border-radius: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

/* page frame: logo bar, content, confidentiality footer */
.top { display: flex; align-items: center; gap: 16px; padding: 20px var(--gutter); border-bottom: 1px solid var(--grey-3); }
.top .home-link { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.logo { width: 40px; height: auto; display: block; }
.site { font: 400 20px/1 var(--display); }
.card { flex: 1; width: 100%; max-width: 640px; padding: 56px var(--gutter) 64px; }
.foot { white-space: pre-wrap; padding: 20px var(--gutter); border-top: 1px solid var(--grey-3); color: var(--grey-1); font-size: 12px; }

h1 { margin-bottom: 16px; font: 400 clamp(40px, 7vw, 56px)/.9 var(--display); }
.lead { color: var(--grey-1); margin-bottom: 32px; max-width: 46ch; }
.lead b { color: var(--ink); font-weight: 400; overflow-wrap: anywhere; }
form { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--grey-1); }
input { height: 48px; padding: 0 12px; border: 1px solid var(--grey-2); background: var(--white); font-size: 17px; color: var(--ink); }
input:focus { border-color: var(--ink); outline: none; }
#code { font: 400 28px/1 var(--display); letter-spacing: .3em; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 20px; border: 1px solid var(--ink); background: var(--white); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--grey-4); }
.btn.primary { background: var(--ink); color: var(--white); }
.btn.primary:hover { background: var(--blue); border-color: var(--blue); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.quiet { border-color: transparent; background: none; color: var(--grey-1); text-decoration: underline; text-underline-offset: 3px; height: auto; padding: 0; align-self: flex-start; }
.btn.quiet:hover { color: var(--ink); }
form .btn:not(.quiet) { align-self: flex-start; min-width: 160px; }
.msg { margin-top: 16px; min-height: 1.45em; font-size: 13px; color: var(--grey-1); }
.msg.err { padding-left: 12px; border-left: 2px solid var(--ink); color: var(--ink); font-weight: 700; }
.msg:empty { padding: 0; border: 0; }

/* sign-in: an ink panel with the logo beside the form; a band on top on phones */
body.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); grid-template-rows: 1fr auto; }
.panel { grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 40px var(--gutter); background: var(--ink); color: var(--white); }
.panel .logo { width: 56px; }
.panel .mark { font: 400 clamp(48px, 8vw, 112px)/.9 var(--display); }
.panel .since { margin-top: 16px; color: var(--grey-2); }
.split .card { align-self: center; max-width: 520px; }
@media (max-width: 800px) {
  body.split { display: flex; }
  .panel { flex-direction: row; justify-content: flex-start; align-items: flex-end; gap: 20px; padding: 24px var(--gutter); }
  .panel .logo { width: 40px; }
  .panel .mark { font-size: 40px; }
  .panel .since { display: none; }
  .split .card { align-self: auto; padding-top: 40px; }
}

/* landing */
.who { margin-left: auto; display: flex; align-items: baseline; gap: 16px; color: var(--grey-1); font-size: 13px; min-width: 0; }
.who span { overflow-wrap: anywhere; }
.card.home { max-width: 760px; }
.tiles { display: grid; border-top: 1px solid var(--grey-3); }
.tile { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--grey-3); text-decoration: none; color: inherit; }
.tile b { display: block; font: 400 28px/1.05 var(--display); margin-bottom: 6px; }
.tile span { color: var(--grey-1); }
.tile::after { content: "→"; grid-column: 2; grid-row: 1 / 3; font-size: 22px; }
.tile:hover b, .tile:hover::after { color: var(--blue); }
@media (max-width: 560px) { .top .site { display: none; } .who { flex-direction: column; align-items: flex-end; gap: 2px; } }
