:root{
  --bg:#0c0b0b;
  --paper:#f0ebe3;
  --muted:#9c9690;
  --line:#2b2826;
  --accent:#a33b32
}

*{
  box-sizing:border-box
}

html{
  scroll-behavior:smooth
}

body{
  margin:0;
  background:var(--bg);
  color:var(--paper);
  font-family:Inter,system-ui,sans-serif;
  font-size:15px;
  line-height:1.6
}

a{
  color:inherit;
  text-decoration:none
}


/* NAVIGATION */

.nav{
  height:82px;
  padding:0 clamp(22px,5vw,72px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  background:rgba(12,11,11,.92);
  backdrop-filter:blur(12px);
  z-index:5
}

.brand{
  font-size:12px;
  letter-spacing:.22em;
  font-weight:600
}

.nav nav{
  display:flex;
  gap:30px;
  color:var(--muted);
  font-size:12px
}

.nav nav a:hover,
.nav nav .active{
  color:var(--paper)
}


/* MAIN */

main{
  max-width:1200px;
  margin:auto;
  padding:0 clamp(22px,5vw,72px)
}


/* HOME HERO */

.hero{
  min-height:calc(100vh - 82px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  max-width:880px;
  padding:80px 0
}

.eyebrow{
  font-size:10px;
  letter-spacing:.22em;
  color:var(--muted);
  margin:0 0 18px
}

.hero h1,
.page-head h1{
  font-family:"Cormorant Garamond",serif;
  font-weight:500;
  font-size:clamp(64px,10vw,128px);
  line-height:.82;
  letter-spacing:-.045em;
  margin:0
}

.hero h1 em{
  color:#c5bbb0
}

.intro{
  max-width:510px;
  color:var(--muted);
  margin:40px 0 28px;
  font-size:15px
}

.button{
  display:inline-flex;
  align-items:center;
  gap:24px;
  width:max-content;
  border:1px solid #514b46;
  padding:13px 18px;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:10px;
  transition:.25s
}

.button:hover{
  background:var(--paper);
  color:var(--bg)
}

.button span{
  font-size:16px
}


/* FEATURED POEM */

.featured{
  border-top:1px solid var(--line);
  padding:90px 0 130px;
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:40px
}

.featured h2,
.section-title h2{
  font-family:"Cormorant Garamond",serif;
  font-size:38px;
  font-weight:500;
  margin:0
}

.featured article{
  padding-top:8px
}

.feature-link{
  display:block
}

.feature-title{
  font-family:"Cormorant Garamond",serif;
  font-size:clamp(38px,5vw,66px);
  line-height:.95;
  margin:0 0 20px
}

.feature-excerpt{
  font-family:"Cormorant Garamond",serif;
  font-size:23px;
  line-height:1.35;
  color:#c6beb7;
  max-width:650px
}

.meta{
  color:var(--muted);
  font-size:10px;
  letter-spacing:.13em;
  text-transform:uppercase
}


/* ARCHIVE PAGE */

.page{
  padding-top:90px;
  padding-bottom:100px
}

.page-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  border-bottom:1px solid var(--line);
  padding-bottom:45px
}

.page-head h1{
  font-size:clamp(62px,9vw,110px)
}

.muted{
  color:var(--muted);
  max-width:250px
}


/* ARCHIVE FILTERS */

.filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:25px 0
}

.filter{
  background:none;
  border:1px solid var(--line);
  color:var(--muted);
  padding:9px 13px;
  font:inherit;
  font-size:10px;
  letter-spacing:.1em;
  text-transform:uppercase;
  cursor:pointer
}

.filter.active,
.filter:hover{
  color:var(--paper);
  border-color:#706a65
}


/* ARCHIVE GRID */

.archive-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  margin-top:15px
}

.poem-card{
  background:var(--bg);
  padding:34px;
  min-height:245px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition:.2s
}

.poem-card:hover{
  background:#121010
}

.poem-card h2{
  font-family:"Cormorant Garamond",serif;
  font-size:39px;
  font-weight:500;
  line-height:.95;
  margin:12px 0
}

.poem-card p{
  font-family:"Cormorant Garamond",serif;
  font-size:18px;
  color:#aaa29b;
  line-height:1.25;
  margin:0;
  max-width:500px
}


/* INDIVIDUAL POEM PAGE */

.poem-page{
  max-width:920px;
  padding-top:70px;
  padding-bottom:100px
}

.back{
  color:var(--muted);
  font-size:11px;
  letter-spacing:.1em;
  text-transform:uppercase
}

.poem-page article{
  padding:100px 8% 110px
}

