/* chessie-kay.com · Diamond: facets and refraction */
:root {
  --bg: #fbfbfc;
  --ink: #2c3542;
  --deep: #2c3542;
  --muted: #55606e;
  --accent: #9db8cc;
  --accent-ink: #476b8a;
  --line: #e2e7ec;
  --panel: #f3f6f9;
  --btn-ink: #fbfbfc;
  --btn-ink-hover: #1e2733;
  --shell: 1120px;
  --display: 'Ibarra Real Nova', Georgia, 'Times New Roman', serif;
  --body: 'Wix Madefor Display', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--accent-ink); }
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.14; margin: 0 0 .6rem; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.eyebrow {
  display: flex; align-items: center; gap: .5rem;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 .6rem; font-weight: 600;
}
.dia { width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); flex: none; }
.section-sub { color: var(--muted); max-width: 62ch; margin: 0 0 1.6rem; }
.note { color: var(--muted); font-size: .87rem; margin: 1.1rem 0 0; max-width: 78ch; }
.lead { color: var(--muted); font-size: 1.04rem; max-width: 62ch; margin: .2rem 0 1.6rem; }

/* facet band (diamond lattice, decorative) */
.facet-band {
  height: 34px; max-width: 520px; margin: 1.1rem auto 0;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0OCcgaGVpZ2h0PSc0OCcgdmlld0JveD0nMCAwIDQ4IDQ4Jz48ZyBmaWxsPSdub25lJyBzdHJva2U9JyM5ZGI4Y2MnIHN0cm9rZS13aWR0aD0nMSc+PHBhdGggZD0nTTI0IDIgTDQ2IDI0IEwyNCA0NiBMMiAyNCBaJy8+PHBhdGggZD0nTTIgMiBMMjQgMjQgTDIgNDYnLz48cGF0aCBkPSdNNDYgMiBMMjQgMjQgTDQ2IDQ2Jy8+PC9nPjwvc3ZnPg==");
  background-repeat: repeat-x; background-position: center; background-size: 48px 48px;
  opacity: .75;
}

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 251, 252, .94);
               border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between;
                gap: 1.1rem; padding: .72rem 24px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem;
            font-family: var(--display); font-weight: 600; font-size: 1.14rem;
            letter-spacing: .01em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.wm-mark { width: 9px; height: 9px; background: var(--ink); transform: rotate(45deg); }
.main-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: .89rem; padding: .15rem 0;
              border-bottom: 1px solid transparent; }
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--deep); color: var(--btn-ink);
  font-family: var(--body); font-weight: 600; font-size: .93rem;
  padding: .66rem 1.15rem; text-decoration: none; border: 1px solid var(--deep);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--btn-ink-hover); }
.btn-sm { padding: .34rem .82rem; font-size: .82rem; }
.btn-lg { padding: .78rem 1.5rem; font-size: .98rem; }
/* explicit overrides: .main-nav a (0-1-1) would otherwise beat .btn (0-1-0) */
.main-nav a.btn { color: var(--btn-ink); border-bottom: 0; }
.main-nav a.btn:hover { color: var(--btn-ink-hover); border-bottom: 0; }
.hero-actions a.btn { color: var(--btn-ink); }
.hero-actions a.btn:hover { color: var(--btn-ink-hover); }

/* hero */
.hero { padding: 2.1rem 0 2rem; }
.hero-inner { text-align: center; }
.hero-kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
               color: var(--accent-ink); margin: 0 0 .8rem; font-weight: 600; }
.hero-title { font-family: var(--display); font-weight: 600; margin: 0 0 .55rem;
              font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.02; letter-spacing: -.015em; }
.hero-tagline { font-family: var(--display); font-size: 1.14rem; line-height: 1.42;
                color: var(--ink); max-width: 52ch; margin: 0 auto .5rem; }
.hero-intro { color: var(--muted); max-width: 58ch; margin: 0 auto 1.15rem; font-size: .96rem; }
.hero-actions { margin: 0 0 .2rem; }
.hero-photo { position: relative; width: min(430px, 72vw); margin: 1.35rem auto 0; }
.hero-photo img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.hero-photo::before, .hero-photo::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  background: var(--bg); border: 1px solid var(--accent);
}
.hero-photo::before { top: -7px; left: -7px; transform: rotate(45deg); }
.hero-photo::after { bottom: -7px; right: -7px; transform: rotate(45deg); }

/* sections */
.section { padding: 2.6rem 0; }
.section-tight { padding-top: 1.3rem; }
.section-last { padding-bottom: 3.6rem; }

/* partners */
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.partner-card { display: flex; align-items: center; justify-content: center;
                width: 100%; height: 170px; background: #fff;
                border: 1px solid var(--line); text-decoration: none;
                transition: border-color .18s ease, transform .18s ease; }
.partner-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.partner-card img { width: auto; height: auto; max-width: min(250px, 100%); max-height: 150px;
                   object-fit: contain; }

/* facet cards */
.facet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.facet-card { position: relative; background: #fff; border: 1px solid var(--line); padding: 1.3rem 1.2rem 1.2rem; }
.facet-card::before { content: ""; position: absolute; top: -5px; left: -5px; width: 10px; height: 10px;
                      background: var(--accent); transform: rotate(45deg); }
.facet-card h3 { font-family: var(--display); font-size: 1.02rem; }
.facet-dl { margin: 0; }
.facet-dl dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
               margin-top: .7rem; }
