/* charlesderaweb.com · Rock Garden (karesansui): sand, stone groups, moss accents */
:root {
  --sand: #f5f4f0;
  --sand-2: #efede6;
  --paper: #fbfaf6;
  --ink: #26292b;
  --body: #3c4042;
  --rock: #5d6162;
  --rock-2: #6e7273;
  --line: #dcd8cd;
  --sandstone: #c9c4b4;
  --moss: #4e6b4a;
  --moss-deep: #3d5639;
  --footer-bg: #34383a;
  --footer-ink: #ffffff;
  --footer-soft: #d3d1c8;
  --shell: 1150px;
  --display: 'Seymour One', 'Hind Madurai', system-ui, sans-serif;
  --sans: 'Hind Madurai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rake: repeating-linear-gradient(180deg, rgba(93, 97, 98, .05) 0 1px, transparent 1px 30px);
}
* { box-sizing: border-box; }
html { background: var(--sand); }
body {
  margin: 0;
  background: var(--sand);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 26px; }

h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.45rem, 2.8vw, 2rem);
     line-height: 1.18; letter-spacing: .005em; color: var(--ink); margin: .3rem 0 .65rem; }
h3 { color: var(--ink); }
.eyebrow { font-family: var(--display); font-size: .74rem; letter-spacing: .16em;
           text-transform: uppercase; color: var(--moss); margin: 0; }
.section-sub { color: var(--rock); max-width: 64ch; margin: 0 0 1.5rem; }
.note { color: var(--rock); font-size: .88rem; margin: 1.1rem 0 0; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(245, 244, 240, .94);
               border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between;
                gap: 1rem 1.4rem; padding-top: .8rem; padding-bottom: .8rem; flex-wrap: wrap; }
.wordmark { font-family: var(--display); font-size: 1.02rem; letter-spacing: .01em;
            text-decoration: none; color: var(--ink); white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: .35rem 1.1rem; flex-wrap: wrap; }
.main-nav a { color: var(--rock); text-decoration: none; font-size: .92rem; font-weight: 500;
              padding: .14rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--rock); }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--moss); }

/* buttons (explicit nav overrides keep the CTA readable in both states) */
.btn { display: inline-flex; align-items: center; justify-content: center;
       background: var(--moss); color: #f5f4f0; border: 1px solid var(--moss-deep);
       font-family: var(--sans); font-weight: 600; font-size: .95rem; line-height: 1.2;
       border-radius: 4px; padding: .66rem 1.2rem; text-decoration: none;
       transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.btn:hover { background: var(--moss-deep); color: #ffffff; transform: translateY(-1px);
             box-shadow: 0 6px 18px rgba(61, 86, 57, .28); }
.btn-sm { padding: .42rem .92rem; font-size: .86rem; }
.main-nav a.btn { color: #f5f4f0; background: var(--moss); border: 1px solid var(--moss-deep);
                  border-radius: 4px; font-weight: 600; padding: .42rem .92rem; font-size: .86rem; }
.main-nav a.btn:hover { color: #ffffff; background: var(--moss-deep); border-bottom-color: transparent; }

/* hero */
.hero { padding: 2.5rem 0 2.1rem; background-image: var(--rake); }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 2.6rem; align-items: center; }
.hero-photo { margin: 0; background: var(--paper); border: 1px solid var(--sandstone); padding: 10px; }
.hero-photo img { display: block; width: 100%; }
.sand-band { display: block; color: #b9b3a3; padding-top: 9px; }
.sand-band svg { display: block; width: 100%; height: 38px; }
.hero-kicker { font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
               font-size: .72rem; color: var(--moss); margin: 0 0 .8rem; }
.hero-title { font-family: var(--display); font-weight: 400; color: var(--ink); margin: 0 0 .9rem;
              font-size: clamp(2.35rem, 5.2vw, 4rem); line-height: 1; }
.hero-title span { display: block; }
.hero-tagline { font-size: 1.12rem; font-weight: 500; color: var(--ink); max-width: 34ch; margin: 0 0 .75rem; }
.hero-intro { color: var(--rock); max-width: 50ch; margin: 0 0 1.5rem; }

/* sections */
.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-tight { padding-top: 1.2rem; }
.section-last { padding-bottom: 3.6rem; }

/* 01 partners */
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 250px)); gap: 16px; }
.partner-card { display: flex; align-items: center; justify-content: center; width: 250px; height: 150px;
                background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
                transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.partner-card:hover { border-color: var(--rock); transform: translateY(-2px);
                      box-shadow: 0 10px 24px rgba(38, 41, 43, .12); }
.partner-card img { max-width: 190px; max-height: 68px; width: auto; height: auto; object-fit: contain; }

/* 02 stone groups (quick profile) */
.stones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 2.1rem; }
.stone-card { position: relative; background: var(--paper); border: 1px solid var(--line);
              border-radius: 3px; padding: 1.35rem 1.25rem 1.15rem; }
