← back to Fashion Style Guides

public/styles.css

138 lines

:root {
  --ink: #111;
  --ground: #faf8f3;
  --hairline: #d4ccc0;
  --accent: #0e5c2f;
  --pill-fg: #111;
  --pill-bg: #fff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'EB Garamond', Garamond, 'Times New Roman', serif; background: var(--ground); color: var(--ink); }

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; background: rgba(250,248,243,0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.brand-logo {
  text-decoration: none; color: var(--ink); letter-spacing: 0.15em;
  font-weight: 600; font-family: 'Helvetica Neue', system-ui, sans-serif;
}
.brand-logo span { font-weight: 400; opacity: 0.6; letter-spacing: 0.18em; font-size: 0.85em; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink); font-family: 'Helvetica Neue', system-ui, sans-serif;
  letter-spacing: 0.22em; font-size: 12px; padding: 8px 4px;
}
.menu-btn .bars { display: inline-flex; flex-direction: column; gap: 4px; width: 22px; }
.menu-btn .bars i { display: block; height: 1px; background: var(--ink); }

.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); height: 100vh;
  background: #fff; border-left: 1px solid var(--hairline); z-index: 60;
  transform: translateX(100%); transition: transform 240ms ease;
}
.drawer:not([hidden]) { transform: translateX(0); }
.drawer-inner { padding: 64px 32px; display: flex; flex-direction: column; gap: 18px; }
.drawer-close { position: absolute; top: 16px; right: 20px; background: transparent; border: 0; font-size: 28px; cursor: pointer; }
.drawer a { color: var(--ink); text-decoration: none; letter-spacing: 0.12em; font-size: 14px; font-family: 'Helvetica Neue', system-ui, sans-serif; }
.drawer a:hover { text-decoration: underline; }

.hero { padding: 80px 28px 40px; text-align: center; max-width: 880px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0 0 14px; font-weight: 500; letter-spacing: -0.01em; }
.hero p { font-size: 1.05rem; line-height: 1.55; color: #4a4a4a; }
.hero .meta { font-size: 0.85rem; opacity: 0.6; font-family: 'Helvetica Neue', system-ui, sans-serif; letter-spacing: 0.05em; }

.container { max-width: 1280px; margin: 0 auto; padding: 48px 28px; }
.container h2 { font-size: 1.8rem; font-weight: 500; margin: 0 0 8px; letter-spacing: -0.005em; }
.lede { color: #555; max-width: 720px; line-height: 1.5; margin: 0 0 24px; }

.controls {
  display: flex; gap: 24px; flex-wrap: wrap; align-items: center;
  padding: 12px 16px; background: #fff; border: 1px solid var(--hairline);
  border-radius: 8px; margin-bottom: 24px;
  font-family: 'Helvetica Neue', system-ui, sans-serif; font-size: 13px;
}
.controls label { display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.05em; }
.controls select { padding: 6px 10px; border: 1px solid var(--hairline); border-radius: 4px; background: #fff; font: inherit; }
.controls input[type=range] { width: 200px; }
.controls .count { margin-left: auto; opacity: 0.6; letter-spacing: 0.08em; }

.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(var(--card-w, 320px), 1fr));
}

.card {
  background: #fff; border: 1px solid var(--hairline); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.08); }
.card .card-hero { aspect-ratio: 16 / 9; display: flex; align-items: stretch; }
.card .card-hero .swatch { flex: 1; }
.card-body { padding: 18px 20px; }
.card-body h3 { margin: 0 0 4px; font-size: 1.4rem; font-weight: 500; }
.card-body .meta { font-family: 'Helvetica Neue', system-ui, sans-serif; font-size: 11px; letter-spacing: 0.08em; opacity: 0.6; text-transform: uppercase; margin-bottom: 12px; }
.card-body .motif { font-size: 0.92rem; color: #555; line-height: 1.45; margin: 0 0 14px; }
.card-body .palette-row { display: flex; gap: 4px; margin-bottom: 14px; }
.card-body .palette-row .chip { flex: 1; height: 28px; border-radius: 3px; border: 1px solid rgba(0,0,0,0.06); }
.card-body .type { font-size: 0.85rem; color: #666; }
.card-body .type b { color: var(--ink); }

.common-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.family { background: #fff; border: 1px solid var(--hairline); border-radius: 8px; padding: 16px; }
.family h4 { margin: 0 0 4px; text-transform: capitalize; font-weight: 500; font-size: 1.05rem; }
.family .count-pill { font-family: 'Helvetica Neue', system-ui, sans-serif; font-size: 11px; opacity: 0.6; letter-spacing: 0.08em; }
.family .family-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.family .family-chips .chip {
  width: 26px; height: 26px; border-radius: 3px; border: 1px solid rgba(0,0,0,0.06);
  cursor: help;
}

.coty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.coty {
  background: #fff; border: 1px solid var(--hairline); border-radius: 8px;
  overflow: hidden; display: flex; flex-direction: column;
}
.coty .coty-swatch { aspect-ratio: 4 / 3; }
.coty .coty-swatch.dual { display: flex; }
.coty .coty-swatch.dual span { flex: 1; }
.coty .coty-body { padding: 12px 14px; font-family: 'Helvetica Neue', system-ui, sans-serif; }
.coty .coty-body .year { font-size: 0.75rem; opacity: 0.6; letter-spacing: 0.12em; }
.coty .coty-body h4 { margin: 4px 0; font-weight: 600; font-size: 1rem; }
.coty .coty-body .pmscode { font-size: 0.72rem; opacity: 0.55; }
.coty .coty-body .note { font-size: 0.78rem; color: #555; margin-top: 6px; line-height: 1.4; }

.palette-block { background: #fff; border: 1px solid var(--hairline); border-radius: 8px; padding: 24px; }
.palette-block .season { font-family: 'Helvetica Neue', system-ui, sans-serif; font-size: 13px; letter-spacing: 0.1em; opacity: 0.6; margin-bottom: 18px; }
.palette-block .colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.palette-block .colors .pc {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hairline); border-radius: 6px; overflow: hidden;
}
.palette-block .colors .pc .pc-swatch { aspect-ratio: 4 / 3; }
.palette-block .colors .pc .pc-body { padding: 10px 12px; font-family: 'Helvetica Neue', system-ui, sans-serif; }
.palette-block .colors .pc .pc-body .name { font-weight: 600; font-size: 0.88rem; }
.palette-block .colors .pc .pc-body .pms { font-size: 0.72rem; opacity: 0.55; }
.palette-block .theme { margin-bottom: 28px; }
.palette-block .theme h3 { margin: 0 0 4px; font-weight: 500; font-size: 1.15rem; }
.palette-block .theme p { color: #555; margin: 0 0 14px; font-size: 0.92rem; }

.status-box { background: #fff; border: 1px solid var(--hairline); border-radius: 6px; padding: 12px 16px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; white-space: pre-wrap; }

pre { background: #fff; border: 1px solid var(--hairline); border-radius: 6px; padding: 12px 16px; overflow-x: auto; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.85em; }

.footer { padding: 48px 28px; text-align: center; color: #777; font-size: 0.85rem; border-top: 1px solid var(--hairline); margin-top: 60px; }
.footer code { background: #f1ebe0; padding: 1px 5px; border-radius: 3px; }

@media (max-width: 600px) {
  .hero { padding: 48px 20px 24px; }
  .container { padding: 32px 18px; }
  .controls { gap: 14px; padding: 10px 12px; }
  .controls input[type=range] { width: 140px; }
}