/* Hallmark custom · Needle Hour · Tailoring and clothing alterations */
/* Critique: each section follows the business-specific action and its materials. */
@font-face {
  font-family: "source-serif";
  src: url("./fonts/source-serif.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "dm-sans";
  src: url("./fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --fabric-warp: #63675a;
  --fabric-weft: #adae97;
  --fabric-thread: #e2d2a6;
  --original-warp: #2f4559;
  --original-weft: #788794;
  --original-thread: #d9a460;
  --turnup-warp: #897062;
  --turnup-weft: #b59f88;
  --paper: #f6f0e3;
  --ink: #302a28;
  --wine: #74293f;
  --accent: #b78571;
  --light: #fff9ef;
  --blue: #d7dfe0;
  --display: "source-serif", Georgia, serif;
  --body: "dm-sans", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  overflow-x: clip;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
.wrap {
  width: min(calc(100% - clamp(2.25rem, 9vw, 9rem)), 82rem);
  margin-inline: auto;
}
h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3,
.signature {
  font-family: var(--display);
  line-height: 1.02;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
  min-width: 0;
  font-weight: 400;
}
h1 {
  font-size: clamp(3.45rem, 7.4vw, 7.5rem);
}
h2 {
  font-size: clamp(2.3rem, 4.3vw, 4.6rem);
  text-wrap: balance;
}
h3 {
  font-size: clamp(1.45rem, 2.7vw, 2.5rem);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-underline-offset: 0.25em;
}
button,
select {
  font: inherit;
  color: inherit;
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button:disabled,
select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 5.25rem;
}
.brand,
.signature {
  color: inherit;
  text-decoration: none;
}
.brand {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.055em;
}
nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 2rem);
}
nav a {
  font-size: 0.93rem;
  text-decoration: none;
  font-weight: 600;
}
nav a:hover {
  text-decoration: underline;
}
.skip {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  z-index: 9;
  transform: translateY(-180%);
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 1rem;
}
.skip:focus {
  transform: none;
}
.step {
  padding-block: clamp(3.25rem, 7vw, 7.2rem);
}
.controls {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0;
}
.controls label {
  font-size: 0.94rem;
  display: grid;
  gap: 0.35rem;
}
.controls select {
  border: 1px solid currentColor;
  background: var(--paper);
  color: var(--ink);
  padding: 0.65rem 2rem 0.65rem 0.7rem;
  border-radius: 0;
  min-height: 2.8rem;
  max-width: 100%;
}
.result {
  padding: 1.2rem 0;
  border-block: 1px solid currentColor;
}
.result strong {
  font-size: 1.18rem;
  display: block;
  margin-bottom: 0.35rem;
}
.result p {
  max-width: 48rem;
}
.remarks {
  font-size: 0.88rem;
  margin-top: 1rem;
}
details {
  border-top: 1px solid currentColor;
  padding: 0.85rem 0;
}
details:last-child {
  border-bottom: 1px solid currentColor;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  margin-top: 0.55rem;
  max-width: 42rem;
}
footer {
  border-top: 1px solid var(--ink);
}
.foot {
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 2.2rem;
}
.signature {
  font-size: 1.5rem;
}
.foot span,
.foot > a:last-child {
  font-size: 0.9rem;
}
@media (max-width: 690px) {
  header .wrap {
    min-height: 4.6rem;
  }
  nav {
    gap: 0.7rem;
  }
  nav a {
    font-size: 0.875rem;
  }
  .foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
}
@media (max-width: 445px) {
  .optional {
    display: none;
  }
  .wrap {
    width: calc(100% - 2rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  header,
  footer .foot > a:last-child,
  .skip,
  .controls {
    display: none;
  }
}
header .wrap {
  border-bottom: 1px solid var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.seam {
  width: 1rem;
  height: 1.8rem;
  border-left: 2px solid currentColor;
  transform: rotate(30deg);
  position: relative;
}
.seam::after {
  content: "";
  position: absolute;
  left: -0.24rem;
  top: -0.05rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  height: 0.45rem;
  width: 0.25rem;
  background: var(--paper);
}
.seam-menu {
  background: var(--wine);
  color: var(--light);
  padding-block: clamp(3rem, 5vw, 5rem);
  border-block: 6px double var(--light);
}
.entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5%;
  margin-top: 2rem;
}
.entries article {
  border-top: 1px dashed;
  padding-top: 1rem;
}
.entries p {
  margin-top: 0.65rem;
  max-width: 32ch;
}
.tape-estimate,
.fitting-room > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 9%;
  align-items: center;
}
.tape-estimate h2 + p {
  margin-top: 1rem;
  max-width: 30rem;
}
#tool {
  background: var(--light);
  border: 1px solid var(--wine);
  padding: clamp(1.2rem, 3vw, 3rem);
  position: relative;
}
#tool::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: repeating-linear-gradient(
    90deg,
    var(--wine) 0 1px,
    transparent 1px 0.8rem
  );
}
.fitting-room {
  background: var(--blue);
  padding-block: 3.2rem;
}
.fitting-room img {
  width: 100%;
  height: clamp(17rem, 25vw, 24rem);
  object-fit: cover;
}
.fitting-room ul {
  padding-left: 1.25rem;
  max-width: 35rem;
}
.fitting-room li {
  margin-bottom: 0.55rem;
}
.fitting-room p {
  max-width: 34rem;
}
.result {
  border-color: var(--wine);
}
@media (max-width: 700px) {
  .entries {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
  }
  .entries article {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
    gap: 0.8rem;
  }
  .entries p {
    margin: 0;
  }
  .tape-estimate,
  .fitting-room > .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }
}
:where(img) {
  height: auto;
}
.hem-library {
  background: var(--wine);
  color: var(--light);
  padding-block: clamp(3rem, 6vw, 6rem);
}
.hem-library > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 8%;
}
.hem-intro h2 {
  max-width: 8ch;
}
.hem-intro p {
  max-width: 32ch;
  margin-top: 1rem;
}
.finish-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.finish-buttons button {
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  background: transparent;
  color: var(--light);
  border: 1px solid currentColor;
  cursor: pointer;
}
.finish-buttons button[aria-pressed="true"] {
  background: var(--light);
  color: var(--wine);
}
.seam-swatch {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  padding: clamp(1rem, 2.4vw, 2rem);
  background: var(--paper);
  color: var(--ink);
}
.seam-swatch p,
.seam-swatch a {
  display: block;
  margin-top: 0.7rem;
}
.seam-swatch a {
  font-weight: 650;
}
.fabric {
  --warp: var(--fabric-warp);
  --weft: var(--fabric-weft);
  --thread: var(--fabric-thread);
  align-self: center;
  position: relative;
  height: clamp(8rem, 15vw, 14rem);
  background: repeating-linear-gradient(
    36deg,
    var(--warp) 0 2px,
    var(--weft) 2px 3px
  );
  clip-path: polygon(8% 0, 93% 0, 100% 100%, 0 100%);
}
.fabric::after {
  position: absolute;
  content: "";
  bottom: 0.65rem;
  left: 0;
  right: 0;
  border-top: 2px dashed var(--thread);
}
.fabric.original {
  --warp: var(--original-warp);
  --weft: var(--original-weft);
  --thread: var(--original-thread);
}
.fabric.original span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.6rem;
  background: repeating-linear-gradient(
    55deg,
    var(--weft) 0 2px,
    var(--warp) 2px 5px
  );
  border-top: 2px solid var(--weft);
}
.fabric.turnup {
  --warp: var(--turnup-warp);
  --weft: var(--turnup-weft);
}
.fabric.turnup span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 34%;
  background: repeating-linear-gradient(
    -36deg,
    var(--warp) 0 2px,
    var(--weft) 2px 3px
  );
  border-top: 3px solid var(--warp);
}
.fabric.turnup:after {
  bottom: 29%;
  border-top: 1px dashed var(--thread);
}
@media (max-width: 720px) {
  .hem-library > .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }
  .hem-intro h2 {
    max-width: none;
  }
  .seam-swatch {
    grid-template-columns: minmax(0, 0.52fr) minmax(0, 1.48fr);
    gap: 0.85rem;
  }
  .fabric {
    height: 8rem;
  }
  .finish-buttons button {
    padding: 0.5rem 0.65rem;
  }
}
.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.side {
  min-height: clamp(27rem, 43vw, 43rem);
}
@media (max-width: 740px) {
  .photo-lead.side {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .photo-lead .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 {
    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: 47% 53%;
  --lead-pos: 50% 53%;
  --lead-bg: #263a49;
  --lead-ink: #f1e9db;
}
.photo-lead h1 {
  font-style: italic;
}
.hem-library .seam-swatch {
  display: block;
  color: #35323a;
  background: #ece4d7;
  padding: clamp(1rem, 2.5vw, 2rem);
}
.hem-library .seam-swatch a {
  color: #623e45;
}
