:root {
  --bg: #2E2018;
  --ink: #F1E6D2;
  --soft: #CDBBA0;
  --gold: #D9A845;
  --red: #E0533A;
  --blue: #5B86DB;
  --green: #3E9C74;
  --rule: rgba(241, 230, 210, .2);
  --hair: rgba(241, 230, 210, .12);
  --serif: 'Instrument Serif', Georgia, serif;
  --display: 'Anton', Impact, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }

.page {
  max-width: 1208px;
  margin: 0 auto;
  padding: 20px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Header */
.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.top nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
@media (max-width: 420px) { .top nav { gap: 4px 16px; } }
.navlink { text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.navlink:hover { border-color: var(--gold); }

/* Name: each letter is filled with a print, and bounces and changes colour on hover */
.name {
  margin: 0;
  padding-top: 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 15.5vw, 214px);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.01em;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 .2em;
}
.name > span { white-space: nowrap; }
.bounce {
  display: inline-block;
  cursor: default;
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: translate .3s cubic-bezier(.3, 1.8, .5, 1), rotate .3s cubic-bezier(.3, 1.8, .5, 1);
}
.m0 { background-image: url(/img/fill-wave.jpg); }
.m1 { background-image: url(/img/fill-fuji.jpg); }
.m2 { background-image: url(/img/fill-marble.jpg); }
.m3 { background-image: url(/img/fill-plum.jpg); }
.m4 { background-image: url(/img/fill-magnolia.jpg); }
.bounce:hover { translate: 0 -18px; rotate: -6deg; }
.c1:hover { rotate: 6deg; }
.c3:hover { rotate: 8deg; }
.c0:hover { -webkit-text-fill-color: var(--red); }
.c1:hover { -webkit-text-fill-color: var(--blue); }
.c2:hover { -webkit-text-fill-color: var(--green); }
.c3:hover { -webkit-text-fill-color: var(--gold); }

.strap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  border-top: 1.5px solid rgba(241, 230, 210, .5);
  border-bottom: 1.5px solid rgba(241, 230, 210, .5);
  padding: 10px 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.gold { color: var(--gold); }

main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 56px;
  padding-top: 32px;
}

/* The collage in its arch, with cut-out pieces hanging over the edge */
.collage { margin: 0; flex: 1 1 420px; max-width: 540px; position: sticky; top: 24px; }
.fig { position: relative; width: 100%; aspect-ratio: 1333 / 2000; }
.arch-line, .arch {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 0;
  bottom: 6%;
  border-radius: 50% 50% 0 0 / 29% 29% 0 0;
}
.arch-line { border: 2px solid var(--gold); translate: 16px 16px; }
.arch { overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.arch img { position: absolute; left: -10.976%; top: 0; width: 121.951%; height: 106.383%; max-width: none; }
.pop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(4px 8px 8px rgba(0, 0, 0, .45));
  transition: translate .4s cubic-bezier(.3, 1.6, .5, 1);
}
.pop-2 { clip-path: inset(0 0 0 9%); }
.fig:hover .pop { translate: -5px -7px; }

.col { flex: 1 1 420px; display: flex; flex-direction: column; gap: 44px; }

.intro { display: flex; flex-direction: column; gap: 16px; }
.hi { margin: 0; font-family: var(--serif); font-style: italic; font-size: 52px; line-height: 1.05; }
.lede { margin: 0; font-size: 18px; line-height: 1.65; color: var(--soft); }

/* Categories */
.group { display: flex; flex-direction: column; gap: 16px; }
.group.hello { gap: 12px; }
.group-head { display: flex; align-items: baseline; gap: 14px; border-bottom: 1.5px solid var(--rule); padding-bottom: 10px; }
.group-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1; text-transform: uppercase; }
.num { font-family: var(--display); font-size: 16px; color: var(--soft); }

.card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 240, 220, .05);
  border: 1px solid rgba(241, 230, 210, .16);
  text-decoration: none;
  transition: translate .25s cubic-bezier(.3, 1.6, .5, 1), background .2s, border-color .2s;
}
.icon {
  flex: none;
  border-radius: 6px;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, .4);
  transition: rotate .35s cubic-bezier(.3, 1.8, .5, 1), scale .35s cubic-bezier(.3, 1.8, .5, 1);
}
.icon.app { border-radius: 18px; }
.card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-title { font-family: var(--display); font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.card-desc { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.3; color: var(--soft); }
.card-url { font-size: 13px; font-weight: 700; color: var(--gold); }
.go { display: inline-block; transition: translate .2s, rotate .25s; }
a.card:hover, a.card:focus-visible { translate: 0 -3px; background: rgba(255, 240, 220, .09); border-color: var(--gold); }
a.card:hover .icon, a.card:focus-visible .icon { rotate: -6deg; scale: 1.06; }
a.card:hover .go, .line:hover .go { translate: 5px 0; }

.card.next { background: none; border: 1.5px dashed rgba(241, 230, 210, .3); color: var(--soft); }
.plus {
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 18px;
  border: 1.5px dashed rgba(241, 230, 210, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 30px;
}

/* Say hello */
.line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
  cursor: pointer;
  transition: color .2s;
}
.line.last { border-bottom: 0; }
.line:hover { color: var(--gold); }
.line-label { font-family: var(--display); font-size: 22px; text-transform: uppercase; }
.line-note { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--soft); text-align: right; }

.about { border-bottom: 1px solid var(--hair); scroll-margin-top: 24px; }
.about summary { list-style: none; border-bottom: 0; }
.about summary::-webkit-details-marker { display: none; }
.about[open] .go { rotate: 90deg; }
.about .less, .about[open] .more { display: none; }
.about[open] .less { display: inline; }
.about-text { display: flex; flex-direction: column; gap: 14px; padding: 6px 0 22px; font-size: 17px; line-height: 1.7; color: var(--soft); }
.about-text p { margin: 0; }

a.card:focus-visible, .line:focus-visible, .navlink:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

footer { margin-top: 80px; border-top: 6px solid var(--gold); background: rgba(0, 0, 0, .18); padding: 22px 24px 28px; }
.foot {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--soft);
}
.foot .email { font-weight: 700; color: var(--ink); user-select: all; }

/* Phones: collage sits above the text instead of beside it */
@media (max-width: 900px) {
  .collage { position: static; max-width: 440px; margin: 0 auto; }
  .page { padding: 16px 16px 0; }
  footer { padding: 22px 16px 28px; }
}
@media (max-width: 520px) {
  .hi { font-size: 42px; }
  .card { gap: 16px; padding: 14px; }
  .icon { width: 64px; height: auto; }
  .plus { width: 64px; height: 64px; }
  .line { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bounce, .card, .icon, .go, .pop { transition: none; }
}

/* Section titles, card titles and row labels share the numbers' beige */
.hi, .group-head h2, .card-title, .line-label { color: var(--soft); }
.line:hover .line-label { color: var(--gold); }
