/* Fibrefine Textiles. Design by Ben Jones (DML), colours and fonts from the Wellington woven label.
   Black  #0C0B0A  header, dark bands, footer
   Gold   #D9B466  name, headings on black, links
   Ivory  #F6F1E7  page background
   Ink    #1F1C18  body text on ivory
   Cream  #ECE3CF  body text on black
   Bronze #7A5D24 / #A9873F  small labels, dividers */

@font-face { font-family: "Fibrefine Schola"; src: url("fonts/schola-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fibrefine Schola"; src: url("fonts/schola-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fibrefine Schola"; src: url("fonts/schola-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --black: #0c0b0a;
  --gold: #d9b466;
  --gold-hi: #f0d79a;
  --ivory: #f6f1e7;
  --ink: #1f1c18;
  --cream: #ece3cf;
  --bronze: #7a5d24;
  --bronze-lt: #a9873f;
  --rule-dark: #5a4a2a;
  --rule-lt: #d8ccb2;
  --serif: "Fibrefine Schola", "Century Schoolbook", "Century Schoolbook L", Century, Georgia, serif;
  --gutter-l: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
html[lang="ko"] { --serif: "Fibrefine Schola", "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--serif); }
html[lang="ko"] body { word-break: keep-all; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
p { margin: 0; font-size: 19px; line-height: 1.7; }
html[lang="ko"] p { font-size: 18px; line-height: 1.85; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
.pad { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* Small spaced capitals (labels, numerals) */
.label { font-size: 14px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--bronze); }
.dark .label, .label.gold { color: var(--gold); }
html[lang="ko"] .label { letter-spacing: 0.18em; }

/* Header */
.site-head { background: var(--black); border-bottom: 1px solid var(--gold); padding-block: 20px; }
.site-head .inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand .crest { width: 72px; height: 45px; object-fit: contain; }
.brand .wordmark { height: 30px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; }
html[lang="ko"] .nav { letter-spacing: 0.1em; font-size: 15px; }
.nav a { padding-block: 12px; }
.nav .lang { border: 1px solid var(--rule-dark); padding: 6px 10px; letter-spacing: 0.08em; text-transform: none; }
.nav .lang:hover { border-color: var(--gold); }
.menu-btn { display: none; }

/* Panorama: anchored left so the Victoria Tower stays in view */
.panorama { background: var(--black); }
.panorama img { width: 100%; height: auto; min-height: 220px; object-fit: cover; object-position: 4% 50%; }

/* Title */
.intro { padding-block: 96px 88px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.intro h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.12; max-width: 900px; }
.ornament { display: flex; align-items: center; gap: 12px; }
.ornament span { width: 96px; height: 1px; background: var(--bronze-lt); }
.ornament i { width: 7px; height: 7px; background: var(--bronze-lt); transform: rotate(45deg); }

/* Sections */
.section { padding-block: 112px; }
.dark { background: var(--black); color: var(--cream); }
.wide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.col { display: flex; flex-direction: column; gap: 24px; }
.col.tight { gap: 20px; }
.center { text-align: center; }
.h2 { font-size: clamp(32px, 4.4vw, 44px); line-height: 1.15; }
.h2.sm { font-size: clamp(30px, 4vw, 40px); }
.h3 { font-size: clamp(28px, 3.4vw, 34px); }
.gold-text { color: var(--gold); }
.coda { font-style: italic; color: var(--gold); }
.coda.on-ivory { color: #6b5120; }
html[lang="ko"] .coda { font-style: normal; }

.story { padding-block: 0 112px; }
.story h2 { font-size: clamp(32px, 4vw, 40px); text-align: center; margin-bottom: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-block: 56px; }
.grid-2 img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }

.flex-row { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.flex-row.mid { align-items: center; }
.flex-row.small-gap { gap: 40px 72px; }
.flex-row.rev { flex-wrap: wrap-reverse; }
.f-text { flex: 1 1 420px; min-width: 0; }
.f-text.n { flex: 1 1 360px; }
.f-media { flex: 2 1 560px; min-width: 0; }
.label-art { flex: 1 1 420px; width: 100%; max-width: 560px; height: auto; object-fit: contain; }

.tiles { display: grid; gap: 16px; }
.tiles img { width: 100%; object-fit: cover; }
.tiles.w2 { width: 100%; max-width: 900px; margin: 0 auto; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.tiles.w220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tiles.w240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tiles.w300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.h300 { height: 300px; } .h340 { height: 340px; } .h390 { height: 390px; }
.h460 { height: 460px; } .h480 { height: 480px; } .h520 { height: 520px; }
img.h300, img.h340, img.h390, img.h460, img.h480, img.h520 { width: 100%; object-fit: cover; }
.yarn-store { max-width: 1200px; width: 100%; margin: 0 auto 96px; }
.steps { display: flex; flex-direction: column; gap: 112px; }
.text-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 72px; }
.inspection { border-bottom: 1px solid var(--rule-lt); }
.inspection .tiles { margin-top: 64px; }

/* Footer */
.site-foot { background: var(--black); color: var(--gold); padding-block: 72px 48px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.site-foot .crest-lg { width: 192px; height: 120px; object-fit: contain; }
.site-foot .wordmark-lg { width: min(480px, 100%); height: auto; }
.made { font-size: 14px; letter-spacing: 0.3em; text-transform: uppercase; }
.contact { width: 100%; max-width: 980px; margin-top: 40px; padding-top: 48px; border-top: 1px solid var(--rule-dark); display: flex; flex-direction: column; align-items: center; gap: 36px; }
.contact h2 { font-size: 34px; color: var(--gold); }
.contact-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 56px; }
.contact-grid > div { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.contact-grid .label { font-size: 13px; letter-spacing: 0.3em; color: var(--gold); }
address, .contact-grid .lines { font-style: normal; font-size: 17px; line-height: 1.7; color: var(--cream); overflow-wrap: anywhere; }
.legal { max-width: 980px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule-dark); font-size: 13px; line-height: 1.7; color: #a99a78; }

/* Film strip: slow loop, pauses on hover, still when reduced motion is set */
@keyframes filmroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.film-strip { background: var(--black); overflow: hidden; padding: 0 0 40px; }
.film-track { display: flex; width: max-content; padding: 8px 0; background: #050505; animation: filmroll 60s linear infinite; }
.film-track img { height: 110px; width: auto; margin-right: 5px; }
.film-strip:hover .film-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .film-track { animation: none; } .film-strip { overflow-x: auto; } }

/* Phones and small tablets */
@media (max-width: 760px) {
  .site-head { padding-block: 14px; }
  .brand { gap: 10px; }
  .brand .crest { width: 52px; height: 33px; }
  .brand .wordmark { height: 21px; }
  .js .menu-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--rule-dark); color: var(--gold); font: inherit; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; padding: 9px 12px; cursor: pointer; }
  html[lang="ko"].js .menu-btn { letter-spacing: 0.08em; }
  .js .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding-top: 8px; }
  .js .nav.open { display: flex; }
  .nav a { padding-block: 10px; }
  .nav .lang { margin-top: 8px; }
  .intro { padding-block: 64px 56px; }
  .section { padding-block: 80px; }
  .story { padding-block: 0 80px; }
  .h480, .h520 { height: 360px; }
  .h460 { height: 340px; }
  .yarn-store { margin-bottom: 64px; }
  .steps { gap: 80px; }
  .flex-row { gap: 40px; }
}
@media (max-width: 420px) {
  .brand .wordmark { height: 17px; }
  .brand .crest { width: 44px; height: 28px; }
  p { font-size: 18px; }
}
