:root {
  --ink: #050505;
  --paper: #ffffff;
  --wash: #f4f5f6;
  --quiet: #6e747c;
  --line: #0a0a0a;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Arial, Helvetica, sans-serif;
  --frame: 1180px;
  --section-heading-size: 1.2rem;
  --body-copy-size: 1rem;
  --body-copy-line-height: 1.5;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.36;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
blockquote,
figure {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.container,
.site-frame {
  width: min(100%, var(--frame));
  margin-inline: auto;
}

.top-bar {
  border-top: 2px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.top-bar-inner {
  width: 100%;
  margin-inline: 0;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 48px 0 0;
}

.wordmark {
  flex: 0 0 auto;
  display: inline-grid;
  gap: 5px;
  font-family: var(--serif);
  white-space: nowrap;
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark-title {
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
}

.wordmark-small {
  font-size: 0.68em;
}

.wordmark-subtitle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.wordmark-word {
  display: flex;
  justify-content: space-between;
}

.wordmark-word-chartered {
  width: 43%;
}

.wordmark-word-accountants {
  width: 53%;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  display: block;
}

.nav-list li::after {
  content: none !important;
}

.nav-list a {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-frame {
  border-inline: 1px solid var(--line);
}

.statement-panel {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 38px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.section-label h2,
.section-label h3,
.section-heading-bar h2,
.contact-info span,
.blog-meta {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.statement-panel h1 {
  max-width: none;
  margin: 0;
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

@media (min-width: 1100px) {
  .statement-panel h1 {
    white-space: nowrap;
  }
}

.editorial-section {
  display: grid;
  grid-template-columns: 25% 75%;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.section-label {
  padding: 50px 48px;
  background: var(--wash);
  border-right: 1px solid var(--line);
}

.section-label h2,
.section-label h3,
.section-heading-bar h2 {
  margin: 0;
  color: #555d66;
  font-size: var(--section-heading-size);
  line-height: 1.5;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.about-section {
  scroll-margin-top: 20px;
}

.about-section > .section-heading-bar {
  border-bottom: 1px solid var(--line);
}

.section-content {
  min-width: 0;
}

.about-copy {
  padding: 50px 52px 54px;
}

.about-copy p {
  max-width: 780px;
  margin-bottom: 28px;
  text-align: justify;
}

.about-copy p,
.service-details p,
.insights-placeholder p,
.contact-info a {
  font-family: var(--serif);
  font-size: var(--body-copy-size);
  line-height: var(--body-copy-line-height);
}

.text-action {
  display: inline-block;
  margin-top: 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.services-section {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.section-heading-bar {
  min-height: 112px;
  display: flex;
  align-items: center;
  padding: 30px 48px;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

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

.service-card {
  min-width: 0;
  min-height: 225px;
  padding: 42px 48px 36px;
  border-bottom: 1px solid var(--line);
}

.service-card:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.service-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.service-card h3 {
  margin: 0 0 23px;
}

.service-toggle {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.08;
  text-align: left;
  cursor: pointer;
}

.service-toggle:hover > span:first-child {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.service-indicator {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
}

.service-summary {
  max-width: 500px;
  margin: 0 0 18px;
  color: #252a30;
  font-family: var(--sans);
  font-size: 0.67rem;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-details {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.service-details p {
  margin: 0;
  font-family: var(--sans);
}

.insights-placeholder {
  display: flex;
  align-items: center;
  min-height: 150px;
  padding: 40px 48px;
}

.blogs-section {
  grid-template-columns: minmax(340px, 25%) 1fr;
}

.insights-placeholder p {
  margin: 0;
}

.contact-content {
  display: block;
}

.contact-section {
  display: block;
}

.contact-section > .section-label {
  padding: 30px 48px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.contact-info {
  margin: 0;
  padding: 48px;
  max-width: 880px;
  font-style: normal;
}

.contact-info p {
  margin-bottom: 28px;
}

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

.contact-info span {
  display: block;
  margin-bottom: 7px;
  color: #707880;
}

.address-link:hover,
.address-link:focus {
  background: var(--wash);
}

.site-footer {
  border-bottom: 2px solid var(--line);
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 48px;
  border-inline: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li::after {
  content: none !important;
}

.divider {
  display: none;
}

/* Blog post pages */
.blog-post-page .page-layout {
  width: min(100%, var(--frame));
  min-height: calc(100vh - 146px);
  margin-inline: auto;
  padding: 56px max(32px, 12vw) 80px;
  border-inline: 1px solid var(--line);
}

.blog-post-page .profile-sidebar {
  display: none;
}

.blog-post-page .main-content {
  max-width: 800px;
  margin-inline: auto;
}

.blog-back {
  margin-bottom: 52px;
  font-family: var(--sans);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.blog-post h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.02;
}

.blog-meta {
  margin-bottom: 48px;
  color: #737b84;
}

.blog-post p {
  margin-bottom: 24px;
  font-size: 1.1rem;
  line-height: 1.55;
}

.blog-post h2 {
  margin: 48px 0 16px;
  font-size: 1.55rem;
  font-weight: 400;
}

.blog-post-page .site-footer .container {
  border-inline: 0;
}

@media (max-width: 820px) {
  .top-bar-inner {
    min-height: 78px;
    flex-direction: row;
    align-items: center;
    padding: 12px 24px 12px 0;
    gap: 20px;
  }

  .nav-list {
    justify-content: flex-end;
    gap: 17px;
  }

  .nav-list a {
    font-size: 0.53rem;
  }

  .statement-panel {
    min-height: 92px;
    padding: 24px 30px;
  }

  .statement-panel h1 {
    font-size: 0.88rem;
  }

  .editorial-section {
    grid-template-columns: 1fr;
  }

  .section-label {
    padding: 28px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .about-copy {
    padding: 34px 24px 40px;
  }

  .about-copy p {
    text-align: left;
  }

  .section-heading-bar {
    min-height: 86px;
    padding: 26px 24px;
  }

  .service-card {
    padding: 32px 26px 30px;
  }

  .insights-placeholder {
    min-height: 120px;
    padding: 34px 24px;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-section > .section-label {
    padding: 28px 24px;
  }

  .contact-info {
    padding: 34px 24px;
  }

  .footer-inner {
    padding: 0 24px;
  }

  .blog-post-page .page-layout {
    padding: 38px 24px 60px;
  }
}

@media (max-width: 560px) {
  .top-bar-inner {
    flex-wrap: wrap;
    padding: 12px 16px 12px 0;
    gap: 12px;
  }

  .wordmark {
    gap: 4px;
  }

  .wordmark-title {
    font-size: 1.575rem;
  }

  .wordmark-subtitle {
    font-size: 0.54rem;
  }

  .site-nav {
    flex: 1 1 auto;
    min-width: 180px;
  }

  .nav-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
    gap: 8px;
  }

  .nav-list a {
    font-size: 0.47rem;
    letter-spacing: 0.11em;
  }

  .statement-panel {
    min-height: 98px;
    padding: 22px;
  }

  .statement-panel h1 {
    font-size: 0.84rem;
    line-height: 1.35;
  }

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

  .service-card,
  .service-card:nth-child(odd),
  .service-card:nth-last-child(-n + 2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .service-toggle {
    font-size: 1.5rem;
  }

  .footer-inner {
    min-height: 88px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
