﻿/** BASE **/

/* Márgenes */
body {
	font-family: sans-serif;
	margin: 0;
	padding: 0 20px;
}
body * {
	line-height: 1.5;
	max-width: 100%;
}

/* Fuentes */
@font-face {
	font-family: Clarendon;
	src:url('../fonts/ClarendonLTStd.otf');
}
@font-face {
	font-family: RemachineScript;
	src:url('../fonts/RemachineScript.ttf');
}
@font-face {
	font-family: Sanchez;
	font-style: normal;
	font-weight: normal;
	src:url('../fonts/Sanchezregular.otf');
}
@font-face {
	font-family: Sanchez;
	font-style: normal;
	font-weight: bold;
	src:url('../fonts/Sanchezsemibold.otf');
}
@font-face {
	font-family: Sanchez;
	font-style: italic;
	font-weight: bold;
	src:url('../fonts/Sanchezsemibold-ita.otf');
}
@font-face {
	font-family: Sanchez;
	font-style: italic;
	font-weight: normal;
	src:url('../fonts/Sanchezregular-ita.otf');
}

/* Control partición silábica */
#titlepage p,
#dedication p,
h1,
h2,
h3,
h4 {
	page-break-after: avoid;
	hyphens: none;
	adobe-hyphenate: none;
	-moz-hyphens: none;
	-webkit-hyphens: none;
}
p, li, td, dt, dd {
	-webkit-hyphenate-limit-before: 3;
	-webkit-hyphenate-limit-after: 1;
	-webkit-hyphenate-limit-lines: 2;
	orphans: 2;
	widows: 2;
}

/** FRONTMATTER **/

/* Cubierta */
.cover {
	margin: 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
img.cover {
	height: 100%;
}

/* Portadilla */
#titlepage {
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	text-indent: 0;
}
#titlepage p {
	font-family: inherit;
	text-align: center;
	text-indent: 0;
}
#titlepage p.author {
	font-size: 2em;
	font-weight: bold;
	margin: 1em auto 0;
	padding: 0;
	text-align: center;
}
#titlepage p.contrib {
	font-size: 1em;
	font-weight: normal;
	margin: 0 auto;
	padding: 0;
	text-align: center;
}
#titlepage p.title {
	clear: both;
	font-size: 2.5em;
	line-height: 1.2;
	margin: 1em auto;
	padding: 0;
	text-align: center;
}
#titlepage p.title img {
	width: 10em;
}
#titlepage p.subtitle {
	font-size: 1.25em;
	font-weight: normal;
	text-align: center;
}
#titlepage p.publisher {
	font-family: Clarendon;
	font-size: .9em;
	margin: 7em auto 0;
	text-align: center;
}

/* Créditos */
#copyright-page {
	margin: 4em 2em 0 0;
}
#copyright-page div + div {
	margin: 1em 0 0 0;
}
#copyright-page p {
	font-family: serif;
	font-size: .8em;
	margin: 0;
	text-align: left;
	text-indent: 0;
}
#copyright-page div.editorial-note {
	border: 1px solid currentColor;
	margin: 1em 0 2em;
	padding: .2em;
}

/* Sinopsis */
#summary * {
	color: #000;
	font-family: sans-serif;
}
#summary h1 {
	font-size: 1.2em;
	font-weight: bold;
	text-align: center;
	text-decoration: none;
}
#summary li {
	margin: 0;
}
#summary p {
	margin: 0;
}
#summary h1 + p {
	text-indent: 0;
}
#summary p + p {
	text-indent: 1em;
}

/* Índice */
#toc {
	display: none;
}
#toc ol {
	list-style-type: none !important;
	margin: 1em 0;
	padding: 0;
}
#toc li {
	font-size: 1em;
	margin: .75em 0;
	padding: 0;
	text-align: left;
}
#toc li ol {
	margin: 0 0 0 1em;
}
#toc li li {
	margin: 0;
}
#toc li span.label {
	display: block;
}
#toc li span.title {
	font-weight: bold;
}
#toc a {
	color: #000;
	font-weight: normal;
	page-break-inside: avoid;
	text-decoration: none !important;
}

/* BODYMATTER */

