/* Buckley Farmhouse B&B - responsive stylesheet */

:root {
  
--ink: #1e2a25;
  
--moss: #2f4a3c;
 
--green: #339900; 
--moss-dark: #213529;
  
--sea: #4f7f8c;
  
--chalk: #f6f7f3;
  
--stone: #e6e8e1;
  
--hay: #c8a24a;
  
--text: #2c3631;
  
--muted: #5d6a63;

--lime: #EFF5B9;  
--radius: 6px;
  
--wrap: 1100px;
  
--serif: "Fraunces", Georgia, "Times New Roman", serif;
  
--sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

}


, *::before, *::after { 
box-sizing: border-box; 
}

html { 
scroll-behavior: smooth; 
}

@media (prefers-reduced-motion: reduce) { 
html { 
scroll-behavior: auto; 
} 
}


body {
  
margin: 0;
  
font-family: var(--sans);
  
font-size: 1.0625rem;
  
line-height: 1.65;
  
color: var(--text);
  
background: var(--chalk);

}


img { 
display: block; 
max-width: 100%; 
height: auto; 
}

a { 
color: var(--moss); 
text-underline-offset: 3px; 
}

a:hover { 
color: var(--sea); 
}

:focus-visible { 
outline: 3px solid var(--hay); 
outline-offset: 3px; 
}


h1, h2, h3 { 
font-family: var(--serif); 
color: var(--ink); 
line-height: 1.15; 
margin: 0 0 .5em; 
font-weight: 600; 
}

h2 { 
font-size: clamp(1.7rem, 3.5vw, 2.4rem);
 }

h3 { 
font-size: 1.25rem; 
}

p { 
margin: 0 0 1em; 
max-width: 62ch; 
}


.wrap { 
width: min(100% - 2.5rem, var(--wrap)); 
margin-inline: auto; 
}

.section { 
padding: clamp(3rem, 8vw, 6rem) 0; 
}


/* Header */

.site-header {
  
position: sticky; 
top: 0; 
z-index: 20;
  
background: rgba(246, 247, 243, .96);
  
backdrop-filter: blur(8px);
  
border-bottom: 1px solid var(--stone);

}

.site-header .wrap { 
display: flex; 
align-items: center; 
justify-content: space-between; 
min-height: 64px; 
}

.brand { 
font-family: var(--serif); 
font-weight: 600; 
font-size: 1.2rem; 
color: var(--ink); 
text-decoration: none; 
}

.nav { 
display: flex; 
gap: 1.75rem; 
list-style: none; 
margin: 0; 
padding: 0; 
}

.nav a { 
color: var(--ink); 
text-decoration: none; 
font-weight: 500; 
padding: .4rem 0; 
border-bottom: 2px solid transparent; 
}
.nav a:hover, .nav a[aria-current="page"] { 
border-bottom-color: var(--green); 
color: var(--ink); 
}

.nav-toggle {
  
display: none; 
background: none; 
border: 1px solid var(--stone); 
border-radius: var(--radius);
 
padding: .5rem .8rem; 
font: inherit; 
font-weight: 600; 
color: var(--ink); 
cursor: pointer;

}


/* Hero */

.hero { 
position: relative; 
min-height: min(82svh, 720px); 
display: grid; 
align-items: end; 
color: #fff; 
background: var(--moss-dark); 
}

.hero img { 
position: absolute; 
inset: 0; 
width: 100%; 
height: 100%; 
object-fit: cover; 
}

.hero::after { 
content: ""; 
position: absolute; 
inset: 0; 
background: linear-gradient(to top, rgba(20, 32, 25, .82) 0%, rgba(20, 32, 25, .25) 55%, rgba(20, 32, 25, 0) 100%); 
}

.hero-text { 
position: relative; 
z-index: 1; 
padding: 0 0 clamp(2.5rem, 7vw, 4.5rem); 
}

.hero h1 { 
color: #fff; 
font-size: clamp(2.4rem, 7vw, 4.75rem); 
margin-bottom: .25em; 
letter-spacing: -.01em; 
}

