/* K-lutherie — klutherie.com
   Layout: the LAVS system. Flush editorial grid, 1px rules, serif display over a sans
   utility face, photographs on a light-grey plate. No accent colour: hierarchy comes
   from weight, size and tracking only. */

:root {
  --ink:    #1A1A1A;
  --muted:  #5C5C5C;
  --faint:  #8A8A85;
  --rule:   #E3E3E0;
  --plate:  #ECEBE8;
  --bg:     #FFFFFF;
  --foot-bg: #1A1A1A;
  --foot-fg: #FFFFFF;
  --foot-muted: #B8B8B4;
  --foot-text: #D8D8D4;

  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --sans:  Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: 24px;
  --max: 1312px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ECEAE6; --muted: #B0ADA7; --faint: #807D77; --rule: #2C2B29; --plate: #232220;
    --bg: #151514; --foot-bg: #0D0D0C; --foot-fg: #ECEAE6; --foot-muted: #8C8984; --foot-text: #C0BDB7;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #ECEAE6; --muted: #B0ADA7; --faint: #807D77; --rule: #2C2B29; --plate: #232220;
  --bg: #151514; --foot-bg: #0D0D0C; --foot-fg: #ECEAE6; --foot-muted: #8C8984; --foot-text: #C0BDB7;
  color-scheme: dark;
}

@media (min-width: 760px)  { :root { --gutter: 40px; } }
@media (min-width: 1100px) { :root { --gutter: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 12px 18px; z-index: 100; }
.skip:focus { left: 0; color: var(--bg); }

/* ---------- header ---------- */

.masthead { border-bottom: 1px solid var(--rule); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; }

.wordmark { margin-left: 0.02em; font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: 0.2em; line-height: 1; white-space: nowrap; text-transform: uppercase; }
.wordmark span { color: var(--muted); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14px; font-weight: 500; letter-spacing: 0.04em; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.navtoggle { display: none; }

@media (max-width: 899px) {
  .nav { display: none; }
  .navtoggle { display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; background: none; color: var(--ink); border: 1px solid var(--ink); padding: 11px 15px; cursor: pointer; }
  .navtoggle__bars { display: block; width: 16px; height: 10px; position: relative; }
  .navtoggle__bars::before, .navtoggle__bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 1px; background: var(--ink); }
  .navtoggle__bars::before { top: 0; }
  .navtoggle__bars::after  { bottom: 0; }
  .nav--open { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 4px 0 20px; }
  .nav--open a { display: block; width: 100%; padding: 15px 0; border-top: 1px solid var(--rule); font-size: 16px; }
}

/* ---------- type ---------- */

h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 52px); line-height: 1.14; letter-spacing: -0.005em; }
h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 3vw, 28px); line-height: 1.25; }
.label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* ---------- lede ---------- */

.lede { display: flex; gap: 40px; align-items: flex-end; justify-content: space-between; padding: clamp(44px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); }
.lede__text { max-width: 760px; }
.lede__aside { flex-shrink: 0; max-width: 380px; }
.lede__aside p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--muted); }
@media (max-width: 1023px) { .lede { flex-direction: column; align-items: stretch; gap: 22px; } .lede__aside { max-width: 640px; } }

/* ---------- sections ---------- */

.section { padding-top: clamp(48px, 6vw, 72px); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.more { font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- maker grid ---------- */

.grid { display: grid; gap: 36px 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } }
.grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 20px; }
@media (max-width: 1023px) { .grid--6 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 699px)  { .grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }

