/* ==========================================================================
   THE CONNECTING CIRCLE — homepage direction
   System: genogram / instrument-diagram grammar (node dots, diagram plates,
   solid-vs-dashed connectors) kept intact, recolored and retypeset onto the
   warm editorial palette established for the FASD 2026 conference page
   (page-konferencja-wrzesien.php): Fraunces display serif + Inter UI sans,
   gold/brown/paper/ink. Scoped entirely under .circle-home so no other
   template is touched.
   ========================================================================== */

.circle-home {
  --gold: #d69c39;
  --gold-dark: #b8801f;
  --brown: #624a2f;
  --brown-deep: #3f2c19;
  --line: rgba(98, 74, 47, .16);

  --paper: #fbf8f1;
  --plate: #ffffff;
  --ink: #2c1f11;

  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.circle-home ::selection {
  background: var(--gold);
  color: var(--ink);
}

.circle-home :focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}

.circle-home .mono,
.circle-home .ch-tag,
.circle-home .ch-eyebrow,
.circle-home .ch-plate__tag {
  font-family: 'Inter', system-ui, sans-serif;
}

.circle-home h1,
.circle-home h2,
.circle-home h3,
.circle-home h4,
.circle-home h5 {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}

.circle-home a {
  color: inherit;
}

/* ---- shared diagram primitives ---------------------------------------- */

.ch-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: .8rem;
}

.ch-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--gold-dark);
  background: var(--paper);
  flex-shrink: 0;
}

.ch-section-head {
  max-width: 720px;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.ch-section-head h2 {
  font-size: 2rem;
  margin: 0;
}

.ch-section-head .ch-rule {
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 1.1rem auto 0;
  opacity: .7;
}

.ch-section {
  padding: 4.5rem 0;
  position: relative;
}

/* wider desktop measure — the hero needed more room, so every .container
   on the page widens together to keep sections aligned */
@media screen and (min-width: 992px) {
  .circle-home .container {
    max-width: 1200px;
  }
}

@media screen and (min-width: 1200px) {
  .circle-home .container {
    max-width: 1400px;
  }
}

@media screen and (min-width: 1400px) {
  .circle-home .container {
    max-width: 1600px;
  }
}

.ch-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3em .8em;
  border: 1px solid rgba(214, 156, 57, .4);
  border-radius: 100px;
  color: var(--brown);
  background: rgba(214, 156, 57, .1);
}

/* diagram-plate: the recurring "instrument card" ------------------------ */

.ch-plate {
  position: relative;
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.5rem 1.9rem 1.9rem;
  height: 100%;
  box-shadow: 0 1px 2px rgba(44, 31, 17, .04);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ch-plate:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -18px rgba(44, 31, 17, .28);
}

.ch-plate__tag {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
  padding: .35em .75em;
  border-radius: 100px;
  background: rgba(214, 156, 57, .14);
  border: 1px solid rgba(214, 156, 57, .34);
  color: var(--brown);
}

.ch-plate__nodes {
  display: flex;
  gap: .3rem;
  margin-bottom: 1.1rem;
}

.ch-plate__nodes span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--gold-dark);
}

.ch-plate h4 {
  font-size: 1.18rem;
  margin-bottom: .7rem;
}

.ch-plate p {
  font-size: .96rem;
  line-height: 1.55;
  margin: 0;
}

/* ---- nav ---------------------------------------------------------------- */

.ch-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(251, 248, 241, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.ch-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
}

.ch-nav__brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.ch-nav__brand img {
  width: 46px;
  height: 46px;
}

.ch-nav__brand span {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
}

.ch-nav__menu {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.ch-nav__menu a {
  text-decoration: none;
  font-size: .92rem;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color .2s ease, color .2s ease;
}

.ch-nav__menu a:hover {
  color: var(--brown-deep);
  border-color: var(--gold-dark);
}

.ch-nav__toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 8px;
  padding: .4rem .6rem;
}