.facet-dl dd { margin: .1rem 0 0; font-size: .92rem; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 2.2rem; align-items: start; }
.about-text p { margin: 0 0 1rem; }
.about-photo { margin: 0; position: relative; }
.about-photo img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.about-photo::before { content: ""; position: absolute; top: -6px; right: -6px; width: 12px; height: 12px;
                       background: var(--bg); border: 1px solid var(--accent); transform: rotate(45deg); }
.about-photo blockquote { margin: .9rem 0 0; font-family: var(--display); font-size: 1rem; line-height: 1.5;
                          color: var(--ink); border-left: 2px solid var(--accent); padding-left: .9rem; }

/* career split + timeline */
.career-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2.2rem; align-items: start; }
.career-text p { margin: 0 0 1rem; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item { position: relative; padding: 0 0 1.15rem 2.6rem; }
.tl-item::before { content: ""; position: absolute; left: 6px; top: .42rem; width: 10px; height: 10px;
                   background: var(--accent); transform: rotate(45deg); }
.tl-item::after { content: ""; position: absolute; left: 11px; top: 1.35rem; bottom: -.1rem; width: 1px;
                  background: var(--accent); transform-origin: top center; transform: rotate(7deg); opacity: .8; }
.tl-item:nth-child(even)::after { transform: rotate(-7deg); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child::after { display: none; }
.tl-when { display: block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
           color: var(--accent-ink); font-weight: 600; }
.tl-what { display: block; }

/* gallery 2x2 with diamond corners */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem;
           max-width: 900px; }
.g-cell { position: relative; margin: 0; background: #fff; border: 1px solid var(--line); }
.g-cell img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 22%; }
.g-cell:nth-child(2) img { object-position: center 40%; }
.g-cell::before, .g-cell::after { content: ""; position: absolute; width: 11px; height: 11px;
                                  background: var(--bg); border: 1px solid var(--accent); transform: rotate(45deg); }
.g-cell::before { top: -6px; left: -6px; }
.g-cell::after { bottom: -6px; right: -6px; }

/* social */
.social-list { display: grid; gap: .5rem; max-width: 640px; }
.social-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
              padding: .72rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.social-row .platform { font-family: var(--display); font-size: 1.02rem; color: var(--ink); }
.social-row .handle { color: var(--accent-ink); font-size: .93rem; }
.social-row:hover { border-bottom-color: var(--accent); }
.social-row:hover .handle { color: var(--ink); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--panel); margin-top: 1rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) auto auto; gap: 1.2rem 1.6rem;
               align-items: center; padding: 1.5rem 24px; }
.footer-brand { display: flex; flex-direction: column; gap: .18rem; }
.brand-name { font-family: var(--display); font-size: 1.04rem; }
.brand-line { color: var(--muted); font-size: .84rem; }
.language-nav { display: flex; flex-wrap: wrap; gap: .45rem .85rem; justify-content: center; }
.language-nav a { color: var(--muted); text-decoration: none; font-size: .83rem; white-space: nowrap;
                  border-bottom: 1px solid transparent; }
.language-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.language-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.footer-legal { margin: 0; color: var(--muted); font-size: .82rem; text-align: right; white-space: nowrap; }

/* sub pages */
.page-top { padding: 2.4rem 0 1.4rem; }
.page-top h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.1; margin: 0 0 .5rem; }
.page-top .facet-band { margin: .4rem 0 0; max-width: 380px; }
.reading { max-width: 76ch; padding-bottom: 2.6rem; }
.story { margin: 0 0 2.2rem; }
.story h2 { padding-bottom: .35rem; border-bottom: 1px solid var(--line); }
.story p { margin: 0 0 1rem; }
.award-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.award-card { position: relative; background: #fff; border: 1px solid var(--line); padding: 1.1rem 1.1rem 1rem; }
.award-card::before { content: ""; position: absolute; top: -5px; left: -5px; width: 10px; height: 10px;
                      background: var(--accent); transform: rotate(45deg); }
.award-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.credit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.credit-card { background: #fff; border: 1px solid var(--line); padding: 1.05rem 1.1rem 1rem; }
.credit-card ul { margin: 0; padding: 0; list-style: none; }
.credit-card li { font-size: .9rem; color: var(--ink); padding: .32rem 0 .32rem 1.05rem;
                  position: relative; border-bottom: 1px solid var(--line); }
.credit-card li:last-child { border-bottom: 0; }
.credit-card li::before { content: ""; position: absolute; left: 0; top: .78rem; width: 6px; height: 6px;
                          background: var(--accent); transform: rotate(45deg); }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); padding: 1rem; }
.stat b { display: block; font-family: var(--display); font-size: 1.7rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .84rem; }
.faq-list { display: grid; gap: .7rem; }
.faq-list details { background: #fff; border: 1px solid var(--line); padding: .95rem 1.1rem; }
.faq-list summary { cursor: pointer; font-family: var(--display); font-size: 1.02rem; }
.faq-list summary::marker { color: var(--accent-ink); }
.faq-list .answer p { margin: .75rem 0 0; color: var(--muted); }

@media (max-width: 900px) {
  .facet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .career-split { grid-template-columns: 1fr; gap: 1.5rem; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .language-nav { justify-content: flex-start; }
  .footer-legal { text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-inner { padding: .55rem 18px; }
  .wordmark { font-size: 1rem; }
  .main-nav { gap: .45rem .7rem; }
  .main-nav a { font-size: .79rem; }
  .main-nav a.btn { padding: .28rem .6rem; font-size: .75rem; }
  .facet-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .partner-card { height: 150px; }
  .hero-photo { width: min(300px, 78vw); }
  .tl-item { padding-left: 2.2rem; }
}
