:root {
  --page: #f2f2f2;
  --panel: #ffffff;
  --ink: #474747;
  --soft: #8c8c8c;
  --line: #cccccc;
  --caption: #e4e1dc;
  --head: "Raleway", sans-serif;
  --body: "Source Sans 3", "Source Sans Pro", sans-serif;
  --gutter: clamp(16px, 3vw, 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 300 16px/1.85 var(--body);
  letter-spacing: .02em;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
strong { font-weight: 400; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .32em;
  line-height: 1.35;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: 1.15rem; margin-bottom: 1.6rem; }
h3 { font-size: 1.1rem; letter-spacing: .24em; }
.sub {
  font: 300 .75rem/1.6 var(--head);
  text-transform: uppercase;
  letter-spacing: .3em;
  margin: 0 0 2rem;
}

/* outlined buttons, as on the original site */
.buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.buttons a, .buttons button, .button {
  display: inline-block;
  font: 700 .62rem/1 var(--head);
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .6rem .8rem .6rem 1rem;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.buttons a:hover, .buttons button:hover, .button:hover { border-color: var(--ink); }
.buttons button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.button { padding: .95rem 1.2rem .95rem 1.4rem; }
.text-link { font-size: .9rem; color: var(--soft); }

/* header */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px var(--gutter);
  background: var(--panel);
  box-shadow: 0 1px 0 #e6e6e6;
}
.icons { display: flex; gap: 16px; }
.icons svg { width: 20px; height: 20px; fill: none; stroke: var(--soft); stroke-width: 1.5; }
.icons .dot, .icons .fill { fill: var(--soft); stroke: none; }
.icons a:hover svg { stroke: var(--ink); }

/* panels */
main { max-width: 1120px; margin: 0 auto; padding: var(--gutter); display: grid; gap: var(--gutter); }
.panel { background: var(--panel); padding: clamp(28px, 6vw, 72px); }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-text p { margin: 0 0 2rem; }
.hero-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* shop */
.shop-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.filters { display: grid; gap: 8px; justify-items: end; }
.filter-group.small button { font-size: .56rem; padding: .5rem .6rem .5rem .8rem; }
.collection-note { max-width: 40em; margin: 0 0 2rem; }
.collection-note:empty { display: none; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}
.card { display: block; width: 100%; padding: 0; border: 0; background: var(--caption); cursor: pointer; text-align: left; color: var(--ink); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .25s; }
.card:hover img { opacity: .9; }
.card .cap {
  display: flex; justify-content: space-between; gap: 6px;
  padding: 8px 10px;
  font: 400 .68rem/1.4 var(--body);
  letter-spacing: .12em;
}
.card .cap span:last-child { color: var(--soft); white-space: nowrap; }

/* about */
.about { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about p { margin: 0 0 1.2rem; }

/* contact */
.contact { text-align: center; }
.contact > p { margin: 0 0 2rem; }
.form { display: grid; gap: 12px; max-width: 520px; margin: 0 auto; }
.form input, .form textarea {
  font: 300 1rem var(--body); color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 10px 14px; background: transparent; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form .button { justify-self: center; margin-top: 8px; }

/* footer */
.footer { text-align: center; padding: 28px var(--gutter) 40px; font: 300 .72rem var(--head); color: #b3b3b3; }

/* product dialog */
dialog {
  border: 0; padding: 0; background: var(--panel); color: var(--ink);
  width: min(900px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
}
dialog::backdrop { background: rgba(40, 40, 40, .5); }
.close { position: absolute; top: 6px; right: 14px; z-index: 1; background: none; border: 0; font-size: 2rem; color: var(--ink); cursor: pointer; }
.pd { display: grid; grid-template-columns: 1fr 1fr; }
.pd img { width: 100%; height: 100%; max-height: calc(100vh - 32px); object-fit: cover; }
.pd-info { padding: clamp(28px, 4vw, 52px); align-self: center; display: grid; gap: 14px; justify-items: start; }
.pd-info p, .pd-info h3 { margin: 0; }

@media (max-width: 760px) {
  .nav .buttons a { padding: .55rem .5rem .55rem .7rem; letter-spacing: .2em; }
  .icons { gap: 12px; }
  .hero, .about, .pd { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .filters { justify-items: start; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pd img { max-height: 50vh; }
}
@media (max-width: 400px) {
  .icons { display: none; }
}
