/* Hallmark custom · Anchor & Awl */
/* A working shoe repair studio, designed around its customer decision. */
@font-face {
  font-family: "young-serif";
  src: url("./fonts/young-serif.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}
@font-face {
  font-family: "work-sans";
  src: url("./fonts/work-sans.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}
:root {
  --paper: #ead4ab;
  --ink: #39271f;
  --wine: #642437;
  --cream: #fff3da;
  --rule: #8c7455;
  --thread: #bc977b;
  --shadow: #38281c66;
  --card: #fff3da;
  --display: "young-serif", Georgia, serif;
  --body: "work-sans", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  overflow-x: clip;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
.bound {
  width: min(85rem, calc(100% - clamp(2rem, 9vw, 9rem)));
  margin-inline: auto;
}
h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}
h1,
h2,
h3,
.brand {
  font-family: var(--display);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 400;
  overflow-wrap: break-word;
}
h1 {
  font-size: clamp(3.5rem, 7.7vw, 8.6rem);
}
h2 {
  font-size: clamp(2.45rem, 4.5vw, 5rem);
  text-wrap: balance;
}
h3 {
  font-size: clamp(1.4rem, 2.3vw, 2.65rem);
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
}
a:hover {
  text-decoration-thickness: 2px;
}
input,
select,
textarea,
button {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
.skip {
  position: absolute;
  z-index: 10;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-180%);
  padding: 0.5rem 1rem;
}
.skip:focus {
  transform: none;
}
.navline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.65rem;
}
.brand {
  font-size: clamp(1.45rem, 2.4vw, 2.4rem);
  text-decoration: none;
}
.navline nav {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.8rem);
}
nav a {
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 600;
}
nav a:hover {
  text-decoration: underline;
}
img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}
p {
  max-width: 60ch;
}
.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--ink);
  padding: 0.63rem 1.03rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font: 600 1rem/1.25 var(--body);
  width: fit-content;
  cursor: pointer;
}
.download:hover {
  text-decoration: underline;
}
.download:focus-visible {
  outline-color: var(--focus, var(--ink));
}
.space {
  padding-block: clamp(3.2rem, 6vw, 6.5rem);
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 6vw, 6rem);
  align-items: center;
}
.facts {
  margin-top: 1.1rem;
}
.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 0.8rem;
  border-top: 1px solid var(--rule);
  padding: 0.7rem 0;
}
.facts dt {
  font-weight: 650;
}
details {
  border-top: 1px solid var(--rule);
  padding: 0.75rem 0;
}
details:last-child {
  border-bottom: 1px solid var(--rule);
}
summary {
  cursor: pointer;
  font-weight: 650;
}
details p {
  margin: 0.55rem 0 0.2rem;
}
.control {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.94rem;
}
.control select,
.control input,
.control textarea {
  font: 400 1rem var(--body);
  padding: 0.58rem 0.65rem;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 0;
  min-height: 44px;
  max-width: 100%;
  min-width: 0;
}
.options {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.options button {
  background: transparent;
  border: 1px solid var(--rule);
  padding: 0.5rem 0.85rem;
  min-height: 44px;
}
.options button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
  margin: 0 0 1rem;
}
legend {
  padding: 0;
  font-weight: 650;
  margin-bottom: 0.45rem;
}
.small {
  font-size: 0.88rem;
}
.footer {
  border-top: 1px solid var(--rule);
}
.footline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.7rem;
}
.footline p,
.footline a {
  font-size: 0.88rem;
}
.footline b {
  font-family: var(--display);
  font-size: 1.25rem;
}
@media (max-width: 730px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.65rem;
  }
  .navline {
    min-height: 4.15rem;
  }
  .location-nav {
    display: none;
  }
  .footline {
    display: grid;
    gap: 0.4rem;
  }
  .facts > div {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}
