/*
Theme Name: Tartan Paint
Author: Michael Walker
Version: 1.0
*/

/* =========================
   Reset / Base
   ========================= */

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
input,
textarea,
select {
  margin: 0;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

ul,
ol {
  margin-top: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* =========================
   Site Base
   ========================= */

:root {
  --font-body: Cormorant, sans-serif;
  --font-heading: Cormorant, sans-serif;
  --font-cursive: Italianno, sans-serif;
  --colour-text: #222;
  --colour-background: #f1f1f1;
  --colour-background-darker: #eaeaea;
  --colour-primary: #000;
  --colour-light-gray: #adadad;

  --content-width: 1200px;
  font-display: block;
}

body {
  font-family: var(--font-body);
  color: var(--colour-text);
  background: var(--colour-background);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.site-header {
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
}

/* =========================
   Nav Bar
   ========================= */

.site-navigation {
  margin: auto;
  font-size: 1.8em;
  width: 100%;
  border-top: solid 1px var(--colour-light-gray);
  border-bottom: solid 2px var(--colour-light-gray);
  margin: 1em;
  margin-top: 0.1em;
  background: var(--colour-background-darker);
}

.site-navigation ul {
  display: flex;
  list-style: none;
  margin: auto;
  width: 100%;
  align-items: center;
  justify-content: space-evenly;

  li {
    margin-left: 1em;
    margin-right: 2em;
  }
}

.minor-site-navigation {
  font-size: 3.8em;
  width: 100%;
  padding-right: 1em;
  padding-top: 0.1em;

  ul {
    display: flex;
    list-style: none;
    justify-content: end;
    font-size: 0.5em;
    padding: 0;
    margin: 0;

    li {
      margin-left: 0.8em;
      margin-right: 0.2em;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
}

/* =========================
   Hero
   ========================= */

.hero {
  font-size: 3em;
  display: grid;
  grid-template-columns: 1fr 3fr;
  padding-left: 2em;
  padding-right: 2em;
  width: 98vw;

  .hero-image {
    height: 100%;
    background-image: url("assets/img/mr_tartan.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hero-text {
    text-align: right;
  }

  h1 {
    margin-bottom: 0;
  }

  h2,
  h3,
  h4 {
    font-family: var(--font-cursive);
  }
}

/* =========================
   Main Content
   ========================= */

main {
  display: flow-root;
  flex: 1;
}

.related.products {
  clear: both;
  display: flow-root;
}

.site-main {
  width: 96vw;
  margin: auto;
}

.generic {
  section,
  article {
    width: 80%;
    margin: auto;
  }
}

a.read-full {
  text-decoration: underline;
}

.about-section {
  section,
  article {
    width: 80%;
    margin: auto;
  }

  h1 {
    font-size: 1.1em;
  }

  h2 {
    font-size: 1.8em;
  }

  h2,
  h3,
  h4 {
    border-bottom: solid 1px var(--colour-light-gray);
  }

  li {
    font-size: 0.8em;
  }

  blockquote div {
    font-weight: bold;
  }
}

.news-insight,
.case-study {
  padding-bottom: 3em;
}

.team-member {
  padding: 2em;

  img {
    width: 150px;
    margin: 1em;
  }
}

.generic article.page h1 {
  font-size: 1.8em;
  border-bottom: solid 1px var(--colour-light-gray);
}

/* =========================
   Product
   ========================= */

.summary {
  width: fit-content;
}

.product-specs ul {
  list-style: none;
  padding-left: 0;
}

.product-specs li {
  position: relative;
  padding-left: 2em;
  font-size: 1.1em;
}

.product-specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 1.5em;
  height: 1em;
  background-image: url("assets/img/pointinghand.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

.product-recommendation,
.product-specs {
  margin-top: 2em;
  margin-bottom: 2em;
  border-top: solid 1px var(--colour-light-gray);
  border-bottom: solid 2px var(--colour-light-gray);
  background: var(--colour-background-darker);
  padding: 1em;
  min-width: fit-content;
  width: 80%;

  a {
    text-decoration: underline;
  }

  blockquote p {
    font-weight: bold;
    font-size: 1.5em;
  }
}

/* =========================
   Footer
   ========================= */

.site-footer {
  width: 96vw;
  margin: auto;
  text-align: center;
}

.footer-nav ul {
  display: flex;
  list-style: none;
  margin: auto;
  gap: 1em;
  padding: 0;
  align-items: center;
  justify-content: center;
  padding: 1em;

  a {
    text-decoration: none;
  }
}

/* =========================
   Responsivesness
   ========================= */

@media (width <= 1024px) {
  h1,
  h2,
  h3 {
    font-size: 1em;
  }

  li {
    font-size: 0.6em;
  }
}

@media (width <= 900px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
}

@media (width <= 720px) {
  h1,
  h2,
  h3 {
    font-size: 0.8em;
  }

  li {
    font-size: 0.4em;
  }
}
@media (width <= 600px) {
  h1,
  h2,
  h3 {
    font-size: 0.6em;
  }

  li {
    font-size: 0.3em;
  }

  .minor-site-navigation {
    padding-right: 0.2em;

    ul {
      margin: 0;
      margin-left: 20px;
      margin-right: 20px;
    }
  }
}

/* =========================
   Design Feedback Page
   ========================= */

.designs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  width: 100%;
}

.feedback-design {
  border: solid 1px gray;
  padding: 1rem;
  width: fit-content;
  margin: 1em;
  box-shadow: 2px 2px 4px #222;
  min-width: 0;
  width: 100%;

  p {
    max-width: 300px;
  }

  .feedback-design-image {
    min-height: 200px;
  }

  .feedback-design-notes {
    width: 300px;
  }

  .feedback-options {
    display: flex;
    flex-direction: column;
  }
}

.submit-feedback {
  font-size: 2rem;
  padding: 1rem;
  margin: 2rem;
}
