@import url("../design-components.css");

:root {
  --paper: #f8f8f4;
  --ink: #252524;
  --secondary: #60605b;
  --line: #d9d9d1;
  --gutter: clamp(20px, 7.35vw, 144px);
  --content: 1230px;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* {box-sizing:border-box}
html {scroll-behavior:smooth; scroll-padding-top:94px}
body {margin:0; font-size:16px; line-height:1.75}
h1,h2,h3,p,ol,dl,dd,figure,fieldset {margin:0}
h1,h2,h3 {font-weight:600; text-wrap:balance}
a {color:inherit; text-decoration:none}
button,input,summary {font:inherit}
button,summary,.modes label {cursor:pointer}
img {display:block; max-width:100%}
::selection {background:#d0e5e0; color:#151c1a}
:focus-visible,.modes label:has(:focus-visible) {outline:2px solid var(--jtl-catalog-focus); outline-offset:3px}
[hidden] {display:none!important}
.sr,.modes input,legend {
  position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
.skip {position:fixed; z-index:20; top:9px; left:10px; background:white; color:#222; border-radius:var(--jtl-radius-control); padding:9px 14px; transform:translateY(-160%)}
.skip:focus {transform:none}

.site-header {
  position:absolute; z-index:8; inset:4px 4px auto; display:grid;
  grid-template-columns:1fr auto 1fr; align-items:center; gap:12px;
  min-height:82px; padding:10px clamp(18px,2.3vw,44px); color:white;
}
html:has(#topic-search:not([hidden])) .site-header {position:fixed}
.wordmark {display:inline-flex; align-items:center; gap:var(--jtl-brand-gap); width:max-content; line-height:1}
.wordmark svg {width:var(--jtl-brand-mark-width); height:var(--jtl-brand-mark-height); flex:none}
.wordmark > span {display:grid; justify-items:center; gap:var(--jtl-brand-line-gap)}
.wordmark b {display:block; font-size:var(--jtl-brand-title); letter-spacing:-.045em; font-weight:740}
.wordmark small {display:block; font-size:var(--jtl-brand-caption); font-weight:560; letter-spacing:.12em; padding-left:.12em}
.main-nav {display:flex; align-items:center; gap:2px; padding:3px 9px; border-radius:var(--jtl-radius-pill); background:#20201fe3; backdrop-filter:blur(20px)}
.main-nav a,.mobile-nav a,.header-action {display:flex; align-items:center; min-height:44px; font-size:14px; font-weight:550}
.main-nav a {border-radius:var(--jtl-radius-pill); padding:0 clamp(10px,1.3vw,22px); color:#eee}
.main-nav a:hover {background:#ffffff15; color:#fff}
.header-action {justify-self:end; width:max-content; gap:14px; padding:0 19px; border-radius:var(--jtl-radius-pill); background:#fff; color:#252524}
.header-action:hover {background:#e8e8e1}
.site-header.scrolled {color:var(--ink); background:#f8f8f4f5; border-bottom:1px solid var(--line); inset:0 0 auto}
.site-header.scrolled .main-nav {background:#e9e9e3}
.site-header.scrolled .main-nav a {color:#363633}
.site-header.scrolled .main-nav a:hover {background:#dadad4}
.site-header.scrolled .header-action {color:#fff; background:#252524}
.mobile-nav {display:none}

.hero {
  isolation:isolate; position:relative; display:grid; align-items:center;
  min-height:clamp(665px,94svh,920px); margin:4px; padding:102px 0 132px;
  border-radius:var(--jtl-radius-hero); background:#171918; color:#fff;
}
.hero-photo,.hero-shade {position:absolute; right:0; top:0; height:100%; border-radius:inherit; pointer-events:none}
.hero-photo {z-index:-2; width:68%; object-fit:cover; object-position:50% 29%}
.hero-shade {
  z-index:-1; width:100%;
  background:linear-gradient(90deg,#151716 0%,#151716 30%,#151716e6 41%,#15171661 62%,#15171600 84%),
             linear-gradient(0deg,#141615e8 0%,#14161544 22%,transparent 58%,#15171655 100%);
}
.hero-core {
  width:min(750px,62%); margin-left:max(5.2%,calc((100% - 1350px)/2));
  text-align:center; padding-top:32px;
}
.hero h1 {font-size:clamp(39px,4.75vw,81px); line-height:1.12; font-weight:650; letter-spacing:.005em}
.hero h1 span {display:block}
.hero-lede {max-width:32em; margin:20px auto 0; color:#efefeb; font-size:clamp(15px,1.15vw,18px); line-height:1.7; text-wrap:pretty}
.finder {position:relative; margin:34px auto 0; width:min(610px,96%); text-align:left}
#topic-search {
  position:relative; display:flex; align-items:center; gap:12px; padding:9px 10px 9px 19px; min-height:62px;
  background:white; color:var(--ink); border-radius:var(--jtl-radius-card);
}
#topic-search:focus-within {outline:2px solid #b2a3e6; outline-offset:3px}
.search-icon {width:20px; height:20px; flex:none; color:#6c6c65}
#topic-q {flex:1; min-width:0; width:100%; height:42px; padding:0; border:0; outline:0; background:transparent; color:#242422; font-size:16px}
#topic-q::placeholder {color:#686862; opacity:1}
#topic-search button {display:grid; place-items:center; flex:none; width:44px; height:44px; border:0; border-radius:var(--jtl-radius-control); color:white; background:#292a27}
#topic-search button:hover {background:#484944}
#topic-search button svg {width:20px; height:20px}
#topic-results {position:absolute; top:calc(100% + 6px); z-index:4; width:100%; max-height:230px; overflow:auto; padding:6px; border-radius:var(--jtl-radius-card); background:#fff; color:var(--ink); box-shadow:0 8px 24px #0003}
#topic-results a {display:block; min-height:44px; padding:9px 12px; border-radius:var(--jtl-radius-control)}
#topic-results a:hover,#topic-results a:focus-visible {background:#efefea}
.search-status {font-size:13px; color:#fff; line-height:1.5}
.search-status:not(:empty) {margin-top:8px}
#topic-results:not([hidden])+.search-status {position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%)}
.hero-links {display:flex; flex-wrap:wrap; justify-content:center; gap:4px 18px; margin-top:11px}
.hero-links a {display:inline-flex; align-items:center; gap:7px; min-height:44px; color:#f4f4ed; font-size:14px}
.hero-links a:hover,.hero-links a:focus-visible {color:#fff; background:#ffffff16; border-radius:var(--jtl-radius-control)}
.art-credit:hover small,.art-credit:focus-visible small {color:#fff}
.art-credit .jtl-icon {width:16px;height:16px}
.hero-links span {color:#cfcec5}
.art-credit {position:absolute; right:clamp(19px,3vw,48px); bottom:24px; text-align:right; color:white; line-height:1.55}
.art-credit span,.art-credit small {display:block}
.art-credit span {font-size:15px; font-weight:560}
.art-credit small {font-size:12px; color:#d2d2ca}

.section,.footer-inner {width:min(var(--content),calc(100% - var(--gutter) * 2)); margin-inline:auto}
.section {padding-block:clamp(52px,6.2vw,105px); border-bottom:1px solid var(--line)}
.section-head {margin-bottom:clamp(25px,3.1vw,52px)}
.section-head h2 {max-width:21em; font-size:clamp(29px,3.35vw,53px); line-height:1.24; letter-spacing:-.025em}
.section-head p {max-width:47em; margin-top:15px; color:var(--secondary); font-size:clamp(15px,1.15vw,17px)}
.section h3,.tech dt {font-size:clamp(18px,1.5vw,24px); line-height:1.45; font-weight:560}
.works-strip {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(13px,1.8vw,28px)}
.works-strip img {width:100%; height:auto; aspect-ratio:1.48; object-fit:cover; border-radius:var(--jtl-radius-card)}
.works-strip figcaption {display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:3px 9px; padding:13px 1px 0}
.works-strip figcaption span,.caption-top span,.note {color:var(--secondary); font-size:14px}
.workflow {counter-reset:step; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:34px clamp(22px,3.5vw,70px); list-style:none; padding:0}
.workflow li {position:relative; counter-increment:step; border-top:1px solid var(--line); padding-top:16px}
.workflow li::before {content:counter(step,decimal-leading-zero); display:block; margin-bottom:11px; color:#65655e; font:550 14px/1.3 Inter,sans-serif; font-variant-numeric:tabular-nums}
.workflow p,.entry p,.measures p,.progress p,.tech dd {margin-top:8px; color:var(--secondary); font-size:15px; line-height:1.85}
.example {display:grid; grid-template-columns:.82fr 1fr; align-items:center; gap:clamp(30px,6vw,96px)}
.example .section-head {margin:0}
.folio {min-width:0; overflow:hidden; border-radius:var(--jtl-radius-card); background:#fff}
.picture {position:relative; display:grid; place-items:center; background:#eae9e4}
.plate-label {position:absolute; top:17px; left:20px; color:var(--secondary); font-size:13px}
.plate {display:block; width:100%; height:clamp(305px,30vw,480px)}
.vase{--wire:#d9b875;--base:url(#enamel);--petal:#a9cfce;--leaf:#72aaab;--heart:#ba604a;--pollen:#e5c477;--band:#648b90;color:var(--wire)}
.body{fill:var(--base)}.contour,.vine,.edge{fill:none;stroke:var(--wire);stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.lip{fill:var(--band);stroke:var(--wire);stroke-width:1.6}
.band{fill:var(--band);stroke:var(--wire);stroke-width:1.8}
.flower{fill:var(--petal);stroke:var(--wire);stroke-width:1.6}
.heart{fill:var(--heart)}.pollen{fill:var(--pollen)}.leaf{fill:var(--leaf)}
.folio:has([value="wire"]:checked) .vase{--base:#f4e8cf;--wire:#795c41;--petal:transparent;--leaf:transparent;--band:transparent;--pollen:transparent;--heart:transparent}
.folio:has([value="shape"]:checked) .vase{--base:#c49c70;--wire:#805A24;--band:#aa825e}
.folio:has([value="shape"]:checked) .ornament{visibility:hidden}
.folio figcaption {display:grid; grid-template-columns:1fr auto; align-items:center; gap:8px 14px; padding:19px 22px 22px}
.folio fieldset {padding:0; min-width:0; border:0}
.modes {display:flex; padding:3px; border-radius:var(--jtl-radius-pill); background:#efefea}
.modes label {position:relative; display:grid; place-items:center; min-width:48px; min-height:44px; border-radius:var(--jtl-radius-pill); font-size:14px}
.modes label:has(:checked) {background:var(--ink); color:white}
.modes label:hover:not(:has(:checked)) {background:#dfdfd9}
.note {grid-column:1/-1}
.shape-note,.wire-note {display:none}
.folio:has([value="shape"]:checked) .shape-note,.folio:has([value="wire"]:checked) .wire-note {display:block}
.folio:has([value="shape"]:checked) .color-note,.folio:has([value="wire"]:checked) .color-note {display:none}

.notes,.measures {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(22px,3vw,60px)}
.notes article,.measures article {padding-top:18px; border-top:1px solid var(--line)}
.tech {border-top:1px solid var(--line)}
.tech>div {display:grid; grid-template-columns:.85fr 1fr; align-items:baseline; gap:clamp(24px,5vw,84px); padding:22px 0; border-bottom:1px solid var(--line)}
.tech dd {margin:0}
.progress {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(12px,2vw,36px)}
.progress article {padding:clamp(22px,2.4vw,40px); border-radius:var(--jtl-radius-card); background:#eaeae4}
.progress article:first-child {background:#252624; color:#fff}
.progress article:first-child p {color:#e0e0d8}
.accept {margin-top:22px; max-width:54em; font-size:15px}
footer {background:#242522; color:#efefe8}
.footer-inner {display:flex; justify-content:space-between; align-items:center; gap:16px; min-height:92px; font-size:14px}
.footer-inner a {display:inline-flex; align-items:center; min-height:44px}
.footer-inner a:hover {color:#fff; background:#ffffff14; border-radius:var(--jtl-radius-control)}

@media (min-width:1700px) {
  .hero-core {width:790px}
}
@media (max-width:930px) {
  .site-header {min-height:68px; padding-inline:17px}
  .main-nav a {padding:0 10px}
  .wordmark b {font-size:var(--jtl-brand-title-compact)}
  .wordmark svg {width:var(--jtl-brand-mark-width-compact);height:var(--jtl-brand-mark-height-compact)}
  .wordmark small {font-size:var(--jtl-brand-caption-compact)}
  .hero {min-height:clamp(620px,88svh,840px)}
  .hero-core {width:67%; margin-left:4%}
  .workflow {grid-template-columns:repeat(2,minmax(0,1fr))}
  .example {grid-template-columns:.9fr 1.1fr; gap:24px}
  .folio figcaption {grid-template-columns:1fr; padding:16px}
  .modes {width:max-content}
}
@media (max-width:730px) {
  html {scroll-padding-top:72px}
  .site-header {grid-template-columns:1fr auto auto; gap:9px; min-height:62px; padding:8px 12px}
  .main-nav {display:none}
  .header-action {min-height:42px; padding-inline:13px; font-size:12px; gap:6px}
  .mobile-nav {display:block; position:relative}
  .mobile-nav summary {display:grid; place-items:center; width:44px; height:44px; border-radius:var(--jtl-radius-control); list-style:none; background:#252624e3; color:#fff}
  .mobile-nav summary::-webkit-details-marker {display:none}
  .mobile-nav summary .jtl-icon {width:20px;height:20px}
  .mobile-nav summary .jtl-icon:last-child,.mobile-nav[open] summary .jtl-icon:first-child {display:none}
  .mobile-nav[open] summary .jtl-icon:last-child {display:block}
  .mobile-nav nav {position:absolute; top:calc(100% + 7px); right:0; width:178px; background:#272825; color:#fff; border-radius:var(--jtl-radius-card); padding:6px}
  .mobile-nav a {padding-inline:13px; border-radius:var(--jtl-radius-control)}
  .mobile-nav a:hover {background:#3b3c37}
  .hero {border-radius:var(--jtl-radius-hero-compact); min-height:clamp(575px,87svh,780px); padding:115px 0 84px}
  .hero-photo {width:94%; object-position:55% 40%}
  .hero-shade {background:linear-gradient(0deg,#151716f7 0%,#151716e8 24%,#15171698 60%,#15171638 100%),linear-gradient(90deg,#151716 0%,#15171638 38%,transparent 76%)}
  .hero-core {align-self:end; width:calc(100% - 36px); margin:0 auto; padding-top:80px}
  .hero h1 {font-size:clamp(31px,7.7vw,51px)}
  .hero-lede {max-width:26em; margin-top:12px; font-size:14px}
  .finder {width:100%; margin-top:20px}
  #topic-search {min-height:53px; padding:5px 6px 5px 12px; gap:8px}
  #topic-results {max-height:170px}
  #topic-q {font-size:16px}
  .search-icon {width:20px; height:20px}
  .hero-links {gap:0 12px; margin-top:3px}
  .hero-links a {font-size:12px; gap:4px}
  .art-credit {right:18px; bottom:12px; line-height:1.45}
  .art-credit span {font-size:12px}
  .art-credit small {font-size:11px}
  .section,.footer-inner {width:calc(100% - 36px)}
  .works-strip {grid-template-columns:1fr 1fr; gap:20px 12px}
  .works-strip figure:first-child {grid-column:1/-1}
  .works-strip figcaption {display:block; padding-top:8px}
  .works-strip figcaption span {font-size:12px}
  .example,.notes,.measures,.progress {grid-template-columns:1fr}
  .tech>div {grid-template-columns:1fr; gap:7px; padding:18px 0}
  .section-head h2 {letter-spacing:0}
  .footer-inner {min-height:76px; font-size:12px}
}
@media (max-width:450px) {
  .workflow {grid-template-columns:1fr; gap:19px}
  .workflow li {padding-left:36px}
  .workflow li::before {position:absolute; top:22px; left:0}
}
@media (prefers-reduced-motion:reduce) {html {scroll-behavior:auto}}
@media (forced-colors:active) {.modes label:has(:checked),.header-action,#topic-search {border:1px solid ButtonText}}
@media print {
  :root {background:white; color:black}
  .site-header,.finder,.hero-links,.art-credit,.skip,.footer-inner a {display:none!important}
  .hero {display:block; min-height:0; margin:0; padding:12px 0; background:none; color:black}
  .hero-photo,.hero-shade {display:none}
  .hero-core {width:100%; margin:0; padding:0; text-align:left}
  .hero h1 {font-size:32px}
  .hero h1 span {display:inline}
  .hero-lede {margin:6px 0; color:#333}
  .section,.footer-inner {width:100%; padding:18px 0}
  .section-head {margin-bottom:12px}
  .section-head h2 {font-size:22px}
  .works-strip,.workflow {grid-template-columns:repeat(3,1fr)}
  .works-strip figure:first-child {grid-column:auto}
  .works-strip img {max-height:150px}
  .example {grid-template-columns:.9fr 1fr}
  .plate {height:210px}
  .progress article,.progress article:first-child {background:none; color:black; padding:0}
  .progress article:first-child p,footer {color:black}
  footer {background:none}
  figure,li,.tech>div,article {break-inside:avoid}
}

/* The project introduction keeps the public article and links back to the platform. */
.wordmark > span { display: flex; flex-direction: column; align-items: center; text-align: center; }
.main-nav a[aria-current=page] { background: #ffffff20; color: white; }
.site-header.scrolled .main-nav a[aria-current=page] { background: #d8d8d2; color: #252524; }
.mobile-nav a[aria-current=page] { background: #ffffff18; }
.hero { min-height: clamp(548px, 72svh, 780px); padding-bottom: 106px; }
.hero-photo { mask-image: linear-gradient(90deg, transparent, #000 13%); }
.hero h1 { font-size: clamp(52px, 6.2vw, 94px); letter-spacing: -.055em; }
.hero-core { max-width: 710px; }
.hero-links { gap: 0 20px; }
.works-strip figure { position: relative; scroll-margin-top: var(--jtl-nav-height); }
.works-strip h3 a { display: inline-flex; align-items: center; gap: 6px; }
.works-strip h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--jtl-radius-card); }
.works-strip h3 a:focus-visible::after { outline: 2px solid var(--jtl-nav-focus); outline-offset: 3px; }
.footer-inner nav { display: flex; gap: 0 20px; flex-wrap: wrap; }
@media (min-width: 731px) and (max-width: 930px) {
  .main-nav { padding-inline: 4px; }
  .main-nav a { padding-inline: 8px; }
}
@media (max-width: 730px) {
  .hero { min-height: clamp(510px, 73svh, 650px); padding-bottom: 76px; }
  .hero h1 { font-size: clamp(44px, 10.5vw, 67px); }
  .hero-links { gap: 0 14px; }
  .footer-inner { flex-wrap: wrap; justify-content: flex-start; gap: 3px 16px; padding-block: 14px; }
  .footer-inner nav { gap: 0 15px; }
}
@media print {
  .hero { min-height: 0; padding: 12px 0; }
  .hero h1 { font-size: 32px; }
}
