/* The site's look: a quilt band, an embroidery hoop and fabric-edged cards on kraft paper. The craft list: crafts.css.
   Teal and cream fail 4.5:1 on kraft: text on the paper is ink or deep teal.
   Her name is Dancing Script Bold, headings and buttons Nunito ExtraBold (fonts/, with their licences); the rest
   is the visitor's own system font. */
@font-face {
  font-family: "Dancing Script"; font-weight: 700; font-display: swap;
  src: url(fonts/dancing-script-700-latin.woff) format("woff");
}
@font-face {
  font-family: "Nunito"; font-weight: 800; font-display: swap;
  src: url(fonts/nunito-800-latin.woff) format("woff");
}
:root {
  --kraft: #CDAA7D; --kraft-deep: #B08758; --cream: #FDF7EA; --sand: #F1E4CC; --wood: #C99B63; --wood-deep: #A77A45;
  --ink: #3A2A20; --teal: #10666A; --teal-deep: #083F42; --turq: #3DBDB2; --aqua: #CFEAE5; --clay: #A84C26;
  --mustard: #D9A441; --sage: #93A377; --shade: rgba(58, 42, 32, .6);
  --round: "Nunito", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --script: "Dancing Script", cursive;
  --check: 0 0 / 16px 16px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .13 0 0 0 0 .08 0 0 0 .5 -.12'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  --scallops: linear-gradient(#000 0 0) top / 100% calc(100% - 20px) no-repeat,
    radial-gradient(circle at 50% 0, #000 19.5px, transparent 20.5px) calc(50% + 20px) 100% / 40px 20px repeat-x;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font: 18px/1.55 -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; color: var(--ink); background-color: var(--kraft);
  background-image: var(--grain), repeating-linear-gradient(96deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 7px);
}

nav { display: flex; justify-content: center; gap: 4px; padding: 6px 12px; }
nav a { font: 700 17px/1 var(--round); color: var(--ink); text-decoration: none; padding: 14px 12px; }

/* The band is five whole patches tall (seven on a desktop); a mask cuts its last 20px into scallops, two to a patch,
   so the paper shows between them. The shadow is on the band: a filter on the masked layer would be cut away. */
.quilt { position: relative; display: grid; place-items: center; height: 400px; filter: drop-shadow(0 7px 6px rgba(58, 42, 32, .4)); }
.quilt::before {
  content: ""; position: absolute; inset: 0; background: url(quilt.svg) center top / 320px 320px;
  -webkit-mask: var(--scallops); mask: var(--scallops);
}
.hoop {
  position: relative; width: min(84vw, 360px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; text-align: center;
  background: var(--cream); border: 13px solid var(--wood);
  box-shadow: 0 0 0 3px var(--wood-deep), inset 0 0 0 3px var(--wood-deep), 0 18px 30px -12px rgba(58, 42, 32, .75);
}
.hoop::before {
  content: ""; position: absolute; top: -36px; left: 50%; width: 30px; height: 26px; margin-left: -15px;
  border-radius: 7px 7px 3px 3px; background: var(--wood); box-shadow: inset 0 0 0 3px var(--wood-deep);
}
.hoop::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 2px dashed var(--turq); }
h1 { display: grid; gap: 8px; }
/* Dancing Script stops at Bold: a stroke thickens it toward Pacifico's weight. The Boss picked .03em from a strip
   of five: stems 6.0 pt at 54px, where Bold alone has 5.0 and Pacifico 6.8. */
.script { font: 700 clamp(46px, 15vw, 60px)/1 var(--script); color: var(--clay); -webkit-text-stroke: .03em var(--clay); }
.caps { font: 800 clamp(15px, 4.4vw, 19px)/1.2 var(--round); letter-spacing: .24em; text-transform: uppercase; color: var(--teal); }
.heart { width: 34px; margin-top: 14px; fill: none; stroke: var(--clay); stroke-width: 2; stroke-dasharray: 4 3; stroke-linecap: round; }

/* The paper runs the screen's whole width (its sides are sewn on a wide screen, below); the sections keep to a column. */
main { position: relative; z-index: 0; padding: 0 20px; }
main > section { max-width: 1040px; margin-left: auto; margin-right: auto; }
section { padding: 30px 0; }
.welcome { text-align: center; padding-top: 40px; }
.lead { font-size: 21px; font-style: italic; }
.welcome .lead { max-width: 660px; margin: 0 auto; }
.kinds { text-align: center; margin: -10px 0 26px; }
.actions { display: grid; justify-items: center; gap: 6px; margin-top: 22px; }
.button {
  display: inline-block; font: 800 18px/1 var(--round); text-decoration: none; color: var(--cream); background: var(--clay);
  padding: 19px 32px; border-radius: 999px; outline: 2px dashed rgba(253, 247, 234, .8); outline-offset: -7px;
  box-shadow: 0 4px 0 #7C3519, 0 14px 18px -10px var(--shade);
}
.more { font: 700 17px/1 var(--round); color: var(--teal-deep); padding: 14px 8px; text-underline-offset: 5px; }

h2 { font: 800 30px/1.15 var(--round); color: var(--teal-deep); text-align: center; margin-bottom: 26px; }
h2::after {
  content: ""; display: block; width: 80px; height: 8px; margin: 12px auto 0;
  background: radial-gradient(circle, var(--teal) 3.5px, transparent 4px) 0 0 / 16px 8px repeat-x;
}

/* A spot for one of her photos: the craft list's (crafts.css) and the About hoop's. */
.photo {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; color: var(--ink);
  font: 700 13px/1 var(--round); letter-spacing: .14em; text-transform: uppercase;
  background: radial-gradient(circle, rgba(58, 42, 32, .13) 1.5px, transparent 2px) 0 0 / 12px 12px, var(--sand);
}

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 18px; max-width: 420px; margin: 0 auto; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 68px 1fr; column-gap: 16px; align-content: center; }
.steps li::before {
  content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 68px; height: 68px;
  border-radius: 50%; font: 800 28px/1 var(--round); color: var(--ink); background: var(--mustard);
  outline: 2px dashed var(--cream); outline-offset: -8px; box-shadow: 0 4px 0 rgba(58, 42, 32, .25);
}
.steps li:nth-child(2)::before { background: var(--turq); }
.steps li:nth-child(3)::before { background: var(--clay); color: var(--cream); }
.steps h3 { font: 800 21px/1.2 var(--round); align-self: end; }
.pay { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.pay a {
  display: block; font: 800 16px/1 var(--round); color: var(--teal); background: var(--aqua); padding: 14px 20px;
  border-radius: 999px; outline: 2px dashed var(--teal); outline-offset: -5px; text-decoration: none;
  box-shadow: 0 3px 0 rgba(58, 42, 32, .25);
}

.about {
  display: grid; gap: 22px; justify-items: center; text-align: center; background: var(--cream); border-radius: 26px;
  padding: 34px 24px; box-shadow: 0 2px 0 var(--kraft-deep), 0 16px 28px -14px var(--shade);
}
/* Her photo in a small hoop. The inner ring is drawn over the photo: a shadow inside the hoop would sit under it. */
.about .photo {
  position: relative; overflow: hidden; width: 190px; border-radius: 50%; border: 10px solid var(--wood);
  box-shadow: 0 0 0 3px var(--wood-deep);
}
.about .photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about .photo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--wood-deep); }
.about h2 { margin-bottom: 14px; }

