/* Luu's Wine Shop: mobile-first styles
   Order: base, shared parts, header, Home, Visit, Campaign, footer,
   then tablet and desktop media queries (also in page order) */
 
/* ---------- Colours, fonts and spacing ---------- */
:root {
  --grey: #b3aca1;
  --plum: #4a1a26;
  --terracotta: #9a3f1a;
  --yellow: #eef25a;
 
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Karla", Arial, Helvetica, sans-serif;
 
  --space: 1.25rem;     /* left and right space, bigger on tablet and desktop */
  --section: 3.5rem;    /* top and bottom space of each block */
}
 
/* ---------- Base ---------- */
body {
  margin: 0;
  font-variation-settings: "SOFT" 100, "WONK" 1; /* soft, playful shapes for Fraunces (Karla ignores it) */
  background: var(--plum);
  color: var(--yellow);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}
 
img {
  display: block;
  max-width: 100%;
  height: auto;
}
 
/* ---------- Type ---------- */
h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  text-align: center;
  line-height: 1.12;
  letter-spacing: -0.005em;
  max-width: 18ch;
  margin: 0 auto 1.5rem;
}
 
h1 {
  font-size: 2.4rem;
}
 
h2 {
  font-size: 2rem;
}
 
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}
 
p {
  margin: 0 0 1rem;
}
 
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
 
:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
 
.center {
  text-align: center;
}
 
.prose {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
 
/* Italic underlined links, instead of buttons */
.text-link {
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
 
.text-link:hover {
  text-decoration-thickness: 4px;
}
 
/* ---------- Shared parts ---------- */
figure {
  margin: 0;
}
 
figcaption {
  margin-top: 0.6rem;
  font-style: italic;
  font-size: 0.95rem;
  text-align: center;
}
 
/* both colour blocks share the same spacing */
.block-plum,
.block-terracotta {
  padding: var(--section) var(--space);
}
 
/* plum blocks: deep wine colour, yellow text */
.block-plum {
  background: var(--plum);
}
 
/* terracotta blocks: the orange of Luu's walls, yellow text */
.block-terracotta {
  background: var(--terracotta);
}
 
.tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.2;
  text-align: center;
  max-width: 28ch;
  margin: 2rem auto;
}
 
.shout {
  font-size: 2.8rem;
  line-height: 1.02;
  max-width: none;
}
 
.shout span {
  display: block;
}
 
/* ---------- Icons (Font Awesome: email, phone, Instagram) ---------- */
.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
 
/* ---------- Header and nav ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem var(--space);
  background: var(--plum);
}
 
.name-logo {
  display: block;
}
 
.name-logo img {
  width: auto;
  height: 3.5rem;
}
 
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
 
.nav-list a {
  font-style: italic;
  font-weight: 500;
  text-decoration: none;
}
 
.nav-list a:hover,
.nav-list a.current {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
 
/* ---------- Home: hero ---------- */
/* the photo sits outside this padded section, so it runs edge to edge */
.hero {
  padding-top: 1rem;
  padding-bottom: 0;
}
 
.hero-figure {
  margin-bottom: var(--section);
}
 
.hero-figure figcaption {
  padding: 0 var(--space);
}
 
.hero-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
 
/* ---------- Home: about ---------- */
.about-illustration {
  width: 100%;
  max-width: 14rem;
  margin: 0 auto 2rem;
}
 
/* ---------- Home: full-width photo ---------- */
.photo-band img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
 
/* ---------- Home: photo tiles ---------- */
.tiles {
  padding: var(--space);
}
 
.tile-list {
  display: grid;
  gap: var(--space);
  margin: 0;
  padding: 0;
  list-style: none;
}
 
/* the word sits on top of the photo (W3Schools "Image Text" method) */
.tile {
  position: relative;
  display: block;
  text-decoration: none;
}
 
.tile-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
 
.tile-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-size: 2.25rem;
  /* keeps the word readable on the photo */
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
 
.tile:hover .tile-word,
.tile:focus .tile-word {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}
 
/* ---------- Visit page ---------- */
/* two color blocks: hours on terracotta, contact and map on plum */
.visit {
  text-align: center;
}
 
.visit-illustration {
  width: 100%;
  max-width: 9rem; /* the source file is 284px wide: 9rem keeps it sharp on retina screens */
  margin: 0 auto 2rem;
}
 
.hours-table {
  margin: 0 auto;
  border-collapse: collapse;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.3;
}
 
/* each row on its own centered line */
.hours-table tr {
  display: block;
  text-align: center;
}
 
.hours-table th {
  display: inline;
  font-weight: 400;
  font-style: italic;
  padding: 0 0.3em 0 0;
}
 
.hours-table td {
  display: inline;
  padding: 0;
}
 
.visit-contact {
  font-style: normal;
  font-weight: 600;
  margin-bottom: 3rem;
  line-height: 1.6;
}
 
/* address, email, phone, Instagram: one centered line each */
.contact-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
 
.contact-row a {
  display: inline-flex;
  padding: 0.3rem 0;
}
 
.visit-map {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  max-width: 32rem;
  margin: 0 auto;
}
 
/* ---------- Campaign page ---------- */
.campaign-logo {
  width: 100%;
  max-width: 16rem;
  margin: 0 auto 2rem;
}
 
.hero-sub {
  font-size: 1.3rem;
}
 
/* the witty aside: same size as the text, just italic */
.aside {
  font-style: italic;
}
 
/* the ask: the one big statement of the section */
.ask {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.2;
  text-align: center;
  max-width: 24ch;
  margin: 2.5rem auto 0;
}
 
/* ---------- Campaign: signup form ---------- */
.signup-lead {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.3rem;
  text-align: center;
  margin: 2.5rem auto 0;
}
 
.signup-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 32rem;
  margin: 1.25rem auto 0;
}
 
