/* claradeeweb.com · Developer (显影) : dark fluid palette, wave motif */
:root {
  --bg: #1c1614;
  --panel: #241d1a;
  --panel-2: #2b2320;
  --ink: #e4ded6;
  --soft: #cfc7bb;
  --muted: #b3a99c;
  --accent: #4a6a8a;
  --accent-2: #6f8ba6;
  --accent-text: #a9bfd2;
  --line: #3b322c;
  --line-soft: #322a25;
  --btn-ink: #f6f3ee;
  --btn-ink-hover: #17110f;
  --shell: 1160px;
  --display: 'Fanwood Text', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --body: 'Amiko', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wave-rule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='12' viewBox='0 0 60 12'%3E%3Cpath d='M0 6 Q15 0 30 6 T60 6' fill='none' stroke='%234a6a8a' stroke-width='1.4'/%3E%3C/svg%3E");
  --wave-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='26' viewBox='0 0 12 26'%3E%3Cpath d='M6 0 Q12 6.5 6 13 T6 26' fill='none' stroke='%234a6a8a' stroke-width='1.5'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  background-image: linear-gradient(180deg, #241d19 0%, #1c1614 420px);
  color: var(--soft);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--accent-text); }
.shell { width: min(var(--shell), calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 40; background: var(--panel-2); color: var(--ink); padding: 8px 14px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line-soft); background: rgba(28, 22, 20, .94); position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: .85rem 0; flex-wrap: wrap; }
.wordmark { font-family: var(--display); font-size: 1.42rem; letter-spacing: .06em; color: var(--ink); text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: 1.05rem; flex-wrap: wrap; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: .89rem; letter-spacing: .01em;
  border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color .18s ease, border-color .18s ease; }
.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(--accent-2); }
.btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--accent); color: var(--btn-ink);
  text-decoration: none; border: 1px solid var(--accent); padding: .62rem 1.25rem; font-size: .95rem; border-radius: 2px;
  transition: background .18s ease, color .18s ease, border-color .18s ease; }
.btn:hover { background: var(--accent-text); border-color: var(--accent-text); color: var(--btn-ink-hover); }
.btn-sm { padding: .42rem .95rem; font-size: .84rem; }
/* explicit button overrides: keep the nav rules above from swallowing the button colour */
.main-nav a.btn { color: var(--btn-ink); border-bottom: 1px solid var(--accent); }
.main-nav a.btn:hover { color: var(--btn-ink-hover); border-bottom-color: var(--accent-text); }
.main-nav a.btn:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* ---------- hero ---------- */
.hero { padding: 2.6rem 0 2.2rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 3rem; align-items: center; }
.hero-plate { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.hero-plate img { display: block; width: 100%; height: auto; }
.hero-fluid { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 54px; display: block; }
.hero-fluid path { fill: var(--bg); }
.hero-kicker { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 .7rem; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: 3.5rem; line-height: 1.04; color: var(--ink); margin: 0 0 .8rem; }
.hero-intro { font-size: 1.06rem; margin: 0 0 1.1rem; }
.hero-meta { font-size: .9rem; color: var(--muted); margin: 0 0 1.5rem; padding-top: .9rem; border-top: 1px solid var(--line-soft); }

/* ---------- sections ---------- */
.section { padding: 3.1rem 0; border-top: 1px solid var(--line-soft); }
.section-tight { padding-top: 2.4rem; }
.section-head { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 1.4rem; align-items: start; margin-bottom: 1.7rem; }
.sec-num { font-family: var(--display); font-size: 2.5rem; line-height: 1; color: var(--accent-2); letter-spacing: .04em; }
.sec-num::after { content: ""; display: block; width: 60px; height: 12px; margin-top: .5rem; background: var(--wave-rule) repeat-x; }
.sec-eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 .35rem; }
h2 { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.16; color: var(--ink); margin: 0 0 .55rem; }
h3 { font-family: var(--display); font-weight: 400; font-size: 1.32rem; color: var(--ink); margin: 1.6rem 0 .5rem; }
.section-sub { margin: 0; max-width: 62ch; color: var(--soft); }
.note { font-size: .88rem; color: var(--muted); }

