/* Judd Labo — juddlabo.com
   Concept: a lab drawdown card. Pigment strips fade from a sheer film to full coverage,
   the way a shade is checked on a white card. */

:root {
  --paper: #fbfbfc;
  --ink: #241a26;
  --ink-soft: #5f5563;
  --rule: #e2dfe5;
  --carmine: #a81f33;
  --shade-1: #b3202e;
  --shade-2: #d8465a;
  --shade-3: #e8745a;
  --shade-4: #8e3b5e;
  --shade-5: #c99a7c;
  --shade-6: #7a4a3a;
  --display: "Hahmlet", "Noto Serif KR", "Nanum Myeongjo", serif;
  --body: "IBM Plex Sans KR", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--carmine);
  outline-offset: 3px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

.site-nav a {
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--carmine);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
  padding-top: clamp(40px, 9vw, 120px);
  padding-bottom: clamp(56px, 9vw, 120px);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(52px, 9.5vw, 128px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero .latin {
  display: block;
  margin-top: 0.35em;
  font-size: max(0.26em, 20px);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.hero .lead {
  margin: clamp(28px, 4vw, 48px) 0 0;
  max-width: 22em;
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.6;
}

.hero .lead-en {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* Drawdown card */

.drawdown {
  margin: 0;
}

.strips {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(6px, 1.2vw, 14px);
  height: clamp(260px, 40vw, 460px);
  align-items: start;
}

.strip {
  height: 100%;
  border-radius: 2px 2px 40% 40% / 2px 2px 7% 7%;
  background: linear-gradient(
    to bottom,
    var(--c) 0%,
    var(--c) 46%,
    color-mix(in srgb, var(--c) 62%, var(--paper)) 68%,
    color-mix(in srgb, var(--c) 24%, var(--paper)) 86%,
    color-mix(in srgb, var(--c) 6%, var(--paper)) 100%
  );
  transform-origin: top;
  animation: draw 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.strip:nth-child(1) { --c: var(--shade-1); height: 100%; }
.strip:nth-child(2) { --c: var(--shade-2); height: 92%; animation-delay: 70ms; }
.strip:nth-child(3) { --c: var(--shade-3); height: 97%; animation-delay: 140ms; }
.strip:nth-child(4) { --c: var(--shade-4); height: 88%; animation-delay: 210ms; }
.strip:nth-child(5) { --c: var(--shade-5); height: 95%; animation-delay: 280ms; }
.strip:nth-child(6) { --c: var(--shade-6); height: 90%; animation-delay: 350ms; }

@keyframes draw {
  from { transform: scaleY(0.04); opacity: 0.2; }
  to { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .strip { animation: none; }
}

.shade-names {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(6px, 1.2vw, 14px);
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Sections */

.section {
  border-top: 1px solid var(--rule);
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 6vw, 88px);
}

.section h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section p {
  margin: 0;
  max-width: 34em;
}

.section p + p {
  margin-top: 1em;
}

.en {
  color: var(--ink-soft);
  font-size: 15px;
}

.work-list {
  margin: 0;
  padding: 0;
}

.work-list div {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  gap: 8px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.work-list div:first-child {
  padding-top: 0;
}

.work-list dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
}

.work-list dd {
  margin: 0;
}

/* Notice page */

.page-head {
  padding-top: clamp(40px, 8vw, 104px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.page-head h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-head p {
  margin: 20px 0 0;
  max-width: 34em;
}

.notice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.notice-table th,
.notice-table td {
  text-align: left;
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--rule);
}

.notice-table th {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 14px;
  border-bottom-color: var(--ink);
}

.notice-table .empty {
  padding: 40px 0;
  color: var(--ink-soft);
}

.table-scroll {
  overflow-x: auto;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  font-size: 14px;
  color: var(--ink-soft);
}

.site-footer a {
  text-underline-offset: 3px;
}

/* Narrow screens */

@media (max-width: 760px) {
  body { font-size: 16px; }

  .hero,
  .section-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero { align-items: start; }

  .strips { height: 220px; }

  .work-list div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}
