# A new composition: hollow roots joined to a glazed masonry workshop wing.
from hearthwright import Choice, Design, Join, Level, Materials, Roof, Site, Volume
from hearthwright.cli import run

DESIGN = Design(
    'Elderroot studio',
    volumes=(
        Volume('hollow',
               width=Choice(13, 15),
               depth=Choice(11, 13),
               envelope='roots',
               roof=None,
               root_crown=Choice(3, 5),
               levels=(Level(('living', 'kitchen', 'sleeping')),)),
        Volume('studio',
               width=9,
               depth=Choice(9, 11),
               join=Join('hollow', Choice('east', 'west'), 'center'),
               levels=(Level(('workshop', 'study')),),
               roof=Roof(pitch=.5)),
    ),
    materials=Materials(wall='earth', frame='dark_oak', roof='dark_wood', accent='green'),
    site=Site(terrain='hill', planting='sparse'),
)

if __name__ == '__main__':
    run(DESIGN)
