/* Динобон, мастерская авторского серебра. Шрифт заголовков — Cormorant Garamond (OFL), лежит рядом. */
@font-face { font-family: "Cormorant"; src: url("/static/type/cormorant-500-cyr.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; src: url("/static/type/cormorant-500-lat.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Cormorant"; src: url("/static/type/cormorant-600-cyr.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; src: url("/static/type/cormorant-600-lat.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Cormorant"; src: url("/static/type/cormorant-600i-cyr.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; src: url("/static/type/cormorant-600i-lat.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }

:root {
  --wall: #f3f4f5;
  --mat: #ffffff;
  --chern: #222428;
  --chern-soft: #5f636a;
  --hair: #d8dbdf;
  --garnet: #7a1e32;
  --tag: #f6f0e1;
  --thread: #a58245;
  --serif: "Cormorant", "Cormorant Garamond", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --page: 1240px;
  --side: clamp(16px, 4.5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wall); color: var(--chern); font: 16.5px/1.62 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--garnet); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--garnet); outline-offset: 3px; }
.jump { position: absolute; left: -999px; top: 8px; background: var(--chern); color: #fff; padding: 8px 14px; z-index: 5; }
.jump:focus { left: 8px; }

.frame { max-width: var(--page); margin: 0 auto; padding: 0 var(--side); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .45em; letter-spacing: .005em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.55rem; font-weight: 600; }
p, ul, ol { margin: 0 0 1em; }
.quiet { color: var(--chern-soft); }

/* Шапка */
.masthead { border-bottom: 1px solid var(--hair); background: var(--wall); }
.masthead .frame { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; flex-wrap: wrap; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark svg { width: 34px; height: 34px; flex: none; }
.mark b { font: 600 1.9rem/1 var(--serif); letter-spacing: .01em; display: block; }
.mark small { display: block; font-size: .78rem; color: var(--chern-soft); letter-spacing: .02em; margin-top: 3px; }
.links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.links a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.links a:hover, .links a[aria-current="page"] { border-bottom-color: var(--garnet); color: var(--chern); }
@media (max-width: 860px) {
  .masthead .frame { padding-top: 14px; padding-bottom: 10px; }
  .links { gap: 2px 16px; font-size: .92rem; }
}

/* Главная: триптих */
.triptych { display: grid; grid-template-columns: 1.25fr .8fr 1fr; gap: clamp(10px, 2vw, 26px); align-items: start; padding-top: clamp(24px, 4vw, 48px); }
.triptych figure { margin: 0; background: var(--mat); padding: clamp(8px, 1.2vw, 16px); box-shadow: 0 1px 0 var(--hair); }
.triptych figure:nth-child(2) { margin-top: clamp(30px, 7vw, 110px); }
.triptych figure:nth-child(3) { margin-top: clamp(12px, 2.5vw, 36px); }
.opening { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(20px, 4vw, 64px); align-items: end; padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 5vw, 72px); border-bottom: 1px solid var(--hair); }
.opening h1 { margin: 0; }
.opening p { margin: 0 0 .8em; max-width: 36em; }
@media (max-width: 760px) {
  .triptych { grid-template-columns: 1fr 1fr; }
  .triptych figure:first-child { grid-column: 1 / -1; }
  .triptych figure:nth-child(2) { margin-top: 0; }
  .triptych figure:nth-child(3) { margin-top: 0; }
  .opening { grid-template-columns: 1fr; }
}

/* Разделы */
.block { padding: clamp(40px, 6vw, 84px) 0; }
.block + .block { border-top: 1px solid var(--hair); }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(18px, 3vw, 34px); }
.block-head h2 { margin: 0; }
.block-head p { margin: 0; color: var(--chern-soft); max-width: 34em; }

/* Витрина и бирки */
.vitrine { columns: 3 300px; column-gap: clamp(14px, 2.4vw, 32px); }
.piece { break-inside: avoid; margin: 0 0 clamp(22px, 3vw, 38px); display: block; text-decoration: none; }
.piece .photo { background: var(--mat); padding: 10px; }
.piece .photo img { width: 100%; }
.tag { position: relative; display: inline-block; margin: 12px 0 0 26px; padding: 7px 14px 8px 22px; background: var(--tag); font-size: .84rem; line-height: 1.4; color: var(--chern); clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); max-width: calc(100% - 26px); }
.tag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--wall); box-shadow: inset 0 0 0 1px var(--thread); }
.tag::after { content: ""; position: absolute; }
.piece .thread { position: relative; display: block; }
.piece .thread::before { content: ""; position: absolute; left: 6px; top: -2px; width: 26px; height: 32px; border-left: 1px solid var(--thread); border-bottom: 1px solid var(--thread); border-bottom-left-radius: 14px; }
.tag b { font-weight: 600; }
.tag .no { color: var(--thread); font-variant-numeric: tabular-nums; margin-right: 6px; }
.tag span { display: block; color: var(--chern-soft); }
a.piece:hover .tag b { color: var(--garnet); }

