/* averycollura.com shared styles: the page frame, sections, writing. Each page section keeps its own <style> from the code it was built with. */
:root {
  --earth: #5F5249;
  --sage: #8F9985;
  --white: #F6F6F4;
  --light: #D8D0C5;
  --gutter: 4.4vw;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Lato', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--light); color: var(--earth); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; }

/* skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--earth); color: var(--white); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* header */
.site-header { background: var(--white); position: relative; z-index: 20; }
.site-header-inner { display: flex; align-items: center; gap: 2rem; min-height: 129px; padding: 0 var(--gutter); }
.wordmark { font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: .01em; color: var(--earth); text-decoration: none; margin-right: auto; white-space: nowrap; }
.site-nav { display: flex; gap: 1.6rem; }
.site-nav a, .mobile-nav a:not(.header-cta) { font-family: var(--sans); font-size: 16px; color: var(--earth); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.header-cta { font-family: 'PT Serif', Georgia, serif; font-size: 16px; color: var(--white); background: var(--sage); border-radius: 300px; padding: 1.2em 2em; text-decoration: none; white-space: nowrap; transition: background .25s; }
.header-cta:hover { background: var(--earth); }
.menu-btn { display: none; font-family: var(--sans); font-size: 16px; color: var(--earth); background: none; border: 1px solid rgba(95, 82, 73, .35); border-radius: 300px; padding: .55em 1.2em; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 1.1rem; padding: .5rem var(--gutter) 2rem; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.header-cta) { font-size: 20px; }
.mobile-nav .header-cta { align-self: flex-start; margin-top: .5rem; }
@media (max-width: 900px) {
  .site-header-inner { min-height: 84px; gap: 1rem; }
  .site-nav, .site-header-inner > .header-cta { display: none; }
  .menu-btn { display: inline-block; }
  .wordmark { font-size: 24px; }
}

/* sections */
.sec { background: var(--bg, var(--light)); padding: 6.6vw var(--gutter); min-height: 66vh; display: flex; flex-direction: column; justify-content: center; }
.sec--white { --bg: var(--white); }
.sec--light { --bg: var(--light); }
.sec--dark { --bg: var(--earth); }
.sec--flush { padding: 0; min-height: 0; }
.sec-inner { width: 100%; }

/* buttons */
.btn { display: inline-block; font-family: var(--sans); font-size: 16px; color: var(--white); background: var(--sage); border-radius: 300px; padding: 1.2em 2em; text-decoration: none; transition: background .25s; }
.btn:hover { background: var(--earth); }

/* a post */
.post-sec { min-height: 0; padding: 69px var(--gutter) 0; justify-content: flex-start; }
.post { width: 100%; max-width: 1174px; margin: 0 auto; }
.post-head time { display: block; font-size: 16px; margin-bottom: 1.9rem; }
.post-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 4.6vw, 4.87rem); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 3rem; }
.post-body p { margin: 0 0 1em; line-height: 24px; }
.post-body h2, .post-body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 2.4vw, 2.55rem); line-height: 1.14; margin: 1.6em 0 .6em; }
.post-body h4 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 1.4em 0 .5em; }
.post-body a { color: var(--sage); }
.post-body ul, .post-body ol { padding-left: 1.4em; margin: 0 0 1em; }
.post-body li p { margin: 0 0 .4em; }
.post-body blockquote { margin: 1.4em 0; padding-left: 1.2em; border-left: 2px solid var(--sage); font-family: var(--serif); font-size: 1.4rem; line-height: 1.5; }
.post-cta { text-align: center; margin: 2.5rem 0 0; }
.post-pag { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 5rem calc(-1 * var(--gutter)) 0; padding: 3.2rem var(--gutter) 3.6rem; border-top: 1px solid rgba(95, 82, 73, .15); }
.post-pag-link { color: var(--earth); text-decoration: none; display: flex; flex-direction: column; gap: .5rem; }
.post-pag-next { text-align: right; }
.post-pag-label { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.post-pag-title { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.55rem); line-height: 1.15; }
.post-pag-link:hover .post-pag-title { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 700px) {
  .post-sec { padding-top: 40px; }
  .post-head h1 { margin-bottom: 2rem; }
  .post-pag { grid-template-columns: 1fr; }
  .post-pag-next { text-align: left; }
}

/* the writing list */
.list-sec { min-height: 0; padding: 68px var(--gutter) 150px; justify-content: flex-start; }
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-item { display: grid; grid-template-columns: 40% 1fr; gap: 6%; align-items: center; }
.post-item-img { display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.post-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-item-text time { display: block; font-size: 16px; margin-bottom: 1rem; }
.post-item-text h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.12vw, 3.32rem); line-height: 1.2; margin: 0 0 2.2rem; }
.post-item-text h2 a { color: inherit; text-decoration: none; }
.post-item-text h2 a:hover { text-decoration: underline; text-underline-offset: 6px; }
.post-item-excerpt { margin: 0 0 2rem; line-height: 24px; }
.post-item-more { color: var(--sage); }
@media (max-width: 700px) {
  .post-list { gap: 3.5rem; }
  .post-item { grid-template-columns: 1fr; gap: 1.4rem; }
  .post-item-text h2 { margin-bottom: 1.2rem; }
}

/* not found */
.nf-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.nf h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4vw, 3.6rem); margin: 0 0 1rem; }
.nf p { margin: 0 0 1.6rem; }

/* footer */
.site-footer { background: var(--earth); padding: .85rem var(--gutter); }
