@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@500;700;800&display=swap");

:root {
  color-scheme: light;
  --ink: #182433;
  --soft-ink: #394756;
  --muted: #768070;
  --line: #dedbd3;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --green: #748966;
  --green-deep: #4e6746;
  --shadow: 0 14px 34px rgba(25, 36, 51, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner,
main,
.footer-inner {
  width: min(1390px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: 120px 1fr 310px;
  align-items: center;
  gap: 28px;
  min-height: 70px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-family: "Raleway", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
}

.brand img,
.footer-brand img {
  width: 84px;
  height: 50px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(36px, 6vw, 92px);
  font-size: 1rem;
  font-weight: 800;
}

.main-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.top-search {
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}

.top-search input {
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 0 0 24px;
  color: var(--ink);
  background: transparent;
  font-size: 0.92rem;
}

.top-search button {
  display: grid;
  place-items: center;
  height: 100%;
  border: 0;
  background: transparent;
  color: #0d1117;
}

.top-search svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.hero {
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid #ece7dd;
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: min(1390px, calc(100% - 48px));
  min-height: clamp(230px, 17vw, 280px);
  margin: 0 auto;
}

.hero-bg {
  position: absolute;
  top: 50%;
  right: 2vw;
  z-index: 0;
  width: min(47vw, 650px);
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 30%, #000 100%);
  transform: translateY(-50%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 48%;
  padding: 18px 0;
}

.hero-copy h1 {
  margin: 0 0 13px;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.4;
}

.hero-copy p {
  margin: 0 0 6px;
  color: var(--soft-ink);
  font-size: 1.15rem;
  line-height: 1.55;
}

.cup,
.plant {
  display: none;
}

.hero-photo::before {
  content: none;
}

.cup {
  position: absolute;
  left: 52%;
  top: 94px;
  width: 94px;
  height: 72px;
  transform: translateX(-50%);
  border-radius: 0 0 46px 46px;
  background: linear-gradient(90deg, #efe1cc, #ffffff 42%, #d8b78f);
  box-shadow: 0 13px 30px rgba(93, 62, 37, 0.2);
}

.cup::before {
  content: "";
  position: absolute;
  left: 8px;
  top: -22px;
  width: 78px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, #f9dfb3 0 28%, #c88442 30% 48%, #fff4df 50% 66%, #d8b78f 68%);
}

.cup::after {
  content: "";
  position: absolute;
  right: -25px;
  top: 10px;
  width: 34px;
  height: 28px;
  border: 8px solid #d8b78f;
  border-left: 0;
  border-radius: 0 22px 22px 0;
}

.cup span {
  position: absolute;
  left: 38px;
  top: -12px;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.plant,
.plant::before,
.plant::after {
  position: absolute;
  width: 42px;
  height: 22px;
  border-radius: 42px 0;
  background: #75912d;
}

.plant-a {
  right: 330px;
  top: 2px;
  transform: rotate(-16deg);
}

.plant-a::before {
  content: "";
  right: -42px;
  top: 17px;
  transform: rotate(42deg);
}

.plant-a::after {
  content: "";
  right: -84px;
  top: 7px;
  transform: rotate(-5deg);
}

.plant-b {
  right: 220px;
  top: -4px;
  transform: rotate(28deg);
}

.plant-b::before {
  content: "";
  right: 40px;
  top: 18px;
  transform: rotate(-52deg);
}

.plant-b::after {
  content: "";
  right: -40px;
  top: 18px;
  transform: rotate(48deg);
}

.category-bar {
  display: flex;
  gap: 14px;
  padding: 18px 10px 20px;
}

.category-bar button {
  min-width: 122px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #596258;
  font-weight: 800;
}

.category-bar button.active {
  border-color: var(--green);
  background: #edf2ea;
  color: #344b30;
}

.featured-section,
.latest-section {
  padding: 0 10px;
}

.featured-section h2,
.latest-section h2 {
  margin: 0 0 14px;
  color: #20252a;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0;
}

.featured-section h2 span,
.latest-section h2 span,
.profile-copy h2 span {
  color: var(--green);
  font-size: 0.85em;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.feature-card {
  position: relative;
  aspect-ratio: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: var(--photo);
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 16px rgba(24, 36, 51, 0.08);
}

.feature-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.68));
}

.feature-content {
  position: relative;
  z-index: 1;
  padding: 0 14px 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  color: #4d6847;
  font-size: 0.78rem;
  font-weight: 900;
}

.feature-card h3 {
  margin: 8px 0 4px;
  font-size: 1.08rem;
  line-height: 1.24;
  letter-spacing: 0;
}

.feature-meta {
  display: flex;
  gap: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 700;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.pagination[hidden] {
  display: none;
}

.pagination button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pagination button:hover,
.pagination button:focus-visible,
.pagination button.active {
  border-color: #587057;
  background: #587057;
  color: #fff;
}

.latest-item {
  min-width: 0;
}

.latest-link,
.thumb {
  display: block;
}

.thumb {
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  background: var(--photo);
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 16px rgba(24, 36, 51, 0.08);
}

.about-strip {
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
  align-items: center;
  gap: 26px;
  margin: 24px 10px 10px;
  padding: 18px 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
}

.profile-photo {
  width: 78px;
  height: 78px;
  justify-self: center;
  border-radius: 50%;
  overflow: hidden;
  background: #f6f7f4;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-copy h2 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.profile-copy p {
  margin: 2px 0;
  color: #5d655d;
  font-size: 0.9rem;
}

.about-notes {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #5d655d;
  font-size: 0.9rem;
  list-style: none;
}

.about-notes li::before {
  content: "◇";
  margin-right: 9px;
  color: var(--green);
}

.site-footer {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.36);
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  align-items: center;
  gap: 22px;
  min-height: 92px;
  font-size: 0.84rem;
  color: #646c64;
}

.footer-brand {
  gap: 8px;
  font-size: 1.05rem;
}

.footer-secret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
}

.footer-secret img {
  width: 70px;
  height: 42px;
  display: block;
  object-fit: contain;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 42px;
  font-weight: 900;
  color: #333b35;
}

.site-footer p {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: min(640px, 100%);
  margin: 0;
  color: #979b95;
  font-size: 0.78rem;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  align-items: center;
}

.social-links a {
  display: grid;
  place-items: center;
  min-width: 30px;
  min-height: 30px;
  color: #586d4f;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: 240px 1fr;
  }

  .top-search {
    grid-column: 1 / -1;
    margin-bottom: 12px;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .header-inner,
  main,
  .footer-inner {
    width: min(100% - 28px, 1390px);
  }

  .header-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  .brand {
    margin: 0 auto;
  }

  .main-nav {
    justify-content: space-between;
    gap: 12px;
    font-size: 0.92rem;
  }

  .hero-inner {
    min-height: 330px;
  }

  .hero-copy {
    width: 46%;
  }

  .category-bar {
    overflow-x: auto;
    padding-inline: 0;
  }

  .featured-section,
  .latest-section {
    padding-inline: 0;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .feature-content {
    width: 100%;
    padding: 0 10px 10px;
  }

  .feature-card h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.92rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .feature-meta {
    gap: 6px;
    font-size: 0.68rem;
  }

  .thumb {
    border-radius: 6px;
  }

  .about-strip {
    grid-template-columns: 1fr;
    margin-inline: 0;
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 18px 0 40px;
    text-align: center;
  }

  .footer-brand,
  .site-footer nav,
  .social-links {
    justify-content: center;
    margin: 0 auto;
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 18px;
  }
}

@media (max-width: 680px) {
  .hero-inner {
    align-items: flex-start;
    min-height: 430px;
    padding-top: 24px;
    padding-bottom: calc(100vw / 3 + 28px);
  }

  .hero-copy {
    width: 100%;
    padding: 0;
  }

  .hero-copy h1 {
    font-size: 1.38rem;
  }

  .hero-copy p {
    font-size: 1.08rem;
  }

  .hero-bg {
    top: auto;
    left: 50%;
    right: auto;
    bottom: 12px;
    width: 100vw;
    height: auto;
    transform: translateX(-50%);
  }
}
