/* House Staples home page. Layout matches edytbeauty.com's front page. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/cormorant-fe99e303.woff2) format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/cormorant-e99b45a2.woff2) format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/dmsans-b9df6239.woff2) format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/dmsans-b9df6239.woff2) format("woff2");
}
:root {
  --paper: #faf7f4;
  --ink: #2a211c;
  --muted: #7a6f66;
  --rule: #e3d7cc;
  --rule-strong: #2a211c;
  --rose: #8b5a3c;
  --max: 1120px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: min(var(--max), calc(100% - 64px)); margin: 0 auto; }

.mast-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 0 16px;
}
.menu-toggle {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mast.is-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mast.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.mast.is-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.wordmark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 54px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-align: center;
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
}
.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 12px 0 14px;
  border-top: 1px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav a:hover { color: var(--rose); }

.lead {
  padding: 48px 0 12px;
  text-align: left;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero-search {
  position: relative;
  margin-top: 26px;
  max-width: 20rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.hero-search .site-search-panel { width: 100%; }
.hero-search .site-search-field { display: block; width: 100%; }
.hero-search input {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.35rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #c8c0b6;
  background: #fff;
  color: var(--ink);
  font-family: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0;
  text-transform: none;
}
.hero-search input::placeholder { color: var(--muted); letter-spacing: 0; text-transform: none; }
.hero-search input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.hero-search .site-search-results {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 80;
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(70vh, 28rem);
  overflow: auto;
  background: #fff;
  border: 1px solid #c8c0b6;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.hero-search .site-search-results[hidden] { display: none !important; }
.hero-search .site-search-group { padding: 0.55rem 0 0.35rem; border-bottom: 1px solid var(--rule); }
.hero-search .site-search-group:last-child { border-bottom: 0; }
.hero-search .site-search-group-label {
  margin: 0 0.85rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-search .site-search-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.hero-search .site-search-item--product { grid-template-columns: 2.5rem 1fr; }
.hero-search .site-search-item:hover,
.hero-search .site-search-item:focus-visible { background: #f3ece5; }
.hero-search .site-search-thumb {
  width: 2.5rem;
  height: 3.1rem;
  object-fit: contain;
  background: #f3eef0;
}
.hero-search .site-search-item-copy { display: grid; gap: 0.12rem; min-width: 0; }
.hero-search .site-search-item-brand {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-search .site-search-item-title { font-size: 0.9rem; line-height: 1.25; }
.hero-search .site-search-item-meta { font-size: 0.75rem; color: var(--muted); }
.hero-search .site-search-empty { margin: 0; padding: 1rem 0.85rem; color: var(--muted); font-size: 0.9rem; }
.kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
}
.lead h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 78px;
  line-height: 0.88;
  letter-spacing: -0.03em;
}
.lead h1 em {
  font-style: italic;
  font-weight: 500;
}
.deck {
  max-width: 62ch;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: #4a4038;
}
.read {
  display: inline-block;
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.read:hover { color: var(--rose); border-color: var(--rose); }
.lead-photo {
  background: #fff;
  border: 1px solid var(--rule);
}
.lead-photo img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 40%;
}
.caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 2px 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 8px;
  margin-bottom: 22px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section-label a { border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

.news {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 36px;
  border-top: 1px solid var(--ink);
  padding-top: 28px;
}
.news a {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.news a:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: -18px;
  width: 1px;
  height: 100%;
  background: var(--rule);
}
.news .shot {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--rule);
}
.news img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  border: 0;
}
.news h2 {
  margin: 0 0 6px;
  min-height: 3.2em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.news p { margin: 0; color: #4a4038; font-size: 14.5px; line-height: 1.4; }
.news .kicker { margin: 14px 0 8px; }

.issue {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}
.issue ol {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.issue li { border-bottom: 1px solid var(--rule); }
.issue li a {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 16px 0;
}
.issue li a:hover h3 { color: var(--rose); }
.num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: var(--muted);
}
.issue h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.issue .meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.issue-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--rule);
}
.issue-photo .caption { padding-top: 8px; }

.depts {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.depts h2 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 26px;
}
.depts h2 a:hover { color: var(--rose); }
.depts ul { list-style: none; margin: 0; padding: 0; }
.depts li { margin: 0 0 8px; font-size: 14.5px; }
.depts a:hover { color: var(--rose); }

.arrivals {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 72px;
  margin-top: 56px;
  padding-top: 8px;
  border-top: 1px solid var(--ink);
}
.arrivals .section-label { justify-content: flex-start; gap: 18px; }
.plist, .blist { list-style: none; margin: 0; padding: 0; }
.plist li, .blist li { border-bottom: 1px solid var(--rule); }
.plist a {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
}
.plist a:hover .what { color: var(--rose); }
.plist img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--rule);
}
.plist .who {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.plist .what {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.blist a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
}
.blist a:hover .bname { color: var(--rose); }
.blist .bname {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  letter-spacing: -0.02em;
}

footer {
  margin-top: 72px;
  border-top: 3px solid var(--ink);
  padding: 22px 0 40px;
}
.foot-contact { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  font-size: 13px;
  color: var(--muted);
}
.foot strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.foot nav { display: flex; gap: 18px; }
.foot a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .wordmark { font-size: 40px; letter-spacing: 0.22em; text-indent: 0.22em; }
  .menu-toggle { display: flex; }
  .mast-bar { border-bottom: 3px solid var(--ink); }
  .mast.is-open .mast-bar { border-bottom: 1px solid var(--rule); }
  .nav {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-top: 0;
  }
  .mast.is-open .nav { display: flex; }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }
  .nav a:last-child { border-bottom: 0; }
  .lead, .issue, .news, .depts, .arrivals { grid-template-columns: 1fr; }
  .lead h1 { font-size: 64px; }
  .news { grid-template-columns: 1fr; row-gap: 28px; }
  .news a:not(:last-child)::after { display: none; }
  .news a { padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
  .issue { gap: 28px; }
}

/* House Staples additions */
.wordmark { font-size: 46px; letter-spacing: 0.24em; text-indent: 0.24em; }
.plist .from {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}
.blist .meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.issue-photo { margin: 0; }
.issue-photo img { padding: 18px; }
.news .shot img { padding: 12px; }
.depts { grid-template-columns: repeat(4, 1fr); gap: 36px; }
.depts li { line-height: 1.35; }
.news h2 { font-size: 24px; line-height: 1.08; min-height: 0; }
.depts .more {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.foot { flex-wrap: wrap; }
.foot strong { font-size: 18px; }
@media (max-width: 860px) {
  .wordmark { font-size: 23px; letter-spacing: 0.16em; text-indent: 0.16em; }
  .mast-bar { padding: 18px 0 14px; }
  .news { grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 24px; }
  .news a { padding-bottom: 0; border-bottom: 0; }
  .news h2 { font-size: 19px; }
  .news p:not(.kicker) { display: none; }
  .news .kicker { font-size: 10.5px; letter-spacing: 0.12em; margin: 10px 0 6px; }
  .plist .what { font-size: 20px; }
  .issue h3 { font-size: 22px; }
  .issue li a { grid-template-columns: 30px 1fr; }
  .issue .meta { display: none; }
  .lead h1 { font-size: 54px; line-height: 0.95; }
  .depts { grid-template-columns: 1fr; gap: 28px; }
  .arrivals { gap: 36px; }
  .issue-photo img { aspect-ratio: 1; }
  .foot { flex-direction: column; gap: 10px; }
}
