/* Joanne Knights — website styles */
:root {
  --pink: #f9e4ed;
  --blue: #eaf3fa;
  --paper: #fffdfd;
  --ink: #414453;
  --accent: #87465f;
  --muted: #666878;
  --line: #e7dfe6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.9 "Avenir Next",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
img {
  max-width: 100%;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
p {
  margin: 0 0 24px;
}
h1,
h2,
h3 {
  font-weight: 500;
}
h1 {
  font-size: clamp(36px, 4.3vw, 62px);
  line-height: 1.3;
  letter-spacing: -1.5px;
  margin: 0 0 25px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.5;
  margin: 0 0 22px;
}
h3 {
  font-size: 22px;
  line-height: 1.6;
}
header {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 100px;
  padding: 16px 5%;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
  background: var(--paper);
}
.logo img {
  width: 145px;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
nav a {
  font-size: 13px;
  white-space: nowrap;
  padding: 8px 0;
}
nav a[aria-current] {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.languages {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: white;
}
.languages button {
  font-size: 12px;
  padding: 5px 10px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  white-space: nowrap;
}
.languages button[aria-pressed="true"] {
  background: var(--pink);
  color: var(--accent);
}
.menu-toggle {
  display: none;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  padding: 5px 10px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 10px;
  padding: 10px;
  background: white;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
.hero {
  max-width: 1320px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 7%;
  align-items: center;
  padding: 65px 7%;
  background:
    radial-gradient(ellipse at 0% 30%, #fcebf2, transparent 65%),
    radial-gradient(ellipse at 100% 70%, #eaf4fc, transparent 65%);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #776671;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
.subtitle {
  font-size: 20px;
  letter-spacing: 1px;
}
.intro {
  color: var(--muted);
  line-height: 2;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 20px;
  border-radius: 8px;
  border: 1px solid #e6c3d2;
  background: var(--pink);
  color: #744056;
  font-size: 14px;
  max-width: 100%;
}
.button:hover {
  background: #f3d2e1;
}
.button.secondary {
  background: var(--blue);
  border-color: #bed3e3;
  color: #405f78;
}
.button.secondary:hover {
  background: #dcebf6;
}
.text-link {
  display: inline-flex;
  gap: 25px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--accent);
  font-size: 14px;
  color: var(--accent);
}
.small-note {
  font-size: 12px;
  color: #756d78;
  margin-top: 25px;
}
.hero-photo {
  margin: 0;
  padding: 12px 12px 0;
  background: white;
  border-radius: 45% 45% 5px 5px;
  transform: rotate(3deg);
  box-shadow: 0 18px 55px #70616a15;
  position: relative;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 0.94;
  object-fit: cover;
  display: block;
  border-radius: 45% 45% 3px 3px;
}
.hero-photo figcaption {
  padding: 14px;
  text-align: center;
  color: #80546b;
  font:
    italic 17px Georgia,
    serif;
}
.photo-star {
  position: absolute;
  right: -20px;
  top: 12%;
  font-size: 70px;
  line-height: 1;
  color: #a17a8d;
}
.ribbon {
  background: #f9e9f0;
  color: #775569;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 20px;
  font-size: 12px;
  letter-spacing: 2px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9%;
  align-items: center;
  max-width: 1180px;
  padding: 75px 6%;
  margin: auto;
}
.split p {
  color: var(--muted);
}
.section {
  padding: 65px max(6%, calc((100% - 1040px) / 2));
}
.blue {
  background: var(--blue);
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.empty-feature {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid #c8dce9;
  border-bottom: 1px solid #c8dce9;
}
.empty-feature p:last-child {
  margin-bottom: 0;
}
.large-star {
  font-size: 70px;
  color: #947183;
  min-width: 80px;
  text-align: center;
}
.gallery-tease img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  border-radius: 5px 60px 5px 5px;
}
.page-head {
  text-align: center;
  padding: 65px 7% 50px;
  background: linear-gradient(115deg, #fcebf2, #f8f2f8 48%, #eaf4fc);
}
.page-head h1 {
  font-size: clamp(34px, 4vw, 48px);
}
.page-head .intro {
  margin-bottom: 0;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 45px 6%;
  background: #f9eaf1;
  border-top: 1px solid #ecdce5;
  font-size: 12px;
  color: #655363;
}
footer strong {
  letter-spacing: 3px;
  font-weight: 500;
}
footer p {
  margin: 8px 0;
}
footer a {
  text-decoration: underline;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.cards article {
  border-top: 1px solid #b8cedf;
  padding-top: 15px;
}
.cards p {
  font-size: 14px;
}
.brand-panel {
  padding: 25px;
}
.brand-panel img {
  width: 100%;
}
.portrait {
  width: 100%;
  border-radius: 160px 160px 8px 8px;
}
.steps {
  padding-left: 24px;
}
.steps li {
  padding: 12px 0;
}
.gallery-item {
  display: block;
  width: 100%;
  max-width: 520px;
  background: white;
  padding: 12px;
  border: 1px solid #eadde5;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 8px 28px #59465708;
}
.gallery-item img {
  width: 100%;
  display: block;
}
.gallery-item > span {
  display: block;
  padding: 15px 5px 5px;
  font-size: 14px;
  color: #80546b;
}
.gallery-note {
  color: var(--muted);
  margin-top: 30px;
}
.gallery-note p {
  margin-bottom: 12px;
}
dialog {
  border: 0;
  border-radius: 10px;
  padding: 40px 15px 15px;
  max-width: 90vw;
  max-height: 90vh;
  background: var(--paper);
}
dialog::backdrop {
  background: #292434cc;
}
dialog img {
  display: block;
  max-width: 80vw;
  max-height: 75vh;
}
.close {
  position: absolute;
  right: 10px;
  top: 0;
  background: transparent;
  border: 0;
  font-size: 28px;
}
.faq-list {
  max-width: 900px;
  padding: 50px 6% 85px;
  margin: auto;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
summary {
  cursor: pointer;
  font-size: 19px;
}
details p {
  padding-top: 20px;
  color: var(--muted);
}
.contact-pending {
  display: inline-block;
  padding: 8px 14px;
  background: #fff8fb;
  border-radius: 20px;
  color: #79536a;
  font-size: 13px;
}
.contact-cards .button {
  flex-wrap: wrap;
}
.community-story {
  max-width: 880px;
  margin: auto;
  padding: 55px 7% 75px;
}
.story-brand {
  max-width: 390px;
  margin: 0 auto 44px;
}
.story-brand img {
  display: block;
  width: 100%;
}
.community-story p {
  line-height: 2;
  margin-bottom: 24px;
}
.community-story h2 {
  overflow-wrap: anywhere;
}
.story-motto,
.story-lead {
  color: var(--accent);
  font-size: 20px;
}
.story-chapter {
  margin-top: 45px;
  padding: 32px;
  border: 1px solid #e0ebf3;
  border-radius: 16px;
  background: #f3f8fc;
}
.story-chapter:nth-of-type(odd) {
  background: #fff5f8;
  border-color: #f1e2e9;
}
.value-chapter {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid #e6dce5;
}
.value-chapter h3 {
  font-size: 25px;
  margin-bottom: 10px;
}
.values-signoff {
  padding: 30px 22px;
  margin-top: 35px;
  background: linear-gradient(120deg, #f8e6ee, #e5f0f8);
  border-radius: 8px;
}
.values-signoff p:last-child {
  margin-bottom: 0;
}
.story-portrait {
  max-width: 480px;
  display: block;
  margin: 0 auto 38px;
}
@media (max-width: 1150px) {
  header {
    gap: 15px;
    padding-inline: 4%;
  }
  nav {
    gap: 12px;
  }
  nav a {
    font-size: 12px;
  }
  .logo img {
    width: 115px;
  }
}
@media (max-width: 980px) {
  .controls {
    margin-left: auto;
  }
  .menu-toggle {
    display: block;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px 6%;
    background: var(--paper);
    box-shadow: 0 12px 20px #302d3910;
  }
  nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  nav a {
    font-size: 16px;
    padding: 10px;
  }
  .hero {
    gap: 5%;
  }
}
@media (max-width: 650px) {
  header {
    min-height: 82px;
  }
  .logo img {
    width: 120px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 42px 7% 50px;
    gap: 40px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .hero-photo {
    width: 90%;
    max-width: 340px;
    margin: auto;
  }
  .photo-star {
    right: -12px;
    font-size: 55px;
  }
  .ribbon {
    flex-wrap: wrap;
    font-size: 10px;
    gap: 15px;
    letter-spacing: 1px;
  }
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 50px 7%;
  }
  .section {
    padding: 50px 7%;
  }
  .section-title {
    flex-direction: column;
    align-items: start;
  }
  .empty-feature {
    gap: 15px;
  }
  .large-star {
    min-width: 40px;
    font-size: 42px;
  }
  .empty-feature p {
    font-size: 14px;
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }
  .page-head {
    padding: 45px 7%;
  }
  footer {
    flex-direction: column;
    gap: 20px;
  }
  .community-story {
    padding: 40px 7% 55px;
  }
  .story-chapter {
    padding: 25px 20px;
    margin-top: 34px;
  }
  .community-story h2 {
    font-size: 27px;
  }
  .story-brand {
    max-width: 300px;
  }
  .faq-list {
    padding: 30px 7% 60px;
  }
  summary {
    font-size: 17px;
  }
}

/* Balanced homepage title: keep Chinese phrases together. */
.hero .hero-title {
  font-size: clamp(28px, 3.15vw, 44px);
  line-height: 1.5;
  letter-spacing: 0;
  margin-bottom: 28px;
  overflow-wrap: normal;
  word-break: normal;
}
.hero-title-line {
  display: block;
}
.hero-title-phrase {
  display: inline-block;
  white-space: nowrap;
}
@media (max-width: 650px) {
  .hero .hero-title {
    font-size: clamp(26px, 6.6vw, 36px);
    line-height: 1.55;
  }
}

/* Keep the community name balanced on small screens. */
.community-story .community-name {
  font-size: clamp(19px, 4.4vw, 30px);
  line-height: 1.65;
  letter-spacing: 0;
  margin-bottom: 25px;
  overflow-wrap: normal;
  word-break: normal;
}
.community-name span {
  display: inline-block;
  white-space: nowrap;
}
@media (max-width: 650px) {
  .community-story .community-name {
    font-size: clamp(18px, 4.4vw, 23px);
  }
}

/* Center the community heading and keep its complete name on one line. */
.community-story .community-name {
  text-align: center;
  white-space: nowrap;
  font-size: clamp(20px, 3.5vw, 32px);
  line-height: 1.6;
  letter-spacing: -0.35px;
  margin: 0 auto 28px;
}
.story-opening > .story-motto {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 650px) {
  .community-story .community-name {
    font-size: clamp(15px, 4.3vw, 28px);
    letter-spacing: -0.45px;
  }
}