.ch-nav__toggle span,
.ch-nav__toggle span::before,
.ch-nav__toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.ch-nav__toggle span::before { top: -6px; position: absolute; }
.ch-nav__toggle span::after { top: 6px; position: absolute; }

@media screen and (max-width: 860px) {
  .ch-nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .5rem 5%;
  }

  .ch-nav__menu.is-open {
    display: flex;
  }

  .ch-nav__menu a {
    display: block;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .ch-nav__toggle {
    display: block;
  }
}

/* ---- hero ---------------------------------------------------------------- */

.ch-hero {
  padding: 3.2rem 0 4.5rem;
}

.ch-hero__grid {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 3rem;
  align-items: center;
}

.ch-hero__intro h1 {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin-bottom: 1.1rem;
}

.ch-hero__intro p {
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 46ch;
  margin-bottom: 1.6rem;
  color: var(--brown);
}

.ch-cta {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  background: var(--ink);
  color: var(--paper) !important;
  border: 1px solid transparent;
  padding: .85em 1.8em;
  border-radius: 100px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ch-hero__conf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.3rem;
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.ch-hero__conf p {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}

.ch-cta--ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--line);
}

.ch-cta--ghost:hover {
  background: var(--ink);
  color: var(--paper) !important;
}

.ch-cta:hover {
  background: var(--brown-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -10px rgba(44, 31, 17, .5);
}

.ch-hero__photo {
  margin: 0 auto;
  width: min(560px, 90%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ch-hero__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.ch-hero__photo figcaption {
  margin-top: 1rem;
  padding: .4em .9em;
  background: var(--paper);
  border: 1px solid rgba(214, 156, 57, .4);
  color: var(--brown);
  border-radius: 100px;
  font-size: .74rem;
  letter-spacing: .04em;
  white-space: nowrap;
}

@media screen and (max-width: 992px) {
  .ch-hero__grid {
    grid-template-columns: 1fr;
  }

  .ch-hero__photo {
    width: min(440px, 85%);
  }
}

/* ---- pillars strip (compact) --------------------------------------------- */

.ch-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media screen and (max-width: 860px) {
  .ch-pillars {
    grid-template-columns: 1fr;
  }
}

/* pillars strip: icon-roundel treatment (variant C) ----------------------- */

.ch-pillars .ch-plate {
  padding: 1.9rem 1.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ch-pillars .ch-plate:hover {
  border-color: rgba(214, 156, 57, .4);
}

.ch-pillars .ch-plate__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  margin-bottom: 1.1rem;
  flex: none;
}

.ch-pillars .ch-plate__icon svg {
  width: 24px;
  height: 24px;
}

.ch-pillars .ch-plate p {
  margin-bottom: 1.1rem;
  flex: 1;
}

.ch-pillars .ch-plate__tag {
  position: static;
  align-self: flex-end;
  background: none;
  border: none;
  padding: 0;
  opacity: .6;
}

/* ---- conference plate ----------------------------------------------------- */

.ch-conf {
  border: 1px solid var(--brown-deep);
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 2.6rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.ch-conf::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: repeating-linear-gradient(
    to bottom,
    var(--gold) 0 8px,
    transparent 8px 16px
  );
}

.ch-conf__mark {
  width: 54px;
  height: 54px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--gold);
  font-size: .72rem;
}

.ch-conf h4 {
  color: var(--paper);
  margin-bottom: .35rem;
}

.ch-conf p {
  margin: 0 0 .3rem;
  color: var(--paper);
  opacity: .85;
}

.ch-conf .ch-cta {
  background: var(--paper);
  color: var(--ink) !important;
  white-space: nowrap;
}

.ch-conf .ch-cta:hover {
  background: var(--gold);
  color: var(--ink) !important;
}

@media screen and (max-width: 760px) {
  .ch-conf {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 2.2rem 1.6rem;
  }
}

/* ---- liszczowizna radial list --------------------------------------------- */

.ch-legacy {
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1fr;
  gap: 3rem;
  align-items: start;
}

@media screen and (max-width: 900px) {
  .ch-legacy {
    grid-template-columns: 1fr;
  }
}

.ch-legacy__portrait img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.ch-legacy__portrait figcaption {
  margin-top: .7rem;
  font-size: .78rem;
  color: var(--brown);
}

.ch-radial {
  position: relative;
  padding-left: 2.1rem;
}

.ch-radial::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--gold);
  opacity: .6;
}