.maker { min-width: 0; }
.maker__plate { aspect-ratio: 4 / 5; max-width: 100%; background: var(--plate); overflow: hidden; margin-bottom: 12px; }
.maker__plate img { width: 100%; height: 100%; object-fit: cover; }
.maker__name { font-family: var(--serif); font-size: 19px; line-height: 1.25; margin: 0 0 3px; }
.maker__meta { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
.maker a:hover .maker__name { color: var(--muted); }

/* filters */

.filters { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.filters button { font-family: var(--sans); font-size: 13px; letter-spacing: 0.04em; background: none; border: 0; padding: 6px 0; color: var(--muted); cursor: pointer; }
.filters button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.filters__sep { color: var(--rule); align-self: center; }
.maker[hidden] { display: none; }
.empty { color: var(--muted); font-size: 15px; padding: 24px 0; }

/* ---------- statement ---------- */

.statement { display: flex; gap: clamp(28px, 5vw, 72px); margin-top: clamp(56px, 7vw, 80px); padding: clamp(36px, 5vw, 52px) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.statement > .label { width: 220px; flex-shrink: 0; padding-top: 8px; }
.statement p { margin: 0; max-width: 800px; font-family: var(--serif); font-size: clamp(19px, 2.4vw, 24px); line-height: 1.6; }
.statement > div { min-width: 0; }
@media (max-width: 899px) { .statement { flex-direction: column; gap: 14px; } .statement > .label { width: auto; } }

/* ---------- list rows ---------- */

.rows { display: flex; flex-direction: column; }
.row { display: flex; gap: 32px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--rule); }
.row:last-child { border-bottom: 1px solid var(--rule); }
.row > div { min-width: 0; }
.row__k { width: 200px; flex-shrink: 0; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.row__t { font-family: var(--serif); font-size: clamp(18px, 2.2vw, 21px); margin: 0 0 5px; }
.row__d { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.row__v { font-size: 15px; }
.row__v small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
@media (max-width: 759px) { .row { flex-direction: column; gap: 6px; } .row__k { width: auto; } }

/* ---------- maker page ---------- */

.profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); padding-top: clamp(40px, 5vw, 64px); }
@media (max-width: 899px) { .profile { grid-template-columns: 1fr; gap: 28px; } }
.profile__plate { background: var(--plate); }
.profile__plate img { width: 100%; }
.caption { font-size: 12px; color: var(--faint); margin: 10px 0 0; letter-spacing: 0.02em; }
.profile__body > .label { margin-bottom: 14px; display: block; }
.profile__body h1 { margin-bottom: 10px; }
.profile__meta { font-size: 15px; color: var(--muted); margin: 0 0 28px; line-height: 1.7; }
.profile__bio { font-family: var(--serif); font-size: clamp(17px, 2vw, 19px); line-height: 1.7; margin: 0; max-width: 620px; }
.profile__bio.is-empty { color: var(--muted); font-style: italic; }

.facts { margin-top: 36px; }
.facts .row { padding: 14px 0; }
.facts .row__k { width: 140px; }

.work { display: grid; gap: 24px 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 699px) { .work { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.work figure { margin: 0; min-width: 0; }
.work .plate { aspect-ratio: 1 / 1; max-width: 100%; background: var(--plate); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.work .plate img { width: 100%; height: 100%; object-fit: contain; }
.work figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.pager { display: flex; justify-content: space-between; gap: 20px; margin-top: clamp(48px, 6vw, 72px); padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; }
.pager a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- article ---------- */

.article { max-width: 720px; padding-top: clamp(40px, 5vw, 64px); }
.article .label { display: block; margin-bottom: 14px; }
.article h1 { margin-bottom: 18px; }
.article__summary { font-family: var(--serif); font-size: clamp(18px, 2.2vw, 21px); line-height: 1.6; color: var(--muted); margin: 0 0 32px; }
.article__fig { margin: 0 0 32px; }
.article__fig .plate { background: var(--plate); }
.article__fig img { display: block; width: 100%; height: auto; }
.article__fig figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.article__body p { font-size: 17px; line-height: 1.8; margin: 0 0 20px; }
.article__links { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.article__links a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.article__links p { margin: 0 0 8px; }

/* ---------- about ---------- */

.prose { max-width: 720px; }
.prose p { font-size: 17px; line-height: 1.8; margin: 0 0 20px; }
.prose p.lead { font-family: var(--serif); font-size: clamp(19px, 2.4vw, 24px); line-height: 1.6; }
.split { display: flex; gap: clamp(28px, 5vw, 72px); padding: clamp(36px, 5vw, 52px) 0; border-top: 1px solid var(--rule); }
.split > .label { width: 220px; flex-shrink: 0; padding-top: 6px; }
.split__body { max-width: 720px; width: 100%; min-width: 0; }
.split__body p { margin: 0 0 16px; font-size: 16px; line-height: 1.8; }
.split__body p:last-child { margin-bottom: 0; }
@media (max-width: 899px) { .split { flex-direction: column; gap: 14px; } .split > .label { width: auto; } }

/* ---------- footer ---------- */

.foot { margin-top: clamp(64px, 9vw, 96px); background: var(--foot-bg); color: var(--foot-fg); }
.foot__inner { display: flex; justify-content: space-between; gap: 40px; padding: 48px 0; }
.foot__inner > * { min-width: 0; }
.foot a { color: var(--foot-fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.foot a:hover { opacity: 0.75; }
.foot__mark { margin-left: 0.02em; font-family: var(--serif); font-size: 22px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 12px; }
.foot__mark span { color: var(--foot-muted); }
.foot__tag { font-size: 13px; line-height: 1.8; color: var(--foot-muted); margin: 0; max-width: 320px; }
.foot__col { font-size: 14px; line-height: 2; color: var(--foot-text); font-style: normal; }
.foot__col strong { display: block; color: var(--foot-fg); font-weight: 500; letter-spacing: 0.16em; font-size: 11px; text-transform: uppercase; margin-bottom: 6px; }
.foot__legal { font-size: 12px; line-height: 1.9; color: var(--foot-muted); margin: 0; max-width: 320px; }
@media (max-width: 899px) { .foot__inner { flex-direction: column; gap: 28px; } .foot__tag, .foot__legal { max-width: none; } }

/* ---------- form ---------- */

.form { max-width: 720px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 clamp(36px, 5vw, 52px); }
.form legend { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 24px); padding: 0 0 18px; border-bottom: 1px solid var(--rule); width: 100%; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label { font-size: 14px; font-weight: 500; }
.field label small { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field textarea, .field select {
  font-family: var(--sans); font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--ink); padding: 12px 14px; width: 100%; border-radius: 0; min-width: 0;
}
.field textarea { min-height: 120px; line-height: 1.6; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.field .hint { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.choices { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 400; cursor: pointer; }
.choices input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.field input[type="file"] { font-size: 14px; }
.form .btn { margin-top: 8px; }
.form__note { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 16px 0 0; }
.form__status { font-size: 15px; margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--rule); }

.btn { display: inline-block; font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.04em; line-height: 1; padding: 14px 22px; border: 1px solid var(--ink); background: none; color: var(--ink); cursor: pointer; border-radius: 0; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { opacity: 0.85; }
.btn--lg { font-size: 15px; padding: 16px 28px; }
.btn:disabled { opacity: 0.5; cursor: default; }

/* ---------- language ---------- */

.masthead__right { display: flex; align-items: center; gap: 18px; }
.nav .lang { display: none; }
.masthead__right .lang { font-size: 13px; letter-spacing: 0.06em; color: var(--muted); padding: 6px 0; }
.masthead__right .lang:hover { color: var(--ink); }
@media (max-width: 899px) {
  .nav--open .lang { display: block; }
}

/* Korean: pair Noto Serif KR / Noto Sans KR with the Latin faces */
.lang-ko { --serif: Newsreader, "Noto Serif KR", Georgia, serif; --sans: Archivo, "Noto Sans KR", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.lang-ko h1, .lang-ko h2, .lang-ko .maker__name, .lang-ko .row__t, .lang-ko .profile__bio, .lang-ko .statement p, .lang-ko .prose p.lead, .lang-ko .article__summary { word-break: keep-all; }
.lang-ko h1 { letter-spacing: -0.01em; }
.lang-ko .label { letter-spacing: 0.12em; }