@media (max-width: 430px) {
  .bound {
    width: calc(100% - 2rem);
  }
  .navline nav {
    gap: 0.6rem;
  }
  .navline nav a {
    font-size: 0.84rem;
  }
  .navline {
    gap: 0.45rem;
  }
  .control {
    max-width: 100%;
  }
  .footline p {
    max-width: 37ch;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
header {
  background: var(--wine);
  color: var(--cream);
  border-bottom: 1px solid var(--thread);
}
.brand {
  font-weight: 700;
  letter-spacing: -0.055em;
}
.download {
  background: var(--wine);
  color: var(--cream);
  border-color: var(--wine);
}
.repair-ledger {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 9%;
}
.repair-ledger h2 + p,
.shop-note h2 + p {
  margin: 1rem 0 1.3rem;
  max-width: 37ch;
}
.repair-ledger dl {
  margin: 0;
}
.docket-area {
  background: var(--wine);
  color: var(--cream);
}
.docket-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.docket-heading p {
  max-width: 38ch;
}
.docket {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
}
.docket-input,
.docket-result {
  padding: clamp(1.1rem, 2.5vw, 2.6rem);
}
.docket-input {
  border-right: 2px dashed var(--rule);
}
.docket-input .control + .control,
.docket-input fieldset {
  margin-top: 0.75rem;
}
.docket-result {
  background: var(--cream);
}
.docket-result dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  padding: 0.4rem 0;
}
.docket-result dl {
  margin: 0.8rem 0;
}
.docket-result p,
.docket-result a {
  margin-top: 0.75rem;
}
.shop-note figure img {
  height: clamp(18rem, 28vw, 31rem);
  object-position: center 42%;
}
.shop-note figcaption {
  font-size: 0.85rem;
  border-bottom: 1px solid var(--rule);
  padding: 0.4rem 0;
}
@media (max-width: 760px) {
  .repair-ledger,
  .docket {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .docket {
    gap: 0;
  }
  .docket-input {
    border: 0;
    border-bottom: 2px dashed var(--rule);
  }
  .docket-heading {
    display: block;
  }
  .docket-heading p {
    margin-top: 0.7rem;
  }
}
button:enabled:active,
.download:active {
  transform: translateY(1px);
}
.photo-lead {
  display: grid;
  align-items: stretch;
  grid-template-columns: var(--lead-columns);
  background: var(--lead-bg);
  color: var(--lead-ink);
  width: 100%;
  margin: 0;
  isolation: isolate;
}
.photo-lead-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 5vw, 6.5rem) clamp(1.15rem, 5.8vw, 7rem);
}
.photo-lead h1 {
  font-family: var(--display, inherit);
  font-weight: var(--lead-weight, 400);
  font-size: clamp(3.25rem, 6.8vw, 8.3rem);
  letter-spacing: -0.052em;
  line-height: 0.96;
  text-wrap: balance;
  color: inherit;
  max-width: 12ch;
  margin: 0;
}
.photo-lead p {
  font: inherit;
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  line-height: 1.5;
  max-width: 39ch;
  margin: 1.15rem 0 0;
}
.photo-lead-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
  margin: 1.15rem 0 0.2rem;
}
.photo-lead-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  font: inherit;
  line-height: 1.28;
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
}
.photo-lead-links a:first-child {
  font-weight: 700;
  text-decoration-thickness: 2px;
}
.photo-lead-links a:hover {
  text-decoration-thickness: 3px;
}
.photo-lead-image {
  margin: 0;
  min-width: 0;
  position: relative;
}
.photo-lead-image img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: var(--lead-pos, 50% 50%);
}
.photo-lead.reverse {
  min-height: clamp(27rem, 43vw, 43rem);
}
.photo-lead.reverse .photo-lead-image {
  grid-column: 1;
  grid-row: 1;
}
.photo-lead.reverse .photo-lead-text {
  grid-column: 2;
  grid-row: 1;
}
@media (max-width: 740px) {
  .photo-lead.reverse {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .photo-lead .photo-lead-text,
  .photo-lead.reverse .photo-lead-text {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    position: static;
    background: none;
    padding: clamp(1.45rem, 5.5vw, 2.7rem) clamp(1.05rem, 5vw, 2.3rem);
  }
  .photo-lead h1 {
    font-size: clamp(2.7rem, 9.7vw, 5.2rem);
    max-width: 15ch;
  }
  .photo-lead p {
    margin-top: 0.8rem;
    font-size: 1rem;
    max-width: 46ch;
  }
  .photo-lead-links {
    margin-top: 0.65rem;
  }
  .photo-lead .photo-lead-image,
  .photo-lead.reverse .photo-lead-image {
    position: relative;
    inset: auto;
    grid-row: 2;
    grid-column: 1;
    height: clamp(13rem, 47vw, 23rem);
    min-height: 0;
  }
  .photo-lead .photo-lead-image img {
    object-position: var(--lead-mobile-pos, var(--lead-pos));
  }
}
.photo-lead {
  --lead-columns: 55% 45%;
  --lead-pos: 50% 58%;
  --lead-bg: #ead5b7;
  --lead-ink: #4c2b26;
}
.photo-lead h1 {
  max-width: 11ch;
}
.docket {
  grid-template-columns: 1fr 1fr;
}
.docket .docket-input,
.docket .docket-result {
  grid-row: 1;
  grid-column: auto;
}
.docket .docket-result {
  border: 0;
  border-left: 1px solid #a28b71;
}
@media (max-width: 650px) {
  .docket {
    grid-template-columns: 1fr;
  }
  .docket .docket-input,
  .docket .docket-result {
    grid-row: auto;
  }
  .docket .docket-result {
    border-left: 0;
    border-top: 1px solid #a28b71;
  }
}
