/* jiwang.io — carries over the Weebly theme: split panel, Montserrat + Source Sans, brown accent */
:root {
  --text: #333333;
  --heading: #3f3f3f;
  --accent: #8d5024;
  --muted: #999999;
  --rule: #d8d8d8;
  --pane: #222222;
  --title-font: "Montserrat", Arial, sans-serif;
  --body-font: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #fff;
  color: var(--text);
  font: 18px/1.75 var(--body-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color 200ms linear; }
a:hover { text-decoration: underline; }

/* ---------- Left panel: portrait, title, menu ---------- */
.panel-one {
  position: fixed; top: 0; left: 0;
  width: 33.333%; height: 100%;
  overflow: hidden;
  background: #333 url(/images/portrait.jpg) 50% 7.57% / cover no-repeat;
  z-index: 2;
}
.shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(51,51,51,.2) 0%, rgba(51,51,51,0) 100%);
}
.site-title {
  position: absolute; top: 40px; left: 90px; z-index: 4;
  color: #fff;
  font: 700 1.6em/1.25 var(--title-font);
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.site-title:hover { text-decoration: none; }

.hamburger {
  position: absolute; top: 40px; left: 40px; z-index: 5;
  width: 30px; height: 26px; padding: 0;
  background: #fff; border: 0; border-radius: 2px; cursor: pointer;
}
.hamburger span, .hamburger span::before, .hamburger span::after {
  position: absolute; left: 8px; width: 14px; height: 2px; background: var(--text);
  transition: transform 250ms ease, opacity 250ms ease;
}
.hamburger span { top: 12px; }
.hamburger span::before, .hamburger span::after { content: ""; left: 0; }
.hamburger span::before { top: -5px; }
.hamburger span::after { top: 5px; }
.nav-open .hamburger span { background: transparent; }
.nav-open .hamburger span::before { transform: translateY(5px) rotate(45deg); }
.nav-open .hamburger span::after { transform: translateY(-5px) rotate(-45deg); }

.navpane {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center;
  padding: 120px 40px 60px 90px;
  background: rgba(34,34,34,.94);
  opacity: 0; visibility: hidden;
  transition: opacity 350ms ease-in-out, visibility 0s 350ms;
  overflow-y: auto;
}
.nav-open .navpane { opacity: 1; visibility: visible; transition: opacity 350ms ease-in-out; }
.navpane ul { list-style: none; margin: 0; padding: 0; }
.navpane li { margin: 0 0 .9em; }
.navpane a {
  color: rgba(255,255,255,.75);
  font: 500 1.05rem/1.3 var(--title-font);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.navpane a:hover, .navpane a[aria-current] { color: #fff; text-decoration: none; }
.navpane a[aria-current] { border-bottom: 2px solid var(--accent); }

/* ---------- Right panel: content ---------- */
.panel-two { margin-left: 33.333%; min-height: 100vh; }
.container { padding: 40px 80px; }
.footer {
  margin: 50px 80px 0; padding: 40px 0 50px;
  border-top: 1px solid var(--rule);
  color: var(--muted); font: 13px var(--title-font); text-align: right;
}

h1, h2, h3 { font-family: var(--title-font); color: var(--heading); letter-spacing: -0.025em; line-height: 1.25; }
h2 { font-size: 32px; font-weight: 700; margin: 0 0 .7em; }
p { margin: 0 0 2em; }

.button {
  display: inline-block;
  padding: .85em 1.5em .75em;
  border: 2px solid var(--text);
  color: var(--text);
  font: 500 14px/1 var(--title-font);
  text-transform: uppercase;
  transition: background 200ms, color 200ms;
}
.button:hover { background: var(--text); color: #fff; text-decoration: none; }

.social { display: flex; gap: 14px; margin-top: 12px; }
.social a { color: var(--muted); }
.social a:hover { color: var(--text); }
.social svg { width: 20px; height: 20px; display: block; }

/* ---------- Home page ---------- */
.intro { padding-top: 120px; }
.tagline { font: 700 32px/1.3 var(--body-font); color: var(--accent); margin: 0 0 .5em; }
.intro .lead { margin-bottom: 0; }
.intro .actions { margin-top: 40px; }

.news { margin-top: 72px; }
.news ul { list-style: none; margin: 0; padding: 0; }
.news li {
  margin: 0 0 .85em;
  font: 700 18px/1.4 var(--title-font);
  color: var(--heading);
  letter-spacing: -0.01em;
}
.news li em { font-style: italic; }

/* ---------- Content pages ---------- */
.page { padding-top: 60px; }
.page h2 { margin-top: 1.4em; }
.page h2:first-child { margin-top: 0; }
.paragraph { margin: 0 0 1.2em; }
.paragraph ul, .paragraph ol { margin: .4em 0; padding-left: 1.3em; }
figure { margin: 10px 0 1.2em; }
figure.center { text-align: center; }
figure img { display: block; max-width: 100%; height: auto; }
figure.center img { margin: 0 auto; }
figcaption { font-size: 15px; color: var(--muted); margin-top: .4em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }
.cols { display: flex; gap: 32px; margin: 0 0 1em; }
.cols .col { flex: 1 1 0; min-width: 0; }
.video { display: block; width: 100%; max-width: 900px; margin: 10px 0 1.4em; background: #000; }
audio { display: block; width: 100%; max-width: 600px; margin: 10px 0 1.4em; }
.embed { position: relative; max-width: 900px; aspect-ratio: 16 / 9; margin: 10px 0 1.4em; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 24px; margin: 0 0 1.4em; }
.card { display: flex; flex-direction: column; gap: 10px; color: var(--heading); font: 600 15px/1.35 var(--title-font); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f0f0f0; transition: opacity 200ms; }
.card:hover { text-decoration: none; color: var(--accent); }
.card:hover img { opacity: .85; }
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 10px; margin: 10px 0 1.4em; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: opacity 200ms; }
.gallery a:hover img { opacity: .85; }
.gallery.fit img { aspect-ratio: auto; object-fit: contain; }
.page h2.accent { color: var(--accent); }
.page figure img { max-width: min(100%, 720px); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px; margin: 10px 0 2em; }
.product img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; margin-bottom: 12px; }
.product h3 { font-size: 16px; text-transform: uppercase; margin: 0; letter-spacing: 0; }
.product .price { margin: 0 0 .8em; color: var(--muted); }
.page > h2:first-child { font-size: 44px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: .8em; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 32px 24px; margin: 0 0 2.4em; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--heading); }
.person:hover { text-decoration: none; }
.person img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; margin-bottom: 12px; transition: opacity 200ms; }
.person:hover img { opacity: .85; }
.person .name { font: 700 17px/1.3 var(--title-font); }
.person:hover .name { color: var(--accent); }
.person .role { font-size: 15px; color: var(--muted); }
.page h3 { font-size: 18px; margin: 1.2em 0 .5em; }
.members { margin: 0 0 1.4em; padding-left: 1.2em; }
.members li { margin-bottom: .3em; }

.icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0 0 2.4em; max-width: 720px; }
.icon { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--heading); font: 700 16px/1.3 var(--title-font); }
.icon img { width: 130px; height: 130px; object-fit: cover; margin-bottom: 12px; transition: opacity 200ms; }
.icon:hover { text-decoration: none; color: var(--accent); }
.icon:hover img { opacity: .85; }
.publist { padding-left: 1.4em; margin: 0 0 1.4em; }
.publist li { margin-bottom: .9em; line-height: 1.45; }
.publist .cite { font-size: 15px; color: var(--muted); }
.pubs { margin-top: 2.4em; padding-top: 1.6em; border-top: 1px solid var(--rule); }

