:root {
  --ink: #2e241d;
  --muted: #6f6255;
  --paper: #f7efe2;
  --paper-deep: #efe0ca;
  --cream: #fff8ec;
  --amber: #a85f2a;
  --amber-dark: #70421f;
  --sage: #667357;
  --sage-dark: #3d4934;
  --rosewood: #8c4d3f;
  --line: rgba(77, 54, 36, 0.2);
  --shadow: 0 18px 45px rgba(49, 31, 18, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 248, 236, 0.82), rgba(247, 239, 226, 0.92)),
    repeating-linear-gradient(90deg, rgba(112, 66, 31, 0.035) 0 1px, transparent 1px 7px);
  font-family:
    "Georgia",
    "Times New Roman",
    "Noto Serif KR",
    serif;
  line-height: 1.55;
}

button,
a {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(255, 248, 236, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-link {
  width: max-content;
  color: var(--amber-dark);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.brand-link:hover {
  color: var(--rosewood);
}

.language-switch {
  display: flex;
  border: 1px solid var(--line);
  background: var(--cream);
}

.lang-button {
  min-width: 44px;
  min-height: 36px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.lang-button.active {
  color: var(--cream);
  background: var(--sage-dark);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(46, 36, 29, 0.82), rgba(46, 36, 29, 0.42) 48%, rgba(46, 36, 29, 0.08)),
    linear-gradient(0deg, rgba(247, 239, 226, 0.98), transparent 23%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 8vw, 110px);
  padding-bottom: 52px;
  color: var(--cream);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-family: Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0b36e;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-content p:not(.eyebrow) {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 248, 236, 0.88);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-link,
.secondary-link,
.keyword-button,
.family-button,
.text-button {
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
}

.primary-link {
  color: var(--cream);
  background: var(--amber);
}

.secondary-link {
  color: var(--cream);
  border-color: rgba(255, 248, 236, 0.5);
  background: rgba(255, 248, 236, 0.08);
}

.primary-link:hover,
.secondary-link:hover,
.keyword-button:hover,
.family-button:hover {
  transform: translateY(-1px);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.intro-band > div {
  display: grid;
  gap: 5px;
  padding: clamp(22px, 4vw, 38px);
  background: var(--paper);
}

.intro-band span {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.intro-band strong {
  color: var(--sage-dark);
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  line-height: 1;
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.keyword-grid,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.keyword-button,
.family-button {
  min-height: 42px;
  padding: 0 14px;
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 248, 236, 0.72);
}

.keyword-button.active,
.family-button.active {
  color: var(--cream);
  border-color: var(--sage-dark);
  background: var(--sage-dark);
}

.recommendation-panel,
.blend-summary {
  border: 1px solid var(--line);
  background: rgba(255, 248, 236, 0.78);
  box-shadow: var(--shadow);
}

.recommendation-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.recommendation-copy,
.recipe-card {
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 248, 236, 0.9);
}

.recommendation-copy h3,
.blend-summary h3 {
  margin: 0;
  color: var(--amber-dark);
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.recommendation-copy p,
.blend-summary p {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  color: var(--sage-dark);
  border: 1px solid rgba(102, 115, 87, 0.35);
  background: rgba(102, 115, 87, 0.1);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
}

.recipe-card {
  display: grid;
  gap: 12px;
  align-content: center;
}

.recipe-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.recipe-item:last-child {
  border-bottom: 0;
}

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

.oil-card {
  min-height: 245px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.68);
}

.oil-card h3 {
  margin: 0 0 6px;
  color: var(--amber-dark);
  font-size: 1.2rem;
}

.oil-family {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--rosewood);
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.oil-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.oil-card .tag-row {
  margin-top: 14px;
}

.blend-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  gap: 18px;
  align-items: start;
}

.blend-picker {
  border: 1px solid var(--line);
  background: rgba(239, 224, 202, 0.46);
}

.picker-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--amber-dark);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.oil-option {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: rgba(255, 248, 236, 0.82);
  cursor: pointer;
}

.oil-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--sage-dark);
}

.oil-option span {
  display: grid;
  line-height: 1.25;
}

.oil-option small {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.74rem;
}

.blend-summary {
  position: sticky;
  top: 92px;
  padding: clamp(22px, 4vw, 30px);
}

.blend-summary ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.ratio-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.ratio-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.closing-band {
  padding: 28px clamp(18px, 6vw, 72px) 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(102, 115, 87, 0.1);
}

.closing-band p {
  max-width: 980px;
  margin: 0 auto;
  font-size: 0.95rem;
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 680px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(46, 36, 29, 0.86), rgba(46, 36, 29, 0.34)),
      linear-gradient(0deg, rgba(247, 239, 226, 0.98), transparent 22%);
  }

  .recommendation-panel,
  .blend-layout {
    grid-template-columns: 1fr;
  }

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

  .blend-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    min-height: 66px;
  }

  .nav-links {
    gap: 8px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    margin-left: 18px;
    padding-top: 92px;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.6rem, 16vw, 4.8rem);
  }

  .intro-band,
  .oil-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .section-shell {
    width: min(100% - 28px, 1180px);
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }
}