/* Камни: указатель */
.stones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 clamp(18px, 3vw, 40px); }
.stones li { border-top: 1px solid var(--hair); padding: 16px 0 18px; }
.stones a { text-decoration: none; display: block; }
.stones .name { font: 500 1.85rem/1.1 var(--serif); display: block; }
.stones a:hover .name { color: var(--garnet); }
.stones .facts { font-size: .86rem; color: var(--chern-soft); display: block; margin-top: 4px; }

/* Записки */
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { display: grid; grid-template-columns: 9.5em 1fr; gap: 6px 26px; padding: 18px 0; border-top: 1px solid var(--hair); }
.notes time { color: var(--chern-soft); font-size: .92rem; padding-top: .45em; }
.notes h3 { margin: 0 0 4px; }
.notes h3 a { text-decoration: none; }
.notes p { margin: 0; max-width: 46em; }
@media (max-width: 600px) { .notes li { grid-template-columns: 1fr; } .notes time { padding-top: 0; } }

/* Статьи и страницы */
.crumbs { font-size: .86rem; color: var(--chern-soft); padding-top: 26px; }
.crumbs a { color: var(--chern-soft); }
.page-head { padding: 18px 0 clamp(20px, 3vw, 36px); max-width: 52rem; }
.page-head .sub { font-size: 1.12rem; color: var(--chern-soft); max-width: 40em; }
.text { max-width: 41rem; font-size: 1.04rem; }
.text h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-top: 1.5em; }
.text h3 { margin-top: 1.2em; }
.text li { margin-bottom: .35em; }
.text figure { margin: 1.8em 0; }
.text figure img { background: var(--mat); padding: 10px; }
.text figcaption { font-size: .86rem; color: var(--chern-soft); margin-top: 8px; }
.text blockquote { margin: 1.6em 0; padding: 0 0 0 20px; border-left: 2px solid var(--thread); font: italic 600 1.35rem/1.35 var(--serif); }
.with-aside { display: grid; grid-template-columns: minmax(0, 41rem) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; padding-bottom: clamp(40px, 6vw, 84px); }
.aside { font-size: .92rem; border-top: 2px solid var(--chern); padding-top: 14px; position: sticky; top: 20px; }
.aside dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.aside dt { color: var(--chern-soft); }
.aside dd { margin: 0; }
.aside p { margin-top: 14px; }
@media (max-width: 900px) { .with-aside { grid-template-columns: 1fr; } .aside { position: static; } }
.dated { font-size: .9rem; color: var(--chern-soft); margin-bottom: 1.4em; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { font-weight: 600; border-bottom-color: var(--chern); }
.from-archive { border-left: 2px solid var(--thread); padding: 4px 0 4px 16px; color: var(--chern-soft); font-size: .93rem; margin: 1.6em 0; }

/* Страница работы */
.work { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 60px); align-items: start; padding-bottom: clamp(40px, 6vw, 84px); }
.work .shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.work .shots img { background: var(--mat); padding: 10px; width: 100%; }
.work .shots img:first-child { grid-column: 1 / -1; }
@media (max-width: 820px) { .work { grid-template-columns: 1fr; } }
.filter { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0 0 30px; font-size: .95rem; }

/* Подвал */
.foot { background: var(--chern); color: #c9ccd1; font-size: .92rem; padding: clamp(36px, 5vw, 60px) 0 28px; }
.foot a { color: #eceef0; text-decoration-color: #5f636a; }
.foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 6px; }
.foot .wordmark { font: 600 1.7rem/1 var(--serif); color: #fff; margin-bottom: 10px; }
.foot .fine { border-top: 1px solid #3a3d43; margin-top: 30px; padding-top: 16px; font-size: .84rem; color: #9a9ea5; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* 404 */
.lost { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 70px); align-items: center; padding: clamp(40px, 8vw, 110px) 0; }
.lost .big { font: 500 clamp(5rem, 16vw, 11rem)/.9 var(--serif); color: var(--thread); margin: 0 0 12px; }
.lost figure { margin: 0; background: var(--mat); padding: 12px; }
.lost figure img { width: 100%; }
@media (max-width: 760px) { .lost { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .masthead, .foot, .jump { display: none; } body { background: #fff; } }
@media (max-width: 600px) {
  .vitrine { columns: 2; column-gap: 12px; }
  .piece .photo { padding: 6px; }
  .tag { margin-left: 16px; padding: 6px 10px 7px 18px; font-size: .74rem; max-width: calc(100% - 16px); }
  .tag span { display: none; }
  .piece .thread::before { width: 16px; height: 26px; }
}
