/*
Theme Name: Custom Guitar Builder R5
Template: generatepress
Version: 0.1.15
Text Domain: cgb-r5
*/
:root {
  --ink: #14120f;
  --cream: #f7f3eb;
  --black: #0b0b0b;
  --muted: #bfb7a9;
  --gold: #d4b176;
  --accent: #755124;
  --frame: min(100% - 64px, 1152px);
  --font: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body.cgb { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.65 var(--font); }
.cgb :is(h1,h2,h3,h4) { color: inherit; font-family: var(--font); font-weight: 740; letter-spacing: -.035em; line-height: 1.1; margin: 0 0 .65em; }
.cgb h1 { font-size: clamp(2.55rem, 5.6vw, 4.9rem); }
.cgb h2 { font-size: clamp(1.65rem, 3.4vw, 2.75rem); }
.cgb h3 { font-size: 1.28rem; }
.cgb p { margin: 0 0 1.05rem; }
.cgb main a { color: var(--accent); text-underline-offset: .19em; }
.cgb :focus-visible { outline: 3px solid #a66b2c; outline-offset: 4px; }
.cgb img { display: block; height: auto; max-width: 100%; }
.frame { width: var(--frame); margin-inline: auto; }
.site-top, .site-bottom, .home-dark, .studio { background: var(--black); color: #f3ece1; }
.site-top a, .site-bottom a, .home-dark a, .studio a { color: inherit; }
.site-top .frame { display: flex; align-items: center; justify-content: space-between; gap: .6rem 2rem; min-height: 90px; border-bottom: 1px solid #30302e; padding-block: .7rem; }
.wordmark { display: block; flex-shrink: 0; }
.wordmark img { width: clamp(162px, 23vw, 235px); }
.site-menu, .site-links, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.45rem; }
.site-menu a, .site-links a { font-size: .9rem; text-decoration: none; }
.site-menu a:is(:hover,[aria-current]), .site-links a:hover { text-decoration: underline; text-underline-offset: .3em; }
.site-menu a { color: #e5ddd0; }
.skip { position: absolute; transform: translateY(-180%); z-index: 5; background: white; color: black; padding: .65rem; }
.skip:focus { transform: translateY(0); }
.home-hero { display: grid; align-items: center; grid-template-columns: .95fr 1.2fr; gap: 1.6rem; padding-block: clamp(2.5rem, 7vw, 6rem) clamp(2.3rem, 5vw, 4rem); }
.home-hero h1 { font-size: clamp(3rem, 6.5vw, 5.55rem); margin-bottom: .28em; }
.home-hero em { color: var(--gold); font-family: Georgia, serif; font-weight: 400; letter-spacing: -.055em; }
.home-hero p, .home-dark .deck, .studio .deck { color: var(--muted); }
.home-hero p { max-width: 37ch; font-size: 1.13rem; }
.home-hero img { width: 100%; }
.home-hero figure { margin: 0; }
.kicker { color: var(--accent); letter-spacing: .13em; font-weight: 680; font-size: .73rem; text-transform: uppercase; display: block; margin-bottom: .9rem; }
.home-dark .kicker, .studio .kicker { color: #d7c29f; }
.cgb main a.cta { display: inline-flex; align-items: center; min-height: 46px; padding: .58rem 1.1rem; background: var(--gold); color: #17120d; border: 1px solid var(--gold); border-radius: .28rem; text-decoration: none; font-weight: 690; }
.cgb main a.cta:hover { background: #e8ca98; border-color: #e8ca98; }
.cgb main :is(.home-dark,.studio) .quiet { color: #f3ece1; }
.panel { padding-block: clamp(2.2rem, 5vw, 4rem); }
.home-dark .panel { border-top: 1px solid #30302e; }
.home-dark .soft { background: #171715; }
.section-head { max-width: 52rem; margin-bottom: 1.4rem; }
.deck { max-width: 60ch; color: #554c41; font-size: 1.1rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 0; }
.card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 1.2rem; border: 1px solid #ddd2c1; border-radius: .35rem; background: #fcf9f2; overflow-wrap: anywhere; }
.card figure { align-self: stretch; margin: -1.2rem -1.2rem 1rem; }
.card figure img { width: 100%; }
.card h3 { margin: 0 0 .45rem; }
.card p { margin: 0 0 .75rem; }
.card > a:last-child { margin-top: auto; }
.home-dark .card { background: #171717; border-color: #38342d; }
.home-dark .card img { background: #ceccc7; }
.home-dark .card p { color: var(--muted); }
.home-dark .card a, .studio .note a { color: #efd198; }
.site-bottom .frame { border-top: 1px solid #30302e; display: flex; flex-wrap: wrap; gap: .7rem 2rem; justify-content: space-between; padding-block: 1.6rem; color: #cfc6b7; }
.site-bottom p { margin: 0; }
.page-intro, .article-intro { padding-block: clamp(2.3rem, 6vw, 4.6rem) 1.3rem; }
.page-intro h1, .article-intro h1 { max-width: 20ch; }
.crumb { margin-bottom: 1.15rem; font-size: .88rem; }
.cgb .studio .crumb a { color: var(--gold); }
.story { width: min(100%, 760px); padding-bottom: 3.25rem; overflow-wrap: anywhere; }
.story :is(h2,h3,h4) { margin-top: 1.45em; }
.story ul,.story ol { padding-left: 1.4em; }
.story li+li { margin-top: .32em; }
.story figure { margin: 1.25rem 0; overflow-x: auto; }
.story table { width: 100%; border-collapse: collapse; }
.story table img { display: inline-block; margin-top: .5rem; }
.story :is(td,th) { border: 1px solid #d9ccb6; text-align: left; vertical-align: top; padding: .65em; }
.story th { background: #eae0ce; }
.story img { border-radius: .18rem; }
.story figcaption { color: #544b40; font-size: .88rem; }
.story .missing-image { color: #655647; font-size: .85rem; }
.note { padding: 1.05rem 1.25rem; margin-block: 1rem; border-left: 3px solid var(--gold); background: #eee6d8; }
.note p:last-child { margin-bottom: 0; }
.home-dark .note, .studio .note { background: #1e1b16; }
.archive-main { padding-bottom: 3.5rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.studio { padding-bottom: 2.8rem; }
.designer-frame { display: block; width: 100%; height: 815px; border: 1px solid #3b362d; border-radius: .35rem; background: #151515; }
.preview-shell { display: grid; gap: .75rem; }
.shape-links { display: flex; flex-wrap: wrap; gap: .55rem .9rem; margin: .9rem 0; }
.shape-links a { color: var(--gold) !important; font-size: .88rem; }
@media (max-width: 880px) {
  :root { --frame: min(100% - 42px, 1152px); }
  .home-hero { grid-template-columns: 1fr; gap: 1rem; }
  .home-hero img { max-width: 630px; margin-inline: auto; }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  :root { --frame: min(100% - 32px, 1152px); }
  .site-top .frame { display: grid; min-height: 0; padding-block: .75rem; }
  .site-menu { gap: .4rem 1rem; }
  .site-menu a { display: inline-flex; min-height: 40px; align-items: center; }
  .card-grid { grid-template-columns: 1fr; }
  .story table { font-size: .92rem; }
  .designer-frame { height: 1050px; }
}
.section-actions { margin-top: 1.25rem; }
.cgb main.home-dark a.quiet, .cgb main.home-dark .note a { color: #f1dac0; }
.studio .page-intro { padding-block: clamp(1.45rem, 3vw, 2.6rem) 1rem; }
.studio .page-intro h1 { font-size: clamp(2.35rem, 5.4vw, 4rem); margin-bottom: .32em; }
.studio .page-intro .crumb { margin-bottom: .8rem; }
.studio .page-intro .deck { margin-bottom: 0; }
.home-hero > .wp-block-group__inner-container { display: contents; }

@font-face {
  font-family: "Archivo Black";
  src: url("assets/fonts/archivo-black-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}
.cgb :is(h1, h2, h3, h4) {
  font-family: "Archivo Black", var(--font);
  font-weight: 900;
  letter-spacing: -.043em;
}
.cgb .home-hero h1 { font-size: clamp(2.55rem, 5.4vw, 4.45rem); }
.home-hero em { font-family: inherit; font-style: normal; font-weight: inherit; }

.story.story-catalogue { width: 100%; }
.story-catalogue .card figure {
  overflow: hidden;
  margin: -1.2rem -1.2rem 1rem;
  border-radius: .3rem .3rem 0 0;
}
.story-catalogue .card figure img {
  width: 100%;
  aspect-ratio: 2.2;
  object-fit: contain;
  background: #e1dbce;
}
.story-catalogue > p:last-child { margin-top: 1.85rem; }

.guide-story .shape-comparison { table-layout: fixed; }
.shape-comparison-image { width: 42%; }
.guide-story .shape-comparison th,
.guide-story .shape-comparison td { overflow-wrap: anywhere; }
.guide-story .shape-comparison td:first-child img { display: block; max-width: 100%; height: auto; }

.cgb-social-links { display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; }
.story ul.cgb-social-links { padding: 0; list-style: none; }
.story .cgb-social-links li { margin: 0; }
.cgb-social-links a { display: inline-flex; padding-block: .45rem; font-weight: 670; }
.cgb-contact {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
  margin-top: 1.5rem;
  padding: clamp(1.05rem, 3vw, 1.8rem);
  border: 1px solid #dfd3c0;
  border-radius: .4rem;
  background: #fffaf1;
}
.cgb-contact label { display: grid; gap: .3rem; font-weight: 660; }
.cgb-contact :is(input:not([type="hidden"]), textarea) {
  width: 100%;
  max-width: 100%;
  padding: .65rem .75rem;
  border: 1px solid #b8a78e;
  border-radius: .25rem;
  color: var(--ink);
  background: white;
  font: inherit;
}
.cgb-contact textarea { resize: vertical; }
.cgb-contact .contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cgb-contact .contact-help { margin: 0; font-size: .88rem; color: #554a3b; }
.cgb-contact .cta {
  justify-self: start;
  min-height: 46px;
  padding: .6rem 1.15rem;
  border: 1px solid #916b33;
  border-radius: .28rem;
  color: #17120d;
  background: var(--gold);
  font: inherit;
  font-weight: 730;
  cursor: pointer;
}
.cgb-contact .cta:hover { background: #e8ca98; }
.contact-result { border-left: 3px solid #a66b2c; padding: .6rem .9rem; background: #eee5d6; }

.about-hero-photo { margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); overflow: hidden; border-radius: .38rem; background: #2b2621; }
.about-hero-photo img { width: 100%; height: auto; }
@media (max-width: 600px) {
  .about-hero-photo img { height: clamp(155px, 47vw, 250px); object-fit: cover; object-position: left center; }
}

.card.home-guide-card { padding: 0; }
.home-guide-link { display: block; width: 100%; border-radius: .3rem .3rem 0 0; text-decoration: none; }
.home-guide-link:hover h3, .home-guide-link:focus-visible h3 { text-decoration: underline; }
.home-guide-card .home-guide-link h3 { padding: 1rem 1.2rem 0; }
.home-guide-card p { padding: 0 1.2rem .52rem; }
.home-guide-art {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: .3rem .3rem 0 0;
  border-bottom: 1px solid #38342d;
  background: #0b0909;
}
.home-guide-art.is-wide { background: #484746; }
.home-dark .home-guide-art img { width: 100%; height: 100%; object-fit: contain; background: transparent; }

.studio .page-intro { padding-block: clamp(1rem, 2vw, 1.75rem) .75rem; }
.studio .page-intro h1 { margin-block: 0 .3em; font-size: clamp(2.2rem, 4.8vw, 3.55rem); }
.studio .page-intro :is(.crumb, .kicker) { margin-bottom: .48rem; }
.studio .page-intro .deck { font-size: 1rem; line-height: 1.5; }
.cgb-designer-shop .cgb-kit-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.25rem;
  margin-bottom: .85rem;
  padding: .66rem .9rem;
  border: 1px solid #463827;
  border-radius: .35rem;
  background: #211a13;
}
.cgb-kit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .8rem; }
.cgb main .cgb-kit-links .cgb-kit-primary { min-height: 44px; padding: .5rem .72rem; font-size: .88rem; line-height: 1.2; }
.cgb-kit-links .cgb-kit-catalogue { padding: .5rem 0; color: #efd5a3; font-size: .88rem; font-weight: 650; }
.cgb-kit-links small { color: #e1d1bc; font-size: .77rem; }

@media (max-width: 600px) {
  .cgb-designer-shop .cgb-kit-links { gap: .3rem; margin-bottom: .65rem; padding: .5rem .6rem; }
  .cgb-kit-actions { gap: .2rem .55rem; }
}

.cgb .cgb-designer-template-link { margin: 0 0 .75rem; }
.cgb-designer-template-link a { font-weight: 650; }
