/*
Theme Name: Mitt Mender
Theme URI: https://www.mittmender.com
Author: Midwest United, LLC
Description: Vintage theme for Mitt Mender baseball glove repair, based on the original BallGlove.com artwork. Services, prices, FAQs and links are edited under their own admin menus; business details under Settings > Mitt Mender.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: mittmender
*/

@font-face { font-family: 'Libre Baskerville'; font-weight: 400; font-style: normal; font-display: swap; src: url(assets/fonts/libre-baskerville-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Libre Baskerville'; font-weight: 700; font-style: normal; font-display: swap; src: url(assets/fonts/libre-baskerville-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Libre Baskerville'; font-weight: 400; font-style: italic; font-display: swap; src: url(assets/fonts/libre-baskerville-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4 Variable'; font-weight: 200 900; font-style: normal; font-display: swap; src: url(assets/fonts/source-serif-4-latin-wght-normal.woff2) format('woff2-variations'); }
@font-face { font-family: 'Source Serif 4 Variable'; font-weight: 200 900; font-style: italic; font-display: swap; src: url(assets/fonts/source-serif-4-latin-wght-italic.woff2) format('woff2-variations'); }
@font-face { font-family: 'Inter Variable'; font-weight: 100 900; font-style: normal; font-display: swap; src: url(assets/fonts/inter-latin-wght-normal.woff2) format('woff2-variations'); }


/* Palette taken from the original BallGlove.com: #ece3d7 parchment page,
   sepia engravings, black logo swoosh and copper-brown glove leather. */
:root {
  --leather: #8a4a1f;
  --leather-dark: #1f1610;
  --saddle: #a0673a;
  --tan: #d8b48a;
  --cream: #f4eee5;
  --paper: #ece3d7;
  --lace: #7a3b12;
  --lace-dark: #5a2a0b;
  --ink: #1f1610;
  --muted: #5e4a3a;
  --line: #c9b9a3;
  --radius: 3px;
  --wrap: 68rem;
  --font-display: 'Libre Baskerville', 'Times New Roman', Georgia, serif;
  --font-serif: 'Source Serif 4 Variable', 'Times New Roman', Georgia, serif;
  --font-sans: 'Inter Variable', Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--lace-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--lace); }
:focus-visible { outline: 3px solid var(--lace); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; color: var(--leather-dark); margin: 0 0 0.5em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.005em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); }
h3 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-family: var(--font-serif); font-size: 1.25rem; color: var(--muted); max-width: 42rem; font-style: italic; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--cream { background: var(--cream); border-block: 1px solid var(--line); }
.section--leather { background: var(--leather-dark); color: var(--cream); }
.section--leather h2, .section--leather h3 { color: var(--cream); }
.eyebrow { font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--leather); margin-bottom: 0.6rem; }
.section--leather .eyebrow { color: var(--tan); }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-sans); font-weight: 700; letter-spacing: 0.02em; text-decoration: none; line-height: 1; cursor: pointer; font-size: 1rem;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--ink); color: var(--cream); box-shadow: 3px 3px 0 var(--leather); }
.btn--primary:hover { background: var(--leather); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(31,22,16,0.06); color: inherit; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }

.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; position: relative; box-shadow: 0 1px 0 #fff inset, 2px 3px 8px rgba(60,40,20,0.12);
}
.card--stitched { border: 1px solid var(--saddle); outline: 1px solid var(--saddle); outline-offset: -6px; padding: 1.75rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card:hover { border-color: var(--saddle); }
.card .price { font-family: var(--font-display); font-weight: 700; color: var(--leather); font-size: 1.1rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 1.75rem; position: relative; margin-bottom: 0.5rem; }
.checklist li::before {
  content: ''; position: absolute; left: 0.2rem; top: 0.55em; width: 0.9rem; height: 0.45rem;
  border-left: 3px solid var(--leather); border-bottom: 3px solid var(--leather); transform: rotate(-45deg);
}

table.prices { width: 100%; border-collapse: collapse; background: var(--cream); border: 1px solid var(--line); box-shadow: 2px 3px 8px rgba(60,40,20,0.12); }
table.prices caption { text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); padding: 0 0 0.5rem; }
table.prices th, table.prices td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px dotted var(--saddle); }
table.prices td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
table.prices tr:last-child > * { border-bottom: 0; }