/* ---------- partners ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; justify-items: center; }
.partner-card { display: flex; align-items: center; justify-content: center; width: 250px; height: 150px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 2px;
  transition: border-color .2s ease, transform .2s ease; }
.partner-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.partner-card img { max-width: 188px; max-height: 66px; width: auto; height: auto; object-fit: contain; }

/* ---------- quick profile: developer trays ---------- */
.tray-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tray { position: relative; background: var(--panel); border: 1px solid var(--line); padding: 1.15rem 1.15rem 1.5rem; overflow: hidden; }
.tray .k { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .45rem; }
.tray .v { display: block; font-family: var(--display); font-size: 1.16rem; line-height: 1.35; color: var(--ink); }
.tray::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--wave-rule) repeat-x; opacity: .8; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr); gap: 2.4rem; align-items: start; }
.about-grid p { margin: 0 0 1rem; }
.quote-plate { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 1.3rem 1.4rem 1.2rem; }
.quote-plate blockquote { margin: 0; font-family: var(--display); font-size: 1.34rem; line-height: 1.4; color: var(--ink); }
.quote-plate .src { display: block; margin-top: .8rem; font-size: .84rem; color: var(--muted); }

/* ---------- career summary + timeline ---------- */
.career-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 2.6rem; align-items: start; }
.career-split p { margin: 0 0 1rem; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.5rem; }
.timeline li { position: relative; padding: 0 0 1.45rem; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: -1.5rem; margin-left: -6px; top: 0; bottom: 0;
  width: 12px; background: var(--wave-line) repeat-y left top; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -1.5rem; top: .52em; width: 9px; height: 9px; margin-left: -4px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline .when { display: block; font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.timeline .what { display: block; font-size: .98rem; }

/* ---------- gallery ---------- */
.gallery-banner { margin: 0 0 14px; border: 1px solid var(--line); background: var(--panel); padding: 10px; }
.gallery-banner img { display: block; width: 100%; height: auto; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gallery-grid figure { margin: 0; border: 1px solid var(--line); background: var(--panel); padding: 10px; }
.gallery-grid img { display: block; width: 100%; height: auto; }
.g-16 img { aspect-ratio: 16 / 10; object-fit: cover; }
.g-plate { display: flex; align-items: center; justify-content: center; background: var(--panel-2); padding: 22px; }
.g-plate img { width: 100%; max-width: 460px; aspect-ratio: 1 / 1; border: 1px solid var(--line); }
/* the 480x480 source behind gallery-3 is never shown wider than its own size */
.g-small img { max-width: 460px; }

/* ---------- social ---------- */
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 12px; }
.social-item { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  background: var(--panel); border: 1px solid var(--line); padding: .85rem 1.05rem; text-decoration: none;
  transition: border-color .18s ease, background .18s ease; }
.social-item .platform { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.social-item .handle { font-family: var(--display); font-size: 1.05rem; color: var(--ink); }
.social-item:hover { border-color: var(--accent); background: var(--panel-2); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); margin-top: 1rem; padding: 1.9rem 0 2.4rem; position: relative; }
.site-footer::before { content: ""; position: absolute; top: -7px; left: 0; right: 0; height: 12px; background: var(--wave-rule) repeat-x; opacity: .55; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1.2rem; align-items: center; }
.footer-brand { display: flex; flex-direction: column; gap: .2rem; }
.footer-brand .brand-name { font-family: var(--display); font-size: 1.14rem; color: var(--ink); letter-spacing: .05em; }
.footer-brand .brand-line { font-size: .86rem; color: var(--muted); }
.language-nav { display: flex; flex-wrap: wrap; gap: .35rem .95rem; justify-content: center; justify-self: center; }
.language-nav a { color: var(--muted); text-decoration: none; font-size: .87rem; }
.language-nav a:hover { color: var(--ink); }
.language-nav a[aria-current="page"] { color: var(--accent-text); }
.footer-legal { margin: 0; font-size: .85rem; color: var(--muted); text-align: right; justify-self: end; }

/* ---------- sub pages ---------- */
.page-top { padding: 2.6rem 0 1.4rem; }
.page-top .sec-eyebrow { margin-bottom: .5rem; }
.page-top h1 { font-family: var(--display); font-weight: 400; font-size: 2.9rem; line-height: 1.08; color: var(--ink); margin: 0 0 .8rem; }
.page-top .lead { font-size: 1.1rem; max-width: 66ch; margin: 0; }
.page-top .wave-rule { width: 120px; height: 12px; margin-top: 1.2rem; background: var(--wave-rule) repeat-x; }
.sub-layout { display: grid; grid-template-columns: minmax(0, 1fr) 12px; gap: 48px; align-items: start; }
.reading { max-width: 880px; padding: 0 0 3rem; }
.fluid-rail { align-self: stretch; justify-self: end; width: 12px; min-height: 240px;
  background: var(--wave-line) repeat-y right top; opacity: .55; }
@media (max-width: 980px) { .sub-layout { grid-template-columns: minmax(0, 1fr); } .fluid-rail { display: none; } }
.story { background: var(--panel); border: 1px solid var(--line); padding: 1.6rem 1.8rem 1.3rem; margin-bottom: 16px; }
.story h2 { font-size: 1.6rem; }
.story p { margin: 0 0 1rem; }
.story p:last-child { margin-bottom: .3rem; }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 22px; }
.fact-list li { display: flex; flex-direction: column; gap: .1rem; border-bottom: 1px solid var(--line-soft); padding: .55rem 0; }
.fact-list .k { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.fact-list .v { color: var(--ink); font-size: .98rem; }

/* catalogue table */
.catalogue { width: 100%; border-collapse: collapse; }
.catalogue th, .catalogue td { text-align: left; padding: .8rem .9rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.catalogue thead th { background: var(--panel-2); color: var(--accent-text); font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 400; border-bottom: 1px solid var(--line); }
.catalogue tbody tr:last-child td { border-bottom: 0; }
.catalogue .c-name { font-family: var(--display); font-size: 1.1rem; color: var(--ink); }
.catalogue .c-count { color: var(--ink); font-size: .96rem; white-space: nowrap; }
.catalogue .c-note { font-size: .88rem; color: var(--muted); }
.group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.group-grid h3 { margin-top: 0; font-size: 1.16rem; }
.dot-list { list-style: none; margin: 0; padding: 0; }
.dot-list li { padding: .34rem 0 .34rem .95rem; position: relative; font-size: .96rem; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .95em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* faq */
.faq-list details { background: var(--panel); border: 1px solid var(--line); margin-bottom: 10px; }
.faq-list summary { cursor: pointer; list-style: none; padding: 1rem 3.1rem 1rem 1.2rem; position: relative;
  font-family: var(--display); font-size: 1.14rem; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 1.15rem; top: .95rem; color: var(--accent-text);
  font-family: var(--body); font-size: 1.2rem; transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { padding: 0 1.2rem 1.1rem; border-top: 1px solid var(--line-soft); }
.faq-list .answer p { margin: 0; padding-top: .9rem; }

/* 404 */
.error-wrap { min-height: 58vh; display: flex; align-items: center; justify-content: center; padding-top: 2.5rem; padding-bottom: 3rem; }
.error-plate { background: var(--panel); border: 1px solid var(--line); padding: 2.8rem 2.4rem; width: min(620px, 100%); }
.error-plate .code { font-family: var(--display); font-size: 4.4rem; line-height: 1; color: var(--accent-2); margin: 0 0 .6rem; }
.error-plate .wave-rule { width: 160px; height: 12px; background: var(--wave-rule) repeat-x; margin: 0 0 1.3rem; }
.error-plate h1 { font-size: 1.9rem; }
.error-plate p { margin: 0 0 1.3rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero h1 { font-size: 2.9rem; }
  .about-grid, .career-split { grid-template-columns: 1fr; gap: 1.6rem; }
  .tray-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; justify-items: start; gap: .9rem; }
  .language-nav { justify-content: flex-start; }
  .footer-legal { text-align: left; }
  .section-head { grid-template-columns: 60px minmax(0, 1fr); gap: 1rem; }
  .sec-num { font-size: 2rem; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 32px); }
  body { font-size: 16px; }
  .header-inner { gap: .55rem; padding: .7rem 0; }
  .wordmark { flex: 1 1 100%; }
  .main-nav { gap: .5rem .85rem; }
  .main-nav a { font-size: .84rem; }
  .hero { padding: 1.8rem 0 1.4rem; }
  .hero h1 { font-size: 2.3rem; }
  .hero-fluid { height: 34px; }
  .section { padding: 2.2rem 0; }
  .section-head { grid-template-columns: 1fr; gap: .5rem; }
  .sec-num { font-size: 1.7rem; }
  .sec-num::after { width: 46px; height: 10px; }
  h2 { font-size: 1.62rem; }
  .tray-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .partner-card { width: 100%; max-width: 250px; height: 132px; }
  .partner-card img { max-width: 150px; max-height: 56px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .g-plate { padding: 14px; }
  .g-plate img { max-width: 330px; }
  .page-top h1 { font-size: 2.2rem; }
  .page-top .lead { font-size: 1.02rem; }
  .story { padding: 1.25rem 1.15rem 1rem; }
  .catalogue thead { display: none; }
  .catalogue tbody tr { display: block; border-bottom: 1px solid var(--line-soft); padding: .7rem 0; }
  .catalogue tbody tr:last-child { border-bottom: 0; }
  .catalogue td { display: block; border-bottom: 0; padding: .12rem 0; }
  .catalogue .c-count { color: var(--accent-text); }
  .social-item { flex-direction: column; align-items: flex-start; gap: .15rem; }
  .error-plate { padding: 1.8rem 1.3rem; }
  .error-plate .code { font-size: 3.2rem; }
}
