/* Andrew Rose Bespoke Jewellery. Plain CSS, no build step.
   Look carried over from the 2016 Statamic theme: pink textured header with the
   logo on a pink tab, red accent, light serif type, textured footer bands. */

@font-face { font-family: "Cormorant Garamond"; src: url(/assets/fonts/cormorant-300.woff2) format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; src: url(/assets/fonts/cormorant-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; src: url(/assets/fonts/cormorant-500.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; src: url(/assets/fonts/cormorant-600.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --red: #e81728;
  --red-dark: #c01020;
  --pink: #fbd4d9;
  --pink-pale: #fef2f3;
  --taupe: #8c7d70;
  --heading: #6f6359;
  --text: #6b5f55;
  --strong: #5a4f46;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --max: 1400px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0 auto;
  max-width: var(--max);
  background: #fff;
  color: var(--text);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }
a[href^="mailto:"], a[href^="tel:"], a[href^="http"] { overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
strong { color: var(--strong); font-weight: 600; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--heading); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---- Header ---------------------------------------------------------- */
.site-header {
  background: var(--pink-pale) url(/assets/img/bg/bg3-pink.png);
  border-top: 1px solid var(--red);
  padding-bottom: 6px;
  text-align: center;
}
.logo-band { border-top: 50px solid var(--pink); }
.logo {
  display: inline-block;
  background: var(--pink);
  margin-top: -50px;
  padding: 0 70px 4px;
}
.logo img { width: 180px; height: auto; margin: 0 auto; }
.nav-primary ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 0 .4rem; }
.nav-primary a {
  display: block;
  padding: .6rem 1.1rem .5rem;
  color: var(--taupe);
  font-size: 1.3rem;
  border-bottom: 1px solid transparent;
}
.nav-primary a:hover { color: var(--red); text-decoration: none; }
.nav-primary a.current { color: var(--red); border-bottom-color: var(--red); }
.nav-toggle { display: none; }

@media (max-width: 640px) {
  .logo { padding: 0 36px 10px; }
  .logo img { width: 150px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .6rem;
    margin: .6rem auto .3rem; padding: .55rem 1.2rem;
    font: inherit; font-size: 1.15rem; color: var(--red);
    background: #fff; border: 1px solid var(--pink); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-primary { display: none; }
  .nav-primary.open { display: block; }
  .nav-primary ul { flex-direction: column; gap: 0; padding: .3rem 0 .6rem; }
  .nav-primary a { padding: .7rem 1rem; }
  .nav-primary a.current { border-bottom-color: transparent; }
}

/* ---- Page headers ---------------------------------------------------- */
.page-header {
  background: #f4f1ee url(/assets/img/bg/bg3-brown.png);
  padding: 1.9rem 1.25rem;
  text-align: center;
}
.page-header h1 { margin: 0; color: var(--heading); }
.page-header-image { padding: 0; }
.page-header-image h1 { padding: 1.9rem 1.25rem; }
.page-header-photo {
  height: clamp(180px, 25vw, 350px);
  background: #222 url(/assets/img/pages/workbench-wide.webp) center / cover no-repeat;
}

/* ---- Content --------------------------------------------------------- */
main { min-height: 40vh; }
.content { padding: 2.5rem 2.5rem 1rem; }
.content.centred { max-width: 880px; margin: 0 auto; text-align: center; }
.content.legal { max-width: 820px; margin: 0 auto; }
.content.legal h2 { margin-top: 1.4em; font-size: 1.6rem; }
.lead-heading { font-size: 1.5rem; font-weight: 600; color: var(--strong); }
.plain-list { list-style: none; margin: -.6em 0 1em; padding: 0; }
.plain-list li { margin: 0; }
.links-list li { margin: .3em 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.centred .btn-row { justify-content: center; }

/* Buttons: right arrow by default, contextual icons opt in. */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--red); color: #fff;
  border: 1px solid var(--red);
  padding: .55rem 1.2rem;
  font-family: var(--serif); font-size: 1.2rem; line-height: 1.3;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; text-decoration: none; }
.btn::after {
  content: ""; width: 1em; height: 1em; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s;
}
.btn:hover::after { transform: translateX(3px); }
.btn-outline { background: transparent; color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-icon-mail::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}
.btn-icon-mail:hover::after { transform: none; }
.btn-icon-back { flex-direction: row-reverse; }
.btn-icon-back::after, .btn-icon-back:hover::after { transform: scaleX(-1); }

/* ---- Home intro ------------------------------------------------------ */
.intro { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 3rem; padding: 2.5rem 2.5rem 1rem; align-items: start; }
.intro-image img { width: 100%; aspect-ratio: 645 / 800; object-fit: cover; object-position: 38% center; }
.intro-text { padding-top: 1.2rem; }
.content.narrow-left { padding-top: 3rem; }
@media (max-width: 800px) {
  .intro { grid-template-columns: 1fr; padding: 1.5rem 1rem .5rem; gap: 1.2rem; }
  .intro-image img { aspect-ratio: 4 / 3; }
  .intro-text { padding-top: 0; }
  .content { padding: 1.8rem 1rem .5rem; }
}

/* ---- Products gallery ------------------------------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
.gallery-item { margin: 0; background: #fff; border: 1px solid #f0e6e2; aspect-ratio: 1 / 1; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); padding: 0 1rem; } }

/* ---- Contact --------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; }
.contact-details { padding: 2.5rem 3.4rem; }
.contact-details h2 { font-size: 1.75rem; }
.form-col { background: var(--pink-pale) url(/assets/img/bg/bg3-pink.png); padding: 1.6rem 2.8rem 2.5rem; }
.form-col .col-heading { color: var(--red); font-size: 2rem; }
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-details { padding: 1.8rem 1rem .5rem; }
  .form-col { padding: 1.4rem 1rem 2rem; }
}

/* ---- Footer ---------------------------------------------------------- */
.site-footer { margin-top: 5rem; position: relative; }
.footer-copyright { background: var(--pink-pale) url(/assets/img/bg/bg3-pink.png); color: var(--red); padding: 1.4rem 2.2rem 1.2rem; }
.footer-contact { background: #f4f1ee url(/assets/img/bg/bg3-brown.png); color: var(--text); padding: 1.2rem 2.2rem .6rem; font-size: 1.125rem; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.footer-credit { background: var(--red) url(/assets/img/bg/bg3-w.png); padding: .9rem 4.5rem .9rem 2.2rem; font-size: 1rem; color: #fff; }
.footer-credit a { color: #fff; }
.footer-credit span { margin: 0 .4rem; }
.to-top {
  position: absolute; right: 0; bottom: 0;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--red); color: #fff;
}
.to-top:hover { background: var(--red-dark); color: #fff; }
@media (max-width: 640px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-copyright, .footer-contact { padding-left: 1rem; padding-right: 1rem; }
  .footer-credit { padding-left: 1rem; }
}

/* ---- Form kit, site look (custom properties and label size only; the kit files stay untouched) */
.form-col .gf { --gf-accent: #e81728; --gf-border: #e8d6d3; --gf-radius: 2px; --gf-label: #6f6359; }
.form-col .gf-label { font-size: 1.15rem; font-weight: 500; }
.form-col .gf-submit { border-radius: 0; text-transform: none; letter-spacing: normal; font-family: var(--serif); font-size: 1.2rem; }
