/* Pigments from the cognac and dark bindings in Sergey's workshop. */
:root {
  --ink: #332015;
  --muted: #68503e;
  --paper: #efdfc3;
  --linen: #e6ceb0;
  --line: #b69a75;
  --wine: #613323;
  --light: #fff1d8;
  --brass: #d6ae72;
  --stamp: #88512f;
  --serif: 'Cormorant Garamond', 'Baskerville', Georgia, 'Times New Roman', serif;
  --grain: url('media/worktable-grain.jpg');
  --paper-surface: linear-gradient(110deg, #f3e7d4f5 0%, #efdfc5f7 54%, #e9d7bbf5 100%);
  --leather-surface: linear-gradient(116deg, #603624d6, #42271ad4 52%, #321b13bf);
}

body {
  background-color: var(--paper);
  background-image: var(--paper-surface), var(--grain);
  background-size: auto, 240px;
  color: var(--ink);
}
::selection { color: #fff4e2; background: #74442e; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #a36927;
  outline-offset: 4px;
}
:where(.workshop-hero, .occasions, .collections, .contact) :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #ffe2a6;
  outline-offset: 4px;
}
.section { padding-block: clamp(58px, 6.7vw, 106px); }
:where(.wrap, .hero-copy, .case-row figcaption) { min-width: 0; }
body > header {
  border-bottom: 1px solid #927148;
  background: linear-gradient(100deg, #322015e8, #271a12e0), var(--grain) center/220px;
  color: #faebd1;
}
body > header .brand { color: #f7e6c6; letter-spacing: -.025em; font-weight: 600; }
body > header .bar nav a { color: #f1dfbf; }
body > header .bar nav a:last-child { border-color: #9e794e; border-radius: 2px; }
body > header .menu-toggle { color: #f8e6c9; border-color: #a1835c; border-radius: 2px; }

/* The first spread mirrors the double gilt rule and the hinge of a leather cover. */
.workshop-hero {
  background: var(--leather-surface), var(--grain) center/230px;
  border-block-end: 3px double #b09360;
}
.workshop-hero::after { display: none; }
.workshop-hero .hero-inner {
  max-width: 1850px;
  isolation: isolate;
}
.workshop-hero .hero-inner::before,
.workshop-hero .hero-inner::after {
  content: '';
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.workshop-hero .hero-inner::before {
  inset: clamp(12px, 1.2vw, 24px);
  border: 1px solid #b4874b88;
  outline: 1px solid #a9854f55;
  outline-offset: 4px;
}
.workshop-hero .hero-inner::after {
  inset: 0 auto 0 0;
  width: clamp(14px, 2.45vw, 46px);
  background: linear-gradient(90deg, #2413083d, #dca35f13 55%, #23150d75 83%, #c4986129 89%, transparent);
}
.workshop-hero .hero-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(95deg, #3e2218e8 0%, #3b2115b8 33%, #34201328 66%, transparent 76%), var(--grain) left top/240px;
  mask-image: linear-gradient(90deg, #000c 0%, #0009 36%, transparent 69%);
  pointer-events: none;
}
.workshop-hero .hero-copy { padding-left: clamp(34px, 5.6vw, 99px); }
.workshop-hero h1 {
  font-size: clamp(55px, 6.55vw, 114px);
  line-height: .96;
  letter-spacing: -.035em;
  font-weight: 600;
  color: #fff0d6;
  margin: clamp(19px, 2.1vw, 35px) 0 clamp(16px, 1.7vw, 28px);
}
.workshop-hero h1 em { font-weight: 500; color: #ecc185; }
.workshop-hero .hero-copy p { color: #f0dfc7; max-width: 37ch; line-height: 1.56; }
.workshop-hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: .13em;
  color: #e4c28b;
}
.workshop-hero .kicker::before {
  content: '';
  width: 31px;
  height: 6px;
  border-block: 1px solid #ba9159;
}
.workshop-hero .actions { gap: 12px 20px; }
.workshop-hero .button, .contact form .button {
  min-height: 48px;
  border: 1px solid #dab57c;
  border-radius: 2px;
  background: linear-gradient(110deg, #f4deb2, #dfbc86);
  color: #372016;
  box-shadow: inset 0 0 0 2px #f4e3bf77, 0 2px 6px #291b1440;
}
.workshop-hero .button:hover, .contact form .button:hover { background: #f6e3c2; }
.workshop-hero .textlink { color: #f5dfbd; text-decoration-color: #a98050; }
.hero-switch {
  right: max(3.1%, 26px);
  bottom: max(4.5%, 25px);
  border: 1px solid #b88e5d;
  border-radius: 3px;
  background: #2e1b12f2;
}
.hero-switch button { border-radius: 1px; color: #f8e7c9; }
.hero-switch button[aria-pressed='true'] { background: #e4c69b; color: #362217; }

/* The shelf and the gallery sit on two successive leaves. */
.library {
  background: linear-gradient(105deg, #e6cfaaed, #e1c59cef 53%, #d2ae80ef), var(--grain) center/240px;
  border-block: 0;
  box-shadow: inset 0 -1px #b39569;
  color: #382216;
}
.library-heading { align-items: center; gap: clamp(20px, 4vw, 65px); }
.library-heading::after {
  content: '';
  flex: 1;
  height: 5px;
  border-block: 1px solid #9c7851;
  opacity: .7;
}
.library h2, #works .head h2, .moments-head h2, .gift-story h2,
.service-lead h2, .case-head h2, .care-head h2, .collection-intro h2, .contact h2 {
  letter-spacing: -.037em;
  font-weight: 600;
  line-height: .97;
}
.library h2 em, .gift-story h2 em, .service-lead h2 em, .case-head h2 em, .care-head h2 em {
  color: #865133;
  font-weight: 500;
}
.library-picture a {
  padding: clamp(5px, .7vw, 10px);
  background: #493020 var(--grain) center/240px;
  outline: 1px solid #a7804d;
  outline-offset: -3px;
  box-shadow: 0 3px 9px #48311b30;
}
.library-picture figcaption { color: #624a35; }
.library-choices { border-block: 3px double #a17b51; }
.library-choices a + a { border-color: #bb9c71; }
.library-choices strong { font-weight: 600; color: #43291b; }
.library-choices small { color: #634b36; }
.library-links h3 { color: #523a2a; }
#works .head { border-color: #ac8d65; }
#works .filters { gap: 7px; }
#works .filters button {
  min-height: 42px;
  color: #533722;
  border-color: #a48662;
  border-radius: 2px;
  background: #f4e6d1;
}
#works .filters button[aria-pressed='true'] {
  background: #5a3323 var(--grain) center/230px;
  color: #fff2d6;
  box-shadow: inset 0 0 0 2px #a37b484f;
  border-color: #785638;
}
.card, .moment, .care-stories article { min-width: 0; }
.card .enlarge {
  aspect-ratio: 4 / 5;
  border: 1px solid #ab8a63;
  background: #dfc5a3;
  box-shadow: 0 2px 6px #55371d21;
}
.card .enlarge span {
  border-radius: 1px;
  background: #3b251be8;
  color: #f3dfb9;
  border: 1px solid #c9ab7f;
}
.card h3, .moment h3, .care-stories h3, .case-row h3, .collection-cases h3, .collection-brief h3,
.inscription h3 { font-weight: 600; letter-spacing: -.025em; }
.card figcaption { border-color: #ba9a73; }
.card .ask-model, .action-ink, .care-cross, .care-stories article a { color: #754428; text-decoration-color: #a4754a; }

/* Oxblood endpaper, parchment, and the gilt lettering sample. */
.occasions {
  color: #f8e8cb;
  background: linear-gradient(118deg, #633424e6 0%, #48271cce 60%, #3a2117dc), var(--grain) center/240px;
  border-block: 3px double #99744e;
}
.moments-head h2 em, .collection-intro h2 em { color: #e8bb7e; font-weight: 500; }
.moments-head p, .moment p { color: #eddbc3; }
.moment img, .care-stories img, .service-plate img, .bible-care img, .collection-intro img {
  outline: 1px solid #9d7b5480;
  outline-offset: -1px;
}
.moment-actions { border-color: #a67d53; }
.moment-actions a { color: #f5d399; text-decoration-color: #b88a5c; }
.occasions .care-caption { color: #d9c2a8; }
.heirloom, .process {
  background: var(--paper-surface), var(--grain) center/240px;
  border-block: 1px solid #b59975;
}
.inscription {
  padding: clamp(23px, 3.2vw, 52px);
  border: 1px solid #b9966d;
  background: linear-gradient(125deg,#f9ecd4e6,#e2c6a0ad);
  box-shadow: inset 0 0 0 4px #f1dfc3, inset 0 0 0 5px #bf9f715c;
}
.inscription input, .batch-fields input, .contact form select, .contact form textarea { border-radius: 2px; }
.inscription input { background: #fff5e3; border-color: #ac8a63; }
.foil-sample {
  min-height: clamp(126px, 12vw, 190px);
  border-radius: 4px;
  outline-color: #a9814d;
  outline-offset: -11px;
  background: linear-gradient(125deg, #81492b85, #42241711 65%, #301a1577), var(--grain) center/235px;
  box-shadow: inset 11px 0 9px -10px #e1ab60b8, inset 0 0 0 5px #2b19196b, 0 2px 5px #2d211b2e;
}
.foil-sample span { color: #f1ce85; font-weight: 500; }
.rest, .second-life {
  background: linear-gradient(105deg, #e3c7a2ee, #e9d4b8f5 57%, #dcc09cf0), var(--grain) center/240px;
  border-block: 1px solid #b39670;
}
.service-list, .service-list > div, .case-row { border-color: #b59670; }
.service-list dt { font-weight: 600; }
.process-gallery .case-photo {
  border: 1px solid #987a58;
  box-shadow: 0 3px 8px #502d1c24;
}
.case-row figcaption::before {
  content: '';
  display: block;
  width: 39px;
  border-top: 3px double #a98252;
  margin-bottom: 17px;
}
.process-gallery .case-photo span { border-color: #c4a172; background: #3e281cdd; color: #fcead1; }
.collections {
  background: var(--leather-surface), var(--grain) center/240px;
  color: #f9e9cc;
  border-block: 3px double #a5825b;
}
.collections .collection-intro p, .collection-cases p, .collection-brief p { color: #ecd9c1; }
.collections figcaption { color: #d2b799; }
.collections a { color: #f4cf97; text-decoration-color: #b58e5e; }
.collection-cases, .collection-brief { border-color: #987553; }
.contact.section {
  background: linear-gradient(125deg, #382319e3, #281b13c9), var(--grain) center/230px;
  color: #ffecd2;
}
.contact.section::before { background: #ab875c; height: 1px; top: 5px; }
.contact form:not([hidden]) {
  padding: clamp(20px, 2.8vw, 44px);
  border: 1px solid #977655;
  box-shadow: inset 0 0 0 4px #543a2866;
  background: #70482d36;
}
.contact form select, .contact form textarea, .batch-fields input { color: #382519; background: #fff0d9; border-color: #baa17e; }
.contact .direct-max, .contact .draft-actions a { color: #f7d8a4; }
.contact-links, .batch-fields { border-color: #a08764; }
.contact #draft-panel { min-width: 0; }
.foot { color: #5b4330; border-color: #ac8f69; }
#viewer { border: 1px solid #b39160; background: #342419 var(--grain) center/230px; }
#viewer::backdrop { background: #23170fe8; }
#viewer button { border-color: #af8d64; color: #f8e4c4; }

@media (min-width: 701px) and (max-width: 1000px) {
  .workshop-hero h1 { font-size: clamp(46px, 6.9vw, 66px); }
  .workshop-hero .hero-copy { padding-right: 4px; }
  .bar nav { gap: 10px 21px; }
}
@media (max-width: 700px) {
  .section { padding-block: clamp(40px, 8.6vw, 58px); }
  body > header .bar nav { border-color: #95754f; }
  .workshop-hero .hero-inner { background: linear-gradient(115deg,#512c1c85,#321d1673), var(--grain) center/225px; }
  .workshop-hero .hero-inner::before { inset: 9px; outline-offset: 3px; }
  .workshop-hero .hero-inner::after { width: 15px; }
  .workshop-hero .hero-scene { aspect-ratio: 1.56; }
  .workshop-hero .hero-scene::before { display: none; }
  .workshop-hero .hero-scene::after { inset: 86% 0 -1px; background: linear-gradient(transparent, #301c15e6); }
  .workshop-hero .hero-shot { object-position: 79% center; }
  .hero-switch {
    bottom: auto;
    right: auto;
    margin: -9px clamp(23px, 6.1vw, 40px) 0 0;
    padding: 2px;
  }
  .hero-switch button { min-height: 44px; padding: 5px 12px; }
  .workshop-hero .hero-copy { padding: clamp(15px,4vw,25px) clamp(23px,6.1vw,40px) 31px; }
  .workshop-hero h1 { font-size: clamp(49px, 10.8vw, 76px); line-height: .95; margin: 15px 0; }
  .workshop-hero .hero-copy p { font-size: 15px; line-height: 1.5; }
  .workshop-hero .kicker { font-size: 10px; gap: 9px; }
  .workshop-hero .kicker::before { width: 22px; }
  .workshop-hero .actions { gap: 2px 15px; margin-top: 17px; }
  .workshop-hero .actions .button { margin-bottom: 3px; }
  .library-heading::after { display: none; }
  .library-picture img { aspect-ratio: 2.1; }
  .library-choices a + a { border-color: #b89a73; }
  .library-choices a { display: block; }
  #works .head h2, .library h2, .moments-head h2, .gift-story h2, .service-lead h2,
  .case-head h2, .care-head h2, .collection-intro h2, .contact h2 {
    font-size: clamp(41px, 10.8vw, 65px);
  }
  #works .filters button { min-height: 44px; padding: 6px 12px; }
  .card h3 { font-size: clamp(23px, 5.1vw, 29px); }
  .card p, .card p.studio-note { font-size: 13px; }
  .card .ask-model { display: inline-flex; align-items: center; min-height: 44px; margin-block: 0; font-size: 13px; }
  .moment-grid, .care-stories { gap: 30px; }
  .case-row figcaption::before { margin-bottom: 8px; width: 28px; }
  .inscription { padding: 22px 18px; }
  .contact form:not([hidden]) { padding: 19px 14px; }
  .contact .enquiry, .service-grid, .gift-grid, .case-head { min-width: 0; }
}
@media (max-width: 380px) {
  .workshop-hero .actions { column-gap: 14px; }
  #works .filters { gap: 5px; }
  #works .filters button { padding-inline: 8px; }
  .card h3 { overflow-wrap: break-word; }
  .library-choices a small { display: block; }
  .service-list > div { grid-template-columns: minmax(0,.84fr) minmax(0,1.3fr); }
  .service-list dt { overflow-wrap: break-word; }
}
@media (prefers-reduced-motion: no-preference) {
  .workshop-hero .hero-inner::before { animation: gilded-lines 1.15s ease-out both; }
  @keyframes gilded-lines { from { opacity: .2; } to { opacity: 1; } }
  @media (hover: hover) and (pointer: fine) {
    .filters button, .hero-switch button, .textlink { transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
    .filters button:hover { border-color: #6f472d; }
    .workshop-hero .textlink:hover, .moment-actions a:hover, .collections a:hover { text-decoration-color: currentColor; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .workshop-hero .hero-inner::before { animation: none; }
}

@media (max-width: 700px), (pointer: coarse) {
  .card p.studio-note { margin-top: 1px; }
  .card .studio-note a, .card .ask-model {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    vertical-align: middle;
  }
}