.ch-radial__item {
  position: relative;
  padding: 0 0 1.7rem;
}

.ch-radial__item:last-child {
  padding-bottom: 0;
}

.ch-radial__item::before {
  content: "";
  position: absolute;
  left: -2.1rem;
  top: .35em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--gold-dark);
  background: var(--paper);
}

.ch-radial__item p {
  margin: 0;
  line-height: 1.55;
}

/* ---- cele (detailed goals) -------------------------------------------------- */

.ch-cele {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

@media screen and (max-width: 900px) {
  .ch-cele {
    grid-template-columns: 1fr;
  }
}

/* cele: icon-roundel treatment (matches .ch-pillars) ----------------------- */

.ch-cele .ch-plate {
  padding: 1.9rem 1.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ch-cele .ch-plate:hover {
  border-color: rgba(214, 156, 57, .4);
}

.ch-cele .ch-plate__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  margin-bottom: 1.1rem;
  flex: none;
}

.ch-cele .ch-plate__icon svg {
  width: 24px;
  height: 24px;
}

.ch-cele .ch-plate p {
  margin-bottom: 1.1rem;
  flex: 1;
}

.ch-cele .ch-plate__tag {
  position: static;
  align-self: flex-end;
  background: none;
  border: none;
  padding: 0;
  opacity: .6;
}

/* ---- contact ------------------------------------------------------------- */

.ch-contact {
  background: var(--brown-deep);
  color: var(--paper);
  border-radius: 14px;
  padding: 3rem;
}

.ch-contact h2 { color: var(--paper); }

.ch-contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.15fr);
  gap: 3rem;
}

@media screen and (max-width: 900px) {
  .ch-contact-grid {
    grid-template-columns: 1fr;
  }
  .ch-contact {
    padding: 2rem 1.4rem;
  }
}

.ch-contact__row {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  margin-bottom: 1.15rem;
}

.ch-contact__row svg {
  flex-shrink: 0;
  margin-top: .2rem;
  color: var(--gold);
}

.ch-contact__row p {
  margin: 0;
  line-height: 1.5;
}

.ch-field {
  margin-bottom: 1.1rem;
}

.ch-field label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .5rem;
  opacity: .8;
}

.ch-field input,
.ch-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  padding: .85em 1em;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.ch-field input::placeholder,
.ch-field textarea::placeholder {
  color: var(--brown);
  opacity: .45;
}

.ch-field input:focus,
.ch-field textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(214, 156, 57, .18);
}

.ch-field textarea {
  resize: vertical;
}

.ch-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .84rem;
  margin: 1.2rem 0 1.5rem;
  opacity: .9;
}

.ch-check a {
  text-decoration: underline;
}

.ch-contact .ch-cta {
  background: var(--gold);
  color: var(--ink) !important;
  width: 100%;
  justify-content: center;
  margin-top: .3rem;
}

.ch-contact .ch-cta:hover {
  background: var(--paper);
  color: var(--ink) !important;
}

/* ---- partners / news ------------------------------------------------------ */

.ch-news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

@media screen and (max-width: 900px) {
  .ch-news {
    grid-template-columns: 1fr;
  }
}

.ch-news__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.ch-news .ch-plate {
  padding-top: 1.6rem;
}

.ch-news h5 {
  font-size: 1.05rem;
  margin: 0 0 .5rem;
}

.ch-news .ch-excerpt {
  font-size: .9rem;
  line-height: 1.5;
  margin-bottom: .8rem;
}

.ch-news .ch-more {
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--brown-deep);
}

.ch-partners {
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2.2rem;
}