/* ---------- Tablet & phone: panels stack ---------- */
@media (max-width: 1024px) {
  .panel-one { position: relative; width: 100%; height: 480px; background-position: 50% 13%; }
  .panel-two { margin-left: 0; min-height: 0; }
  .container { padding: 40px; }
  .footer { margin: 40px 40px 0; }
  .navpane { position: fixed; padding: 100px 40px 40px; background: var(--pane); align-items: flex-start; }
  .intro { padding-top: 40px; min-height: 0; }
  .intro .actions { margin-top: 32px; }
  .news { margin-top: 48px; }
}
@media (max-width: 767px) {
  .cols { flex-direction: column; gap: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .icons { gap: 12px; }
  .icon img { width: 90px; height: 90px; }
  .icon { font-size: 13px; }
  .page > h2:first-child { font-size: 32px; }
  .page { padding-top: 24px; }
  body { font-size: 17px; }
  .panel-one { height: 300px; background-position: 50% 18%; }
  .hamburger { top: 20px; left: 20px; }
  .site-title { top: 18px; left: 66px; font-size: 1.35em; }
  .container { padding: 32px 20px; }
  .footer { margin: 32px 20px 0; }
  .tagline { font-size: 26px; }
  h2 { font-size: 28px; }
  .news li { font-size: 16px; }
}
.card img.contain { object-fit: contain; background: #fff; border: 1px solid var(--rule); }
