:root {
  color-scheme: light;
  --paper: #f5f3ec;
  --ink: #232927;
  --muted: #585f58;
  --accent: #dd633c;
  --rule: rgb(35 41 39 / 0.12);
  --serif: Georgia, "Times New Roman", serif;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #a34426; outline-offset: 4px; }
.page { width: min(76rem, 89%); margin-inline: auto; }

.skip {
  position: absolute;
  inset: 0 auto auto 1rem;
  z-index: 1;
  padding: 0.8rem 1rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
}
.skip:focus { transform: none; }

.masthead, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.masthead { min-height: clamp(4.75rem, 7vw, 6.25rem); border-bottom: 1px solid var(--rule); }
.wordmark { display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 650; letter-spacing: -0.035em; }
.mark {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-content: center;
  padding: 0 0 0.25rem 0.06rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 1.7rem/1 var(--serif);
}
.index-link, footer a { padding-block: 0.75rem; font-size: 0.82rem; }
.index-link span, footer a span { margin-left: 0.3rem; }
.index-link:hover, footer a:hover { text-decoration: underline; text-underline-offset: 0.25em; }

main { padding-block: clamp(2.5rem, 5vw, 4.75rem) clamp(3rem, 6vw, 6rem); }
h1 {
  margin: 0 0 clamp(1.8rem, 3.7vw, 3.5rem);
  font-size: clamp(3.1rem, 6.6vw, 6.3rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.04em;
}
h1 em { display: inline-block; font-family: var(--serif); font-weight: 400; }
.period { color: var(--accent); }
.projects { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.3rem, 2.6vw, 2.25rem); scroll-margin-top: 1rem; }
.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  min-width: 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #faf8f2;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}
.cover { display: grid; place-items: center; aspect-ratio: 8 / 5; overflow: hidden; border-radius: 3px 3px 0 0; }
.cover img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 230ms ease; }
.wedding .cover { background: #193a36; }
.music .cover { background: #253c3d; }
.halloween .cover { background: #3b2f4a; }
.halloween .cover img { width: 90%; height: auto; filter: drop-shadow(0 6px 0 #21192c66); }

.project-info { position: relative; padding: clamp(1.3rem, 2.6vw, 2rem); }
.project-info p { margin: 0; }
.eyebrow {
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow strong { color: #9a452b; font-weight: 700; }
h2 { font-size: clamp(1.65rem, 2.65vw, 2.4rem); line-height: 1.12; font-weight: 550; letter-spacing: -0.04em; margin: 0.45rem 0; }
.description { font-size: clamp(0.94rem, 1.2vw, 1.08rem); line-height: 1.55; color: var(--muted); }
.project-info > .arrow {
  position: absolute;
  right: clamp(1.3rem, 2.6vw, 2rem);
  top: 50%;
  margin-top: -1.2rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rule);
  font-size: 1.2rem;
}
.project:not(.featured) .project-info { padding-right: 5rem; }
.arrow { transition: transform 180ms ease, color 180ms ease; }

.featured { background: #f9f6ec; }
.featured .project-info { align-self: center; padding: clamp(1.3rem, 5.4vw - 1.4rem, 3.4rem); }
.featured h2 { font: 400 clamp(2.25rem, 4.5vw, 4.25rem)/1.08 var(--serif); letter-spacing: -0.045em; margin: 0.2em 0; }
.featured .description { max-width: 34ch; }
.entry {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: clamp(1rem, 2.3vw, 2rem);
  padding: 0.5rem 0.8rem;
  border: 1px solid rgb(35 41 39 / 0.22);
  border-radius: 2rem;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 500;
}
.entry .arrow { margin-left: 0.25rem; font-size: 1.05em; }

footer { padding-block: 1rem 1.7rem; border-top: 1px solid var(--rule); color: var(--muted); }
.signature { font: italic 1.1rem var(--serif); }

@media (min-width: 760px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured { grid-column: 1 / -1; grid-template-columns: 1.07fr 1fr; align-content: stretch; }
  .featured .cover { width: 100%; align-self: stretch; border-radius: 3px 0 0 3px; }
}
@media (hover: hover) {
  .project:hover { border-color: rgb(117 83 48 / 0.32); box-shadow: 0 7px 22px -11px rgb(92 65 37 / 0.25); }
  .project:hover .arrow { color: #9a452b; transform: translate(2px, -2px); }
  .project:not(.featured):hover .cover img { transform: scale(1.018); }
}
@media (prefers-reduced-motion: reduce) {
  .project, .cover img, .arrow { transition: none; }
  .project:hover .arrow, .project:not(.featured):hover .cover img { transform: none; }
}
