/* Ghyll House Farm Yarns — home page
   Rebuilt from the Wix original as plain HTML/CSS. */

:root {
  --brown: #624832;
  --title: #4c1605;
  --ink: #282828;
  --grey: #757575;
  --paper: #fafafa;
  --ok: #4d641f;
  --serif: Georgia, Palatino, "Book Antiqua", "Palatino Linotype", serif;
  --caps: "Montserrat", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; /* stands in for Avenir Heavy */
  --form: "Jost", Futura, "Century Gothic", sans-serif;                            /* stands in for Futura Book */
  --tile: 375px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--grey); font: 16px/1.700 var(--serif); }
img { display: block; max-width: 100%; }
h1, h2, p, figure, blockquote, ul { margin: 0; padding: 0; }
a { color: inherit; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: #fff; color: #116dff; padding: 8px 14px; font: 14px Helvetica, Arial, sans-serif; }

.textured { background: var(--paper) url(../images/texture.png) center / 800px auto; }

.eyebrow { font: 700 17px/1.500 var(--caps); letter-spacing: .25em; text-transform: uppercase; color: var(--ink); }
.eyebrow--light { color: #fff; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 20px; z-index: 50; height: 0; display: flex; justify-content: center; pointer-events: none; }
.site-nav { pointer-events: auto; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.060); }
.site-nav ul { display: flex; list-style: none; }
.site-nav a { display: block; padding: 0 34px; font: 13px/59px var(--serif); color: var(--grey); text-decoration: none; white-space: nowrap; transition: background-color .25s, color .25s; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-active { background: var(--brown); color: #fff; }

/* ---------- Hero ---------- */
.hero { min-height: clamp(560px, 73.700vw, 933px); display: flex; justify-content: center; background: var(--paper) url(../images/hero-background.png) center / cover no-repeat; }
.hero__inner { padding: clamp(150px, 20.300vw, 257px) 20px 80px; text-align: center; }
.hero__logo { width: 152px; height: auto; margin: 0 auto 50px; }
.hero__title { font-family: "Amatic SC", "Arial Narrow", sans-serif; font-weight: 700; color: var(--title); line-height: 1.150; text-transform: uppercase; }
.hero__title span { display: block; }
.hero__title-1 { font-size: clamp(46px, 5.900vw, 75px); letter-spacing: .1em; margin-right: -.1em; }
.hero__title-2 { font-size: clamp(60px, 7.600vw, 96px); text-transform: none; font-variant: small-caps; }
.hero__tagline { font: 400 19px/1.300 "Quicksand", var(--caps); letter-spacing: .010em; color: var(--ink); margin-top: 8px; }
.hero__arrow { display: inline-block; width: 56px; height: 61px; margin-top: 26px; color: var(--ink); transition: transform .3s; }
.hero__arrow svg { width: 100%; height: 100%; transform: rotate(180deg); fill: currentColor; }
.hero__arrow:hover { transform: translateY(6px); }

/* ---------- Bricks ---------- */
.bricks { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: var(--tile); scroll-margin-top: 0; }
.brick { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; background: #f5f5f5; }
.brick--wide { grid-column: span 2; }
.brick > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brick__label { position: relative; font: 700 17px/1.500 var(--caps); letter-spacing: .25em; margin-right: -.25em; text-transform: uppercase; text-align: center; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
div.brick .brick__label { text-decoration: underline; }
a.brick .brick__label { transition: letter-spacing .3s; }
a.brick:hover .brick__label { letter-spacing: .32em; }

.brick--gallery > img { opacity: .66; }
.brick--gallery { background: #f5f5f5; }
.brick__ring { position: absolute; width: 184px; height: 184px; border: 3px solid var(--ink); border-radius: 50%; }
.brick--dark { background: var(--ink); }
.brick--dark .brick__label, .brick--workshops .brick__label { color: #fff; }
.brick--dots { background: #fff url(../images/pattern-dots.jpg) center / 400px auto; }
.brick--light { background: #f5f5f5; }
.brick__pin { width: 30px; height: 36px; margin-top: 22px; color: var(--ink); }

.brick--workshops { background: #000; }
.brick--workshops > img { opacity: .34; transition: opacity .4s; }
.brick--workshops:hover > img { opacity: .5; }
.brick__label--line { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brick__label--line i { width: 62px; height: 1px; background: #fff; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: 7% 1fr; scroll-margin-top: 0; }
.testimonials__strip { background: #fff url(../images/pattern-dots.jpg) center / 400px auto; }
.testimonials__body { background: var(--ink); padding: 0 14% 28px 5.500%; }
.testimonials__panel { position: relative; background: #2f2f2f; padding: 72px 11.500% 64px 9.500%; min-height: 500px; }
.slides { display: grid; margin-top: 23px; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide blockquote { font: 26px/1.800 var(--serif); letter-spacing: .080em; color: var(--grey); }
.slide figcaption { margin-top: 24px; font: 700 16px/1.400 var(--serif); letter-spacing: .075em; color: #fff; padding-right: 70px; }
.slides__count { position: absolute; right: 11.500%; bottom: 62px; font: 16px/1.700 var(--serif); color: #fff; }
.slides__dots { display: flex; justify-content: center; gap: 19px; padding-top: 22px; margin-right: -9%; }
.slides__dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #fff; opacity: .4; cursor: pointer; position: relative; }
.slides__dots button::after { content: ""; position: absolute; inset: -9px; }
.slides__dots button[aria-selected="true"] { opacity: 1; }

/* ---------- Team ---------- */
.team { padding: 137px 20px 70px; text-align: center; scroll-margin-top: 60px; }
.team .eyebrow { margin-right: -.25em; }
.team__grid { display: flex; justify-content: center; gap: 27px; margin-top: 54px; flex-wrap: wrap; }
.member { width: 227px; }
.member img { width: 227px; height: 286px; object-fit: cover; }
.member figcaption { position: relative; width: 174px; margin: -30px auto 0; padding: 14px 10px 16px; background: #fff; }
.member strong { display: block; font: 400 16px/1.700 var(--serif); color: var(--ink); }
.member strong::after { content: ".."; display: block; line-height: .9; letter-spacing: .1em; margin-bottom: 10px; }
.member span { display: block; font: 14px/1.700 var(--serif); color: var(--grey); }

/* ---------- Story ---------- */
.story { background: var(--ink); scroll-margin-top: 0; }
.story__inner { max-width: 980px; margin: 0 auto; padding: 78px 20px 96px; display: grid; grid-template-columns: 490px 1fr; }
.story__heading { display: flex; align-items: center; gap: 28px; align-self: start; padding-left: 86px; white-space: nowrap; }
.story__heading::after { content: ""; width: 160px; height: 1px; background: #fff; flex: none; }
.story p { max-width: 442px; font: 16px/1.700 var(--serif); letter-spacing: .1em; color: var(--grey); }

/* ---------- Contact ---------- */
.site-footer { padding: 0 20px 62px; scroll-margin-top: 40px; }
.contact { max-width: 588px; margin: 0 auto; padding: 45px 66px 55px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
.contact > * { grid-column: 1 / -1; }
.contact h2 { font: 700 30px/1.400 var(--caps); color: var(--brown); }
.contact__intro { font: 300 16px/1.200 "Cormorant Garamond", var(--serif); color: var(--ink); margin-bottom: 36px; }
.contact .field--half { grid-column: span 1; }
.field { margin-bottom: 28px; }
.field label { display: block; font: 14px/1 var(--form); color: #000; margin-bottom: 5px; }
.field input, .field textarea { display: block; width: 100%; border: 0; border-bottom: 2px solid #000; border-radius: 0; background: transparent; padding: 6px 3px; font: 18px/1.400 var(--form); color: #000; }
.field input { height: 44px; }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--brown); background: rgba(98,72,50,.050); }
.field .is-invalid { border-bottom-color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 14px; }
.contact button { width: 147px; height: 42px; border: 0; border-radius: 300px; background: var(--brown); color: #fff; font: 700 16px/1 var(--caps); cursor: pointer; transition: background-color .25s; }
.contact button:hover { background: #4a3625; }
.contact button:disabled { opacity: .6; cursor: default; }
.contact__status { font: 700 16px/1.400 var(--caps); color: var(--ok); }
.contact__status.is-error { color: #c0392b; }
.copyright { text-align: center; font: 700 10px/1.400 Arial, Helvetica, sans-serif; color: var(--ink); }

/* ---------- Gallery page ---------- */
.page-gallery { background-attachment: fixed; background-color: #f5f5f5; }
.page-gallery .site-footer { background: none; padding-top: 20px; }
.gallery { max-width: 1265px; margin: 0 auto; padding: 169px 80px 0; }
.gallery__intro { display: grid; grid-template-columns: 276px 1fr; min-height: 460px; background: #fff; margin-bottom: 54px; }
.gallery__intro > img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.gallery__intro-text { padding: 61px 40px 60px 67px; max-width: 650px; }
.gallery__intro h1 { font: 700 56px/1.200 var(--caps); color: var(--brown); margin-bottom: 35px; }
.gallery__intro p { font: 16px/1.150 var(--serif); color: var(--grey); margin-bottom: 18px; }
.gallery__card { background: #fff; padding: 40px; margin-bottom: 46px; display: grid; gap: 34px; }
.gallery__row { display: grid; gap: 40px; grid-auto-rows: 470px; }
.gallery__row--2 { grid-template-columns: 1fr 1fr; }
.gallery__row--3 { grid-template-columns: 1fr 3fr 1fr; }
.gallery__row figure { background: #f5f5f5; overflow: hidden; }
.gallery__row img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  :root { --tile: 30vw; }
  .site-nav a { padding: 0 20px; }
  .testimonials__body { padding-right: 6%; }
  .slide blockquote { font-size: 21px; }
  .slides__dots { margin-right: 0; }
  .story__inner { grid-template-columns: 1fr; gap: 30px; padding: 60px 9%; }
  .story__heading { padding-left: 0; }
  .story p { max-width: none; }
  .gallery { padding: 120px 30px 0; }
  .gallery__card { padding: 24px; gap: 24px; }
  .gallery__row { gap: 24px; grid-auto-rows: 36vw; }
}

@media (max-width: 680px) {
  :root { --tile: 50vw; }
  .site-header { top: 0; }
  .site-nav { width: 100%; overflow-x: auto; }
  .site-nav ul { justify-content: space-between; min-width: max-content; }
  .site-nav a { padding: 0 13px; line-height: 46px; font-size: 12px; }
  .hero { background-size: 180% auto; background-position: center top; background-color: #ebe6dc; }
  .hero__logo { margin-bottom: 30px; }
  .hero__tagline { font-size: 17px; }

  .bricks { grid-template-columns: repeat(2, 1fr); }
  .brick--wide { grid-column: span 2; }
  .brick__ring { width: 36vw; height: 36vw; }
  .brick__label { font-size: 14px; }
  .bricks > :nth-child(3) { grid-column: span 2; }

  .testimonials { grid-template-columns: 1fr; }
  .team { padding-top: 60px; }
  .testimonials__strip { display: none; }
  .testimonials__body { padding: 0 0 24px; }
  .testimonials__panel { padding: 48px 26px 70px; min-height: 0; }
  .slide blockquote { font-size: 18px; letter-spacing: .040em; line-height: 1.700; }
  .slides__count { right: 26px; bottom: 26px; }
  .slide figcaption { padding-right: 0; }

  .gallery { padding: 70px 14px 0; }
  .gallery__intro { grid-template-columns: 1fr; margin-bottom: 30px; }
  .gallery__intro > img { height: 56vw; }
  .gallery__intro-text { padding: 30px 22px 22px; }
  .gallery__intro h1 { font-size: 40px; margin-bottom: 20px; }
  .gallery__card { padding: 14px; gap: 14px; margin-bottom: 30px; }
  .gallery__row { gap: 14px; grid-auto-rows: auto; }
  .gallery__row--2 { grid-template-columns: 1fr; }
  .gallery__row--3 { grid-template-columns: 1fr 1fr; }
  .gallery__row figure { aspect-ratio: 4 / 3; }
  .gallery__row--3 figure { aspect-ratio: 3 / 4; }
  .gallery__row--3 .is-wide { grid-column: 1 / -1; order: -1; aspect-ratio: 4 / 3; }

  .team__grid { gap: 30px; }
  .contact { padding: 40px 6px 44px; grid-template-columns: 1fr; }
  .contact .field--half { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