.signup-form input {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.8rem 1.2rem;
  border: 2px solid var(--yellow);
  border-radius: 2rem;
  background: transparent;
  color: var(--yellow);
  font: inherit;
}
 
.signup-form input::placeholder {
  color: var(--yellow);
  opacity: 0.9;
}
 
.signup-form button {
  padding: 0.8rem 1.6rem;
  border: 2px solid var(--yellow);
  border-radius: 2rem;
  background: var(--yellow);
  color: var(--terracotta);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
 
.signup-form button:hover {
  background: transparent;
  color: var(--yellow);
}
 
/* ---------- Campaign: support the change ---------- */
.merch-figure {
  max-width: 36rem;
  margin: 2rem auto;
}
 
.merch-figure img {
  width: 100%;
}
 
/* ---------- Footer ---------- */
/* drawing on top, info below, all centered like the rest of the site */
.site-footer {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  padding: 2.5rem var(--space) 1.5rem;
  background: var(--grey);
  color: var(--plum);
  text-align: center;
}
 
.footer-drawing {
  width: 7rem;
}
 
.footer-line {
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1.05;
  margin: 0 0 0.5rem;
}
 
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 0.25rem 0 0.75rem;
  padding: 0;
  list-style: none;
  font-style: italic;
  font-weight: 600;
}
 
.footer-info p {
  margin: 0 0 0.4rem;
}
 
.site-footer :focus {
  outline-color: var(--plum);
}
 
/* ---------- Tablet and up ---------- */
@media (min-width: 768px) {
  :root {
    --space: 2rem;
    --section: 4.5rem;
  }
 
  h1 {
    font-size: 3.4rem;
  }
 
  h2 {
    font-size: 2.6rem;
  }
 
  .tagline,
  .ask {
    font-size: 1.7rem;
  }
 
  .shout {
    font-size: 5.3rem;
  }
 
  .hours-table {
    font-size: 1.9rem;
  }
 
  .signup-lead,
  .footer-line {
    font-size: 1.45rem;
  }
 
  .hero-img,
  .photo-band img {
    aspect-ratio: auto;
    height: 75vh;
    min-height: 28rem;
  }
 
  .tile-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
 
/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  :root {
    --space: 2.5rem;
    --section: 6.5rem;
  }
 
  h1 {
    font-size: 5.5rem;
  }
 
  h2 {
    font-size: 4.25rem;
  }
 
  .tagline,
  .ask {
    font-size: 2.25rem;
  }
 
  .shout {
    font-size: 8rem;
  }
 
  .tile-word {
    font-size: 3.6rem;
  }
 
  .hours-table {
    font-size: 2.4rem;
  }
 
  .signup-lead {
    font-size: 1.75rem;
  }
 
  .footer-line {
    font-size: 2rem;
  }
 
  .name-logo img {
    height: 5rem;
  }
}