/* Estilos generales */
div.header + * {
	break-before: always;
	page-break-before: always;
	padding-top: 2em;
	text-indent: 0;
}
h1 {
	font-family: Sanchez;
	font-size: 4em;
	font-style: normal;
	font-weight: normal;
	margin: 2em 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
h1 span.label {
	display: block;
	font-size: .6em;
}
h2 {
	font-size: 1.5em;
	font-style: normal;
	font-weight: bold;
	margin: 1em 0 .2em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
h3 {
	font-size: 1em;
	font-style: normal;
	font-weight: bold;
	margin: 2em 0 .2em;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
h2 + p,
h3 + p {
	text-indent: 0;
}

p {
	font-size: 1em;
	margin: 1em 0;
	padding: 0;
	line-height: 1.5;
	text-align: justify;
	text-indent: 1em;
}

a {
	color: #00F;
	font-family: monospace;
	font-weight: bold;
	text-decoration: none;
}
abbr {
	border: 0;
	text-decoration: none;
	white-space: nowrap;
}
i cite,
cite i {
	font-style: normal;
}
cite {
	display: inline;
	font-style: italic;
}
hr {
	border: none !important;
	height: 1em;
	margin: .25em 0;
}
hr + p {
	text-indent: 0 !important;
}
img {
	margin: 0;
	max-width: 100%;
	padding: 0;
}
q {
	font-style: italic;
}
q i {
	font-style: normal;
}
q:before {
	content: "";
}
q:after {
	content: "";
}
sub,
sup {
	font-size: .7em;
}

/* Listas */
ol {
	margin: 1em 0 1em 0;
	padding: 0 0 0 1.25em;
}
ul {
	list-style: disc;
	margin: 1em 0 1em 0;
	padding: 0 0 0 1.25em;
}
ol ul {
	margin: 0 0 0 0;
}
li {
	font-size: 1em;
	margin: .7em 0;
	padding: 0;
	text-align: justify;
	text-indent: 0;
}
li p {
	font-size: 1em;
	text-indent: 0;
}
.lower-alpha {
	list-style: lower-alpha;
	margin-left: 1em;
}
.upper-alpha {
	list-style: upper-alpha;
}
ol.indent {
	margin-left: 1em;
}
ul.none {
	list-style: none;
	margin: 1em 0 1em 1em;
	padding: 0;
}

/* TOC brief */
ol.toc-brief {
	margin: 1em 0;
	padding: 0;
}
ol.toc-brief li {
	list-style: none;
	text-align: center;
}
ol.toc-brief a {
	color: currentColor;
}

/* Páginas */
span.page-ref {
	display: none;
}

/* Figuras y captions */
div.figure {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
div.w50,
div.figure-50 {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 50%;
}
div.figure-75 {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 75%;
}
img {
	box-sizing: border-box;
	object-fit: contain;
	max-height: 98%;
	text-align: center;
}
span.inline-image img {
	height: 1em;
	padding-right: .1em;
	vertical-align: middle;
}

div.figcaption p {
	font-size: .8em;
	text-indent: 0;
}

div.icon {
	margin: 1em auto 0;
	text-align: center;
	width: 2.5em;
}
div.icon-x2 {
	margin: 1em auto 0;
	text-align: center;
	width: 5em;
}
div.icon-x3 {
	margin: 1em auto 0;
	text-align: center;
	width: 7.5em;
}
div.hr {
	margin: 0 auto;
	text-align: center;
	width: 3.5em;
}

/* Tablas */
table {
	border: 1px solid currentColor;
	border-collapse: collapse;
	margin: 1em auto;
}
th {
	border: 1px solid currentColor;
	border-collapse: collapse;
	padding: 1em;
	vertical-align: middle;
}
td {
	border: 1px solid currentColor;
	border-collapse: collapse;
	padding: 1em;
	vertical-align: middle;
}
table p {
	font-size: .8em;
	font-weight: normal;
	text-align: center;
	text-indent: 0;
}
th p {
	font-weight: bold;
}
table p.desc {
	font-weight: normal;
	text-align: left;
}

/* Seudoversalitas */
span.sc {
	font-size: .8em;
}

/* Citas de bloque */
blockquote {
	margin: 1em 0 1em 1em;
}
blockquote p {
	font-size: 1em;
	text-indent: 0;
}

/* Pullquotes */
blockquote.pullquote {
	width: 20em;
	margin: 1em auto;
}
blockquote.pullquote p {
	font-family: Sanchez;
	font-size: 1.3em;
	font-style: italic;
	font-weight: bold;
	text-align: left;	
	margin-left: 2.5em;
}
blockquote.pullquote i {
	font-style: normal;
}
blockquote.pullquote div.hr {
	float: left;
	width: 2.5em;
}

/* Asides */
div.aside {
	margin: 2em 0;
}
div.aside p {
	font-family: Sanchez;
	font-size: 1.3em;
	font-style: italic;
	font-weight: bold;
	text-align: center;
	text-indent: 0;
}

/* Citas */
div.quote {
	margin-left: 5em;
}
div.quote blockquote {
	margin: 0;
}
div.quote blockquote p {
	font-family: RemachineScript;
	font-size: 1.6em;
	margin: 0;
	text-align: right;
}
div.quote p.attrib {
	font-size: .9em;
	font-weight: bold;
	margin: .5em 0 0 0;
	text-align: right;
}

/* Comentarios */
div.comment {
	border: 1px solid currentColor;
	border-radius: 1em;
	margin: 1em 0;
	padding: 1em;
}
div.comment p {
	font-weight: bold;
	font-size: .9em;
	text-indent: 0;
}

/* Firmas */
div.signature {
	break-before: avoid;
	page-break-before: avoid;
	break-inside: avoid;
	page-break-inside: avoid;
	margin-top: 1.5em;
}
div.signature p {
	font-style: normal;
	text-align: right;
}
div.signature + p {
	break-before: always;
	page-break-before: always;
	padding-top: 5em;
	text-indent: 0;
}

/* Recetas */
div.recipe + div.recipe {
	break-before: always;
	page-break-before: always;
}
div.recipe p {
	text-indent: 0;
}
div.recipe p.title {
	font-weight: bold;
	font-size: 1.5em;
	padding-bottom: .2em;
	text-align: left;
	text-decoration: underline;
	text-decoration-style: wavy;
}
div.recipe p.variant {
	font-weight: bold;
	font-size: 1.2em;
	padding-bottom: .2em;
	text-align: left;
	text-decoration: underline;
	text-decoration-style: wavy;
}
div.recipe span.subtitle {
	display: block;
	font-size: .85em;
}
div.recipe div.meta {
	margin: 1em 0;
}
div.recipe div.meta p {
	font-size: .9em;
	font-weight: bold;
	margin: .5em 0;
}
div.recipe div.meta img {
	width: 1em;
	margin-right: .2em;
	vertical-align: middle;
}
div.recipe div.ingredients {
	margin: 1.5em 0;
}
div.recipe div.ingredients ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
div.recipe div.ingredients p.for {
	margin: 1em 0 0 0;
}
div.recipe div.ingredients li {
	font-style: italic;
}
div.recipe div.ingredients li i {
	font-style: normal;
}
div.recipe div.ingredients p.bridgehead {
	font-weight: bold;
	margin-top: 1em;
	margin-bottom: .5em;
}
div.recipe div.ingredients li {
	margin: 0 0 0 1em;
	text-indent: -1em;
}
div.recipe div.steps p.bridgehead {
	font-weight: bold;
	margin-top: 1em;
	margin-bottom: .5em;
}
div.recipe div.steps p.note {
	font-size: .8em;
	margin-left: 2.5em;
	text-indent: -1em;
}
div.recipe div.suggest {
	break-inside: avoid;
	page-break-inside: avoid;
	margin: 2em 0;
}
div.recipe div.suggest div.icon {
	margin: .5em 0;
	width: 5em;
}
div.recipe div.suggest p.bridgehead {
	font-family: RemachineScript;
	font-size: 2em;
	margin: 0;
	text-decoration: underline;
	text-decoration-style: wavy;
}

/* Otros */
.underline {
	text-decoration: underline;
}

/* Índice de recetas */
#index ol {
	list-style: none;
	margin: 0;
	padding: 0;
}
#index p.letter {
	font-size: 1em;
	font-style: normal;
	font-weight: bold;
	margin: 2em 0 .2em;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
#index a {
	color: currentColor;
}