.hero p { 
font-size: clamp(1.05rem, 2vw, 1.3rem); 
margin-bottom: 1.5rem; 
}


.btn {
  
display: inline-block; 
padding: .8rem 1.5rem; 
border-radius: var(--radius);
  
background: var(--hay); 
color: var(--ink); 
font-weight: 700; 
text-decoration: none;

}

.btn:hover { 
background: #d8b65f; 
color: var(--ink); 
}

.btn-ghost { 
background: transparent; 
color: #fff; 
border: 2px solid rgba(255, 255, 255, .7); margin-left: .5rem; 
}

.btn-ghost:hover { 
background: rgba(255, 255, 255, .15); 
color: #fff; 
}



/* Welcome */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--cream { background: var(--cream-100); }
.section--sage { background: var(--sage-800); color: var(--cream-100); }
.section--sage h2, .section--sage h3 { color: var(--white); }
.kicker {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brick-600);
  margin: 0 0 14px;
  display: block;
}
.section--sage .kicker { color: var(--sage-400); }
.lede {
  font-size: 1.15rem;
  color: var(--ink-700);
  max-width: 640px;
}
.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head--center { 
margin-left: auto; 
margin-right: auto; 
text-align: center; 
}
.split img { 
border-radius: var(--radius); 
width: 100%; 
aspect-ratio: 4 / 5; 
object-fit: cover; 
}

.lead { 
font-size: 1.2rem; 
color: var(--ink); 
}


/* Card grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card__media { aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: 8px; }
.card__body p { color: var(--ink-700); font-size: 0.96rem; flex: 1; }
.card__link { font-weight: 700; color: var(--brick-600); margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; }

.overview-card {
  padding: 32px 28px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--brick-600);
}
.overview-card:nth-child(2) { border-top-color: var(--sage-600); }
.overview-card:nth-child(3) { border-top-color: var(--ink-500); }
.overview-card h3 { margin-bottom: 10px; }
.overview-card p { color: var(--ink-700); margin-bottom: 16px; }

/* Room preview / room cards */
.room-card { }
.room-card__price { font-family: var(--font-serif); font-weight: 700; color: var(--brick-600); font-size: 1.15rem; margin-bottom: 4px; }
.room-card__spec { font-size: 0.85rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }

/* Local area cards */
.area-card {
  background: var(--cream-100);
  border-radius: var(--radius-md);
  padding: 28px;
  border-left: 4px solid var(--sage-600);
}
.area-card h3 { margin-bottom: 8px; }
.area-card .dist { font-size: 0.82rem; font-weight: 700; color: var(--sage-600); text-transform: uppercase; letter-spacing: 0.05em; }




/* Rooms */
.rooms { 
background: var(--sea); 
color: #e9efe9; 
}

.rooms h2 { 
color: #fff; 
}

.rooms .lead { 
color: #fff; 
}


/* Locality */
.local { 
background: var(--hay); 
color: #e9efe9; 
}

.local h2 { 
color: #fff; 
}

.local .lead { 
color: #fff; 
}
.local2 { 
background: var(--lime); 
color: #EDF7B7; 
}

.local2 h2 { 
color: #fff; 
}

.local2 .lead { 
color: #fff; 
}
.facts { 
display: grid; 
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
gap: 1.25rem; 
margin-top: 2rem; 
list-style: none; 
padding: 0; 
}

.facts li { 
border-top: 2px solid var(--hay); 
padding-top: .9rem; 
}
.facts strong { 
display: block; 
font-family: var(--serif); 
font-size: 1.15rem; 
color: #fff; 
margin-bottom: .2rem; 
}
.kicker {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brick-600);
  margin: 0 0 14px;
  display: block;
}



/* Gallery */

.gallery { 
display: grid; 
grid-template-columns: repeat(6, 1fr); 
gap: 1rem; 
margin-top: 2rem; 
}

