/* The board-ed website's look: its colours, fonts, button, brand and focus ring. */
:root {
  --ink: #1A2147;
  --muted: #545B7A;
  --neel: #27348B;
  --haldi: #E9A825;
  --haldi-hover: #F2BC47;
  --paper: #FCFBF8;
  --rule: rgba(26, 33, 71, .14);
  --display: "Anek Latin", "Segoe UI", system-ui, sans-serif;
  --text: "Literata", Georgia, serif;
  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--neel); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--haldi); outline-offset: 3px; border-radius: 3px; }
h1, h2 { font-family: var(--display); margin: 0; font-weight: 700; line-height: 1.08; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
main { flex: 1; padding-block: clamp(24px, 4vw, 56px) 64px; }

.site-head { padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: .45em; font: 700 1.5rem/1 var(--display); font-stretch: 125%; letter-spacing: -.01em; }
.brand-mark { width: 1.3em; height: auto; flex: none; }

h1 { font-size: clamp(2.25rem, 5.2vw, 4.25rem); font-stretch: 78%; font-weight: 720; line-height: .96; letter-spacing: -.012em; }

.card {
  margin-top: 40px;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 44px); align-items: center;
  background: #fff; border-radius: 6px; padding: clamp(16px, 2vw, 24px);
  border-top: 6px solid var(--neel);
  box-shadow: 0 1px 0 var(--rule), 0 28px 50px -30px rgba(26, 33, 71, .55);
}
.card img { border-radius: 4px; width: 100%; box-shadow: 0 0 0 1px var(--rule); }
.card h2 { font-size: 2.125rem; font-stretch: 80%; font-weight: 720; }
.card p { margin: 12px 0 24px; max-width: 46ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.3em; border-radius: 6px;
  background: var(--haldi); color: var(--ink);
  font: 650 1.0625rem/1 var(--display); font-stretch: 95%;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(26, 33, 71, .18);
}
.btn:hover { background: var(--haldi-hover); }

.site-foot { padding-block: 32px; border-top: 1px solid var(--rule); font: 450 1rem/1.5 var(--display); }

@media (max-width: 760px) {
  .card { grid-template-columns: 1fr; }
}
