/* Port Carling Capital — shared styles */

:root {
  --paper: #fdfcfa;
  --navy: #021a2b;
  --ink: #14263a;
  --muted: #5d6873;
  --rule: #dcd9d3;
  --rule-dark: rgba(255, 255, 255, 0.16);
  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --sans: "Josefin Sans", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(24px, 7.75vw, 87px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.serif {
  font-family: var(--serif);
  font-variation-settings: "opsz" 11;
  font-weight: 400;
}

.label {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}

.logo-name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 11;
  font-style: italic;
  white-space: nowrap;
  font-size: 28px;
  letter-spacing: -0.01em;
}

.logo-sub {
  margin-top: 4px;
  padding-left: 0.5em; /* optically centre the tracked caps */
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  padding: 10px 20px 8px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn:hover,
.btn:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.btn-solid {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.btn-solid:hover,
.btn-solid:focus-visible {
  background: transparent;
  color: var(--navy);
}

/* ---------- Landing ---------- */

.hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.39 / 1;
  min-height: 240px;
  object-fit: cover;
}

.hero figcaption,
.caption {
  padding-top: 6px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
}

figure {
  margin: 0;
}

.intro {
  max-width: 650px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 68px) 0 clamp(56px, 6.5vw, 72px);
}

.intro h1 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-variation-settings: "opsz" 11;
  font-weight: 400;
  font-size: clamp(21px, 2.3vw, 25px);
  line-height: 1.38;
  letter-spacing: 0.005em;
}

.intro p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #fff;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.contact-row h2 {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 11;
  font-style: italic;
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
}

.cities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 26px 25px 22px;
  border-top: 1px solid var(--rule);
  list-style: none;
  text-align: center;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
}

.cities li {
  padding-left: 0.3em; /* offset trailing letter-spacing so text sits on centre */
}

.email-btn {
  display: inline-block;
  padding: 12px 22px 10px;
  border: 1px solid #fff;
  color: #fff;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-underline-offset: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.email-btn:hover,
.email-btn:focus-visible {
  background: #fff;
  color: var(--navy);
}

.legal {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 calc(var(--gutter) - 25px);
}

.legal p {
  margin: 0;
  padding: 12px 25px 16px;
  border-top: 1px solid var(--rule-dark);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer.slim .legal p {
  border-top: 0;
  padding-top: 16px;
}

/* ---------- Login ---------- */

.login {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: calc(100vh - 74px);
  min-height: calc(100svh - 74px);
}

.login-art {
  position: relative;
  min-height: 220px;
}

.login-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% 50%;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px clamp(24px, 6vw, 88px);
}

.login-form {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.login-form .label {
  color: var(--muted);
}

.login-form h1 {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-variation-settings: "opsz" 11;
  font-style: italic;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
}

.login-form .lede {
  margin: 0 0 36px;
  font-size: 15px;
  color: var(--muted);
}

.field {
  margin-bottom: 26px;
}

.field label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.field input {
  width: 100%;
  padding: 8px 0 7px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  outline: none;
}

.field input:focus {
  border-bottom-width: 2px;
  padding-bottom: 6px;
}

.form-error {
  margin: -6px 0 18px;
  font-size: 14px;
  font-weight: 400;
  color: #a3271b;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 30px;
  font-size: 13.5px;
  color: var(--muted);
}

.form-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.form-row input {
  accent-color: var(--navy);
  margin: 0 0 3px;
}

.form-row a {
  text-underline-offset: 3px;
}

.login-form .btn {
  width: 100%;
  padding: 15px 20px 13px;
}

.login-note {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.login-art .caption {
  position: absolute;
  left: var(--gutter);
  bottom: 12px;
  padding: 0;
  color: #fff;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
}

/* ---------- Portal ---------- */

.portal-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}

.portal-nav a:not(.btn) {
  padding: 6px 0 3px;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
}

.portal-nav a:not(.btn):hover,
.portal-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.band img {
  width: 100%;
  height: clamp(96px, 13vw, 150px);
  object-fit: cover;
  object-position: 50% 12%;
}

.welcome {
  padding-top: clamp(40px, 5vw, 60px);
  padding-bottom: 36px;
}

.welcome .label {
  color: var(--muted);
}

.welcome h1 {
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-variation-settings: "opsz" 11;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.1;
}

.welcome p {
  margin: 0;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.stats div {
  padding: 22px 20px 20px 0;
}

.stats div + div {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}

.stats dt {
  color: var(--muted);
}

.stats dd {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 11;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  padding-top: 56px;
  padding-bottom: 80px;
}

.section + .section {
  margin-top: 56px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 11;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
}

.section-head a {
  color: var(--muted);
  text-decoration: none;
}

.section-head a:hover {
  color: var(--ink);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.table th {
  padding: 14px 12px 8px 0;
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.table td {
  padding: 15px 12px 13px 0;
  border-top: 1px solid var(--rule);
  vertical-align: baseline;
}

.table th:last-child,
.table td:last-child {
  padding-right: 0;
  text-align: right;
  white-space: nowrap;
}

.table .name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 11;
  font-size: 17px;
}

.table .dim {
  color: var(--muted);
}

.table a {
  text-underline-offset: 3px;
}

.table-scroll {
  overflow-x: auto;
}

.notices {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notices li {
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--rule);
}

.notices time {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.notices h3 {
  margin: 6px 0 4px;
  font-family: var(--serif);
  font-variation-settings: "opsz" 11;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.35;
}

.notices p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.contact-card {
  padding: 26px 26px 24px;
  background: var(--navy);
  color: #fff;
}

.contact-card h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-variation-settings: "opsz" 11;
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
}

.contact-card p {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-card .email-btn {
  font-size: 12px;
  padding: 10px 14px 8px;
}

.sample-note {
  margin: 0;
  padding-bottom: 28px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 404 ---------- */

.notfound {
  max-width: 650px;
  margin: 0 auto;
  padding: 96px 0 120px;
}

.notfound h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-variation-settings: "opsz" 11;
  font-style: italic;
  font-weight: 400;
  font-size: 40px;
}

.notfound p {
  margin: 0 0 28px;
  color: var(--muted);
}

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .login {
    grid-template-columns: 1fr;
    grid-template-rows: 200px auto;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .stats div:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 640px) {
  .portal-nav a:not(.btn) {
    display: none;
  }

  .contact-row h2 {
    font-size: 34px;
  }

  .hide-sm {
    display: none;
  }
}
