:root, [data-theme="light"] {
  --color-base-100: #faf9fc;
  --color-base-200: #f0ebfa;
  --color-base-300: #dcd5e5;
  --color-base-content: #231a2f;
  --color-primary: #5a36bf;
  --color-primary-content: #fff;
  --profile-muted: #5f566b;
  --profile-line: #ded7e8;
  --profile-gutter: clamp(1rem, 4vw, 3rem);
}

body {
  margin: 0;
  background: var(--color-base-100);
  color: var(--color-base-content);
  font: 1rem/1.6 system-ui, sans-serif;
}

.profile-wrap {
  width: min(100%, 84rem);
  margin-inline: auto;
  padding-inline: max(var(--profile-gutter), env(safe-area-inset-left)) max(var(--profile-gutter), env(safe-area-inset-right));
}

.profile-masthead { border-bottom: 1px solid var(--profile-line); }
.profile-masthead .profile-wrap {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.profile-masthead a, .profile-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.profile-brand img { width: 5.5rem; height: auto; }
.profile-about-link { color: var(--profile-muted); font-size: .875rem; font-weight: 600; }

.profile-hero { background: var(--color-base-200); border-bottom: 1px solid var(--profile-line); }
.profile-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.25rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 6.5vw, 6.25rem);
}
.profile-title { grid-column: 1; grid-row: 1; }
.profile-title h1, .profile-section h2 {
  margin: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.profile-title h1 {
  max-width: 20ch;
  font: 400 clamp(2.25rem, 5.8vw, 5.5rem)/1.03 Georgia, serif;
  letter-spacing: -.045em;
}
.profile-tagline { max-width: 56ch; margin: 1rem 0 0; color: var(--profile-muted); overflow-wrap: anywhere; }
.profile-cta { margin-top: 1.5rem; }
.profile-logo {
  display: grid;
  place-items: center;
  width: clamp(8rem, 21vw, 17rem);
  aspect-ratio: 1;
  padding: 20%;
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--profile-line);
  font: 400 clamp(3rem, 9vw, 7rem)/1 Georgia, serif;
}
.profile-logo-dark { background: #231a2f; color: #fff; border-color: transparent; }
.profile-logo img { width: 100%; height: 100%; object-fit: contain; }

.profile-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding-block: clamp(2rem, 5vw, 4.75rem);
}
.profile-information { padding-inline-end: clamp(1.5rem, 5vw, 4rem); }
.profile-contact {
  border-inline-start: 1px solid var(--profile-line);
  padding-inline-start: clamp(1.5rem, 5vw, 4rem);
}
.profile-content-single { grid-template-columns: minmax(0, 36rem); }
.profile-content-single .profile-contact { border: 0; padding: 0; }
.profile-section + .profile-section {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--profile-line);
}
.profile-section h2 { font: 400 clamp(1.6rem, 2.5vw, 2.125rem)/1.2 Georgia, serif; letter-spacing: -.025em; }
.profile-description { max-width: 64ch; margin-top: .875rem; color: var(--profile-muted); overflow-wrap: anywhere; }
.profile-description p { margin: 0; }
.profile-description p + p { margin-top: .75rem; }
.profile-details { list-style: none; margin: .625rem 0 0; padding: 0; }
.profile-details li { display: flex; gap: .75rem; align-items: center; min-height: 2.75rem; overflow-wrap: anywhere; }
.profile-details li a { display: flex; align-items: center; min-height: 2.75rem; min-width: 0; overflow-wrap: anywhere; }
.profile-details svg { color: var(--color-primary); }
.profile-socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .875rem; }

#profile-enquiry { margin-top: 1rem; }
#profile-enquiry, .profile-fields { display: grid; gap: 1rem; }
.profile-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#profile-enquiry label { display: block; min-width: 0; font-size: .875rem; font-weight: 600; }
#profile-enquiry [hidden] { display: none; }
#profile-enquiry .input, #profile-enquiry .textarea {
  width: 100%;
  min-height: 2.875rem;
  margin-top: .375rem;
  border: 1px solid #8d819b;
  border-radius: .375rem;
  background: #fff;
  font-size: 1rem;
  box-shadow: none;
}
#profile-enquiry .textarea { resize: vertical; }
#profile-enquiry .profile-consent { display: flex; gap: .75rem; align-items: center; min-height: 2.75rem; font-weight: 400; }
.profile-consent .checkbox { width: 1.25rem; height: 1.25rem; flex: none; }
#profile-enquiry .btn { justify-self: start; }
#enquiry-feedback { margin: 0; overflow-wrap: anywhere; }
.optional { color: var(--profile-muted); font-weight: 400; }

.profile-footer { border-top: 1px solid var(--profile-line); color: var(--profile-muted); font-size: .875rem; }
.profile-footer .profile-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; padding-block: .875rem; }
.profile-powered, .profile-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .875rem; }
.profile-powered img { width: 4.625rem; height: auto; }
.profile-footer a:hover, .profile-about-link:hover { text-decoration: underline; }

.profile-intro .btn, .profile-socials .btn, #profile-enquiry .btn {
  min-height: 2.875rem;
  padding-inline: 1rem;
  border-radius: .375rem;
  box-shadow: none;
}
.profile-cta:hover, #profile-enquiry .btn-primary:not(:disabled):hover { background: #462499; }
.profile-socials .btn:hover { background: var(--color-base-200); }
main svg { flex: none; width: 1.125rem; height: 1.125rem; }
a, button, input[type="checkbox"] { touch-action: manipulation; }
a:focus-visible, button:focus-visible, #profile-enquiry :is(input, textarea):focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
#about, #contact { scroll-margin-top: 1.25rem; }
.profile-skip { position: absolute; inset: .5rem auto auto .5rem; z-index: 1; clip-path: inset(100%); }
.profile-skip:focus { clip-path: none; }

@media (max-width: 48rem) {
  .profile-content { grid-template-columns: minmax(0, 1fr); }
  .profile-information { padding: 0; }
  .profile-contact { border-inline-start: 0; padding-inline-start: 0; }
  .profile-information + .profile-contact { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--profile-line); }
}
@media (max-width: 35rem) {
  .profile-intro { grid-template-columns: minmax(0, 1fr); }
  .profile-title { grid-column: auto; grid-row: auto; }
  .profile-logo { width: 5rem; padding: 1rem; font-size: 2.5rem; }
  .profile-fields { grid-template-columns: minmax(0, 1fr); }
  #profile-enquiry .btn { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-cta, #profile-enquiry .btn, .profile-socials .btn { transition: none; }
}