.todo { background: #fff3b0; color: #5a4300; padding: 0.05em 0.35em; border-radius: 4px; font-size: 0.92em; outline: 1px dashed #c9a400; }

.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: '›'; margin-right: 0.4rem; }
.breadcrumbs a { color: var(--muted); }

.page-hero { padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(1.5rem, 4vw, 2.25rem); border-bottom: 1px solid var(--line); text-align: center; }
.page-hero .lede, .page-hero .btn-row { margin-inline: auto; justify-content: center; }
.page-hero .breadcrumbs ol { justify-content: center; }
.page-hero h1::after { content: ''; display: block; width: 7rem; height: 7px; margin: 0.9rem auto 0; border-block: 1px solid var(--saddle); }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }

form .field { display: grid; gap: 0.35rem; margin-bottom: 1.1rem; }
form label, form legend { font-weight: 700; }
form input, form select, form textarea {
  font: inherit; font-family: var(--font-sans); font-size: 1rem; padding: 0.7rem 0.8rem; border: 1px solid #a8957d; border-radius: var(--radius); background: #fffdf9; color: var(--ink); width: 100%;
}
form textarea { min-height: 8rem; }
form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1.25rem; }
form .checks { display: grid; gap: 0.4rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
form .checks label { font-weight: 400; display: flex; gap: 0.5rem; align-items: center; }
form .checks input { width: auto; }
.hint { font-size: 0.9rem; color: var(--muted); }
.notice { border-left: 4px solid var(--leather); background: var(--cream); padding: 1rem 1.25rem; }

/* Old photo with black corner mounts, like the team photo on the original site. */
.photo { position: relative; background: #fff; padding: 0.6rem; box-shadow: 3px 5px 12px rgba(40,25,10,0.35); margin: 0; }
.photo::before, .photo::after { content: ''; position: absolute; width: 1.4rem; height: 1.4rem; background: var(--ink); }
.photo::before { top: -0.3rem; left: -0.3rem; clip-path: polygon(0 0, 100% 0, 0 100%); }
.photo::after { bottom: -0.3rem; right: -0.3rem; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.photo--tilt { transform: rotate(-2deg); }
.photo--tilt-r { transform: rotate(1.5deg); }
.photo img { display: block; width: 100%; }
.rule { border: 0; height: 7px; border-block: 1px solid var(--saddle); margin: 2.5rem auto; max-width: 12rem; }

@media print {
  .no-print, header.site, footer.site { display: none !important; }
  body { background: #fff; }
}

.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.hp-field { position: absolute; left: -9999px; }

/* Header */
header.site { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.phone-strip { background: var(--ink); color: var(--cream); font-family: var(--font-sans); font-size: 0.85rem; padding: 0.35rem 0; text-align: center; letter-spacing: 0.02em; }
.phone-strip a { color: #fff; font-weight: 700; }
.bar { display: flex; flex-direction: column; align-items: center; padding: 0.75rem 0 0.5rem; }
.brand { display: block; line-height: 0; }
.brand img { width: 230px; }
.bar--home .brand img { width: 329px; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin: 0.5rem 0 0; padding: 0; font-family: var(--font-sans); }
.site-nav li + li:not(.cta)::before { content: '|'; color: var(--line); margin: 0 0.15rem; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 0.4rem 0.55rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.site-nav a:hover { color: var(--leather); text-decoration: underline; }
.site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a, .site-nav .current_page_parent > a, .site-nav a[aria-current='page'] { color: var(--leather); text-decoration: underline; text-decoration-thickness: 2px; }
.site-nav .cta { margin-left: 0.75rem; }
.site-nav .cta a { padding: 0.6rem 1rem; color: var(--cream); text-decoration: none; }
.menu-toggle { display: none; }
@media (max-width: 760px) {
  .bar { flex-direction: row; justify-content: space-between; padding: 0.5rem 0; }
  .brand img, .bar--home .brand img { width: 150px; }
  .menu-toggle { display: inline-flex; background: transparent; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); padding: 0.5rem 1rem; font: inherit; font-family: var(--font-sans); font-weight: 700; cursor: pointer; }
  .site-nav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--cream); padding: 0.5rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line); box-shadow: 0 8px 16px rgba(40,25,10,0.15); margin: 0; }
  .site-nav ul.open { display: flex; }
  .site-nav li + li:not(.cta)::before { content: none; }
  .site-nav li { border-bottom: 1px dotted var(--line); }
  .site-nav a { display: block; padding: 0.85rem 0.25rem; font-size: 0.95rem; }
  .site-nav .cta { margin: 0.75rem 0 0; border: 0; }
  .site-nav .cta a { display: flex; }
}

/* Footer */
footer.site { background: var(--paper); color: var(--ink); padding: 0 0 1.5rem; font-size: 0.95rem; font-family: var(--font-sans); }
footer.site .textnav { border-top: 1px solid #9b8b78; padding: 1rem 0; text-align: center; color: var(--muted); font-size: 0.9rem; }
footer.site .textnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
footer.site .textnav li + li::before { content: '|'; margin: 0 0.4rem; }
footer.site .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); padding-top: 1.5rem; border-top: 1px solid var(--line); }
footer.site a { color: var(--lace); }
footer.site .name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 0.5rem; }
footer.site .h { font-weight: 700; color: var(--leather); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; }
footer.site .cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
footer.site .legal { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; font-size: 0.82rem; color: var(--muted); text-align: center; }

/* Home */
.hero { text-align: center; padding: 1.5rem 0 3rem; }
.hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: 0.6rem; }
.hero .intro { font-family: 'Times New Roman', var(--font-serif); font-weight: 700; max-width: 38rem; margin: 0 auto 1.25rem; font-size: 1.05rem; line-height: 1.45; }
.hero .intro p { margin: 0 0 0.5em; }
.vintage-nav { position: relative; width: min(100%, 450px); margin: 0 auto; line-height: 0; }
.vintage-nav img { width: 100%; }
.vintage-nav a { position: absolute; border-radius: 6px; }
.vintage-nav a:hover, .vintage-nav a:focus-visible { background: rgba(138,74,31,0.12); outline: 2px dotted var(--leather); }
.proof { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; padding: 0; margin: 1.5rem 0 0; font-family: var(--font-sans); color: var(--muted); font-size: 0.95rem; }
.proof strong { color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; margin-right: 0.25rem; }
.steps { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.steps li { text-align: center; padding: 0.5rem 1rem; }
.steps span { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px; font-family: var(--font-display); font-weight: 700; margin-bottom: 0.9rem; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 1rem; }
.ph { aspect-ratio: 4/3; display: grid; place-items: center; font-family: var(--font-display); color: #8d7660; background: linear-gradient(160deg, #e4d6c3, #cdb89c); }
.ph--sq { aspect-ratio: 1; }
.ph--after { background: linear-gradient(160deg, #d9c4a6, #bfa27e); }
.ba figcaption, .photo figcaption { font-size: 0.8rem; margin-top: 0.4rem; text-align: center; }
.quote { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; }
.quote footer { font-family: var(--font-sans); font-style: normal; font-size: 0.95rem; color: var(--muted); }
.glovesmith { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0 0; font-family: var(--font-sans); font-size: 0.9rem; }
.glovesmith img { border: 1px solid var(--line); }

/* Pages */
.faq { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; cursor: pointer; color: var(--leather-dark); }
.faq .answer { margin: 0.75rem 0 0; }
.faq .answer p:last-child { margin-bottom: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.gallery-grid figcaption { font-family: var(--font-display); font-size: 0.95rem; }
.wp-block-gallery .wp-block-image img, .prose .wp-block-image img { background: #fff; padding: 0.5rem; box-shadow: 3px 5px 12px rgba(40,25,10,0.35); }
.links-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.links-list li { border-bottom: 1px dotted var(--saddle); padding-bottom: 1rem; }
.links-list a { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.links-list p { margin: 0.25rem 0 0; color: var(--muted); }
.slip { border: 2px dashed var(--saddle); padding: 1.5rem; border-radius: var(--radius); background: #fff; }
.slip .line { border-bottom: 1px solid #999; height: 2.4rem; display: flex; align-items: flex-end; padding-bottom: 0.2rem; font-weight: 600; }
.notice--ok { border-left-color: #3d6b2c; }
.notice--err { border-left-color: #a12a1e; }
.prose img { height: auto; }
.prose address { font-style: normal; }
.alignwide, .alignfull { max-width: 100%; }
@media (max-width: 480px) { table.prices td:last-child { white-space: normal; } }
