/* William & Co. Recruitment — black & white, serif display, sans body */

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --muted: #5a5a5a;
  --rule: #d9d9d9;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 72rem;
  --gutter: clamp(1.5rem, 5vw, 4rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  z-index: 10;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */

.site-header { border-bottom: 1px solid var(--ink); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.brand { display: inline-block; line-height: 0; }
.brand img { display: block; width: 15rem; height: auto; }
.footer-brand img { display: block; width: 12rem; height: auto; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2.25rem;
}
.site-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* Type */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0;
}
h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.625rem; font-weight: 500; }

h1 em, h2 em { font-style: italic; }

.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--ink);
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.65;
  max-width: 38rem;
}

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

/* Sections */

.section { padding: clamp(5rem, 11vw, 9rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }

.hero { padding: clamp(5.5rem, 15vw, 12rem) 0 clamp(5.5rem, 12vw, 10rem); text-align: center; }
.hero h1 { font-size: clamp(3rem, 8vw, 6rem); }
.hero .lede { margin: 0 auto; max-width: 40rem; }
.hero .actions { justify-content: center; }

/* Short centred rule, after the divider in the wordmark */
.rule-short {
  display: block;
  width: 4.5rem;
  height: 1px;
  background: var(--ink);
  border: 0;
  margin: 2.5rem auto;
}

.label {
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.page-head { padding: clamp(4.5rem, 11vw, 8rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); max-width: 18ch; }
.page-head .lede { margin: 2rem 0 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.split > :last-child > p:first-child { margin-top: 0; }

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.columns h3 { margin-bottom: 1rem; }
.columns p { margin: 0 0 1.75rem; color: var(--muted); }
.columns .ruled { border-top-color: var(--rule); }
.columns .ruled li { padding: 0.85rem 0; }
.columns > div { border-top: 1px solid var(--ink); padding-top: 2rem; }

/* Numbered process */

.process {
  list-style: none;
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.process li { border-top: 1px solid var(--ink); padding-top: 2rem; }
.process .num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}
.process h3 { font-size: 2.25rem; font-weight: 400; margin-bottom: 1rem; }
.process p { margin: 0; color: var(--muted); }

/* Plain list with rules */

.ruled {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.ruled li { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }

/* Buttons */

.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 3.25rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.9rem 2.25rem;
  border: 1px solid var(--ink);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--paper); color: var(--ink); }
.btn-line { background: var(--paper); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* Closing band */

.band { background: var(--ink); color: var(--paper); }
.band .eyebrow::before { background: var(--paper); }
.band .btn { border-color: var(--paper); }
.band .btn-solid { background: var(--paper); color: var(--ink); }
.band .btn-solid:hover { background: var(--ink); color: var(--paper); }
.band .btn-line { background: var(--ink); color: var(--paper); }
.band .btn-line:hover { background: var(--paper); color: var(--ink); }
.band :focus-visible { outline-color: var(--paper); }
.band h2 { max-width: 20ch; }

/* Contact */

.contact-card {
  border-top: 1px solid var(--ink);
  padding-top: 2.5rem;
}
.contact-card .name { font-family: var(--serif); font-size: 2.25rem; line-height: 1.1; margin: 0; }
.contact-card .role {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0.75rem 0 0;
}
.contact-lines { margin: 2.5rem 0 0; }
.contact-lines div { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.contact-lines div:first-child { border-top: 1px solid var(--rule); }
.contact-lines dt {
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.contact-lines dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  overflow-wrap: anywhere;
}
.contact-lines a { text-decoration: none; border-bottom: 1px solid var(--ink); }
.contact-lines a:hover { border-bottom-width: 2px; }

/* Legal documents */

.legal { padding-bottom: clamp(5rem, 10vw, 8rem); }
.legal .doc { max-width: 44rem; }
.legal h2 {
  font-size: clamp(1.625rem, 2.6vw, 2rem);
  margin: 3.5rem 0 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 1.75rem 0 0.5rem; }
.legal p, .legal li { color: #222; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal .effective { font-size: 0.875rem; color: var(--muted); margin-top: 1.5rem; }

.callout {
  border-left: 2px solid var(--ink);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 1.75rem 0;
  font-family: var(--serif);
  font-size: 1.3125rem;
  line-height: 1.5;
}
.callout p { margin: 0; color: var(--ink); }
.callout p + p { margin-top: 0.75rem; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--ink);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-grid h2 {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8125rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.footer-legal p { margin: 0; }

/* Responsive */

@media (max-width: 52rem) {
  .split, .columns, .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .site-header .wrap { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .brand img { width: 12rem; }
  .site-nav ul { gap: 0.25rem 1.5rem; }
  .actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  .site-header nav, .skip-link, .actions, .band { display: none; }
  body { font-size: 11pt; }
}
