
@charset "utf-8";

/* Ye Olde Treadle Shoppe LLC */

/* General Website Styling */

* {
  box-sizing: border-box;
}

body {
  width: 100%;
  margin: 0;
  background-color: #FEFCEF;
  color: #000080;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}

/* Images */

img {
  max-width: 100%;
  height: auto;
}

/* Header and Logo */

header {
  background-color: #DCDFD7;
  color: slategray;
  text-align: center;
  padding: 1em;
}


}
/* Victorian Company Logo */

.site-logo {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}


/* Headings */

h1,
h2,
h3 {
  color: slategray;
  text-align: center;
}

/* Main Content */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2em 1em;
}

p {
  text-align: left;
  text-indent: 5em;
  line-height: 1.6;
}

/* Introduction */

.deck {
  font-style: italic;
  text-align: center;
  text-indent: 0;
}


/* Navigation */

nav {
  background-color: lightslategray;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0.5em;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 0.5em;
}

nav ul li a {
  display: block;
  padding: 0.875em 1.25em;
  color: #111111;
  background-color: #DCDFD7;
  text-decoration: none;
  text-align: center;
  border-radius: 15px;
  font-weight: bold;
}

nav ul li a:hover,
nav ul li a:focus-visible {
  background-color: #FEFCEF;
  color: #000080;
  text-decoration: underline;
}

/* Highlight the current page */

nav ul li a[aria-current="page"] {
  background-color: #FEFCEF;
  color: #000080;
  text-decoration: underline;
}

/* Keyboard Accessibility */

nav ul li a:focus-visible {
  outline: 3px solid #000080;
  outline-offset: 3px;
}


/* Contact Information */

.contact-info {
  text-align: center;
  margin: 3em auto;
}

.contact-info p {
  text-align: center;
  text-indent: 0;
}

.contact-info a {
  color: #000080;
  overflow-wrap: anywhere;
}

/* Footer */

footer {
  background-color: #DCDFD7;
  color: #000080;
  text-align: center;
  padding: 1em;
}

footer p {
  text-align: center;
  text-indent: 0;
}

/* Mobile Layout */

@media (max-width: 900px) {
  main {
    padding: 1em;
  }

  nav ul {
    justify-content: center;
  }
}

/* Victorian Company Logo */

.site-logo {
  display: block;
  width: 550px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.spool-divider img {
  display: block;
  width: 350px;
  max-width: 100%;
  height: auto;
  margin: 10px auto;
}

/* Victorian Contact Us Card */

.contact-card {
  display: block;
  width: 500px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}


.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  margin-top: 1em;
}

.contact-links a {
  color: #000080;
}

/* Contact Us Page */

.contact-page {
  max-width: 750px;
  margin: 2em auto;
}

.contact-page > p {
  text-indent: 0;
  line-height: 1.7;
  text-align: center;
}

.contact-page .contact-info {
  margin: 2em auto;
}

.contact-page .contact-info p {
  text-align: center;
  text-indent: 0;
}

/* Antique Sewing Machine Collection */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5em;
  margin: 2em auto;
}

.brand-card {
  text-align: center;
  min-width: 0;
}

.brand-card h2 {
  margin-bottom: 0.75em;
}

.brand-card p {
  text-align: center;
  text-indent: 0;
}

.machine-photo {
  display: block;
  width: 100%;
  max-width: 350px;
  height: auto;
  margin: 0 auto 1em;
  border-radius: 10px;
}

.collection-intro {
  max-width: 850px;
  margin: 1.5em auto;
  text-align: center;
  text-indent: 0;
}

@media (max-width: 900px) {
  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .brand-grid {
    grid-template-columns: 1fr;
  }
}
