/* The blog (jovvy.app/blog/ and each post under it): the front page's look,
   set for reading. Loaded after styles.css and look.css. */

.page { width: min(92vw, 1180px); margin: 0 auto; padding: 34px 0 56px; }
.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 13px 24px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top nav { display: flex; align-items: center; gap: 8px; }
.top nav a.plain { padding: 10px 14px; font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: none; }
.top nav a.plain:hover, .top nav a.plain[aria-current] { color: var(--accent); }
.top .btn { min-height: 46px; padding: 11px 22px; }
a { color: var(--deep); }

/* ---- The blog's front: its posts, newest first ---- */
.bloghead { margin: clamp(40px, 7vw, 90px) 0 clamp(28px, 4vw, 48px); max-width: 44em; }
.bloghead .eyebrow { color: var(--accent); margin-bottom: 14px; }
.bloghead .lede { margin-top: 16px; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(24px, 3vw, 40px); }
.postcard a { display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; border-top: 1px solid var(--ink); padding-top: 18px; }
.postcard img { width: 100%; height: auto; display: block; background: #efe8dc; }
.postcard h2 { font-size: 26px; }
.postcard a:hover h2 { color: var(--accent); }
.postcard p { color: var(--muted); }
.postcard .meta { font-size: 14px; }

/* ---- A post ---- */
.post { max-width: 1040px; margin: 0 auto; }
.posthead { max-width: 46em; margin: clamp(40px, 7vw, 90px) auto clamp(30px, 4vw, 54px); text-align: center; }
.posthead .eyebrow { color: var(--accent); margin-bottom: 14px; }
.posthead .eyebrow a { color: inherit; text-decoration: none; }
.posthead .lede { margin: 18px auto 0; }
.posthead .meta { margin-top: 18px; font-size: 14px; color: var(--muted); }
.prose { max-width: 40em; margin: 0 auto; font-size: 18px; line-height: 1.65; }
.prose p + p { margin-top: 14px; }
.prose h2 { font-size: clamp(28px, 4vw, 36px); margin: 0 0 14px; }

/* The codes at a glance, from the most formal down, each a link to its part. */
.glance { max-width: 46em; margin: clamp(30px, 4vw, 48px) auto; border-top: 1px solid var(--ink); }
.glance h2 { font: 600 12px/1.2 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.glance ol { list-style: none; margin: 0; padding: 0; counter-reset: code; }
.glance li { counter-increment: code; border-bottom: 1px solid var(--line); }
.glance li a { display: grid; grid-template-columns: 3.6em minmax(9em, 14em) 1fr; gap: 4px 14px; align-items: baseline; padding: 12px 0; color: inherit; text-decoration: none; }
.glance li a::before { content: 'No. ' counter(code); font: italic 300 16px/1.4 var(--display); color: var(--accent); white-space: nowrap; }
.glance li.between { counter-increment: none; }
.glance li.between a::before { content: '·'; text-align: center; }
.glance strong { font: 400 21px/1.2 var(--display); }
.glance span { color: var(--muted); font-size: 15.5px; }
.glance li a:hover strong { color: var(--accent); }

/* Each code: its picture on a place card beside what to wear. */
.dress { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.dress.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.dress.flip figure { order: 2; }
.dress figure { margin: 0; position: relative; background: #fffdf8; padding: 12px; box-shadow: 0 1px 0 #e9e0d0, 0 26px 50px -34px rgba(31,27,22,.45); }
.dress figure::after { content: ''; position: absolute; inset: 6px; border: 1px solid #d9c9ae; pointer-events: none; }
.dress img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 5; object-fit: cover; background: #efe8dc; }
.dress figcaption { font-size: 14px; color: var(--muted); padding: 12px 6px 4px; text-align: center; font-style: italic; }
.dress .eyebrow { color: var(--accent); margin-bottom: 10px; }
.dress h2 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 14px; }
.dress .about { font-size: 18px; line-height: 1.65; }
.wear { margin: 20px 0 0; display: grid; gap: 0; }
.wear div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.wear dt { font-weight: 600; }
.wear dd { margin: 0; line-height: 1.55; }
.dress .note { margin-top: 16px; color: var(--muted); font-size: 16px; }

/* A code straight after a passage's heading (More dress codes you may see) follows it without a rule. */
.more + .dress { border-top: 0; padding-top: clamp(24px, 3vw, 40px); }

/* A code without a picture: words only, set in between. */
.dress.words { grid-template-columns: 1fr; max-width: 46em; margin: 0 auto; }

/* More codes, tips, and choosing one: passages under a rule. */
.more { padding: clamp(40px, 6vw, 80px) 0 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.more .entries { max-width: 40em; margin: 20px auto 0; }
.more h3 { font: 400 24px/1.2 var(--display); margin: 26px 0 8px; scroll-margin-top: 16px; }
.more ul { margin: 18px 0 0; padding-left: 1.2em; }
.more li { margin: 0 0 12px; line-height: 1.6; }
.more li strong { font-weight: 600; }
.cta { max-width: 40em; margin: 34px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.back { max-width: 40em; margin: clamp(40px, 5vw, 64px) auto 0; padding-top: 18px; border-top: 1px solid var(--ink); }

@media (max-width: 820px) {
  .page { width: auto; padding: 24px 16px 36px; }
  .top nav a.plain:not(.blog) { display: none; }
  .dress, .dress.flip { grid-template-columns: 1fr; }
  .dress.flip figure { order: 0; }
  .dress figure { max-width: 460px; width: 100%; margin: 0 auto; }
  .glance li a { grid-template-columns: 3.6em 1fr; }
  .glance li a span { grid-column: 2; }
  .wear div { grid-template-columns: 1fr; gap: 2px; }
  .posthead { text-align: left; }
}

/* A phone's bar: Jovvy, Blog, and Start your wedding, set a little smaller to fit on one line. */
@media (max-width: 520px) {
  .top { gap: 8px; }
  .top .brand { font-size: 25px; gap: 6px; }
  .top .brand img { width: 30px; height: 30px; }
  .top nav { gap: 0; }
  .top nav a.plain { padding: 8px 8px; font-size: 15px; }
  .top .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; white-space: nowrap; }
}
/* The smallest phones: the heart alone; the word is still read out. */
@media (max-width: 350px) {
  .top .brand { font-size: 0; gap: 0; }
}
