:root {
  --ground: #f8f3ea;
  --card: #fff;
  --ink: #24201f;
  --ink-2: #3a3431;
  --muted: #6a615c;
  --rule: #e0d7c8;
  --accent: var(--brand);
  --bezel: #24201f;
  --gutter: clamp(20px, 5vw, 64px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(1280px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}

.masthead {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  line-height: 1;
}

.wm-mark {
  width: 28px;
  height: auto;
}

.wm-name {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.wm-sub {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.cover {
  display: grid;
  gap: 40px;
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.kicker,
.notes h2 {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cover h1 {
  margin-top: 16px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.5rem, 1.4rem + 4vw, 4.75rem);
  font-weight: 380;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

.intro {
  max-width: 36em;
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  text-wrap: pretty;
}

.hello {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.3em;
  font-style: italic;
  line-height: 1;
}

.notes {
  padding-top: 20px;
  border-top: 1px solid var(--accent);
}

.notes ul {
  margin-top: 6px;
}

.notes li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.notes li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

@media (min-width: 1000px) {
  .cover {
    grid-template-columns: 8fr 4fr;
    column-gap: clamp(48px, 6vw, 96px);
    align-items: end;
  }
}

.looks {
  display: grid;
  gap: 24px;
}

.look {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 26px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 3px;
}

/* Bottom padding is the room the phone hangs below the screen. */
.look-media {
  position: relative;
  padding-bottom: 40px;
}

.screen {
  display: block;
  overflow: hidden;
  border: 6px solid var(--bezel);
  border-radius: 8px;
  background: var(--bezel);
}

/* The ring matches the card so the phone reads as sitting in front of the screen. */
.handset {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: min(26%, 150px);
  overflow: hidden;
  border: 4px solid var(--bezel);
  border-radius: 18px;
  background: var(--bezel);
  box-shadow: 0 0 0 4px var(--card);
}

.look-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 6px;
}

.look-title {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.875rem, 1.5rem + 1.2vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.look-num {
  color: var(--accent);
  font-style: italic;
}

.look-text p {
  max-width: 30em;
  margin: 10px 0 24px;
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  margin-top: auto;
  padding: 0 26px;
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.btn svg {
  flex: none;
  width: 22px;
  height: 12px;
}

/* Stretches the link over the whole card, so the pictures open the look too. */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.look:focus-within {
  border-color: var(--ink);
}

@media (hover: hover) {
  .look:hover {
    border-color: var(--ink);
  }

  .look:hover .btn {
    background: #000;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .look {
    transition: border-color 0.4s ease;
  }

  .handset,
  .btn svg {
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .look:focus-within .handset {
    transform: translateY(-6px);
  }

  .look:focus-within .btn svg {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .look:hover .handset {
    transform: translateY(-6px);
  }

  .look:hover .btn svg {
    transform: translateX(4px);
  }
}

@media (min-width: 600px) {
  .look {
    padding: 24px 24px 30px;
  }
}

@media (min-width: 900px) {
  .looks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

.closing {
  margin-block: clamp(56px, 7vw, 88px);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  font-style: italic;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
}

.closing::before {
  content: "";
  display: block;
  width: 64px;
  margin: 0 auto 28px;
  border-top: 1px solid var(--accent);
}

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8125rem;
}
