/* Additions to the existing freelance system. Not loaded by concept websites. */
:root {
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --f-mono: "JetBrains Mono", monospace;
}
html {
  scroll-padding-top: 100px;
}
.freelance-site {
  background: var(--paper);
  color: var(--ink);
}
.freelance-site .nav {
  --bg: #fafaf7;
  --bg-soft: #f3f2ec;
  --ink: #111;
  --ink-soft: #3f3f3d;
  --ink-mute: #6c6c68;
  --rule: #e6e4dc;
  --accent: #b08a5b;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
}
.nav a:hover {
  text-decoration: none;
}
.nav .nav__links {
  font-size: inherit;
}
.nav .theme-toggle {
  padding: 0;
}
.nav .nav__mark {
  flex-shrink: 0;
}
.nav .nav__menu {
  max-width: 370px;
}
.freelance-site .section {
  scroll-margin-top: 95px;
}
.freelance-site .prices--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}
.prices--three .price-card {
  position: relative;
  padding: 30px 26px;
}
.prices--three .eyebrow {
  min-height: 42px;
  margin-top: 12px;
  font-size: 0.65rem;
}
.prices--three .price {
  font-size: 3.2rem;
}
.prices--three .price small {
  font-size: 0.75rem;
}
.prices--three .price-card > p:not(.eyebrow) {
  min-height: 47px;
}
.prices--three ul {
  font-size: 0.81rem;
  line-height: 1.65;
  margin-block: 22px 28px;
}
.prices--three li + li {
  margin-top: 10px;
}
.prices--three .button {
  width: 100%;
  padding-inline: 12px;
}
.plan-badge {
  display: inline-block;
  width: fit-content;
  padding: 5px 10px;
  background: var(--accent);
  color: white;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
}
.prices--three .plan-badge {
  position: absolute;
  left: 26px;
  top: -14px;
}
.care-price {
  font-size: 1.12rem;
  margin-top: 9px;
  letter-spacing: -0.025em;
}
.community-note,
.custom-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 45px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  margin-top: 38px;
}
.community-note > div,
.custom-note > div {
  max-width: 740px;
}
.community-note p,
.custom-note p {
  margin-top: 13px;
  font-size: 0.88rem;
  color: var(--muted);
}
.community-note .eyebrow {
  font-size: 0.65rem;
  margin: 0 0 14px;
}
.community-note .fine,
.custom-note .fine {
  font-size: 0.75rem;
}
.community-note > .text-link,
.custom-note > .text-link {
  flex-shrink: 0;
  max-width: 240px;
  line-height: 1.6;
}
.custom-note {
  margin-top: 0;
  padding-bottom: 0;
}
.plain-callout {
  margin-block: 28px;
  border-left: 2px solid var(--accent);
  background: var(--soft);
  padding: 28px;
}
.plain-callout p {
  font-size: 0.95rem;
  margin-top: 15px;
}
.plan-page .plan-badge {
  margin-bottom: 22px;
}
.plan-page .section .plain-callout p {
  margin-top: 15px;
}
.plan-page .section > .text-link {
  display: inline-block;
  margin-top: 24px;
}
.plan-page .section > .care-price {
  margin-bottom: 22px;
}
.plan-page .section > h3 {
  margin-top: 30px;
}
.plan-page .steps {
  gap: 28px;
}
.plan-page .steps p {
  font-size: 0.85rem;
}
.plan-page .price small {
  display: inline-block;
}
html[data-theme="dark"] {
  --paper: #17221c;
  --ink: #ecf0e8;
  --muted: #b4c0b4;
  --line: #3d4c40;
  --soft: #233329;
  --accent: #3c684d;
  color-scheme: dark;
}
html[data-theme="dark"] .nav {
  --bg: #121315;
  --bg-soft: #1a1c20;
  --ink: #efefea;
  --ink-soft: #c8c8c2;
  --ink-mute: #9a9b95;
  --rule: #2a2d33;
  --accent: #cfab74;
}
html[data-theme="dark"] .hero h1 em {
  color: #a6bf99;
}
html[data-theme="dark"] .preview {
  color: #24372e;
}
/* The shareable introduction has a little more movement and visual expression. */
.ref-hero {
  min-height: 740px;
  padding-block: 90px 75px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 55px;
  align-items: center;
}
.ref-intro {
  position: relative;
  z-index: 2;
}
.ref-intro h1 {
  font-size: clamp(3.6rem, 6.2vw, 6rem);
  letter-spacing: -0.065em;
}
.ref-intro h1 em,
.ref-outro h2 em {
  font-family: Fraunces, Georgia, serif;
  font-weight: 400;
  font-style: normal;
  color: #748a68;
}
.ref-intro .lede {
  max-width: 440px;
  font-size: 1.05rem;
  margin-top: 28px;
  line-height: 1.75;
  color: var(--muted);
}
.ref-composition {
  height: 550px;
  position: relative;
  isolation: isolate;
}
.ref-composition:before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid var(--line);
  border-radius: 50%;
  top: 70px;
  left: 30px;
  z-index: -1;
}
.ref-window {
  position: absolute;
  width: 82%;
  background: #f5f3ed;
  color: #303b2e;
  padding: 8px;
  border: 1px solid #d7dcce;
  box-shadow: 0 14px 36px #15271918;
  transform: rotate(var(--tilt));
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s;
}
.ref-window:hover {
  transform: rotate(0deg) translateY(-8px);
  text-decoration: none;
  box-shadow: 0 20px 40px #15271928;
  z-index: 5;
}
.ref-window:focus-visible {
  z-index: 5;
  transform: rotate(0deg);
}
.ref-window-bar {
  padding: 7px 8px 13px;
  display: flex;
  justify-content: space-between;
  font-size: 0.56rem;
  letter-spacing: 0.035em;
}
.ref-window-photo {
  position: relative;
  height: 235px;
  overflow: hidden;
}
.ref-window-photo img {
  width: 100%;
  height: 100%;
  filter: brightness(0.63);
}
.ref-window-photo p {
  position: absolute;
  bottom: 22px;
  left: 22px;
  font-family: Fraunces, Georgia, serif;
  font-size: 2.5rem;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: white;
}
.ref-window--cedar {
  top: 0;
  left: 0;
  --tilt: -5deg;
}
.ref-window--north {
  top: 190px;
  right: -6px;
  width: 69%;
  --tilt: 5deg;
  background: #172126;
  border-color: #3d4a4d;
  color: #e5f1f1;
}
.ref-window--north .ref-window-photo {
  height: 170px;
}
.ref-window--north .ref-window-photo p {
  font-family: Inter, sans-serif;
  font-size: 1.7rem;
}
.ref-window--solace {
  top: 320px;
  left: 10px;
  width: 55%;
  --tilt: -4deg;
  background: #f9edda;
  color: #694731;
}
.ref-window--solace .ref-window-photo {
  height: 145px;
}
.ref-window--solace .ref-window-photo p {
  font-size: 1.8rem;
}
.ref-caption {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.ref-ribbon {
  padding-block: 24px;
  border-block: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.74rem;
  color: var(--muted);
}
.ref-ribbon span:before {
  content: "↗";
  color: var(--accent);
  margin-right: 12px;
}
.ref-person {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 100px;
  align-items: center;
}
.ref-portrait {
  max-width: 380px;
  padding: 15px;
  border: 1px solid var(--line);
}
.ref-portrait img {
  aspect-ratio: 4/5;
  height: auto;
  object-position: center;
  filter: saturate(0.75);
}
.ref-person p {
  color: var(--muted);
  margin-top: 24px;
  max-width: 530px;
}
.ref-person .eyebrow {
  margin-top: 0;
}
.ref-person .text-link {
  display: inline-block;
  margin-top: 26px;
}
.ref-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}
.ref-pricing > a {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ref-pricing > a:hover {
  text-decoration: none;
}
.ref-pricing > a:hover .text-link {
  text-decoration: underline;
}
.ref-pricing > a + a {
  border-left: 1px solid var(--line);
}
.ref-pricing .featured {
  background: var(--soft);
}
.ref-pricing > a > span:first-child {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.64rem;
}
.ref-pricing strong {
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: -0.05em;
}
.ref-pricing small {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 6px;
}
.ref-pricing p {
  font-size: 0.83rem;
  color: var(--muted);
}
.ref-pricing .text-link {
  align-self: start;
  margin-top: auto;
  font-size: 0.78rem;
}
.ref-outro {
  text-align: center;
}
.ref-outro h2 {
  font-size: clamp(2.6rem, 4.8vw, 4.6rem);
}
.ref-outro > p:not(.eyebrow) {
  margin-top: 25px;
  color: var(--muted);
}
.ref-outro .actions {
  justify-content: center;
}
.ref-share {
  margin: 70px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.ref-share > p {
  font-size: 0.85rem;
  color: var(--muted);
}
.ref-share .status {
  flex-basis: 100%;
  overflow-wrap: anywhere;
}
.referred-page .site-footer {
  margin-top: 20px;
}
html[data-theme="dark"] .ref-intro h1 em,
html[data-theme="dark"] .ref-outro h2 em {
  color: #a6bf99;
}
@keyframes ref-arrive {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes ref-deal {
  from {
    opacity: 0;
    transform: translateY(65px) rotate(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--tilt));
  }
}
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="on"] .ref-intro {
    animation: ref-arrive 0.9s var(--ease) both;
  }
  html[data-motion="on"] .ref-window {
    animation: ref-deal 1.1s var(--ease) backwards;
  }
  html[data-motion="on"] .ref-window--north {
    animation-delay: 0.15s;
  }
  html[data-motion="on"] .ref-window--solace {
    animation-delay: 0.3s;
  }
  html[data-motion="on"].has-reveal-js .referred-page .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.8s var(--ease),
      transform 0.8s var(--ease);
  }
  html[data-motion="on"].has-reveal-js .referred-page .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}
