@font-face {
  font-family: "Story Serif";
  src: url("assets/story-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #12161c;
  --oak: #3a2e24;
  --silver: #8c9296;
  --canvas: #f5f3f0;
  --gold: #c8aa68;
  --muted: #5f625f;
  --line: #d8d3ca;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; text-underline-offset: 6px; }
button { font: inherit; }
img { display: block; max-width: 100%; }
figure, p, h1, h2 { margin: 0; }
svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
::selection { background: var(--oak); color: var(--canvas); }
:focus-visible { outline: 2px solid #8b6a2e; outline-offset: 6px; }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 24px; z-index: 10; padding: 12px 18px; background: var(--canvas); color: var(--ink); }
.skip-link:focus { top: 18px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { background: var(--ink); color: var(--canvas); }
.header-inner { width: min(1440px, calc(100% - 96px)); min-height: 94px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.brand img { width: 240px; height: 54px; object-fit: contain; }
.desktop-nav { align-self: stretch; display: flex; align-items: center; gap: 38px; font-size: 15px; }
.desktop-nav a { align-self: stretch; display: flex; align-items: center; border-bottom: 2px solid transparent; padding-top: 2px; }
.desktop-nav [aria-current] { color: var(--gold); border-color: var(--gold); }
.desktop-nav a:hover, .header-actions a:hover { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 19px; }
.header-actions a, .menu-toggle { min-width: 28px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.menu-toggle { display: none; padding: 0; border: 0; color: inherit; background: none; cursor: pointer; }
.site-header :focus-visible { outline-color: var(--gold); }
.mobile-nav { padding: 12px 24px 24px; border-top: 1px solid #363a40; }
.mobile-nav a { display: block; padding: 13px 0; }
.mobile-nav [aria-current] { color: var(--gold); }
.mobile-nav[hidden] { display: none; }

.page-heading { display: flex; align-items: center; justify-content: space-between; padding-block: 29px; font-size: 13px; color: var(--muted); }
.breadcrumb { display: flex; gap: 14px; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.page-brand { color: #6a645b; }
.hero { display: grid; grid-template-columns: 0.87fr 1.13fr; min-height: 582px; align-items: stretch; margin-bottom: 92px; }
.hero-copy { padding: 49px 64px 28px 0; display: flex; flex-direction: column; align-items: flex-start; }
h1, h2 { font-family: "Story Serif", "Noto Serif SC", "Songti SC", serif; font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(44px, 4.5vw, 66px); line-height: 1.42; letter-spacing: -0.025em; }
.hero-intro { max-width: 27em; font-size: 16px; color: #51544f; line-height: 2; margin-top: 28px; }
.read-link { display: inline-flex; align-items: center; gap: 32px; font-size: 14px; margin-top: auto; padding-top: 34px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.read-link svg { width: 18px; height: 18px; transition: transform 180ms ease; }
.read-link:hover svg { transform: translateY(4px); }
.hero-visual { min-width: 0; overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; min-height: 582px; object-fit: cover; object-position: 44% center; }

.origin { background: var(--ink); color: var(--canvas); padding-block: 74px; }
.origin-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 78px; align-items: start; }
.origin h2 { font-size: 34px; line-height: 1.65; }
.origin-copy { font-size: 17px; line-height: 2.05; color: #d2d0cb; }
.origin-copy p + p { margin-top: 20px; }
.company-name, .factory-area { color: #f5f3f0; }

.story-section { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 92px; align-items: center; padding-top: 108px; }
.story-visual { min-width: 0; }
.story-visual img { width: 100%; height: auto; aspect-ratio: 1.03; object-fit: cover; }
.wine-visual img { object-position: 37% center; }
figcaption { margin-top: 13px; font-size: 12px; color: #666a65; line-height: 1.7; }
.section-copy { padding-bottom: 25px; }
.section-copy h2 { font-size: clamp(29px, 2.7vw, 40px); line-height: 1.6; margin-bottom: 26px; }
.section-copy p { font-size: 16px; line-height: 2; color: #51544f; }
.section-copy p + p { margin-top: 20px; }
.text-link { display: inline-flex; align-items: center; gap: 28px; font-size: 14px; border-bottom: 1px solid var(--ink); margin-top: 28px; padding-bottom: 9px; }
.text-link svg { width: 19px; height: 19px; transition: transform 180ms ease; }
.text-link:hover svg { transform: translateX(4px); }
.furniture-section { grid-template-columns: 0.95fr 1.05fr; }
.furniture-visual img { object-fit: contain; background: #e4e1db; }

.closing { margin-top: 96px; padding-block: 72px 88px; border-top: 1px solid var(--line); text-align: center; }
.closing h2 { font-size: clamp(26px, 2.7vw, 38px); line-height: 1.65; }
.closing p { margin-top: 17px; font-size: 15px; line-height: 1.9; color: var(--muted); }
.contact-link { display: inline-flex; align-items: center; justify-content: center; gap: 26px; background: var(--ink); color: var(--canvas); margin-top: 32px; min-height: 52px; padding: 14px 27px; font-size: 14px; transition: background 160ms ease; }
.contact-link:hover { background: var(--oak); }
.contact-link svg { width: 19px; height: 19px; }

.site-footer { background: var(--ink); color: var(--canvas); padding-block: 54px 29px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px 100px; }
.footer-brand img { width: 240px; height: 54px; object-fit: contain; }
.footer-brand p { margin-top: 24px; color: #b8bab7; font-size: 13px; line-height: 1.9; }
.footer-inner nav { display: flex; align-items: flex-start; gap: 34px; padding-top: 18px; font-size: 14px; }
.footer-inner nav a:hover { color: var(--gold); }
.footer-meta { grid-column: 1 / -1; border-top: 1px solid #343940; padding-top: 23px; display: flex; justify-content: space-between; color: #b8bab7; font-size: 12px; line-height: 1.7; }

@media (max-width: 1150px) {
  .header-inner { width: calc(100% - 56px); display: grid; grid-template-columns: 1fr auto; grid-template-rows: 78px 44px; gap: 0 22px; }
  .brand { grid-area: 1 / 1; }
  .desktop-nav { grid-area: 2 / 1; }
  .header-actions { grid-area: 1 / 2; }
  .language-control { grid-area: 2 / 2; justify-self: end; }
  .brand img { width: 200px; }
  .desktop-nav { gap: 24px; }
  .header-actions { gap: 13px; }
  .wrap { width: calc(100% - 72px); }
  .hero { min-height: 520px; }
  .hero-copy { padding-right: 36px; padding-top: 32px; }
  .hero-visual img { min-height: 520px; }
  .origin-inner { gap: 48px; }
  .story-section { gap: 52px; }
  .origin h2 { font-size: 30px; }
}

@media (max-width: 800px) {
  .header-inner { min-height: 78px; width: calc(100% - 40px); }
  .brand img { width: 178px; height: 48px; }
  .desktop-nav { display: none; }
  .header-actions { gap: 13px; }
  .header-actions a:first-child { display: none; }
  .menu-toggle { display: flex; }
  .wrap { width: calc(100% - 48px); }
  .page-heading { padding-block: 22px; }
  .hero { grid-template-columns: 1fr; margin-bottom: 52px; }
  .hero-copy { padding: 20px 0 36px; }
  h1 { font-size: clamp(40px, 8vw, 58px); line-height: 1.4; }
  .hero-intro { max-width: 40em; margin-top: 21px; }
  .read-link { padding-top: 26px; }
  .hero-visual img { min-height: 0; height: auto; aspect-ratio: 1.25; object-position: center; }
  .origin { padding-block: 48px; }
  .origin-inner { grid-template-columns: 1fr; gap: 26px; }
  .origin h2 { font-size: 30px; line-height: 1.6; }
  .origin-copy { font-size: 16px; line-height: 2; }
  .story-section, .furniture-section { grid-template-columns: 1fr; gap: 29px; padding-top: 60px; }
  .story-visual img { aspect-ratio: 1.18; }
  .section-copy { padding-bottom: 0; }
  .section-copy h2 { font-size: 32px; margin-bottom: 22px; }
  .furniture-visual { grid-row: 1; }
  .closing { margin-top: 54px; padding-block: 48px 60px; }
  .closing h2 { font-size: 28px; }
  .footer-inner { gap: 28px; }
  .footer-inner nav { flex-direction: column; gap: 18px; padding-top: 7px; }
}

@media (max-width: 430px) {
  .header-inner { width: calc(100% - 32px); gap: 10px; }
  .brand img { width: clamp(132px, 39vw, 154px); height: 44px; }
  .header-actions { gap: 8px; }
  .header-actions a, .menu-toggle { min-width: 27px; }
  .header-actions svg { width: 21px; height: 21px; }
  .page-brand { font-size: 11px; }
  h1 { font-size: 44px; }
  .hero-intro { font-size: 15px; }
  .origin h2 { font-size: 28px; }
  .closing h2 { max-width: 11em; margin-inline: auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner nav { flex-direction: row; flex-wrap: wrap; gap: 28px; }
  .footer-meta { gap: 16px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Flag menu adapted from LavosenPack MarketingLanguageSelect. */
.language-control { position: relative; margin-inline-start: auto; flex-shrink: 0; }
#language-toggle { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid #dfe4ea; border-radius: 24px; background: #fff; color: #334155; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.language-control img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; flex-shrink: 0; }
#language-toggle svg { width: 14px; height: 14px; stroke-width: 1.8; transition: transform 160ms ease; }
#language-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
#language-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 60; width: 184px; max-height: min(460px, calc(100dvh - 144px)); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 4px 0; list-style: none; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; color: #334155; box-shadow: 0 12px 24px rgb(0 0 0 / 14%); }
#language-menu[hidden] { display: none; }
#language-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 9px 12px; border: 0; background: transparent; color: inherit; font-size: 14px; text-align: start; cursor: pointer; }
#language-menu { direction: ltr; }
html[dir="rtl"] #language-menu { inset-inline-end: auto; inset-inline-start: 0; }
#language-menu button[lang="ar"] span { direction: rtl; }
#language-menu button:hover, #language-menu button:focus-visible { background: #f7f9fb; }
#language-menu button[aria-checked="true"] { background: #e9f5ed; color: #32664a; font-weight: 600; }
html[dir="rtl"] .hero-copy { padding-right: 0; padding-left: 64px; }
html[dir="rtl"] .text-link svg, html[dir="rtl"] .contact-link svg { transform: rotate(180deg); }
@media (max-width: 1150px) {
  html[dir="rtl"] .hero-copy { padding-left: 36px; }
}
@media (max-width: 800px) {
  html[dir="rtl"] .hero-copy { padding-left: 0; }
}
