/* Hallmark v2 | custom poster | BIXTROM Enredo | print-led storefront concept */
/* Critique: the wordmark supports the masthead, while the original Enredo character owns the poster. */

:root {
  color-scheme: light;
  --ink: #211321;
  --paper: #fff6e8;
  --pink: #f870ac;
  --citrus: #f1fa67;
  --display: Impact, 'Arial Black', 'Franklin Gothic Heavy', sans-serif;
  --text: system-ui, sans-serif;
  --measure: 80rem;
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--text); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
a:active, summary:active { text-decoration: underline; }
section[id] { scroll-margin-top: 20px; }
h1, h2, h3, p, ol { margin: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--measure)); margin-inline: auto; }
.skip { position: absolute; z-index: 3; inset: 12px auto auto 12px; padding: 12px; background: var(--citrus); transform: translateY(-200%); }
.skip:focus { transform: none; }

.mast { border-bottom: 2px solid var(--ink); }
.mast-inner, .foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 24px; }
.mast-inner { min-height: 76px; padding-block: 8px; }
.logo { display: grid; align-items: center; min-height: 44px; }
.logo img { width: clamp(120px, 17vw, 178px); height: auto; }
.mast nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.mast nav a, .foot a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.mast nav a { text-decoration: none; }
.mast nav a:hover { text-decoration: underline; }

.poster { background: var(--pink); color: var(--ink); border-bottom: 2px solid var(--ink); }
.poster-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
  min-height: min(74vw, 38rem);
  padding-block: clamp(36px, 5vw, 72px);
}
.poster-copy { position: relative; z-index: 1; min-width: 0; }
h1, h2 { min-width: 0; overflow-wrap: break-word; text-wrap: balance; }
h1 {
  font: 900 clamp(5rem, 11.2vw, 11rem)/.84 var(--display);
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.poster p { margin-block: 24px 20px; font-weight: 650; font-size: clamp(1.05rem, 2vw, 1.375rem); }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 20px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--citrus);
  font-weight: 780;
  text-decoration: none;
}
.button:hover { background: var(--citrus); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.button:active { box-shadow: 0 0 0 var(--ink); text-decoration: none; }
.button:focus-visible { outline-color: var(--ink); }
.poster-art { position: relative; isolation: isolate; justify-self: center; width: min(100%, 32rem); aspect-ratio: 1; }
.poster-art::before {
  position: absolute;
  z-index: -1;
  inset: 11%;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--citrus);
  content: '';
}
.poster-art img { width: 100%; height: auto; transform: rotate(9deg); }

.routine { background: var(--ink); color: var(--paper); }
.routine-inner, .fabric { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; }
.routine-inner, .fabric { padding-block: clamp(48px, 7vw, 112px); }
h2 { font: 900 clamp(2.25rem, 6vw, 5rem)/.94 var(--display); letter-spacing: -.015em; }
.routine-head h2 { color: var(--citrus); }
.routine-head p { margin-top: 16px; }
.routine-list { padding-left: 28px; }
.routine-list li { border-top: 1px solid var(--paper); padding: 12px 0 16px 8px; }
.routine-list li:last-child { padding-bottom: 0; }
.routine-list li::marker { font-weight: 800; color: var(--citrus); }
.routine-list h3 { font-size: 1.125rem; }
.routine-list p { margin-top: 4px; }
.fabric details { border-top: 1px solid var(--ink); }
.fabric details:last-child { border-bottom: 1px solid var(--ink); }
summary { cursor: pointer; min-height: 52px; padding: 12px 0; font-weight: 740; }
.fabric details p { max-width: 53ch; padding-bottom: 16px; }
.foot { border-top: 2px solid var(--ink); background: var(--citrus); color: var(--ink); }
.foot-inner { padding-block: 12px; }
.foot p { font-weight: 720; }

@media (max-width: 760px) {
  .poster-inner { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-bottom: 16px; }
  h1 { font-size: clamp(3.75rem, 15.8vw, 7rem); }
  .poster-art { width: min(72%, 22rem); justify-self: end; margin-top: 12px; }
  .routine-inner, .fabric { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 400px) {
  .mast-inner { gap: 4px 12px; }
  .mast nav { gap: 0 12px; font-size: .875rem; }
  .logo img { width: 108px; }
}
