/*
 * Research & Digital Development Pty Ltd — site styles.
 *
 * One stylesheet for the whole site. No preprocessor, no framework, no hosted
 * fonts: every font is one the reader's device already has, so a page can never
 * be left half-rendered by a font that failed to load (docs/SCOPE.md, P5).
 *
 * The register is corporate and restrained (i40): serif headings for
 * institutional weight, a sans body for reading, and the coral accent used
 * sparingly — a rule, a mark, a lead-in. Colour never carries meaning on its
 * own.
 */

:root {
  /* Palette carried over from ActionableWhy so the family is visible (i39). */
  --brand: #e8734a;
  --ink: #23211b;
  --ink-soft: #55524a;
  --ink-faint: #7d7970;
  --paper: #faf8f4;
  --paper-alt: #f2eee6;
  --paper-deep: #23211b;
  --rule: #ded7c9;
  --rule-soft: #eae4d8;

  --measure: 34rem;            /* comfortable line length for body copy */
  --page: 68rem;               /* outer content width */
  --gutter: 1.5rem;            /* side gutter; never less than 16px */

  --serif: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono",
    monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

/* --- Shared furniture ---------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

a {
  color: var(--ink);
  text-decoration-color: var(--brand);
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--brand);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 10;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 0.5rem 0.875rem;
}

/* --- Masthead ------------------------------------------------------------ */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--ink);
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--ink);
}

.wordmark__mark {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

.wordmark__text {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.wordmark__text span {
  display: block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.9375rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}

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

/* --- Hero ---------------------------------------------------------------- */

.hero {
  padding-block: clamp(3rem, 9vw, 6rem) clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--rule-soft);
}

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

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 18ch;
}

.hero__lead {
  font-size: clamp(1.125rem, 2.4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 1.75rem 0 0;
}

.hero__rule {
  width: 4rem;
  height: 3px;
  background: var(--brand);
  border: 0;
  margin: 2.25rem 0 0;
}

/* --- Generic section ----------------------------------------------------- */

.section {
  padding-block: clamp(3rem, 7vw, 4.5rem);
  border-bottom: 1px solid var(--rule-soft);
}

.section--alt {
  background: var(--paper-alt);
}

.section__label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.75rem;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.2;
  margin: 0 0 1.5rem;
  max-width: 24ch;
}

.section p {
  max-width: var(--measure);
}

.prose p {
  margin-block: 0 1.15rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* --- Column grids -------------------------------------------------------- */

.grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 46rem) {
  .grid--three {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .grid--two {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

.pillar h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1875rem;
  margin: 0 0 0.625rem;
  padding-top: 1rem;
  border-top: 2px solid var(--brand);
}

.pillar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9875rem;
}

/* --- Practice cards (Development / Research) ----------------------------- */

.practice {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 1.75rem;
}

.practice h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.375rem;
  margin: 0 0 0.5rem;
}

.practice > p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
  font-size: 0.9875rem;
}

.practice ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  border-top: 1px solid var(--rule-soft);
}

.practice li {
  border-bottom: 1px solid var(--rule-soft);
  padding-block: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
  justify-content: space-between;
}

.practice li b {
  font-weight: 600;
  font-size: 0.9875rem;
}

.status {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

.more {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 0.1rem;
}

/* --- Registered details -------------------------------------------------- */

.details {
  margin: 2.5rem 0 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

@media (min-width: 40rem) {
  .details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
  }
}

.details div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--rule-soft);
}

.details dt {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

.details dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.875rem;
}

.details dd.is-name {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
}

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

.footer {
  background: var(--paper-deep);
  color: #e7e2d6;
  padding-block: 3rem 2.5rem;
}

.footer a {
  color: #e7e2d6;
  text-decoration-color: var(--brand);
}

.footer a:hover,
.footer a:focus-visible {
  color: #fff;
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 46rem) {
  .footer__grid {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }
}

.footer__entity {
  font-family: var(--serif);
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  color: #fff;
}

.footer__meta {
  margin: 0;
  font-size: 0.875rem;
  color: #a9a396;
  line-height: 1.8;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

.footer__nav a {
  text-decoration: none;
}

.footer__legal {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid #3a372e;
  font-size: 0.8125rem;
  color: #a9a396;
}