.gallery figure { 
margin: 0; 
position: relative; 
overflow: hidden; 
border-radius: var(--radius); 
background: var(--stone); 
}

.gallery img { 
width: 100%; 
height: 100%; 
object-fit: cover; 
aspect-ratio: 4 / 3; 
}

.gallery figcaption {
  
position: absolute; 
left: 0; 
right: 0; 
bottom: 0; 
padding: 1.5rem 1rem .8rem;
  
color: #fff; 
font-size: .95rem; 
font-weight: 500;
  
background: linear-gradient(to top, rgba(20, 32, 25, .8), rgba(20, 32, 25, 0));

}

.gallery figure:nth-child(1) { 
grid-column: span 4; 
}

.gallery figure:nth-child(2) { 
grid-column: span 2; 
}

.gallery figure:nth-child(3) { 
grid-column: span 2; 
}

.gallery figure:nth-child(4) { 
grid-column: span 4; 
}

.gallery figure:nth-child(1) img, .gallery figure:nth-child(4) img { a
spect-ratio: 16 / 10; 
}

.gallery figure:nth-child(2) img, .gallery figure:nth-child(3) img { 
aspect-ratio: 4 / 5; 
}



/* Smudge */

.pets { 
background: var(--stone); 
}

.pets .split { 
grid-template-columns: .6fr 1.4fr; 
}

.pets img { 
aspect-ratio: 1 / 1; 
border-radius: 50%; 
max-width: 260px; 
margin-inline: auto; 
}



/* Contact */

.contact-grid { 
display: grid; 
grid-template-columns: 1fr 1fr; 
gap: clamp(2rem, 6vw, 5rem); 
}

.contact address { 
font-style: normal; 
}

.contact dl { 
margin: 0; 
}

.contact dt { 
font-weight: 700; 
color: var(--ink); 
margin-top: 1rem; 
}

.contact dd { 
margin: 0; 
}

.contact img { 
border-radius: var(--radius); 
width: 100%; 
aspect-ratio: 3 / 2; 
object-fit: cover;
 }



/* Footer */

.site-footer { 
background: var(--moss-dark); 
color: #c9d4cc; 
padding: 2rem 0; 
font-size: .95rem; 
}

.site-footer a { 
color: #fff; 
}

.site-footer .wrap { 
display: flex; 
flex-wrap: wrap; 
gap: .5rem 2rem; 
justify-content: space-between; 
}



/* Tablet and mobile */

@media (max-width: 820px) {
  
.nav-toggle { display: block; 
}
  
.nav {
    
display: none; 
position: absolute; 
top: 100%; 
left: 0; 
right: 0;
    
flex-direction: column; 
gap: 0; 
background: var(--chalk);
    
border-bottom: 1px solid var(--stone); 
padding: .5rem 1.25rem 1rem;
  
}
  
.nav.open { 
display: flex; 
}
  
.nav a { 
display: block; 
padding: .8rem 0; 
border-bottom: 1px solid var(--stone); 
}
  
.split, .pets .split, .contact-grid { 
grid-template-columns: 1fr; 
}
  
.split img { 
aspect-ratio: 16 / 10; 
}
  
.gallery { 
grid-template-columns: 1fr 1fr; 
}
  
.gallery figure:nth-child(n) { 
grid-column: span 1; 
}
  
.gallery figure:nth-child(1), .gallery figure:nth-child(4) { 
grid-column: span 2; 
}
  
.btn-ghost { 
margin: .5rem 0 0; 
}

}



@media (max-width: 480px) {
  
body { 
font-size: 1rem; 
}
  
.gallery { 
grid-template-columns: 1fr; 
}
  
.gallery figure:nth-child(n) { 
grid-column: span 1; 
}
  
.gallery figure:nth-child(n) img { 
aspect-ratio: 4 / 3; 
}
  
.btn { 
display: block; 
text-align: center; 
}

}



@media print {
  
.site-header, .hero::after, .nav-toggle { 
display: none; 
}
  
body { 
background: #fff; 
}

}