.stone { display: block; width: 74%; height: 40px; margin: -2.55rem 0 1.05rem; filter: drop-shadow(0 3px 2px rgba(38, 41, 43, .22)); }
.stone-a { clip-path: polygon(0 100%, 3% 74%, 11% 46%, 25% 24%, 43% 12%, 61% 13%, 76% 30%, 88% 60%, 94% 82%, 100% 100%);
           background: linear-gradient(180deg, #737778, #5d6162); }
.stone-b { clip-path: polygon(0 100%, 5% 66%, 16% 38%, 32% 18%, 52% 10%, 70% 20%, 84% 46%, 93% 74%, 100% 100%);
           background: linear-gradient(180deg, #7c8081, #636768); }
.stone-c { clip-path: polygon(0 100%, 2% 78%, 9% 58%, 22% 34%, 39% 16%, 57% 9%, 72% 19%, 85% 42%, 95% 70%, 100% 100%);
           background: linear-gradient(180deg, #6b6f70, #545859); }
.stone-card h3 { font-family: var(--display); font-weight: 400; font-size: .98rem; margin: 0 0 .55rem; }
.kv { margin: 0; }
.kv div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
          padding: .42rem 0; border-bottom: 1px dashed var(--line); }
.kv dt { color: var(--rock); font-size: .85rem; }
.kv dd { margin: 0; font-weight: 600; font-size: .89rem; color: var(--ink); text-align: right; }

/* 03 about */
.about-cols { columns: 2; column-gap: 2.4rem; }
.about-cols p { margin: 0 0 1.05rem; break-inside: avoid; }
.quote-slab { margin: 2rem 0 0; background: var(--paper); border: 1px solid var(--line);
              border-left: 4px solid var(--moss); padding: 1.35rem 1.6rem 1.2rem; border-radius: 3px; }
.quote-slab p { margin: 0; color: var(--ink); font-size: 1.24rem; font-weight: 500; line-height: 1.45; max-width: 62ch; }
.quote-slab .quote-src { margin: .6rem 0 0; color: var(--rock); font-size: .85rem; font-weight: 400; }

/* 04 career timeline: raked ripple line + stone markers */
.timeline { list-style: none; margin: 0; padding: 0 0 0 36px;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='46' viewBox='0 0 14 46'%3E%3Cpath d='M7 0 q5 11.5 0 23 q-5 11.5 0 23' fill='none' stroke='%23c7c2b4' stroke-width='1.5'/%3E%3C/svg%3E") repeat-y left top; }
.timeline li { position: relative; padding: 0 0 1.35rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -36px; top: .34em; width: 15px; height: 12px;
                       background: var(--rock); border-radius: 52% 46% 55% 45% / 48% 56% 44% 52%; }
.timeline li:nth-child(3n)::before { background: var(--moss); }
.timeline .when { display: block; font-weight: 600; font-size: .84rem; letter-spacing: .02em;
                  color: var(--moss); margin-bottom: .14rem; }
.timeline .what { display: block; color: var(--body); font-size: .97rem; }
.career-split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 2.6rem; align-items: start; }
.career-text p { margin: 0 0 1rem; }

/* 05 gallery: sandstone frames */
.gallery { display: grid; grid-template-columns: 1.12fr .82fr 1.12fr; gap: 18px; align-items: start; }
.gallery .gcol { display: flex; flex-direction: column; gap: 18px; }
.photo-frame { margin: 0; background: #f9f7f1; border: 1px solid var(--sandstone); padding: 9px; border-radius: 2px; }
.photo-frame img { display: block; width: 100%; }
.photo-frame.tilt-r img { width: 76%; margin-left: auto; }
.photo-frame.tilt-l img { width: 62%; }

/* 06 social link list */
.social-list { border-top: 1px solid var(--sandstone); margin-top: .4rem; }
.social-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1.2rem;
              padding: .95rem .35rem; border-bottom: 1px solid var(--line); text-decoration: none;
              transition: background .18s ease, padding .18s ease, box-shadow .18s ease; }
.social-row .platform { font-weight: 600; color: var(--ink); font-size: 1rem; }
.social-row .handle { color: var(--rock); font-size: .9rem; }
.social-row:hover { background: var(--paper); box-shadow: inset 3px 0 0 var(--moss); padding-left: .8rem; }
.social-row:hover .platform { color: var(--moss); }

/* footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 2.1rem 0 2.3rem; }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr auto; gap: 1.3rem; align-items: center; }
.brand-name { display: block; font-family: var(--display); font-size: 1rem; margin-bottom: .3rem; color: var(--footer-ink); }
.brand-line { color: var(--footer-soft); font-size: .85rem; }
.language-nav { display: flex; flex-wrap: wrap; gap: .35rem .95rem; justify-content: center; }
.language-nav a { color: var(--footer-soft); text-decoration: none; font-size: .86rem; }
.language-nav a:hover { color: var(--footer-ink); }
.language-nav a[aria-current="page"] { color: var(--footer-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { margin: 0; text-align: right; color: var(--footer-soft); font-size: .84rem; }

/* subpages */
.page-top { padding: 2.5rem 0 1.6rem; border-bottom: 1px solid var(--sandstone);
            margin-bottom: 2.3rem; background-image: var(--rake); }
.page-top h1 { font-family: var(--display); font-weight: 400; color: var(--ink);
               font-size: clamp(1.8rem, 4.4vw, 2.8rem); line-height: 1.02; margin: .45rem 0 .75rem; }
.page-top .lead { color: var(--rock); max-width: 66ch; margin: 0; }
.reading { max-width: 78ch; }
.story { margin: 0 0 2.35rem; }
.story h2 { font-size: clamp(1.22rem, 2.4vw, 1.55rem); }
.story p { margin: 0 0 1rem; }
.dot-list { list-style: none; margin: 0; padding: 0; }
.dot-list li { position: relative; padding: .5rem 0 .5rem 1.2rem; border-bottom: 1px dashed var(--line); }
.dot-list li::before { content: ""; position: absolute; left: 0; top: 1.02em; width: 8px; height: 7px;
                       background: var(--moss); border-radius: 52% 46% 55% 45% / 48% 56% 44% 52%; }
.credit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.9rem; margin-top: 1.2rem; }
.credit-col h3 { font-size: .78rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
                 color: var(--moss); margin: 0 0 .5rem; }
.credit-col ul { list-style: none; margin: 0; padding: 0; }
.credit-col li { font-size: .92rem; padding: .34rem 0; border-bottom: 1px dashed var(--line); color: var(--body); }
.stat-strip { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .3rem; }
.stat { border: 1px solid var(--sandstone); background: var(--paper); border-radius: 3px;
        padding: .85rem 1.15rem; min-width: 150px; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--ink); }
.stat span { color: var(--rock); font-size: .84rem; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq-list details:first-child { border-top: 1px solid var(--sandstone); }
.faq-list summary { font-weight: 600; color: var(--ink); font-size: 1.04rem; line-height: 1.4;
                    cursor: pointer; list-style: none; display: flex; justify-content: space-between;
                    gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--moss); font-weight: 600; }
.faq-list details[open] summary::after { content: "\00d7"; color: var(--rock); }
.faq-list .answer p { margin: .65rem 0 0; max-width: 74ch; }

/* 404 */
.notfound { padding: 3.6rem 0 4.6rem; }
.notfound .stone { width: min(340px, 70%); height: 86px; margin: 0 0 1.4rem; }
.notfound h1 { font-family: var(--display); font-weight: 400; color: var(--ink);
               font-size: clamp(1.8rem, 4.4vw, 2.6rem); margin: 0 0 .8rem; }
.notfound .lead { color: var(--rock); max-width: 56ch; margin: 0 0 1.6rem; }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.7rem; }
  .stones { grid-template-columns: 1fr; gap: 30px; margin-top: 2.4rem; }
  .about-cols { columns: 1; }
  .career-split { grid-template-columns: 1fr; gap: 1.8rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; justify-items: start; }
  .language-nav { justify-content: flex-start; }
  .footer-legal { text-align: left; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .shell { padding: 0 18px; }
  .header-inner { gap: .5rem .9rem; padding-top: .65rem; padding-bottom: .65rem; }
  .main-nav { gap: .3rem .8rem; }
  .main-nav a { font-size: .85rem; }
  .main-nav a.btn { font-size: .8rem; padding: .36rem .7rem; }
  .hero { padding-top: 1.7rem; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-card { width: auto; height: 116px; }
  .partner-card img { max-width: 132px; max-height: 52px; }
  .gallery { grid-template-columns: 1fr; }
  .credit-grid { grid-template-columns: 1fr; }
  .social-row { flex-direction: column; gap: .15rem; }
  .section { padding: 2.3rem 0; }
  .quote-slab p { font-size: 1.12rem; }
}
