body.rd10.ao-pilot-pastry-journal {
  --pastry-paper: #f8edcc;
  --pastry-ink: #610e20;
  --pastry-rule: #aa6970;
  --pastry-face: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --mh-face: var(--pastry-face);
  --mh-size: clamp(2rem, 3.8vw, 3.7rem);
  --mh-weight: 680;
  --mh-surface: var(--pastry-paper);
  --mh-ink: var(--pastry-ink);
  --mh-wordmark: var(--pastry-ink);
  --mh-rule: 2px solid var(--pastry-ink);
}

body.rd10.ao-pilot-pastry-journal .rd10-shell:has(.pastry-cover) > .rd10-header {
  display: none;
}

body.rd10.ao-pilot-pastry-journal .rd10-main:has(.pastry-cover) {
  width: min(100%, 1680px);
  padding-inline: 0;
}

.pastry-cover {
  --pastry-gutter: clamp(15px, 2.1vw, 36px);
  min-width: 0;
  background: var(--pastry-paper);
  color: var(--pastry-ink);
  font-family: var(--pastry-face);
}

.pastry-cover .pastry-masthead {
  display: flex;
  gap: 8px 26px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: clamp(8px, .7vw, 15px) var(--pastry-gutter);
  border-block-end: 2px solid var(--pastry-ink);
}

.pastry-cover .pastry-wordmark {
  font-size: clamp(1.85rem, 3.7vw, 3.7rem);
  font-weight: 690;
  line-height: .98;
  letter-spacing: -.055em;
  text-decoration: none;
}

.pastry-cover .pastry-nav {
  display: flex;
  min-height: 36px;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px clamp(14px, 3vw, 52px);
  font-size: clamp(1rem, 1.95vw, 1.95rem);
  line-height: 1.15;
}

.pastry-cover :is(.pastry-nav, .pastry-rail) a,
.pastry-cover .pastry-search summary {
  color: inherit;
  text-decoration: none;
}

.pastry-cover :is(.pastry-nav, .pastry-rail) a:is(:hover, :focus-visible),
.pastry-cover .pastry-search summary:is(:hover, :focus-visible) {
  text-decoration: underline;
}

.pastry-cover .pastry-search {
  position: relative;
}

.pastry-cover .pastry-search summary {
  display: block;
  cursor: pointer;
  list-style: none;
}

.pastry-cover .pastry-search summary::-webkit-details-marker { display: none; }

.pastry-cover .pastry-search form {
  position: absolute;
  inset: calc(100% + 10px) 0 auto auto;
  z-index: 3;
  display: flex;
  gap: 6px;
  width: min(320px, calc(100vw - 32px));
  margin: 0;
  padding: 8px;
  border: 1px solid var(--pastry-rule);
  background: var(--pastry-paper);
}

.pastry-cover .pastry-search :is(input, button) {
  min-height: 42px;
  padding: 6px 9px;
  border: 1px solid var(--pastry-rule);
  border-radius: 0;
  background: var(--pastry-paper);
  color: var(--pastry-ink);
  font: 400 .98rem/1.3 system-ui, sans-serif;
}

.pastry-cover .pastry-search input {
  flex: 1;
  min-width: 0;
}

.pastry-cover .pastry-search button {
  background: var(--pastry-ink);
  color: var(--pastry-paper);
}

.pastry-cover h1#pastry-cover-title {
  margin: 0;
  padding: clamp(15px, 1.45vw, 26px) var(--pastry-gutter) clamp(12px, 1.35vw, 25px);
  color: var(--pastry-ink);
  font: 650 clamp(2.5rem, 7.5vw, 7.75rem)/.99 var(--pastry-face);
  letter-spacing: -.045em;
  text-align: center;
  text-wrap: balance;
}

.pastry-cover .pastry-board {
  display: grid;
  grid-template-areas: "ingredients photo stories";
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr);
  gap: clamp(12px, 2.05vw, 34px);
  align-items: center;
  margin-inline: var(--pastry-gutter);
  padding-block-end: clamp(13px, 1.3vw, 26px);
  border-block-end: 2px solid var(--pastry-ink);
}

.pastry-cover .pastry-photo {
  grid-area: photo;
  display: block;
  min-width: 0;
  aspect-ratio: 1.085;
  border-radius: 50% 50% 0 0 / 52% 52% 0 0;
  overflow: hidden;
  background: #b89a7f;
}

.pastry-cover .pastry-photo img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  object-fit: cover;
  object-position: center;
}

.pastry-cover .pastry-ingredients { grid-area: ingredients; }
.pastry-cover .pastry-stories { grid-area: stories; }

.pastry-cover .pastry-rail h2 {
  min-height: 2.12em;
  margin: 0 0 clamp(10px, 2vw, 32px);
  color: inherit;
  font: 650 clamp(1.23rem, 3vw, 3.1rem)/1.07 var(--pastry-face);
  letter-spacing: -.035em;
  text-wrap: balance;
}

.pastry-cover .pastry-rail ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.pastry-cover .pastry-rail li {
  padding: 0;
  margin: 0;
  border-block-start: 1px solid var(--pastry-rule);
}

.pastry-cover .pastry-rail a {
  display: block;
  padding-block: clamp(7px, 1.32vw, 21px);
  font-size: clamp(1rem, 2.5vw, 2.4rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

body.rd10.ao-pilot-pastry-journal .rd10-main:has(.pastry-cover) > :not(.pastry-cover) {
  margin-inline: clamp(15px, 2.1vw, 36px);
}

body.rd10.ao-pilot-pastry-journal .rd10-main > #rd10-latest {
  margin-block-start: 0;
  padding-block-start: clamp(18px, 1.7vw, 29px);
  border-block-start: 0;
}

body.rd10.ao-pilot-pastry-journal .rd10-main #rd10-latest > h2 {
  font-family: var(--pastry-face);
  color: var(--pastry-ink);
  font-weight: 650;
  letter-spacing: -.04em;
}

body.rd10.ao-pilot-pastry-journal .rdg-spread {
  --spread-accent: var(--pastry-ink);
}

@media (max-width: 700px) {
  .pastry-cover .pastry-board {
    grid-template-areas: "photo photo" "ingredients stories";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }

  .pastry-cover .pastry-photo {
    width: min(100%, 520px);
    justify-self: center;
  }

  .pastry-cover .pastry-rail a {
    padding-block: 10px;
  }
}

@media (max-width: 440px) {
  .pastry-cover .pastry-masthead {
    position: relative;
    flex-direction: column;
    align-items: stretch;
  }

  .pastry-cover .pastry-search { position: static; }

  .pastry-cover .pastry-search form {
    inset: calc(100% + 6px) var(--pastry-gutter) auto;
    width: auto;
  }
}
