/* Linn Lorkin — static site styles (modelled on the Shopify Dawn theme the site used) */
:root {
  --red: #d80017;
  --ink: #121212;
  --ink-soft: rgba(18, 18, 18, 0.75);
  --grey: #f3f3f3;
  --white: #fff;
  --max: 1200px;
  --font-heading: "carrotflower", "Gochi Hand", "Comic Neue", cursive;
  --font-body: "Assistant", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, .heading {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.4rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.site-header { background: var(--red); color: var(--white); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 84px; flex-wrap: wrap; }
.logo { font-family: var(--font-heading); font-size: 1.9rem; letter-spacing: 0.04em; text-decoration: none; color: var(--white); white-space: nowrap; }
.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a { color: var(--white); text-decoration: none; font-size: 0.95rem; opacity: 0.9; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0.06em;
  padding: 0.85rem 2.2rem;
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
  text-align: center;
}
.btn:hover { box-shadow: 0 0 0 2px var(--red); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { box-shadow: 0 0 0 1px var(--ink); }
.btn--white { background: var(--white); color: var(--red); border-color: var(--white); }
.btn--block { display: block; width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 34rem;
  display: flex;
  align-items: center;
  background: #fbe3e3 url("img/banner.jpg") center / cover no-repeat;
}
.hero .wrap { width: 100%; }
.hero__content { max-width: 34rem; }
.hero h1 { color: var(--white); font-size: clamp(2.6rem, 6vw, 4.4rem); }

/* ---------- Product grid ---------- */
.section { padding: 3.5rem 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.card { text-decoration: none; display: block; }
.card__media { background: var(--grey); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__title { font-family: var(--font-heading); color: var(--ink); font-size: 1.15rem; margin: 0.9rem 0 0.2rem; }
.card:hover .card__title { text-decoration: underline; text-underline-offset: 0.3em; }
.card__price { font-size: 1rem; }

/* ---------- Music banner ---------- */
.music {
  background: #fff url("img/music-bg.gif") center / cover no-repeat;
  padding: 9rem 1.5rem;
  display: flex;
  justify-content: center;
}
.music__box { background: var(--white); padding: 2.5rem 2rem; text-align: center; max-width: 44rem; width: 100%; }
.music__buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.2rem; }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 0 4rem; }
@media (min-width: 750px) { .product { grid-template-columns: 11fr 10fr; gap: 4rem; } }
.product__media { background: var(--grey); align-self: start; }
.product__vendor { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.13em; margin: 0; }
.product__price { font-size: 1.25rem; color: var(--ink); margin: 0.3rem 0 1.5rem; }
.formats { border: 0; padding: 0; margin: 0 0 1.5rem; }
.formats legend { font-size: 0.9rem; margin-bottom: 0.5rem; }
.formats label { display: inline-block; margin: 0 0.4rem 0.5rem 0; }
.formats input { position: absolute; opacity: 0; }
.formats span {
  display: inline-block;
  padding: 0.55rem 1.3rem;
  border: 1px solid rgba(18, 18, 18, 0.55);
  border-radius: 2rem;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}
.formats input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.formats input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.product__note { font-size: 0.9rem; margin: 0.8rem 0 2rem; }
.product__desc h2 { margin-top: 1.5rem; }
.product__desc blockquote { margin: 0 0 1.2rem; padding-left: 1rem; border-left: 3px solid var(--red); }
.product__desc cite { display: block; font-style: normal; font-size: 0.85rem; letter-spacing: 0.1em; margin-top: 0.4rem; color: var(--ink); }

/* ---------- Contact ---------- */
.form { display: grid; gap: 1rem; max-width: 40rem; }
.form .row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 750px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(18, 18, 18, 0.55);
  background: var(--white);
  color: var(--ink);
}
.field textarea { min-height: 10rem; resize: vertical; }
.field label { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--red); color: var(--white); text-align: center; padding: 3rem 0 2rem; }
.site-footer h2 { color: var(--white); font-size: 1.4rem; }
.subscribe { display: flex; max-width: 22rem; margin: 1rem auto 0; border: 1px solid var(--white); }
.subscribe input { flex: 1; min-width: 0; font: inherit; padding: 0.8rem 1rem; background: transparent; border: 0; color: var(--white); }
.subscribe input::placeholder { color: rgba(255, 255, 255, 0.85); }
.subscribe button { background: transparent; border: 0; color: var(--white); padding: 0 1rem; font-size: 1.2rem; cursor: pointer; }
.site-footer .small { font-size: 0.8rem; opacity: 0.85; margin-top: 2.5rem; border-top: 1px solid rgba(255, 255, 255, 0.25); padding-top: 1.5rem; }
.site-footer .small a { color: var(--white); }
