/* Base */

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: #fff;
  color: #171717;
  font-family: "Iowan Old Style", Baskerville, Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.5;
}

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

button {
  font: inherit;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 12px 3%;
  border-bottom: 1px solid #d8d6d2;
  background: #fff;
  transition: min-height 0.25s ease, padding 0.25s ease;
}

.name {
  flex: 0 0 auto;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(27px, 2.25vw, 38px);
  font-style: italic;
  line-height: 1.1;
  letter-spacing: 0.01em;
  transition: font-size 0.25s ease;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.2vw, 42px);
  font-size: clamp(16px, 1.2vw, 21px);
  transition: font-size 0.25s ease;
}

nav a {
  white-space: nowrap;
}

nav a:hover {
  opacity: 0.65;
}

.bag {
  display: inline-block;
  margin-left: clamp(18px, 2vw, 40px);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
}

.site-cart {
  position: relative;
}

.cart-dropdown[hidden] {
  display: none;
}

.cart-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1010;
  width: min(440px, 92vw);
  padding: 24px;
  border: 1px solid #d8d6d2;
  background: #fff;
  box-shadow: 0 16px 38px rgb(0 0 0 / 16%);
  color: #171717;
  font-family: "Iowan Old Style", Baskerville, Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.45;
}

.cart-dropdown-heading {
  margin: 0 0 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d8d6d2;
  font-size: 20px;
  font-weight: 400;
}

.cart-dropdown-items {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-dropdown-items li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #e7e4e0;
}

.cart-dropdown-items li form {
  margin: 0;
}

.cart-dropdown-items li form button {
  padding: 2px 0;
  font: inherit;
  font-size: 13px;
}

.cart-dropdown-total {
  margin: 16px 0 6px;
  text-align: right;
  font-weight: 600;
}

.cart-dropdown-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.cart-dropdown-actions form {
  margin: 0;
}

.cart-dropdown .cart-dropdown-checkout {
  min-height: 54px;
  margin-top: 0;
  font-size: 17px;
}

.cart-dropdown .cart-dropdown-cart-button {
  width: 100%;
  min-height: 48px;
  border: 1px solid #171717;
  background: #fff;
  color: #171717;
  font: inherit;
  cursor: pointer;
}

.cart-dropdown .cart-dropdown-cart-button:hover {
  background: #f2f0ec;
}

.cart-dropdown-note {
  margin: 0 0 12px;
  color: #666;
}

.cart-dropdown-link {
  display: inline-block;
  margin-top: 16px;
  text-decoration: underline;
}

.site-header.is-scrolled {
  min-height: 64px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.site-header.is-scrolled .name {
  font-size: clamp(25px, 1.8vw, 33px);
}

.site-header.is-scrolled nav {
  font-size: clamp(15px, 1.05vw, 19px);
}

.site-footer {
  padding: 26px 4% 30px;
  border-top: 1px solid #e4e1dc;
  color: #666;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.header-sign-out-form {
  display: inline-flex;
  margin: 0;
}

.header-sign-out {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.header-sign-out:hover {
  opacity: 0.65;
}
