*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  font-family: "Figtree";
  font-size: 16px;
  line-height: 1.6;
  color: #1E1E1E;
  background-color: #E1E1E1;
  font-weight: 500;
  padding: 0;
  margin: 0;
}

body.dark-theme {
  background-color: #000;
  color: #E1E1E1;
}

main {
  flex: 1;
  padding-bottom: 40px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}


/* Header */

.site-header {
  padding: 16px 0;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header__logo img {
  display: block;
  width: 20px;
  height: 20px;
}

.site-header__logo-name {
  font-size: 16px;
  font-weight: 600;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}


/* Navigation */

.nav-list {
  display: flex;
  gap: 24px;
}

.nav-list a {
  font-size: 16px;
  font-weight: 600;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: -0.5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #1E1E1E;

  opacity: 0;
  transition: opacity 0.2s ease-out;
}

body.dark-theme .nav-list a::after {
  background-color: #E1E1E1;
}

.nav-list a:hover::after {
  opacity: 1;
}

.nav-list a.active::after {
  opacity: 1;
}


/* Hero */

.hero {
  padding: 60px 0px;
}

.hero-title {
  max-width: 600px;
  text-align: left;
  font-size: 32px;
  line-height: 1.2;
}


/* Work Grid */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.work-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.work-item img {
  width: 100%;
  height: auto;
  display: block;
}

.work-meta {
  display: flex;
  gap: 4px;
}

.work-title {
  font-size: 16px;
}

.work-type {
  font-size: 16px;
  color: #317e01;

  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.5s ease, max-width 0.5s ease;
}

.work-year {
  font-size: 16px;
  color: gray;
  transition: transform 0.5s ease;
}

.work-item:hover .work-type {
  opacity: 1;
  max-width: 100px;
}
  
@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}


/* CC */

.colorcast-intro {
  display: flex;
  flex-direction: column;    
  align-items: center;       
  justify-content: center;    
  text-align: center;
  padding: 60px 0;
}

.colorcast-header {
  font-size: 80px;
}

.colorcast-title {
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  padding-top: 20px;
}

.colorcast-paragraph {
  /* width: 400px; */
  margin: 0 auto;
  font-size: 14px;
  font-weight: 200;
  color: gray;
  line-height: 1.6;
  text-align: center;
  padding-top: 16px;
}

.colorcast-generate {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #1E1E1E;
  box-shadow: 
    inset 0 1px 0 0 #f4f4f4,
    0 1px 0 0 #dcdcdc,
    0 2px 0 0 #d0d0d0,
    0 4px 0 0 #c5c5c5,
    0 5px 0 0 #bcbcbc,
    0 6px 0 0 #b0b0b0,
    0 7px 0 0 #a8a8a8,
    0 7px 8px 0 #cecece;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  margin-top: 40px;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.colorcast-generate:hover {
  transform: translateY(4px);
  box-shadow: 
    inset 0 1px 0 0 #f4f4f4,
    0 1px 0 0 #dcdcdc,
    0 1px 0 0 #d0d0d0,
    0 2px 0 0 #c5c5c5,
    0 2px 0 0 #bcbcbc,
    0 3px 0 0 #b0b0b0,
    0 4px 0 0 #a8a8a8,
    0 4px 6px 0 #a0a0a0;
}

.colorcast-generate:active {
  transform: translateY(6px);
  box-shadow: 
    inset 0 2px 0 0 #d0d0d0,
    0 1px 0 0 #bebebe,
    0 1px 0 0 #b0b0b0,
    0 1px 0 0 #a3a3a3,
    0 2px 0 0 #999999,
    0 3px 0 0 #8f8f8f,
    0 4px 0 0 #868686,
    0 4px 6px 0 #7c7c7c;
}

.btn-icon-right {
  transform: scaleX(-1)
}


/* Footer */

footer {
  font-size: 14px;
  color: gray;
  padding-bottom: 20px;
}