@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');



/* constant variables */
:root{
    --tan-background: #FFF6E8;
    --red-text: #800000;
    --header-font-family: "DM Serif Display";
    --body-font-family: "Libre Baskerville";
    --article-p-font-family: "Lato";
    --line-width: 2px;
    --font-size-p: clamp(1rem, 1.1vw, 2rem);   
    --font-size-h3: clamp(1.5rem, 3vw, 2.5rem); 
    --line-background-light: rgba(255, 255, 255, 0.546);
}

/* -------- Global Styles ----------*/
html{
    background-color: white;
    margin: 0;
    padding: 0;
}
body{
    margin: 0;
    padding: 0;
}
h1{
    font-family: var(--header-font-family);
    color: var(--red-text);
    font-size: clamp(2.5rem, 8vw, 5rem);
    letter-spacing: clamp(0.05rem, 0.3vw, 0.25rem);
}
h3{
    font-size: var(--font-size-h3);
    letter-spacing: clamp(0.05rem, 0.3vw, 0.2rem);
    font-family: var(--header-font-family);
}
h2{
    font-size: clamp(1.8rem, 5vw, 3.5rem); 
    letter-spacing: clamp(0.05rem, 0.4vw, 0.3rem);
    line-height: 1.2;
    font-family: var(--header-font-family);
}
h4{
    font-size: clamp(1rem, 1.5vw, 1.25rem); 
    letter-spacing: clamp(0.02rem, 0.1vw, 0.08rem);
    font-family: var(--header-font-family);
    font-weight: 400;
}
img{
    display: block; 
}

/* ---------- logo header ---------- */
header.logo-header{
    background-color: var(--tan-background);
    display: flex;
    justify-content: center;
    align-items: center;
    height:fit-content;
    position: relative;
}
.logo-header a{
    width: 20%;
    padding: 2.5%;
}
.logo-header img{
    width: 100%;
}

/* ---------- cover ---------- */
.cover-header{
    position: relative;
    width: 100%;
    height: auto;
}
.cover-header .header-img-container img{
    width: 100%;
}
.cover-header .header-content{
    position: absolute;
    top: 7.5%;
    right: 5%;
    display: flex;
    flex-direction: column;
    justify-content: top;
    align-items: center;
    text-align: center;
}
.cover-header h1{
    text-shadow: 0.4vw .3vw .6vw rgba(0, 0, 0, 0.25);
    -webkit-text-stroke-width: 0.07vw;
    -webkit-text-stroke-color: #FFF;
    font-style: normal;
    font-weight: 400;
    margin: 0;
    padding: 0;  
    color: #660000;
    font-size: 8vw; 
    letter-spacing: 0.3vw;
}
.cover-header h2, .cover-header h3{
    color: black;
    font-weight: 400;
    margin: 0;
    font-size: 5vw;
    letter-spacing: .4vw;
    line-height: 5vw;
}
.cover-header h3{
    font-size: 3vw;
    letter-spacing: .3vw;
}

/* lines in header */
.lines-header-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    gap: 1vw;
}
div.lines-left, div.lines-right{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .5rem;
}
.line-1, .line-2{
    all: unset;           
    display: block;
    height: var(--line-width);
    background: #000;
    margin: 0;
}
.lines-left{
    align-items: flex-end;
}

/* lengths for top line */
.lines-left .line-1, .lines-right .line-1{ 
    width: 5vw;
}
/* bottom line lengths */
.lines-left .line-2, .lines-right .line-2 { 
    width: 10vw; 
}


/* ---------- section 1 and 3 styling ---------- */

.article-paragraph-with-image{
    background-color: var(--tan-background);
    display: grid;
    grid-template-columns: 50% 50%;
}
.article-paragraph-with-image img{
    width: 100%;
    height: auto;
}
.article-paragraph-with-image h3{
    letter-spacing: 0.1vw;
    font-weight: 400;
    color: var(--red-text);
    font-style: normal;
    line-height: normal;
    margin: 0;
}
.article-paragraph-with-image .section-content{
    padding: 10% 5% 5% 10%;
    display: flex;
    flex-direction: column;
    align-self: center;
    margin-top: -2vw;
}
.article-paragraph-with-image .section-content p{
    box-sizing: border-box;
    margin: 2.5% 0;
    font-size: var(--font-size-p);
    font-family: var(--body-font-family);
    line-height: 150%;
    letter-spacing: clamp(0.05rem, 0.15vw, 0.1rem);
    font-weight: 700;
    padding-right: 17.5%;
}
.article-paragraph-with-image .section-content a{
    color: white;
    background-color: var(--red-text);
    text-decoration: none;
    width: fit-content;
    font-family: var(--header-font-family);
    font-weight: 400;
    transition: background-color 0.2s ease;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    letter-spacing: clamp(0.05rem, 0.2vw, 0.15rem);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
}

