.oc-page {
  --oc-paper: #f8f2e8;
  --oc-ink: #292224;
  --oc-accent: #785368;
  --oc-rule: #c4b7a7;
  width: min(100% - 2rem, 74rem);
  margin-inline: auto;
  padding: .75rem 0 clamp(2.5rem, 6vw, 5rem);
  color: #2c2329;
  line-height: 1.6;
}
.oc-page *, .oc-page *::before, .oc-page *::after,
.oc-static *, .oc-static *::before, .oc-static *::after { box-sizing: border-box; }
.oc-page :is(h1, h2, p, ul) { margin: 0; }
.oc-page ul { list-style: none; padding: 0; }
.oc-page h1 {
  max-width: 15ch;
  font-size: clamp(2.05rem, 5.25vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 800;
  overflow-wrap: break-word;
}
.oc-page h2 { font-size: clamp(1.12rem, 2vw, 1.6rem); line-height: 1.24; letter-spacing: -.028em; }
.oc-page p { max-width: 63ch; }
.oc-page a { color: inherit; }
.oc-page a:focus-visible, .oc-static > :is(header, footer) a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.oc-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; font-size: .82rem; }
.oc-breadcrumb a { display: inline-flex; min-height: 44px; align-items: center; }
.oc-breadcrumb span[aria-current] { font-weight: 650; }
.oc-hero {
  background: var(--oc-paper);
  color: var(--oc-ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro photo";
  align-items: center;
  gap: clamp(1rem, 3.5vw, 3.5rem);
  padding: clamp(1.1rem, 4.5vw, 4rem);
  margin-bottom: clamp(1.8rem, 5vw, 4.4rem);
}
.oc-intro { grid-area: intro; min-width: 0; }
.oc-intro p { margin-top: clamp(.85rem, 2.6vw, 1.6rem); font-size: clamp(.94rem, 1.6vw, 1.08rem); }
.oc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem .8rem; margin-top: clamp(1.1rem, 3vw, 1.8rem); }
.oc-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  font-size: .83rem;
  line-height: 1.3;
  font-weight: 750;
  text-decoration: none;
}
.oc-link span { display: grid; place-items: center; flex: none; }
.oc-link svg { display: block; width: 1.1rem; height: 1.1rem; }
.oc-link--primary, .oc-link--preview { padding: .38rem .48rem .38rem .85rem; border: 1px solid; border-radius: 2rem; }
.oc-link--primary { background: #f5d89d; color: #2d1e29 !important; border-color: #f5d89d; }
.oc-link--primary span { width: 1.75rem; height: 1.75rem; border-radius: 50%; background: #32232f; color: #fff9ec; }
.oc-link--preview { padding-right: .7rem; }
.oc-link--text:hover { text-decoration: underline; text-underline-offset: .23em; }
.oc-link--primary:focus-visible { outline-color: var(--oc-ink) !important; }
.oc-photo { grid-area: photo; min-width: 0; margin: 0; }
.oc-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.oc-content { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.65fr); gap: clamp(1.5rem, 5vw, 5rem); }
.oc-checklist { padding: clamp(1rem, 3vw, 2rem); background: var(--oc-paper); color: var(--oc-ink); align-self: start; }
.oc-hero > .oc-checklist { grid-area: list; border: 1px solid var(--oc-rule); }
.oc-checklist ul { margin-top: .65rem; }
.oc-checklist li { display: flex; gap: .65rem; align-items: baseline; padding: .5rem 0; font-size: .92rem; }
.oc-checklist li + li { border-top: 1px solid var(--oc-rule); }
.oc-checklist li::before { content: ""; width: .48rem; height: .48rem; border: 1px solid currentColor; transform: rotate(45deg); flex: none; margin-inline: .13rem; }
.oc-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: clamp(1.2rem, 3vw, 2.6rem); }
.oc-stories section { border-top: 2px solid var(--oc-accent); padding-top: 1.05rem; }
.oc-stories p, .oc-free p { margin-top: .55rem; font-size: .95rem; }
.oc-free, .oc-related { margin-top: clamp(2rem, 5vw, 4rem); border-top: 1px solid #cbbfc6; padding-top: 1.3rem; }
.oc-free { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem 1.25rem; }
.oc-related ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem 1rem; margin-top: .65rem; }
.oc-related a { border-bottom: 1px solid #d7ccd2; width: 100%; padding-block: .35rem; }

.oc-page[data-layout="stationery"] { --oc-accent: #785368; --oc-ink: #492339; }
[data-layout="stationery"] .oc-hero { grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); }
[data-layout="stationery"] .oc-photo { border: 1px solid #a27b92; border-radius: 48% 48% 3px 3px / 45% 45% 3px 3px; padding: .42rem; }
[data-layout="stationery"] .oc-photo img { border-radius: inherit; object-position: 70% 38%; }

.oc-page[data-layout="poster"] { --oc-paper: #551f38; --oc-ink: #fff6ec; --oc-accent: #a33954; --oc-rule: #a6667e; }
[data-layout="poster"] .oc-hero { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); border-top: .45rem solid #df8c82; }
[data-layout="poster"] .oc-photo { border-left: .28rem solid #df8c82; padding-left: .55rem; }
[data-layout="poster"] .oc-photo img { aspect-ratio: 16 / 11; }
[data-layout="poster"] .oc-content { grid-template-columns: 1fr; }
[data-layout="poster"] .oc-checklist ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
[data-layout="poster"] .oc-checklist li + li { border-top: 0; border-left: 1px solid var(--oc-rule); padding-left: .85rem; }

.oc-page[data-layout="album"] { --oc-paper: #3f263b; --oc-ink: #f7efe2; --oc-accent: #785368; --oc-rule: #ac8ca1; }
[data-layout="album"] .oc-hero { grid-template-columns: 1fr; grid-template-areas: "intro" "photo"; gap: 1.5rem; }
[data-layout="album"] .oc-intro { display: grid; justify-items: center; text-align: center; }
[data-layout="album"] .oc-intro h1 { max-width: 21ch; }
[data-layout="album"] .oc-actions { justify-content: center; }
[data-layout="album"] .oc-photo { padding: .46rem; border: 1px solid #ad9776; }
[data-layout="album"] .oc-photo img { aspect-ratio: 2.28; object-position: 50% 43%; }

.oc-page[data-layout="letter"] { --oc-paper: #f5ebef; --oc-ink: #492339; --oc-accent: #785368; --oc-rule: #c2a6b6; }
[data-layout="letter"] .oc-hero { grid-template-areas: "photo intro" "photo list"; column-gap: clamp(1.3rem, 5vw, 4rem); row-gap: 1.15rem; }
[data-layout="letter"] .oc-intro { align-self: end; }
[data-layout="letter"] .oc-photo img { aspect-ratio: 5 / 6; object-position: 50% 50%; }
[data-layout="letter"] .oc-checklist { border-width: 1px 0 0; padding: .85rem 0 0; }

.oc-page[data-layout="yearbook"] { --oc-paper: #f3eaf0; --oc-ink: #492339; --oc-accent: #8a5b75; --oc-rule: #c2a3b7; }
[data-layout="yearbook"] .oc-hero { border-bottom: .32rem solid #4d7979; }
[data-layout="yearbook"] .oc-photo { background: #fffdf8; border: 1px solid #b092a3; padding: .55rem .55rem 1.55rem; transform: rotate(2deg); margin-inline: .35rem; }
[data-layout="yearbook"] .oc-photo img { aspect-ratio: 4 / 3; }
[data-layout="yearbook"] .oc-content { grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr); }
[data-layout="yearbook"] .oc-checklist { grid-column: 2; grid-row: 1; }

.oc-page[data-layout="portrait"] { --oc-paper: #242c57; --oc-ink: #faf2e7; --oc-accent: #515d99; --oc-rule: #7b83ac; }
[data-layout="portrait"] .oc-hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 0; padding: 0; align-items: stretch; }
[data-layout="portrait"] .oc-intro { padding: clamp(1.1rem, 4.5vw, 4rem); align-self: center; }
[data-layout="portrait"] .oc-photo img { height: 100%; min-height: 21rem; object-position: center; }
[data-layout="portrait"] .oc-content { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
[data-layout="portrait"] .oc-stories { grid-template-columns: 1fr; }

.oc-page[data-layout="keepsake"] { --oc-paper: #f3eaf3; --oc-ink: #492b46; --oc-accent: #795678; --oc-rule: #bfabbe; }
[data-layout="keepsake"] .oc-hero { grid-template-areas: "intro photo" "list photo"; row-gap: 1.1rem; }
[data-layout="keepsake"] .oc-photo { border: 1px solid #8a6889; border-radius: 50%; padding: .42rem; }
[data-layout="keepsake"] .oc-photo img { border-radius: inherit; aspect-ratio: 1 / 1; object-position: center; }
[data-layout="keepsake"] .oc-checklist { border-radius: 1.1rem 1.1rem 0 0; padding: .8rem 1rem; }
[data-layout="letter"] .oc-content, [data-layout="keepsake"] .oc-content { display: block; }

.oc-page[data-layout="gathering"] { --oc-paper: #f7eee3; --oc-ink: #502c21; --oc-accent: #975841; --oc-rule: #c3a292; }
[data-layout="gathering"] .oc-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; padding: 0; align-items: stretch; }
[data-layout="gathering"] .oc-intro { padding: clamp(1.1rem, 4.2vw, 3.8rem); align-self: center; }
[data-layout="gathering"] .oc-photo { border-bottom: .42rem solid #b36544; }
[data-layout="gathering"] .oc-photo img { height: 100%; object-position: 55% center; }
[data-layout="gathering"] .oc-related { margin: 0 0 clamp(1.8rem, 5vw, 4.4rem); }

.oc-static > header, .oc-static > footer { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; padding: .5rem max(1rem, calc((100vw - 74rem) / 2)); background: #241a25; color: #fff4ec; }
.oc-static > header { justify-content: space-between; }
.oc-static > :is(header, footer) a { display: inline-flex; min-height: 44px; color: inherit; align-items: center; font-size: .82rem; font-weight: 700; }
.oc-static > header img { display: block; width: clamp(5.65rem, 14vw, 8.75rem); height: auto; }
.oc-skip { position: absolute; transform: translateY(-110%); background: #fff9f3; padding: .6rem .85rem; color: #241a25; z-index: 2; }
.oc-skip:focus { transform: none; }

@media (max-width: 760px) {
  .oc-page .oc-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "photo"; gap: 1rem; }
  .oc-page:is([data-layout="letter"], [data-layout="keepsake"]) .oc-hero { grid-template-areas: "intro" "photo" "list"; }
  .oc-page[data-layout="letter"] .oc-photo img { aspect-ratio: 4 / 3; }
  .oc-page[data-layout="keepsake"] .oc-photo { max-width: 22rem; width: 100%; justify-self: center; }
  .oc-page:is([data-layout="portrait"], [data-layout="gathering"]) .oc-hero { gap: 0; }
  .oc-page:is([data-layout="portrait"], [data-layout="gathering"]) .oc-photo img { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
  .oc-page[data-layout="album"] .oc-photo img { aspect-ratio: 16 / 10; }
  .oc-page .oc-content { display: grid; grid-template-columns: minmax(0, 1fr); }
  .oc-page[data-layout="yearbook"] .oc-checklist { grid-column: auto; grid-row: auto; }
  .oc-related ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
  .oc-stories, [data-layout="poster"] .oc-checklist ul { grid-template-columns: minmax(0, 1fr); }
  [data-layout="poster"] .oc-checklist ul { gap: 0; }
  [data-layout="poster"] .oc-checklist li + li { border-left: 0; border-top: 1px solid var(--oc-rule); padding-left: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .oc-intro { animation: oc-arrive .55s cubic-bezier(.21,.6,.32,1) both; }
  .oc-photo img { animation: oc-print .7s cubic-bezier(.21,.6,.32,1) both; }
  :is([data-layout="poster"], [data-layout="portrait"]) .oc-photo img { animation-name: oc-unfold; }
  .oc-link svg { transition: transform .2s ease; }
  .oc-link:hover svg, .oc-link:focus-visible svg { transform: translateX(2px); }
  @supports (animation-timeline: view()) {
    .oc-stories section, .oc-checklist, .oc-free, .oc-related {
      animation: oc-arrive linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}
@keyframes oc-arrive { from { opacity: .78; translate: 0 .65rem; } to { opacity: 1; translate: 0 0; } }
@keyframes oc-print { from { opacity: .82; } to { opacity: 1; } }
@keyframes oc-unfold { from { clip-path: inset(0 5% 0 0); } to { clip-path: inset(0); } }
