/*
 * SARA landing page (index_new.html).
 * Follows the look of societyforartisticresearch.org: grey header and footer bars,
 * sans-serif text and a pink accent.
 */

/* Colours and fonts, taken from the SAR website */
:root {
  --ink: #1c1612;
  --ink-muted: #665a4f;
  --paper: #ffffff;
  --brand: #dc7da4;
  --brand-dark: #d56c98;
  --bar: #5b6872;

  --sans: Inter, system-ui, sans-serif;
  --system: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, "Liberation Sans", sans-serif;
}

/* Page: header, main and footer each span the full width, with their content in a 40rem column */
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--sans);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

header,
main,
footer {
  padding: 1.5rem max(1.5rem, calc((100% - 40rem) / 2));
}

main {
  flex: 1;
  padding-block: 4rem;
}

/* Header: SAR logo on the left, SARA wordmark on the right */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bar);
  color: var(--paper);
}

.logo {
  display: block;
  width: auto;
  height: 60px;
}

.wordmark {
  margin: 0;
  font-size: 1.5rem;
}

/* Headings */
h1,
h2 {
  font-family: var(--system);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 2.5rem;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
}

h2 {
  margin: 2rem 0 0.85rem;
  font-size: 1.4rem;
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
}

/* Links */
a {
  color: inherit;
  text-decoration-color: var(--brand);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--brand-dark);
}

/* Buttons: pink for the main action, outlined for the second one */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.button {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--paper);
}

.button:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: var(--paper);
}

.button.secondary {
  border-color: rgb(28 22 18 / 0.2);
  background: none;
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

/* Footer */
footer {
  background: var(--bar);
  color: var(--paper);
  font-size: 0.875rem;
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