html[data-motion="off"],
html[data-motion="reduced"] {
  scroll-behavior: auto;
}
html[data-motion="off"] .ref-window,
html[data-motion="reduced"] .ref-window {
  transition: none;
}
@media (max-width: 1000px) {
  .freelance-site .prices--three {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .prices--three .price-card {
    padding: 30px;
  }
  .prices--three .eyebrow,
  .prices--three .price-card > p:not(.eyebrow) {
    min-height: 0;
  }
  .prices--three .button {
    width: auto;
    padding-inline: 24px;
  }
  .community-note,
  .custom-note {
    gap: 30px;
  }
  .ref-hero {
    gap: 30px;
  }
  .ref-intro h1 {
    font-size: 4rem;
  }
  .ref-composition {
    height: 490px;
  }
  .ref-window-photo {
    height: 190px;
  }
  .ref-window-photo p {
    font-size: 2rem;
  }
  .ref-window--north {
    top: 160px;
  }
  .ref-window--solace {
    top: 290px;
  }
  .ref-composition:before {
    width: 280px;
    height: 280px;
    left: 10px;
  }
  .ref-person {
    gap: 55px;
  }
  .ref-pricing {
    grid-template-columns: 1fr;
  }
  .ref-pricing > a + a {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 820px) {
  .nav:has(.nav__links.is-open) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav .nav__links {
    height: 100dvh;
  }
  .nav .nav__menu {
    max-width: none;
  }
  .nav .nav__brand-wrap {
    position: relative;
    z-index: 70;
  }
  .nav .nav__burger {
    flex-shrink: 0;
  }
  .community-note,
  .custom-note {
    align-items: start;
    flex-direction: column;
    gap: 22px;
  }
  .ref-hero {
    grid-template-columns: 1fr;
    padding-block: 65px 45px;
    min-height: 0;
    gap: 45px;
  }
  .ref-intro h1 {
    font-size: clamp(3.3rem, 9vw, 5.5rem);
  }
  .ref-composition {
    width: min(540px, 100%);
    margin-inline: auto;
    height: 540px;
  }
  .ref-window-photo {
    height: 230px;
  }
  .ref-window--north {
    top: 190px;
  }
  .ref-window--solace {
    top: 315px;
  }
}
@media (max-width: 600px) {
  .plain-callout {
    padding: 22px;
  }
  .plan-page .steps {
    grid-template-columns: 1fr;
  }
  .ref-hero {
    padding-top: 50px;
  }
  .ref-composition {
    height: 465px;
  }
  .ref-window {
    width: 85%;
  }
  .ref-window-photo {
    height: 190px;
  }
  .ref-window--north {
    top: 170px;
    right: 0;
    width: 70%;
  }
  .ref-window--north .ref-window-photo {
    height: 150px;
  }
  .ref-window--north .ref-window-photo p {
    font-size: 1.3rem;
    left: 14px;
  }
  .ref-window--solace {
    top: 285px;
    width: 57%;
  }
  .ref-window--solace .ref-window-photo {
    height: 125px;
  }
  .ref-window--solace .ref-window-photo p {
    font-size: 1.4rem;
    left: 14px;
  }
  .ref-window-bar {
    font-size: 0.46rem;
    padding-inline: 3px;
  }
  .ref-caption {
    font-size: 0.52rem;
    bottom: 0;
  }
  .ref-ribbon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    font-size: 0.65rem;
  }
  .ref-person {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .ref-portrait {
    width: 70%;
  }
  .ref-share {
    margin-top: 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ref-window,
  .nav,
  .nav__links,
  .nav__menu,
  .nav__burger-bar {
    transition: none;
  }
}