.poem-page h1{
  font-family:"Cormorant Garamond",serif;
  font-size:clamp(58px,9vw,110px);
  line-height:.82;
  font-weight:500;
  letter-spacing:-.04em;
  margin:15px 0 25px
}

.poem-body{
  white-space:pre-wrap;
  font-family:"Cormorant Garamond",serif;
  font-size:clamp(22px,2.2vw,30px);
  line-height:1.5;
  color:#d4cdc6;
  margin-top:55px
}

.poem-nav{
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  padding-top:25px;
  color:var(--muted);
  font-size:12px
}

.poem-nav a{
  max-width:45%
}

.poem-nav a:hover{
  color:var(--paper)
}


/* FOOTER */

footer{
  border-top:1px solid var(--line);
  padding:25px clamp(22px,5vw,72px);
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase
}


/* EDITOR */

.editor-page{
  max-width:900px
}

.editor-page form{
  padding:50px 0;
  border-bottom:1px solid var(--line)
}

label{
  display:block;
  color:var(--muted);
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:25px
}

input,
textarea,
select{
  display:block;
  width:100%;
  margin-top:9px;
  background:#121010;
  border:1px solid var(--line);
  color:var(--paper);
  padding:14px;
  font:inherit;
  outline:none
}

textarea{
  resize:vertical
}

input:focus,
textarea:focus,
select:focus{
  border-color:#716b65
}

.two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:25px
}

.status{
  color:#bdb5ad;
  font-size:12px
}

.manage{
  padding-top:60px
}

.section-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:25px
}

.text-button{
  background:none;
  border:0;
  color:var(--muted);
  cursor:pointer;
  text-decoration:underline
}

.manage-row{
  border-top:1px solid var(--line);
  padding:17px 0;
  display:flex;
  justify-content:space-between;
  gap:20px
}

.delete{
  background:none;
  border:0;
  color:#a66b65;
  cursor:pointer
}

.empty{
  padding:50px 0;
  color:var(--muted)
}


/* ARCHIVE SEARCH */

.archive-search{
  padding:25px 0 0
}

.search-box{
  position:relative
}

#poem-search{
  margin:0;
  padding:14px 42px 14px 14px;
  background:#121010;
  border:1px solid var(--line);
  color:var(--paper);
  font-family:Inter,system-ui,sans-serif;
  font-size:13px
}

#poem-search::placeholder{
  color:var(--muted)
}

.search-icon{
  display:none
}

.clear-search{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  background:none;
  border:0;
  color:var(--muted);
  font-size:18px;
  cursor:pointer
}

.search-status{
  color:var(--muted);
  font-size:10px;
  letter-spacing:.1em;
  text-transform:uppercase;
  margin:8px 0 0
}


/*
ARCHIVE FONT FIX

Explicitly define the font in every link state so
hovering a poem never changes its typography.
*/

.poem-card,
.poem-card:link,
.poem-card:visited,
.poem-card:hover,
.poem-card:focus,
.poem-card:active{
  font-family:Inter,system-ui,sans-serif
}

.poem-card h2,
.poem-card:link h2,
.poem-card:visited h2,
.poem-card:hover h2,
.poem-card:focus h2,
.poem-card:active h2{
  font-family:"Cormorant Garamond",serif
}

.poem-card p,
.poem-card:link p,
.poem-card:visited p,
.poem-card:hover p,
.poem-card:focus p,
.poem-card:active p{
  font-family:"Cormorant Garamond",serif
}

.poem-card .meta,
.poem-card:link .meta,
.poem-card:visited .meta,
.poem-card:hover .meta,
.poem-card:focus .meta,
.poem-card:active .meta{
  font-family:Inter,system-ui,sans-serif
}


/* MOBILE */

@media(max-width:700px){

  .nav{
    height:70px
  }

  .nav nav{
    gap:15px
  }

  .hero{
    min-height:calc(100vh - 70px);
    padding:50px 0
  }

  .hero h1{
    font-size:18vw
  }

  .featured{
    grid-template-columns:1fr;
    padding:65px 0 90px;
    gap:25px
  }

  .archive-grid{
    grid-template-columns:1fr
  }

  .page{
    padding-top:55px
  }

  .page-head{
    display:block
  }

  .page-head .muted{
    margin-top:20px
  }

  .poem-page article{
    padding:75px 0
  }

  .poem-body{
    font-size:23px
  }

  .poem-nav{
    gap:20px
  }

  .two{
    grid-template-columns:1fr;
    gap:0
  }

  footer{
    gap:20px;
    flex-direction:column
  }

}