/* About: the key point shows; "Read more" opens her full text and hides the key point, which the text repeats. */
.story summary {
  display: inline-block; cursor: pointer; list-style: none; margin-top: 10px; padding: 14px 6px;
  font: 800 17px/1 var(--round); color: var(--teal-deep); text-decoration: underline; text-underline-offset: 5px;
}
.story summary::-webkit-details-marker { display: none; }
.story .opened, .story details[open] .closed, .story:has(details[open]) .key { display: none; }
.story details[open] .opened { display: inline; }
.story details p { margin-top: 14px; text-align: left; }
.story details .sign { margin-top: 20px; text-align: center; font-style: italic; font-size: 20px; color: var(--clay); }
.sign::before, .sign::after {
  content: ""; display: inline-block; width: 18px; height: 16px; margin: 0 8px; vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30'%3E%3Cpath d='M17 27C5 18 2 12 5 7c3-5 9-4 12 1 3-5 9-6 12-1 3 5 0 11-12 20z' fill='none' stroke='%23A84C26' stroke-width='2.4' stroke-dasharray='4 3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

footer { position: relative; margin-top: 46px; padding: 46px 20px 6px; background: var(--teal); color: var(--cream); text-align: center; }
footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 21px;
  background: radial-gradient(circle at 50% 100%, var(--teal) 19.5px, transparent 20.5px) 50% 0 / 40px 21px repeat-x;
}
footer h2 { color: var(--cream); margin-bottom: 12px; }
footer h2::after { background-image: radial-gradient(circle, var(--mustard) 3.5px, transparent 4px); }
footer .button { background: var(--mustard); color: var(--ink); outline-color: rgba(58, 42, 32, .6); box-shadow: 0 4px 0 #0A4649; margin: 22px 0 6px; }
/* Her address in words under the button, for a visitor whose computer opens no mail app: it can be read and copied. */
.address { margin-bottom: 22px; }
.address a { display: inline-block; padding: 14px 8px; color: var(--cream); font: 700 17px/1 var(--round); text-underline-offset: 5px; }
/* The last line: her name in the middle, the studio's site in the bottom right corner (the Boss's word). */
.base { display: grid; font-size: 15px; }
.base a { justify-self: end; color: var(--cream); padding: 14px 0 14px 14px; text-underline-offset: 4px; }
/* The counting image (worker/): out of the page's flow and out of sight, yet shown, so that a browser asks for it. */
.stitch { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

@media (min-width: 900px) {
  body { font-size: 19px; }
  nav { gap: 26px; padding: 12px; }
  .quilt { height: 560px; }
  .hoop { width: 420px; border-width: 15px; }
  .script { font-size: 78px; }
  .caps { font-size: 22px; }
  section { padding: 46px 0; }
  .welcome { padding-top: 56px; }
  .lead { font-size: 23px; }
  h2 { font-size: 38px; margin-bottom: 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 30px; }
  .steps li { display: block; text-align: center; }
  .steps li::before { margin: 0 auto 14px; width: 84px; height: 84px; font-size: 34px; }
  .about { grid-template-columns: 240px 1fr; justify-items: start; text-align: left; align-items: center; gap: 50px; padding: 54px 64px; }
  .about .photo { width: 240px; }
  .about:has(details[open]) { align-items: start; }
  .about h2 { text-align: left; }
  .about h2::after { margin-left: 0; }
  footer { padding-top: 64px; }
  .base { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .base p { grid-column: 2; }
  .base a { grid-column: 3; }
}