.article-paragraph-with-image a:hover{
    background-color: #660000;
    transition: background-color 0.2s ease;
}

/* --------------section 2, 4, 6, 8 (banners with logo and text link overlay) --------------*/

.banner-with-text .banner-img{
    width: 100%;
    height: auto;
    box-sizing: border-box;
    padding: 5%;
}

.banner-with-text{
    position: relative;
    width: 100%;
    height: auto;
}
.image-text-overlay-container {
    position: absolute;
    top: 18%;
    left: 4%;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    gap: .5vw;
    margin-left: 5vw;
}
.image-text-overlay-container .logo{
    width: 100%;     
    max-width: 200px;
    height: auto;
}
.image-text-overlay-container h4{
    font-family: var(--body-font-family);
    font-style: normal;
    color: white;
    font-weight: 700;
    line-height: 120%;
    margin: 0;
    font-size: var(--font-size-p);
    letter-spacing: clamp(0.05rem, 0.15vw, 0.1rem);
}
.image-text-overlay-container hr{
    width: 100%;
    align-self: flex-start;
    margin: 0;
    height: var(--line-width);
    border: none;
    background: var(--line-background-light);

}

.image-text-overlay-container a{
    font-family: var(--body-font-family);
    font-weight: 400;
    color: white;
    text-decoration: none;
    line-height: normal;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    letter-spacing: clamp(0.05rem, 0.15vw, 0.1rem);
}
.right-pointing-arrow{
    flex-shrink: 0;
    color: white;
    width: 1.5vw;
    height: auto;  
    margin-left: .5vw;
    transition: transform 0.4s ease;
}
.text-overlay-link, .bottle-link{
    display: inline-flex;           
    align-items: center;              
    text-decoration: none;  
}

.text-overlay-link:hover .link-text, .bottle-link:hover .link-text {
    border-color: currentColor; /* underline fades in */
}
.link-text {
    border-bottom: 2px solid transparent;
    transition: border-color 0.4s ease;
}
.purchase-bottle .link-text {
    border-bottom: 3px solid transparent;
}
.text-overlay-link:hover .right-pointing-arrow, .bottle-link:hover .right-pointing-arrow {
    transform: translateX(.5vw);
    transition: transform 0.4s ease;
}

/* -------------- section 5, 7 styling (centered text)-------------- */

.centered-text .section-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    margin: 5% 20%;
}
.centered-text h3, .purchase-header h3{
    margin: 0;
    color: var(--red-text);
    font-weight: 400;
}
.centered-text-p{
    font-family: var(--body-font-family);
    font-size: var(--font-size-p);
    line-height: 175%;
    letter-spacing: clamp(0.05rem, 0.15vw, 0.1rem);
    font-weight: 700;
    font-style: normal;
}
.centered-text a{
    color: white;
    background-color: var(--red-text);
    text-decoration: none;
    width: fit-content;
    font-family: var(--header-font-family);
    font-weight: 400;
    margin-bottom: 4vw;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    letter-spacing: clamp(0.05rem, 0.2vw, 0.15rem);
    padding: 0.75rem 1.5rem;
}

/* --------------  purchase section --------------  */


.purchase{
    margin: 0 8%;
}


.purchase {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 3vw;
}

.purchase-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}


.purchase-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* keep 4 per row for desktop */
    justify-content: center;
    gap: 1vw;
    margin: 0 auto;
}

.purchase-bottle {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* keeps bottles “on the shelf” */
    align-items: center;
    width: 100%;
}

.purchase-bottle img {
    display: block;
    width: 100%;      /* fills the padded container width */
    height: auto;     /* keeps aspect ratio intact */
    object-fit: contain;
    padding: 1vw 2.5vw;
    box-sizing: border-box;
}

/* lines between bottles */

.purchase-bottle:not(:last-child) {
    border-right: var(--line-width) solid black;
}
.purchase-bottle:not(:first-child) {
    border-left: var(--line-width) solid black;
}

/* shop link */

.purchase-bottle a{
    color: var(--red-text);
    text-decoration: none;
    font-family: var(--header-font-family);
    font-weight: 400;
    font-size: var(--font-size-h3);
    letter-spacing: clamp(0.05rem, 0.1vw, 0.1rem);
    line-height: normal;
    margin-bottom: 2vw;
}


/* purchase labels */
.purchase-p{
    color: #000;
    text-align: center;
    margin: 5%;
    font-size: var(--font-size-p);
    font-family: var(--body-font-family);
    line-height: 150%;
    letter-spacing: clamp(0.05rem, 0.15vw, 0.1rem);
    font-weight: 700;
}
.purchase .centered-text-p{
    font-weight: 400;
}


/* -------------- footer -------------- */
.site-footer {
    height: 20vh;
}
/* article styling */

