1407 lines
28 KiB
CSS
1407 lines
28 KiB
CSS
:root {
|
|
--bg: #f6f2ea;
|
|
--bg-alt: #efe9dd;
|
|
--surface: #fffdf8;
|
|
--ink: #2e2b26;
|
|
--ink-soft: #6b6459;
|
|
--border: #e3dac8;
|
|
--sage: #7c8f76;
|
|
--sage-deep: #5f7259;
|
|
--terracotta: #b97a5a;
|
|
--terracotta-deep: #9c5f42;
|
|
--shadow: 0 10px 30px -12px rgba(46, 43, 38, 0.18);
|
|
--shadow-sm: 0 4px 14px -6px rgba(46, 43, 38, 0.15);
|
|
--radius: 16px;
|
|
--serif: "Cormorant Garamond", Georgia, serif;
|
|
--sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
|
|
--glass-bg: rgba(255, 255, 255, 0.55);
|
|
--glass-border: rgba(255, 255, 255, 0.6);
|
|
--blob-a: #9fb08f;
|
|
--blob-b: #d3a37e;
|
|
--blob-c: #cdbb8e;
|
|
--match-yes: #5f7259;
|
|
--match-no: #a3543a;
|
|
--match-partial: #b08a3e;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--bg: #201e1a;
|
|
--bg-alt: #26241f;
|
|
--surface: #2b2925;
|
|
--ink: #ece6da;
|
|
--ink-soft: #b3ab9c;
|
|
--border: #3a3630;
|
|
--sage: #93a68c;
|
|
--sage-deep: #b7c7b0;
|
|
--terracotta: #cc9271;
|
|
--terracotta-deep: #dba98a;
|
|
--shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45);
|
|
--shadow-sm: 0 4px 14px -6px rgba(0, 0, 0, 0.4);
|
|
|
|
--glass-bg: rgba(43, 41, 37, 0.55);
|
|
--glass-border: rgba(255, 255, 255, 0.12);
|
|
--blob-a: #6f8264;
|
|
--blob-b: #a97c56;
|
|
--blob-c: #9c8a5a;
|
|
--match-yes: #b7c7b0;
|
|
--match-no: #d99b81;
|
|
--match-partial: #d8bd80;
|
|
}
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
/* Author rules that set `display` on an element (e.g. `.loading{display:flex}`,
|
|
`img{display:block}`) otherwise beat the UA's `[hidden]{display:none}`
|
|
regardless of specificity, since origin is compared before specificity. */
|
|
[hidden] { display: none !important; }
|
|
|
|
html { scroll-behavior: smooth; }
|
|
|
|
body {
|
|
margin: 0;
|
|
background: var(--bg);
|
|
color: var(--ink);
|
|
font-family: var(--sans);
|
|
line-height: 1.5;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
img { max-width: 100%; display: block; }
|
|
|
|
/* ---------- Hero ---------- */
|
|
|
|
.hero {
|
|
min-height: 78vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
padding: 6rem 1.5rem 4rem;
|
|
background:
|
|
radial-gradient(60% 50% at 50% 0%, var(--bg-alt) 0%, var(--bg) 70%);
|
|
}
|
|
|
|
.hero-inner { max-width: 640px; }
|
|
|
|
.eyebrow {
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.14em;
|
|
font-size: 0.78rem;
|
|
color: var(--sage-deep);
|
|
font-weight: 600;
|
|
margin: 0 0 0.75rem;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-family: var(--serif);
|
|
font-size: clamp(2.8rem, 7vw, 4.6rem);
|
|
font-weight: 600;
|
|
margin: 0 0 1rem;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.tagline {
|
|
font-size: 1.08rem;
|
|
color: var(--ink-soft);
|
|
max-width: 460px;
|
|
margin: 0 auto 2.5rem;
|
|
}
|
|
|
|
.scroll-cue {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
color: var(--sage-deep);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
font-size: 0.92rem;
|
|
border-bottom: 1px solid transparent;
|
|
transition: border-color 0.2s ease, transform 0.2s ease;
|
|
}
|
|
|
|
.scroll-cue:hover {
|
|
border-color: currentColor;
|
|
transform: translateY(2px);
|
|
}
|
|
|
|
/* ---------- Sections ---------- */
|
|
|
|
.section {
|
|
max-width: 1080px;
|
|
margin: 0 auto;
|
|
padding: 3.5rem 1.5rem;
|
|
}
|
|
|
|
.section-head { margin-bottom: 2rem; text-align: center; }
|
|
|
|
.section-head h2 {
|
|
font-family: var(--serif);
|
|
font-size: 2.1rem;
|
|
font-weight: 600;
|
|
margin: 0 0 0.35rem;
|
|
}
|
|
|
|
.section-head p { color: var(--ink-soft); margin: 0; font-size: 0.96rem; }
|
|
|
|
/* ---------- Template gallery ---------- */
|
|
|
|
.template-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.template-card {
|
|
margin: 0;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-sm);
|
|
transition: transform 0.25s ease, box-shadow 0.25s ease;
|
|
}
|
|
|
|
.template-card:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.template-card img {
|
|
width: 100%;
|
|
aspect-ratio: 1 / 1;
|
|
object-fit: cover;
|
|
background: var(--bg-alt);
|
|
}
|
|
|
|
.template-card figcaption {
|
|
padding: 0.6rem 0.8rem 0.8rem;
|
|
font-size: 0.85rem;
|
|
color: var(--ink-soft);
|
|
text-align: center;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
/* ---------- Upload ---------- */
|
|
|
|
.upload-panel { max-width: 560px; margin: 0 auto; }
|
|
|
|
.dropzone {
|
|
display: block;
|
|
border: 1.5px dashed var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--surface);
|
|
padding: 2.2rem 1.5rem;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: border-color 0.2s ease, background 0.2s ease;
|
|
}
|
|
|
|
.dropzone:hover, .dropzone.dragover {
|
|
border-color: var(--sage);
|
|
background: var(--bg-alt);
|
|
}
|
|
|
|
.dropzone-content svg { margin: 0 auto 0.6rem; color: var(--sage-deep); }
|
|
.dropzone-content p { margin: 0.2rem 0; }
|
|
.dropzone-content .hint { color: var(--ink-soft); font-size: 0.82rem; }
|
|
|
|
.preview-img {
|
|
max-height: 320px;
|
|
margin: 0 auto;
|
|
border-radius: 10px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.upload-actions {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 0.8rem;
|
|
margin-top: 1.4rem;
|
|
}
|
|
|
|
.btn-primary, .btn-ghost {
|
|
font-family: var(--sans);
|
|
font-size: 0.94rem;
|
|
font-weight: 600;
|
|
padding: 0.7rem 1.6rem;
|
|
border-radius: 999px;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: transform 0.15s ease, opacity 0.15s ease, background 0.2s ease;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--sage-deep);
|
|
color: #fbf9f4;
|
|
}
|
|
|
|
.btn-primary:disabled {
|
|
opacity: 0.45;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-primary:not(:disabled):hover { transform: translateY(-1px); }
|
|
|
|
.btn-ghost {
|
|
background: transparent;
|
|
color: var(--ink-soft);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink); }
|
|
|
|
.error-msg {
|
|
text-align: center;
|
|
color: var(--terracotta-deep);
|
|
font-size: 0.9rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
/* ---------- Loading ---------- */
|
|
|
|
.loading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.8rem;
|
|
margin-top: 2.4rem;
|
|
color: var(--ink-soft);
|
|
font-size: 0.92rem;
|
|
}
|
|
|
|
.spinner {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
border: 3px solid var(--border);
|
|
border-top-color: var(--sage);
|
|
animation: spin 0.9s linear infinite;
|
|
}
|
|
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
|
|
/* ---------- Results ---------- */
|
|
|
|
.overall-card {
|
|
background: linear-gradient(135deg, var(--sage-deep), var(--sage));
|
|
color: #fbf9f4;
|
|
border-radius: var(--radius);
|
|
padding: 1.8rem 2rem;
|
|
box-shadow: var(--shadow);
|
|
margin-bottom: 2.2rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1.4rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.overall-card .overall-thumb {
|
|
width: 84px;
|
|
height: 84px;
|
|
border-radius: 12px;
|
|
object-fit: cover;
|
|
background: rgba(255,255,255,0.15);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.overall-card .overall-text .label {
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
font-size: 0.72rem;
|
|
opacity: 0.85;
|
|
margin: 0 0 0.2rem;
|
|
}
|
|
|
|
.overall-card .overall-text h3 {
|
|
font-family: var(--serif);
|
|
font-size: 1.8rem;
|
|
margin: 0;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.query-row {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
gap: 1.2rem;
|
|
margin-bottom: 2.4rem;
|
|
}
|
|
|
|
.query-tile {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.query-tile img {
|
|
width: 100%;
|
|
aspect-ratio: 4 / 3;
|
|
object-fit: contain;
|
|
background: repeating-conic-gradient(var(--bg-alt) 0% 25%, var(--bg) 0% 50%) 50% / 18px 18px;
|
|
}
|
|
|
|
.query-tile .tile-label {
|
|
padding: 0.55rem 0.8rem;
|
|
font-size: 0.82rem;
|
|
color: var(--ink-soft);
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.method-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 1.4rem;
|
|
}
|
|
|
|
.method-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 1.3rem 1.4rem 1.5rem;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.method-card-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
margin-bottom: 0.9rem;
|
|
gap: 0.6rem;
|
|
}
|
|
|
|
.method-card-head h4 {
|
|
margin: 0;
|
|
font-family: var(--serif);
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.time-badge {
|
|
font-size: 0.76rem;
|
|
font-weight: 600;
|
|
color: var(--sage-deep);
|
|
background: var(--bg-alt);
|
|
padding: 0.2rem 0.55rem;
|
|
border-radius: 999px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.best-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.9rem;
|
|
margin-bottom: 1.1rem;
|
|
}
|
|
|
|
.best-row img {
|
|
width: 64px;
|
|
height: 64px;
|
|
object-fit: cover;
|
|
border-radius: 10px;
|
|
background: var(--bg-alt);
|
|
}
|
|
|
|
.best-row .best-name {
|
|
font-weight: 600;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.best-row .best-score {
|
|
font-size: 0.82rem;
|
|
color: var(--ink-soft);
|
|
}
|
|
|
|
.confidence-pill {
|
|
display: inline-block;
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
padding: 0.15rem 0.5rem;
|
|
border-radius: 999px;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.confidence-pill.confident {
|
|
background: rgba(124, 143, 118, 0.18);
|
|
color: var(--sage-deep);
|
|
}
|
|
|
|
.confidence-pill.weak {
|
|
background: rgba(185, 122, 90, 0.16);
|
|
color: var(--terracotta-deep);
|
|
}
|
|
|
|
.score-bars { display: flex; flex-direction: column; gap: 0.45rem; }
|
|
|
|
.score-bar-row {
|
|
display: grid;
|
|
grid-template-columns: 84px 1fr 34px;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
font-size: 0.78rem;
|
|
}
|
|
|
|
.score-bar-row .name {
|
|
color: var(--ink-soft);
|
|
text-transform: capitalize;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.score-bar-track {
|
|
height: 6px;
|
|
border-radius: 999px;
|
|
background: var(--bg-alt);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.score-bar-fill {
|
|
height: 100%;
|
|
border-radius: 999px;
|
|
background: var(--sage);
|
|
transition: width 0.5s ease;
|
|
}
|
|
|
|
.score-bar-row.top .score-bar-fill { background: var(--terracotta); }
|
|
.score-bar-row .value { text-align: right; color: var(--ink-soft); }
|
|
|
|
/* ---------- Flower count (SAM) ---------- */
|
|
|
|
.flower-count-section {
|
|
margin-top: 2.6rem;
|
|
padding-top: 2.2rem;
|
|
border-top: 1px solid var(--border);
|
|
text-align: center;
|
|
}
|
|
|
|
.flower-count-section h3 {
|
|
font-family: var(--serif);
|
|
font-size: 1.7rem;
|
|
margin: 0 0 0.3rem;
|
|
}
|
|
|
|
.flower-count-sub {
|
|
color: var(--ink-soft);
|
|
font-size: 0.86rem;
|
|
margin: 0 0 1.2rem;
|
|
max-width: 56ch;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.flower-count-result {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
gap: 2.2rem;
|
|
margin-top: 1.4rem;
|
|
text-align: left;
|
|
}
|
|
|
|
.flower-count-method {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 320px;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.flower-count-method-label {
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
color: var(--ink-soft);
|
|
margin: 0 0 0.6rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.flower-count-result img {
|
|
max-width: 320px;
|
|
width: 100%;
|
|
border-radius: 14px;
|
|
border: 1px solid var(--border);
|
|
margin-bottom: 0.8rem;
|
|
}
|
|
|
|
.flower-count-total {
|
|
font-family: var(--serif);
|
|
font-size: 1.3rem;
|
|
margin: 0 0 0.6rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.flower-count-clusters {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
margin-bottom: 0.6rem;
|
|
}
|
|
|
|
.flower-cluster-chip {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 999px;
|
|
padding: 0.25rem 0.6rem 0.25rem 0.25rem;
|
|
font-size: 0.8rem;
|
|
color: var(--ink-soft);
|
|
}
|
|
|
|
.flower-cluster-hint {
|
|
font-size: 0.78rem;
|
|
color: var(--ink-soft);
|
|
font-style: italic;
|
|
}
|
|
|
|
.flower-count-time {
|
|
font-size: 0.8rem;
|
|
color: var(--ink-soft);
|
|
margin: 1rem 0 0;
|
|
text-align: center;
|
|
}
|
|
|
|
/* ---------- Flower-count mismatch note ---------- */
|
|
|
|
.flower-count-mismatch {
|
|
max-width: 60ch;
|
|
margin: 1.4rem auto 0;
|
|
padding: 0.75rem 1.1rem;
|
|
border-radius: 12px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
font-size: 0.82rem;
|
|
color: var(--ink-soft);
|
|
text-align: center;
|
|
}
|
|
|
|
.flower-count-mismatch.is-mismatch {
|
|
border-color: var(--match-partial);
|
|
color: var(--ink);
|
|
}
|
|
|
|
/* ---------- Vase comparison (DINOv2 + CLIP) ---------- */
|
|
|
|
.vase-compare {
|
|
margin-top: 2rem;
|
|
padding-top: 1.8rem;
|
|
border-top: 1px dashed var(--border);
|
|
}
|
|
|
|
.vase-compare-label {
|
|
text-align: center;
|
|
font-size: 0.86rem;
|
|
font-weight: 600;
|
|
color: var(--ink-soft);
|
|
margin: 0 0 1rem;
|
|
}
|
|
|
|
.vase-compare-body {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.vase-compare-thumbs {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.8rem;
|
|
}
|
|
|
|
.vase-compare-tile {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.vase-compare-tile img {
|
|
width: 120px;
|
|
height: 120px;
|
|
object-fit: cover;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border);
|
|
background: var(--surface);
|
|
}
|
|
|
|
.vase-compare-tile span {
|
|
font-size: 0.78rem;
|
|
color: var(--ink-soft);
|
|
}
|
|
|
|
.vase-compare-thumbs > .arrow {
|
|
font-family: var(--serif);
|
|
font-style: italic;
|
|
font-size: 1.1rem;
|
|
color: var(--ink-soft);
|
|
}
|
|
|
|
.vase-compare-scores {
|
|
min-width: 260px;
|
|
max-width: 340px;
|
|
}
|
|
|
|
.vase-verdict-pill {
|
|
display: inline-block;
|
|
margin: 0 0 0.9rem;
|
|
padding: 0.3rem 0.8rem;
|
|
border-radius: 999px;
|
|
font-size: 0.82rem;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
background: var(--ink-soft);
|
|
}
|
|
|
|
.vase-verdict-pill.same { background: var(--match-yes); }
|
|
.vase-verdict-pill.uncertain { background: var(--match-partial); }
|
|
.vase-verdict-pill.different { background: var(--match-no); }
|
|
|
|
.vase-score-row {
|
|
display: grid;
|
|
grid-template-columns: 8.5rem 1fr 3rem;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
font-size: 0.8rem;
|
|
color: var(--ink-soft);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.vase-score-row span:last-child {
|
|
text-align: right;
|
|
}
|
|
|
|
.vase-score-row.combined {
|
|
font-weight: 700;
|
|
color: var(--ink);
|
|
}
|
|
|
|
/* ---------- Color space ---------- */
|
|
|
|
.color-section, .shape-section, .texture-section {
|
|
margin-top: 2.6rem;
|
|
padding-top: 2.2rem;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.color-section h3, .shape-section h3, .texture-section h3 {
|
|
font-family: var(--serif);
|
|
font-size: 1.7rem;
|
|
margin: 0 0 0.3rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.color-sub, .shape-sub, .texture-sub {
|
|
text-align: center;
|
|
color: var(--ink-soft);
|
|
font-size: 0.86rem;
|
|
margin: 0 0 1.4rem;
|
|
max-width: 52ch;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.input-palette {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
gap: 0.7rem;
|
|
margin-bottom: 1.8rem;
|
|
}
|
|
|
|
.input-palette .palette-label {
|
|
font-size: 0.82rem;
|
|
color: var(--ink-soft);
|
|
margin-right: 0.3rem;
|
|
}
|
|
|
|
.input-palette .swatch-chip {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 999px;
|
|
padding: 0.25rem 0.6rem 0.25rem 0.25rem;
|
|
font-size: 0.76rem;
|
|
color: var(--ink-soft);
|
|
}
|
|
|
|
.swatch {
|
|
display: inline-block;
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.color-grid, .shape-grid, .texture-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
|
gap: 1.4rem;
|
|
}
|
|
|
|
.color-card, .shape-card, .texture-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 1.2rem 1.3rem 1.4rem;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.color-card-head, .shape-card-head, .texture-card-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.7rem;
|
|
margin-bottom: 0.9rem;
|
|
}
|
|
|
|
.color-card-head img, .shape-card-head img, .texture-card-head img {
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 10px;
|
|
object-fit: cover;
|
|
background: var(--bg-alt);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.color-card-head .name, .shape-card-head .name, .texture-card-head .name {
|
|
font-family: var(--serif);
|
|
font-size: 1.1rem;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.color-match-row, .shape-match-row, .texture-match-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.color-match-row .score-bar-track,
|
|
.shape-match-row .score-bar-track,
|
|
.texture-match-row .score-bar-track { flex: 1; }
|
|
|
|
.color-match-row .match-pct,
|
|
.shape-match-row .match-pct,
|
|
.texture-match-row .match-pct {
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
color: var(--ink-soft);
|
|
white-space: nowrap;
|
|
min-width: 3.2em;
|
|
text-align: right;
|
|
}
|
|
|
|
.shape-subscores, .texture-subscores {
|
|
font-size: 0.74rem;
|
|
color: var(--ink-soft);
|
|
margin: 0;
|
|
}
|
|
|
|
.color-pairs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.9rem;
|
|
}
|
|
|
|
.color-pair {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.pair-swatches {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.3rem;
|
|
}
|
|
|
|
.pair-swatches .swatch { width: 22px; height: 22px; }
|
|
|
|
.pair-arrow {
|
|
color: var(--ink-soft);
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.pair-similarity {
|
|
font-size: 0.7rem;
|
|
color: var(--ink-soft);
|
|
}
|
|
|
|
/* ---------- Weighted final match ---------- */
|
|
|
|
.weighted-section {
|
|
/* Leads #results now (moved up so the final verdict is visible without
|
|
scrolling past every individual method card first) -- border/spacing
|
|
flipped to the bottom to separate it from what follows instead of
|
|
what used to precede it. */
|
|
margin-bottom: 2.6rem;
|
|
padding-bottom: 2.2rem;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.weighted-section h3 {
|
|
font-family: var(--serif);
|
|
font-size: 1.7rem;
|
|
margin: 0 0 0.3rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.weighted-sub {
|
|
text-align: center;
|
|
color: var(--ink-soft);
|
|
font-size: 0.86rem;
|
|
margin: 0 0 1.4rem;
|
|
}
|
|
|
|
.weighted-top-row {
|
|
display: flex;
|
|
align-items: stretch;
|
|
gap: 1.2rem;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 1.6rem;
|
|
}
|
|
|
|
.weighted-card {
|
|
background: linear-gradient(135deg, var(--terracotta-deep), var(--terracotta));
|
|
color: #fbf9f4;
|
|
border-radius: var(--radius);
|
|
padding: 1.8rem 2rem;
|
|
box-shadow: var(--shadow);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1.4rem;
|
|
flex-wrap: wrap;
|
|
flex: 2 1 420px;
|
|
}
|
|
|
|
.weighted-flower-check {
|
|
flex: 1 1 220px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 1.4rem 1.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
|
|
.weighted-flower-check-label {
|
|
font-size: 0.76rem;
|
|
font-weight: 700;
|
|
color: var(--ink-soft);
|
|
margin: 0 0 0.8rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
.weighted-flower-check-loading {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.7rem;
|
|
color: var(--ink-soft);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.weighted-flower-check-loading p { margin: 0; }
|
|
|
|
.spinner-sm {
|
|
width: 18px;
|
|
height: 18px;
|
|
border-width: 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.weighted-flower-check-body .wfc-stat {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
gap: 0.8rem;
|
|
padding: 0.5rem 0;
|
|
border-bottom: 1px dashed var(--border);
|
|
font-size: 0.86rem;
|
|
}
|
|
|
|
.weighted-flower-check-body .wfc-stat:last-child { border-bottom: none; }
|
|
|
|
.wfc-stat-label { color: var(--ink-soft); }
|
|
.wfc-stat-value { font-weight: 700; color: var(--ink); }
|
|
|
|
.weighted-card .weighted-thumb {
|
|
width: 84px;
|
|
height: 84px;
|
|
border-radius: 12px;
|
|
object-fit: cover;
|
|
background: rgba(255, 255, 255, 0.15);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.weighted-card .weighted-thumbs {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.weighted-card .weighted-thumbs img {
|
|
width: 64px;
|
|
height: 64px;
|
|
border-radius: 10px;
|
|
object-fit: cover;
|
|
background: rgba(255, 255, 255, 0.15);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.weighted-card .weighted-thumbs .arrow {
|
|
font-family: var(--serif);
|
|
font-style: italic;
|
|
opacity: 0.85;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.weighted-card .weighted-text .weighted-supporting {
|
|
font-size: 0.78rem;
|
|
opacity: 0.85;
|
|
margin: 0.2rem 0 0;
|
|
}
|
|
|
|
.weighted-card .verdict-pill {
|
|
display: inline-block;
|
|
margin-top: 0.5rem;
|
|
padding: 0.2rem 0.65rem;
|
|
border-radius: 999px;
|
|
font-size: 0.76rem;
|
|
font-weight: 700;
|
|
background: rgba(255, 255, 255, 0.22);
|
|
color: #fff;
|
|
}
|
|
|
|
.weighted-card .weighted-text .label {
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
font-size: 0.72rem;
|
|
opacity: 0.85;
|
|
margin: 0 0 0.2rem;
|
|
}
|
|
|
|
.weighted-card .weighted-text h4 {
|
|
font-family: var(--serif);
|
|
font-size: 1.8rem;
|
|
margin: 0;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.weighted-card .weighted-text .weighted-total {
|
|
font-size: 0.82rem;
|
|
opacity: 0.9;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.weighted-card .weighted-breakdown {
|
|
margin-left: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
font-size: 0.78rem;
|
|
opacity: 0.95;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.weighted-card .weighted-breakdown .row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 0.8rem;
|
|
}
|
|
|
|
.weighted-ranked {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
max-width: 480px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* ---------- Color family grid ---------- */
|
|
|
|
.family-grid-section {
|
|
margin-top: 2.6rem;
|
|
padding-top: 2.2rem;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.family-grid-section h3 {
|
|
font-family: var(--serif);
|
|
font-size: 1.7rem;
|
|
margin: 0 0 0.3rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.family-grid-sub {
|
|
text-align: center;
|
|
color: var(--ink-soft);
|
|
font-size: 0.86rem;
|
|
margin: 0 0 1.2rem;
|
|
max-width: 56ch;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.family-grid-sub strong { text-transform: capitalize; color: var(--ink); }
|
|
|
|
.family-grid-overall {
|
|
text-align: center;
|
|
margin-bottom: 1.4rem;
|
|
}
|
|
|
|
.family-grid-overall .big-pct {
|
|
font-family: var(--serif);
|
|
font-size: 2.2rem;
|
|
font-weight: 600;
|
|
color: var(--sage-deep);
|
|
}
|
|
|
|
.family-grid-overall .big-pct-label {
|
|
display: block;
|
|
font-size: 0.78rem;
|
|
color: var(--ink-soft);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
margin-top: 0.2rem;
|
|
}
|
|
|
|
.family-grid-row {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
|
gap: 1.4rem;
|
|
margin-bottom: 1.6rem;
|
|
}
|
|
|
|
.family-grid-row .grid-tile {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.family-grid-row .grid-tile img {
|
|
width: 100%;
|
|
display: block;
|
|
background: var(--bg-alt);
|
|
}
|
|
|
|
.family-grid-row .grid-tile .tile-label {
|
|
padding: 0.55rem 0.8rem;
|
|
font-size: 0.82rem;
|
|
color: var(--ink-soft);
|
|
border-top: 1px solid var(--border);
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.family-grid-matches {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 1rem;
|
|
max-width: 720px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.family-match {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.3rem;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 0.7rem 0.9rem;
|
|
min-width: 120px;
|
|
}
|
|
|
|
.family-match .rank {
|
|
font-size: 0.7rem;
|
|
color: var(--ink-soft);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.family-match .area-pct {
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.family-match .sub-pct {
|
|
font-size: 0.7rem;
|
|
color: var(--ink-soft);
|
|
}
|
|
|
|
.shape-visual, .texture-visual {
|
|
margin-top: 2rem;
|
|
padding-top: 1.8rem;
|
|
border-top: 1px dashed var(--border);
|
|
}
|
|
|
|
.texture-glcm-table {
|
|
max-width: 520px;
|
|
margin: 1.2rem auto 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.texture-glcm-table .row {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto auto auto;
|
|
gap: 0.7rem;
|
|
align-items: baseline;
|
|
font-size: 0.8rem;
|
|
padding: 0.3rem 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.texture-glcm-table .row.head {
|
|
font-size: 0.7rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--ink-soft);
|
|
border-bottom: 1px solid var(--ink-soft);
|
|
}
|
|
|
|
.texture-glcm-table .prop-name {
|
|
text-transform: capitalize;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.texture-glcm-table .value { text-align: right; color: var(--ink-soft); min-width: 3.5em; }
|
|
|
|
/* ---------- AI verification (fluid glass card) ---------- */
|
|
|
|
.verify-section {
|
|
margin-top: 2.6rem;
|
|
padding-top: 2.2rem;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.verify-section h3 {
|
|
font-family: var(--serif);
|
|
font-size: 1.7rem;
|
|
margin: 0 0 0.3rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.verify-sub {
|
|
text-align: center;
|
|
color: var(--ink-soft);
|
|
font-size: 0.86rem;
|
|
margin: 0 0 1.6rem;
|
|
}
|
|
|
|
.verify-sub strong { text-transform: capitalize; color: var(--ink); }
|
|
|
|
.verify-blob {
|
|
position: relative;
|
|
max-width: 820px;
|
|
margin: 0 auto;
|
|
padding: 2.2rem;
|
|
}
|
|
|
|
.verify-blob::before,
|
|
.verify-blob::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: -10%;
|
|
z-index: 0;
|
|
border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%;
|
|
filter: blur(38px);
|
|
opacity: 0.55;
|
|
background:
|
|
radial-gradient(closest-side at 25% 30%, var(--blob-a), transparent),
|
|
radial-gradient(closest-side at 75% 40%, var(--blob-b), transparent),
|
|
radial-gradient(closest-side at 50% 80%, var(--blob-c), transparent);
|
|
animation: blob-drift 18s ease-in-out infinite;
|
|
}
|
|
|
|
.verify-blob::after {
|
|
animation-duration: 24s;
|
|
animation-direction: reverse;
|
|
opacity: 0.35;
|
|
}
|
|
|
|
@keyframes blob-drift {
|
|
0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
|
|
33% { transform: translate(2%, -3%) scale(1.05) rotate(8deg); }
|
|
66% { transform: translate(-3%, 2%) scale(0.97) rotate(-6deg); }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.verify-blob::before, .verify-blob::after { animation: none; }
|
|
}
|
|
|
|
.verify-glass {
|
|
position: relative;
|
|
z-index: 1;
|
|
background: var(--glass-bg);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: 28px;
|
|
backdrop-filter: blur(18px) saturate(140%);
|
|
-webkit-backdrop-filter: blur(18px) saturate(140%);
|
|
box-shadow: var(--shadow);
|
|
padding: 3rem 3.2rem;
|
|
text-align: center;
|
|
min-height: 96px;
|
|
}
|
|
|
|
.verify-glass .verify-loading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.7rem;
|
|
color: var(--ink-soft);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.verify-images {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 2rem;
|
|
margin-bottom: 1.8rem;
|
|
}
|
|
|
|
.verify-image-tile {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
}
|
|
|
|
.verify-image-tile img {
|
|
width: 168px;
|
|
height: 168px;
|
|
object-fit: cover;
|
|
border-radius: 18px;
|
|
background: var(--bg-alt);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.verify-image-tile span {
|
|
font-size: 0.86rem;
|
|
color: var(--ink-soft);
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.verify-vs {
|
|
font-family: var(--serif);
|
|
font-style: italic;
|
|
color: var(--ink-soft);
|
|
font-size: 1.3rem;
|
|
padding-bottom: 1.8rem;
|
|
}
|
|
|
|
.verify-match-line {
|
|
font-size: 1.15rem;
|
|
margin: 0 0 0.9rem;
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: center;
|
|
gap: 0.7rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.verify-match-line .match-label {
|
|
font-family: var(--serif);
|
|
color: var(--ink-soft);
|
|
}
|
|
|
|
.verify-match-line .match-value {
|
|
font-family: var(--serif);
|
|
font-weight: 600;
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.verify-match-line.yes .match-value { color: var(--match-yes); }
|
|
.verify-match-line.no .match-value { color: var(--match-no); }
|
|
.verify-match-line.partial .match-value { color: var(--match-partial); }
|
|
.verify-match-line.unknown .match-value { color: var(--ink-soft); }
|
|
|
|
.verify-match-line .verify-confidence {
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
color: var(--ink-soft);
|
|
align-self: center;
|
|
}
|
|
|
|
.verify-description {
|
|
font-size: 1rem;
|
|
line-height: 1.7;
|
|
color: var(--ink);
|
|
max-width: 58ch;
|
|
margin: 0 auto 1.3rem;
|
|
text-align: justify;
|
|
text-justify: inter-word;
|
|
}
|
|
|
|
.verify-description .match-label {
|
|
font-weight: 600;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.read-more-toggle {
|
|
color: var(--sage-deep);
|
|
font-size: 0.84rem;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.read-more-toggle:hover { text-decoration: underline; }
|
|
|
|
.verify-footnote {
|
|
font-size: 0.72rem;
|
|
color: var(--ink-soft);
|
|
opacity: 0.75;
|
|
}
|
|
|
|
.verify-error {
|
|
color: var(--ink-soft);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* ---------- Footer ---------- */
|
|
|
|
.site-footer {
|
|
text-align: center;
|
|
padding: 2rem 1.5rem 3rem;
|
|
color: var(--ink-soft);
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.hero { padding: 4.5rem 1.2rem 3rem; }
|
|
.section { padding: 2.6rem 1.2rem; }
|
|
.overall-card { flex-direction: column; text-align: center; }
|
|
.weighted-card { flex-direction: column; text-align: center; }
|
|
.weighted-card .weighted-breakdown { margin-left: 0; align-items: center; }
|
|
.weighted-card .weighted-thumbs { justify-content: center; }
|
|
.verify-blob { padding: 0.8rem; }
|
|
.verify-glass { padding: 1.8rem 1.4rem; }
|
|
.verify-image-tile img { width: 100px; height: 100px; }
|
|
.verify-images { gap: 1rem; }
|
|
.verify-description { text-align: left; }
|
|
}
|