@import url('https://fonts.googleapis.com/css2?family=Gowun+Dodum&family=Jua&display=swap');

:root {
  color-scheme: light;
  --ink: #302b27;
  --muted: #6f6962;
  --paper: #fffaf2;
  --line: #eee6dc;
  --orange: #ed7045;
  --display: 'Jua', 'Malgun Gothic', sans-serif;
  --body: 'Gowun Dodum', 'Malgun Gothic', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.page-width { width: min(1080px, calc(100% - 56px)); margin-inline: auto; }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 20; padding: 12px 18px; border-radius: 10px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #347e8d; outline-offset: 4px; }

.site-header { display: flex; align-items: center; height: 70px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { position: relative; display: inline-flex; align-items: flex-end; justify-content: center; gap: 2px; width: 28px; height: 29px; padding: 4px 4px 5px; }
.brand-mark i { position: relative; z-index: 1; display: block; width: 4px; border-radius: 2px 2px 0 0; background: #ffd16c; }
.brand-mark i:nth-child(1) { height: 12px; transform: rotate(-9deg); }
.brand-mark i:nth-child(2) { height: 16px; transform: translateY(-2px); }
.brand-mark i:nth-child(3) { height: 13px; transform: rotate(8deg); }
.brand-mark b { position: absolute; right: 3px; bottom: 2px; left: 3px; height: 10px; border-radius: 2px 2px 6px 6px; background: var(--orange); }
.brand-name { font: 25px/.9 var(--display); letter-spacing: -.055em; }

.test-section { padding: 29px 0 56px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.section-title-line { display: flex; align-items: center; gap: 9px; }
.section-title-line h1 { margin: 0; font: 25px var(--display); letter-spacing: -.035em; }
.test-count { display: inline-grid; place-items: center; min-width: 25px; height: 25px; padding-inline: 6px; border-radius: 50%; background: #ffead8; color: #a8502f; font: 13px var(--body); }
.filters { display: flex; align-items: center; gap: 7px; }
.filter-button { min-height: 36px; padding: 0 15px; border: 1px solid #eee5d9; border-radius: 99px; background: #fffdf8; color: #625b54; font-size: 14px; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.filter-button:hover { transform: translateY(-2px); }
.filter-button.is-active { border-color: var(--ink); background: var(--ink); color: white; }
.test-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.test-card { position: relative; display: flex; min-height: 218px; flex-direction: column; overflow: hidden; padding: 20px 22px 15px; border: 1px solid rgb(70 50 35 / 6%); border-radius: 21px; isolation: isolate; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.test-card::before { position: absolute; top: -36px; right: -27px; z-index: -1; width: 150px; height: 150px; border: 1px solid rgb(66 49 35 / 7%); border-radius: 50%; content: ''; transition: scale .35s ease; }
.test-card::after { position: absolute; top: -63px; right: -53px; z-index: -1; width: 200px; height: 200px; border: 1px solid rgb(66 49 35 / 6%); border-radius: 50%; content: ''; }
.test-card:hover { transform: translateY(-5px) rotate(-.3deg); box-shadow: 0 12px 28px rgb(72 52 34 / 9%); }
.test-card:hover::before { scale: 1.13; }
.card-peach { background: #fff0e5; }
.card-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-category { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: rgb(255 255 255 / 74%); color: #5e5750; font-size: 13px; }
.card-category i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.card-status { color: #746b61; font-size: 13px; }
.card-status i { display: inline-block; width: 7px; height: 7px; margin: 0 4px 1px 0; border-radius: 50%; background: #d6a63e; animation: status-pulse 2.2s ease-in-out infinite; }
.card-copy { position: relative; z-index: 2; width: min(76%, 340px); margin-top: 25px; }
.card-copy h2 { margin: 0; font: clamp(23px, 2.6vw, 28px)/1.35 var(--display); letter-spacing: -.04em; }
.card-art { position: absolute; top: 66px; right: 24px; z-index: 1; display: grid; place-items: center; width: 87px; height: 87px; border: 1px solid rgb(77 58 41 / 7%); border-radius: 39% 61% 56% 44% / 45% 43% 57% 55%; background: rgb(255 255 255 / 58%); font-size: 49px; transform: rotate(6deg); animation: art-float 4s ease-in-out infinite; }
.card-bottom { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid rgb(70 50 35 / 10%); color: #615951; font-size: 13px; }
.card-bottom > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.card-bottom i { width: 4px; height: 4px; border-radius: 50%; background: #a99d90; }
.card-spark { color: #9a7761; font-size: 18px; transition: rotate .25s ease, scale .25s ease; }
.test-card:hover .card-spark { rotate: 18deg; scale: 1.25; }

.has-motion .section-heading, .has-motion .test-card { opacity: 0; filter: blur(4px); translate: 0 16px; }
.has-motion .section-heading.is-visible, .has-motion .test-card.is-visible { opacity: 1; filter: blur(0); translate: 0 0; }
.section-heading { transition: opacity .55s ease var(--motion-delay, 0ms), filter .55s ease var(--motion-delay, 0ms), translate .55s cubic-bezier(.2,.7,.2,1) var(--motion-delay, 0ms); }
.has-motion .test-card { transition: opacity .6s ease var(--motion-delay, 0ms), filter .6s ease var(--motion-delay, 0ms), translate .6s cubic-bezier(.2,.7,.2,1) var(--motion-delay, 0ms), transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }

@keyframes status-pulse { 0%, 100% { opacity: .55; scale: .85; } 50% { opacity: 1; scale: 1.12; } }
@keyframes art-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

@media (max-width: 760px) {
  .page-width { width: calc(100% - 38px); }
  .site-header { height: 66px; }
  .brand-name { font-size: 23px; }
  .test-section { padding-top: 23px; }
  .test-grid { gap: 12px; }
  .test-card { min-height: 205px; padding: 17px 17px 14px; border-radius: 18px; }
  .card-copy { width: calc(100% - 92px); margin-top: 23px; }
  .card-copy h2 { font-size: 23px; }
  .card-art { top: 67px; right: 12px; width: 76px; height: 76px; font-size: 42px; }
}
@media (max-width: 640px) {
  .page-width { width: calc(100% - 32px); }
  .test-grid { grid-template-columns: 1fr; gap: 11px; }
  .test-card { min-height: 194px; padding: 16px 18px 13px; }
  .card-copy { width: min(calc(100% - 104px), 340px); margin-top: 20px; }
  .card-copy h2 { font-size: 25px; }
  .card-art { top: 62px; right: 18px; width: 82px; height: 82px; font-size: 46px; }
  .filter-button { min-height: 44px; }
  .card-category, .card-status, .card-bottom { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .has-motion .section-heading, .has-motion .test-card { opacity: 1; filter: none; translate: none; }
}