.article-header h1{
    font-family: var(--header-font-family);
    color: black;
    text-align: center;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    font-size: clamp(1.5rem, 5vw, 3rem);
    letter-spacing: clamp(0.05rem, 0.2vw, 0.15rem);
    margin: 0;
}
.article-header {
    margin: 2.5% 15% 1% 15%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
main.article {
    margin: 0 15%;
}
.article .subsection{
    margin-bottom: 2.5%;
}
.article p, p.landing-page-quote-attribution{
    color: #000;
    font-family: var(--article-p-font-family);
    font-size: var(--font-size-p);
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    margin: 0;
}

.article h2, .site-footer-articles h2, .landing-page-diageo .quote h2{
    color: var(--red-text);
    font-family: var(--header-font-family);
    font-size: clamp(1.5rem, 2vw, 2rem);
    letter-spacing: 0vw;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 2% 0 0 0;
}
.landing-page-diageo .quote h2{
    font-style: italic;
}
.site-footer-articles h2{
    color: black;
    margin-bottom: 2.5%;
}
.purchase-here h2{
    color: black;
    text-decoration: underline;
    
}
.article h4, .article-header h4{
    color: #000;
    font-family: var(--body-font-family);
    font-size: var(--font-size-p);
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    margin: 0;
}
.article-header h4{
    text-align: center;
}
.article h4{
    margin-top: 2.5%;
}
.article h4:first-of-type{
    margin: 0;
}
.intro-section p, .quote .block-quote{
    font-family: var(--body-font-family);
    font-weight: 700;
    line-height: 180%;
    letter-spacing: clamp(0.1rem, .15vw, .25rem);
}
.article .italic{
    font-style: italic;
}
p.block-quote {
    margin-top: 2.5%;
}
.quote h2{
    letter-spacing: clamp(.05rem, .10vw, .5rem);
}
.article-img{
    width: 50%;
    height: auto;
    margin: auto;
}
.article .recipe-list li{
    font-size: var(--font-size-p);  
    font-family: var(--article-p-font-family);
    font-weight: 400;
    line-height: 150%;
}
.recipe-list{
    margin: 0;
    margin-left: 1.5rem;
    padding-left: 0.1rem;
    list-style-position: outside;
}
ul li{
    padding-left: 0;
}

/* article footer styling */


.article-lines {
    margin: 5% 8%;
    box-sizing: border-box;
}
.article-lines hr{
    height: var(--line-width);
    border: none;
    background: black;
    width: 100%;
}
.article-lines.page-breaker{
    position: relative;
    left: -10%;                      /* escape main's left margin */
    width: calc(100% + 20%);         /* add back left + right margins */
    box-sizing: border-box;
    margin: 5% 0;
}
.page-breaker hr{
    width: 100%;
}


.site-footer-articles {
    margin: 5% 15%;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.site-footer-articles a h4{
    color: #000;
    font-family: var(--header-font-family);
    font-size: clamp(1rem, 1.75vw, 1.4rem);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0;
}
.site-footer-articles a{
    text-decoration: none;
}
.site-footer-articles .article-card{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    text-align: left;
    gap: 1vw;
    box-sizing: border-box;
    padding: 0;
}

@media (max-width: 1400px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.article-card img {
  width: 100%;      
  height: auto;    
  display: block;   
  object-fit: cover; 
}

/* parallax */

.parallax-container {
    position: relative;
    overflow: hidden;
}
/* parallax the small images at right */
.parallax-container.small-parallax {
    height: 30vw;
}
/* parallax the header images at top */
.parallax-container.header-parallax {
    height: 50vw;

}
@media (min-width: 768px) {
    .parallax-container img {
        position: absolute;
        left: 50%;
        top: 50%;
        width: auto;
        min-width: 100%;    
        width: 100%;
        transform: translate(-50%, -50%);
        object-fit: cover;
        will-change: transform;
        z-index: 0;
        max-width: none;
    }
}
/* mobile stuff gone */

.mobile-only{
    display: none;
}

p.legal{
    margin-top: 3vw;
    font-size: clamp(.5rem, .75vw, 1.5rem);
    font-style: italic;
}

footer.wafooter{
    font-size: clamp(.75rem, .75vw, 1.5rem);
    text-align: center;
    background-color: var(--tan-background);
    margin: 0;
    font-family: var(--article-p-font-family);
    margin-top: 3%;
}
footer.wafooter p {
    margin: 0;
    padding: 2.5%;
}
footer.wafooter a {
    text-decoration: none;
    color: black;
}
footer.wafooter a:hover {
    text-decoration: underline;
}
.article-header h4{
    display: none;
}
.special-feature p{
    font-family: var(--article-p-font-family);
    color: black;
    background-color: var(--tan-background);
    font-size: clamp(.5rem, 1vw, 1rem);
    padding: .5vw .75vw;
    margin: 0;
    margin-left: auto;
    width: fit-content;
}
.special-feature{
    margin: 0;
    position: absolute;
    z-index: 10;
    right: 0;
    background-color: var(--tan-background);
}